data-source-ui

0.0.15 • Public • Published

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

See Configuration Reference.

组件使用

数据源使用

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>

Readme

Keywords

none

Package Sidebar

Install

npm i data-source-ui

Weekly Downloads

6

Version

0.0.15

License

MIT

Unpacked Size

5.19 MB

Total Files

38

Last publish

Collaborators

  • shashasha