@king-one/antdv 2.5.7 → 2.6.1

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  3. package/dist/es/components/dept-selector/src/dept.mjs +162 -158
  4. package/dist/es/components/index.mjs +18 -16
  5. package/dist/es/components/pro-dynamic-tags/index.mjs +9 -0
  6. package/dist/es/components/pro-dynamic-tags/src/index.vue.mjs +7 -0
  7. package/dist/es/components/pro-dynamic-tags/src/index.vue2.mjs +215 -0
  8. package/dist/es/components/pro-dynamic-tags/src/index.vue3.mjs +1 -0
  9. package/dist/es/components/pro-dynamic-tags/src/style/index.mjs +2 -0
  10. package/dist/es/components/pro-dynamic-tags/src/types.mjs +1 -0
  11. package/dist/es/components/pro-selector-group/src/index.vue2.mjs +90 -106
  12. package/dist/es/components/role-selector/src/role.mjs +134 -127
  13. package/dist/es/index.mjs +26 -24
  14. package/dist/es/installer.mjs +6 -5
  15. package/dist/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  16. package/dist/lib/components/dept-selector/src/dept.js +1 -1
  17. package/dist/lib/components/index.js +1 -1
  18. package/dist/lib/components/pro-dynamic-tags/index.js +1 -0
  19. package/dist/lib/components/pro-dynamic-tags/src/index.vue.js +1 -0
  20. package/dist/lib/components/pro-dynamic-tags/src/index.vue2.js +1 -0
  21. package/dist/lib/components/pro-dynamic-tags/src/index.vue3.js +1 -0
  22. package/dist/lib/components/pro-dynamic-tags/src/style/index.js +1 -0
  23. package/dist/lib/components/pro-dynamic-tags/src/types.js +1 -0
  24. package/dist/lib/components/pro-selector-group/src/index.vue2.js +1 -1
  25. package/dist/lib/components/role-selector/src/role.js +1 -1
  26. package/dist/lib/index.js +1 -1
  27. package/dist/lib/installer.js +1 -1
  28. package/dist/theme-chalk/icon.css +1 -1
  29. package/dist/theme-chalk/index.css +1 -1
  30. package/dist/theme-chalk/pro-dynamic-tags.css +1 -0
  31. package/dist/types/components/index.d.ts +1 -0
  32. package/dist/types/components/pro-dynamic-tags/index.d.ts +157 -0
  33. package/dist/types/components/pro-dynamic-tags/src/index.vue.d.ts +154 -0
  34. package/dist/types/components/pro-dynamic-tags/src/types.d.ts +51 -0
  35. package/global.d.ts +1 -0
  36. package/package.json +3 -3
@@ -0,0 +1,51 @@
1
+ export interface ProDynamicTagItem {
2
+ label: string;
3
+ value: string | number;
4
+ closable?: boolean;
5
+ [key: string]: any;
6
+ }
7
+ export interface ProDynamicTagsPropsType {
8
+ /**
9
+ * 标签数据,支持 v-model
10
+ */
11
+ modelValue?: ProDynamicTagItem[];
12
+ /**
13
+ * 标签最大宽度(单位:px)
14
+ * @default 60
15
+ */
16
+ tagMaxWidth?: number | string;
17
+ /**
18
+ * 是否显示添加按钮
19
+ * @default true
20
+ */
21
+ showAdd?: boolean;
22
+ /**
23
+ * 添加按钮文本
24
+ * @default '添加'
25
+ */
26
+ addText?: string;
27
+ /**
28
+ * 标签是否可关闭
29
+ * @default true
30
+ */
31
+ closable?: boolean;
32
+ /**
33
+ * 自定义类名
34
+ */
35
+ customClass?: string;
36
+ /**
37
+ * 自定义样式
38
+ */
39
+ customStyle?: Record<string, any>;
40
+ /**
41
+ * 控件大小
42
+ * @default 'middle'
43
+ */
44
+ size?: 'large' | 'middle' | 'small';
45
+ }
46
+ export interface ProDynamicTagsEmitsType {
47
+ (e: 'update:modelValue', value: ProDynamicTagItem[]): void;
48
+ (e: 'add'): void;
49
+ (e: 'close', item: ProDynamicTagItem, index: number): void;
50
+ (e: 'expand'): void;
51
+ }
package/global.d.ts CHANGED
@@ -13,6 +13,7 @@ declare module 'vue' {
13
13
  KProCell: typeof import('@king-one/antdv')['KProCell'];
14
14
  KProCellGroup: typeof import('@king-one/antdv')['KProCellGroup'];
15
15
  KProContractView: typeof import('@king-one/antdv')['KProContractView'];
16
+ KProDynamicTags: typeof import('@king-one/antdv')['KProDynamicTags'];
16
17
  KProFormRender: typeof import('@king-one/antdv')['KProFormRender'];
17
18
  KProInputTag: typeof import('@king-one/antdv')['KProInputTag'];
18
19
  KProLoading: typeof import('@king-one/antdv')['KProLoading'];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "2.5.7",
4
+ "version": "2.6.1",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",
@@ -25,8 +25,8 @@
25
25
  "evtd": "^0.2.4",
26
26
  "lodash-es": "^4.17.21",
27
27
  "mitt": "^3.0.1",
28
- "@king-one/utils": "^1.0.13",
29
- "@king-one/tapable": "^3.0.0"
28
+ "@king-one/tapable": "^3.0.0",
29
+ "@king-one/utils": "^1.0.14"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",