# vue-rule-scale **Repository Path**: null_826_5633/vue-rule-scale ## Basic Information - **Project Name**: vue-rule-scale - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-10-29 - **Last Updated**: 2021-11-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### rule 移动端刻度筛选 移动端身高体重筛选 刻度筛选 ### How to use? ```bash npm i vue-rule-scale ``` ### Example ```vue ``` ![image text](https://gitee.com/null_826_5633/vue-rule-scale/raw/master/height.png) ![image text](https://gitee.com/null_826_5633/vue-rule-scale/raw/master/weight.png) ```js // 弹窗显示的时候需要手动触发touchstarts方法 this.$nextTick(()=>{ this.$refs.rule.touchstarts() }) ``` 参数 | 描述 | 类型 ---|---|--- v-model | 显示隐藏 | Boolean title | 弹窗标题 | String stateNum | 初始值 | 默认0(Number) defaultNum | 三角形的位置 | 默认0(Number) minNum | 最小值 | 默认0(Number) maxNum | 最大值 | 默认180(Number) unit | 单位 | 默认cm confirmCallback | 确定回调(返回选中值和单位) | 类型Function cancelHandle | 取消回调 | 类型Function