Skip to content

LimeRuler 刻度尺

  • uniapp x 插件 可滑动刻度尺

安装

插件市场入口 导入

使用

基本使用

html
<l-ruler v-model="value" />
js
const value = ref(50)

最大最小值

html
<l-ruler v-model="value" :scope="scope" :step="100" :unit="10" :max="1800" :min="1200" />
js
const value = ref(1305)
const scope = [1000, 2000]

竖向

html
<l-ruler v-model="value" vertical />
js
const value = ref(60)

插槽

用于自定义中间指针的样式

html
<l-ruler v-model="value">
	<view class="pointer"></view>	
</l-ruler>
js
const value = ref(60)

源代码

组件源码