qtsk-vue3 0.0.41 → 0.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,27 @@
1
1
  <template>
2
2
  <div class="normalClass">
3
- <el-input-number v-model="num" :min="0" />
3
+ <el-input-number v-model="num" :min="min" :max="max" v-bind="$attrs"/>
4
4
  </div>
5
5
  </template>
6
6
 
7
7
  <script setup>
8
8
  import { ElInputNumber } from 'element-plus'
9
+
9
10
  defineOptions({
10
11
  name: 'Number',
11
12
  })
12
13
 
13
14
  const num = defineModel('modelValue', { type: Number, default: 1 })
15
+
16
+ defineProps({
17
+ min: {
18
+ type: Number,
19
+ default: 0
20
+ },
21
+ max: {
22
+ type: Number
23
+ }
24
+ })
14
25
  </script>
15
26
 
16
27
  <style lang="less" scoped>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qtsk-vue3",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "vue3版组件库",
5
5
  "main": "./package/index.js",
6
6
  "scripts": {