1.0.0 • Published 1 year ago

lc-vue-size-scale v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

lc-vue-size-scale

尺寸刻度尺

常用场景:

  • xxx

Demo

demo

安装

npm i lc-vue-size-scale

例子

<template>
  <div style='position: relative; height: 500px; display: flex; flex-direction: column;'>
    <div style='height: 20px; display: flex;'>
      <div style='width: 20px;' />
      <div style='flex: 1; position: relative;'>
        <px-scale />
      </div>
      <div style='width: 20px;' />
    </div>
    <div style='flex: 1;display: flex;'>
      <div style='width: 20px; position: relative;'>
        <px-scale placement='left' />
      </div>
      <div style='flex: 1; position: relative;' />
      <div style='width: 20px; position: relative;'>
        <px-scale placement='right' />
      </div>
    </div>
    <div style='height: 20px; display: flex;'>
      <div style='width: 20px;' />
      <div style='flex: 1; position: relative;'>
        <px-scale placement='bottom' />
      </div>
      <div style='width: 20px;' />
    </div>
  </div>
</template>

<script setup lang="ts">
import { PxScale } from 'lc-vue-size-scale';

</script>

<style scoped>

</style>

API

Attributes

属性名说明类型默认值
v-model/modelValue绑定值string/array-

Events

事件名说明类型
update:model-value数据绑定事件string/array

Slots

插槽名说明参数
default右侧图标-
1.0.0

1 year ago