1.0.5 • Published 3 years ago

sc-selecte v1.0.5

Weekly downloads
15
License
ISC
Repository
-
Last release
3 years ago

组件介绍

  1. sc-select 是一个简易的下拉列表组件
  2. 它同时适用于移动端和 PC 端
  3. 在未来版本中将加入自定义样式的功能
  4. 如果对该组件有任何意见,可发送至934772615@qq.com

组件使用

安装

npm i sc-selecte

引入

  1. 全局引入
import Vue from 'vue'
import SSelect from 'sc-select'
Vue.use(SSelect)
  1. 组件内引入
import {ScSelect} from 'sc-select'
export default {
    components: {
        ScSelect
    }
}

使用示例

<template>
	<sc-select :listText="listText">
    </sc-select>
</template>

<script>
	import {ScSelect} from 'sc-select'
    export default {
        components: {
            ScSelect
        },
        data() {
            return {
                listText: []
            }
        }
    }
</script>

组件属性

属性用途默认值
baseHeight组件高度(需附带单位)30px
baseWidth组件宽度(需附带单位)120px
listText组件所绑定的数组列表1, 2, 3, 4
showAttributelistText为数组对象时,该属性用于设置所需展示的那个属性''
themeColor组件活跃时的颜色red
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago