qtsk-vue3 0.0.45 → 0.0.46

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.
@@ -28,6 +28,7 @@ import Skeleton from './components/Skeleton/index.vue'
28
28
  import Alert from './components/Alert/index.vue'
29
29
  import PopConfirm from './components/PopConfirm/index.vue'
30
30
  import Drawer from './components/Drawer/index.vue'
31
+ import TreeSelect from './components/TreeSelect/index.vue'
31
32
  const components =
32
33
  [
33
34
  CommonButton,
@@ -59,6 +60,7 @@ const components =
59
60
  Alert,
60
61
  PopConfirm,
61
62
  SelectGroup,
62
- Drawer
63
+ Drawer,
64
+ TreeSelect
63
65
  ]
64
66
  export default components
@@ -0,0 +1,41 @@
1
+ <template>
2
+ <div>
3
+ <el-tree-select
4
+ v-model="modelValue"
5
+ v-bind="$attrs"
6
+ :data="options"
7
+ :multiple="multiple"
8
+ :render-after-expand="false"
9
+ :show-checkbox="showCheckbox"
10
+ />
11
+ </div>
12
+ </template>
13
+
14
+ <script setup>
15
+ import { ElTreeSelect } from 'element-plus'
16
+
17
+ defineOptions({
18
+ name: 'TreeSelect',
19
+ })
20
+ defineProps({
21
+ options: {
22
+ type: Array,
23
+ default: () => ([])
24
+ },
25
+ // 是否多选
26
+ multiple: {
27
+ type: Boolean,
28
+ default: false
29
+ },
30
+ // 是否显示复选框
31
+ showCheckbox: {
32
+ type: Boolean,
33
+ default: false
34
+ },
35
+ })
36
+
37
+ const modelValue = defineModel('modelValue')
38
+ </script>
39
+
40
+ <style lang="less" scoped>
41
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qtsk-vue3",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "description": "vue3版组件库",
5
5
  "main": "./package/index.js",
6
6
  "scripts": {