# sc-select **Repository Path**: f-s2/sc-select ## Basic Information - **Project Name**: sc-select - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-25 - **Last Updated**: 2020-12-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 组件介绍 1. `sc-select` 是一个简易的下拉列表组件 2. 它同时适用于移动端和 PC 端 3. 在未来版本中将加入自定义样式的功能 4. 如果对该组件有任何意见,可发送至934772615@qq.com ## 组件使用 ### 安装 `npm i sc-selecte` ### 引入 1. 全局引入 ```js import Vue from 'vue' import SSelect from 'sc-select' Vue.use(SSelect) ``` 2. 组件内引入 ```js import {ScSelect} from 'sc-select' export default { components: { ScSelect } } ``` ## 使用示例 ```vue ``` ## 组件属性 | 属性 | 用途 | 默认值 | | ------------- | ---------------------------------------------------------- | ------------ | | baseHeight | 组件高度(需附带单位) | 30px | | baseWidth | 组件宽度(需附带单位) | 120px | | listText | 组件所绑定的数组列表 | [1, 2, 3, 4] | | showAttribute | 当`listText`为数组对象时,该属性用于设置所需展示的那个属性 | '' | | themeColor | 组件活跃时的颜色 | red |