@betao/ds
Portail Design System
Vue components library for Portail project.
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
Adding new components
- Create a new MyComponent.vue file in src/components using this template:
<!--
Component description
Usage:
<MyComponent
:prop1="..." - Short description of prop1
:prop2="..." - Short description of prop2
@event="..." - Short description of event
>
Hello, World!
</MyComponent>
Properties:
...
Events:
...
-->
<template>
<div class="my-component">
...
</div>
</template>
<script>
export default {
name: 'MyComponent',
props: {
...
},
data: () => ({
...
}),
}
</script>
<style lang="less">
.my-component {
...
}
</style>
- Create a new MyComponentDemo.vue file in src/demos/components with this template:
<template>
<div class="row-col">
<h3>MyComponent</h3>
Description
<pre v-highlightjs="usage"><code class="html"></code></pre>
<MyComponent>Hello, World!</MyComponent>
</div>
</template>
<script>
import MyComponent from '../../components/MyComponent.vue'
let usage = `
<MyComponent>Hello, World!</MyComponent>
`.slice(1)
export default {
name: 'MyComponentDemo',
components: {MyComponent},
data: () => ({usage}),
}
</script>
- Push your changes and Open a PR
Version History
| Version | Released | License |
|---|---|---|
| 0.4.441 | ||
| 0.4.440 | ||
| 0.4.439 | ||
| 0.4.438 | ||
| 0.4.437 | ||
| 0.4.436 | ||
| 0.4.435 | ||
| 0.4.434 | ||
| 0.4.433 | ||
| 0.4.432 | ||
| 0.4.431 | ||
| 0.4.430 | ||
| 0.4.429 | ||
| 0.4.428 | ||
| 0.4.427 | ||
| 0.4.426 | ||
| 0.4.425 | ||
| 0.4.424 | ||
| 0.4.423 | ||
| 0.4.422 | ||
| 0.4.421 | ||
| 0.4.420 | ||
| 0.4.419 | ||
| 0.4.418 | ||
| 0.4.417 | ||
| 0.4.416 | ||
| 0.4.415 | ||
| 0.4.414 | ||
| 0.4.413 | ||
| 0.4.412 |
Showing the latest 30 of 905. See every release on npm