data-source-ui
v0.0.15
Published
## Project setup
Downloads
5
Readme
data-source
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
Customize configuration
组件使用
数据源使用
npm i data-source-ui
import dataSource from "data-source-ui";
import "data-source-ui/lib/source.css";
Vue.use(dataSource);
<template>
<select-source v-model="value" @change="handleChange" width="120px" space="10px" />
</tempalte>
<script>
export default {
data() {
return {
value: ''
}
},
methods: {
handleChange (val) {
console.log(val) //得到数据源数据
}
}
}
</script>
| 属性 | 描述 | | :----------: | :--------------: | | value | 选择数据源值 | | width | 分类的宽度 | | space | input 之间的间隙 | | defaultValue | 分类是否默认选择 |
cron 使用
<template>
<task-cron v-model="value" />
</template>
<script>
export default {
data() {
return {
value: "",
};
},
};
</script>