@zyui/components 0.0.42 → 0.0.44

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 (46) hide show
  1. package/es/index.js +75 -75
  2. package/es/index.mjs +27485 -27313
  3. package/es/src/components/DepartmentPicker/departmentPickerDisplay.vue.d.ts +3 -3
  4. package/es/src/components/DepartmentPicker/dialog/department.vue.d.ts +11 -1
  5. package/es/src/components/DepartmentPicker/dialog/index.vue.d.ts +1 -0
  6. package/es/src/components/DepartmentPicker/hooks/useDataListByValue.d.ts +1 -1
  7. package/es/src/components/DepartmentPicker/index.vue.d.ts +12 -1
  8. package/es/src/components/DepartmentPicker/provider.vue.d.ts +11 -1
  9. package/es/src/components/DepartmentPicker/type.d.ts +1 -0
  10. package/es/src/components/RolePicker/dialog/index.vue.d.ts +1 -0
  11. package/es/src/components/RolePicker/dialog/role.vue.d.ts +11 -1
  12. package/es/src/components/RolePicker/hooks/useDataListByValue.d.ts +1 -1
  13. package/es/src/components/RolePicker/index.vue.d.ts +12 -1
  14. package/es/src/components/RolePicker/provider.vue.d.ts +11 -1
  15. package/es/src/components/RolePicker/rolePickerDisplay.vue.d.ts +3 -3
  16. package/es/src/components/RolePicker/type.d.ts +1 -0
  17. package/es/src/components/UserPicker/context.d.ts +1 -0
  18. package/es/src/components/UserPicker/dialog/department.vue.d.ts +2 -2
  19. package/es/src/components/UserPicker/dialog/people.vue.d.ts +2 -2
  20. package/es/src/components/UserPicker/dialog/role.vue.d.ts +2 -2
  21. package/es/src/components/UserPicker/hooks/useDataListByValue.d.ts +1 -1
  22. package/es/src/components/UserPicker/index.vue.d.ts +12 -1
  23. package/es/src/components/UserPicker/provider.vue.d.ts +11 -0
  24. package/es/style.css +1 -1
  25. package/lib/src/components/DepartmentPicker/departmentPickerDisplay.vue.d.ts +3 -3
  26. package/lib/src/components/DepartmentPicker/dialog/department.vue.d.ts +11 -1
  27. package/lib/src/components/DepartmentPicker/dialog/index.vue.d.ts +1 -0
  28. package/lib/src/components/DepartmentPicker/hooks/useDataListByValue.d.ts +1 -1
  29. package/lib/src/components/DepartmentPicker/index.vue.d.ts +12 -1
  30. package/lib/src/components/DepartmentPicker/provider.vue.d.ts +11 -1
  31. package/lib/src/components/DepartmentPicker/type.d.ts +1 -0
  32. package/lib/src/components/RolePicker/dialog/index.vue.d.ts +1 -0
  33. package/lib/src/components/RolePicker/dialog/role.vue.d.ts +11 -1
  34. package/lib/src/components/RolePicker/hooks/useDataListByValue.d.ts +1 -1
  35. package/lib/src/components/RolePicker/index.vue.d.ts +12 -1
  36. package/lib/src/components/RolePicker/provider.vue.d.ts +11 -1
  37. package/lib/src/components/RolePicker/rolePickerDisplay.vue.d.ts +3 -3
  38. package/lib/src/components/RolePicker/type.d.ts +1 -0
  39. package/lib/src/components/UserPicker/context.d.ts +1 -0
  40. package/lib/src/components/UserPicker/dialog/department.vue.d.ts +2 -2
  41. package/lib/src/components/UserPicker/dialog/people.vue.d.ts +2 -2
  42. package/lib/src/components/UserPicker/dialog/role.vue.d.ts +2 -2
  43. package/lib/src/components/UserPicker/hooks/useDataListByValue.d.ts +1 -1
  44. package/lib/src/components/UserPicker/index.vue.d.ts +12 -1
  45. package/lib/src/components/UserPicker/provider.vue.d.ts +11 -0
  46. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  value: {
3
- type: ArrayConstructor;
3
+ type: (ArrayConstructor | StringConstructor)[];
4
4
  default: () => never[];
5
5
  };
6
6
  isAbbr: {
@@ -15,7 +15,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
15
15
  click: (...args: any[]) => void;
16
16
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
17
  value: {
18
- type: ArrayConstructor;
18
+ type: (ArrayConstructor | StringConstructor)[];
19
19
  default: () => never[];
20
20
  };
21
21
  isAbbr: {
@@ -29,7 +29,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
29
29
  }>> & Readonly<{
30
30
  onClick?: ((...args: any[]) => any) | undefined;
31
31
  }>, {
32
- value: unknown[];
32
+ value: string | unknown[];
33
33
  isAbbr: boolean;
34
34
  showCount: number;
35
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,16 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  modelValue: import('vue').PropType<string[]>;
3
+ multiple: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
3
7
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
8
  modelValue: import('vue').PropType<string[]>;
5
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ multiple: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>> & Readonly<{}>, {
14
+ multiple: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
16
  export default _default;
@@ -2,6 +2,7 @@ declare const _default: import('vue').DefineComponent<{}, {
2
2
  show: (options: {
3
3
  data: any;
4
4
  callback: (val: any) => void;
5
+ multiple: boolean;
5
6
  }) => void;
6
7
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
8
  export default _default;
@@ -1 +1 @@
1
- export declare const useDataListByValue: (val: any) => never[] | import('vue').ComputedRef<any[]>;
1
+ export declare const useDataListByValue: (val: any) => import('vue').ComputedRef<any[]>;
@@ -1,6 +1,6 @@
1
1
  declare function __VLS_template(): {
2
2
  default?(_: {
3
- value: any[] | never[];
3
+ value: any[];
4
4
  selectHandler: () => void;
5
5
  }): any;
6
6
  };
@@ -16,6 +16,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
16
16
  type: NumberConstructor;
17
17
  default: number;
18
18
  };
19
+ /** 多选单选 */
20
+ multiple: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
19
24
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
20
25
  modelValue: import('vue').PropType<any>;
21
26
  /** 默认显示的内容,是否简写 */
@@ -28,9 +33,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
28
33
  type: NumberConstructor;
29
34
  default: number;
30
35
  };
36
+ /** 多选单选 */
37
+ multiple: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
31
41
  }>> & Readonly<{}>, {
32
42
  isAbbr: boolean;
33
43
  showCount: number;
44
+ multiple: boolean;
34
45
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
46
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
36
47
  export default _default;
@@ -3,9 +3,19 @@ declare function __VLS_template(): {
3
3
  };
4
4
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
5
  modelValue: import('vue').PropType<any>;
6
+ multiple: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
6
10
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
11
  modelValue: import('vue').PropType<any>;
8
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
+ multiple: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ }>> & Readonly<{}>, {
17
+ multiple: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
20
  export default _default;
11
21
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -2,5 +2,6 @@ export type DialogType = {
2
2
  show: (options: {
3
3
  data: any;
4
4
  callback: (val: any) => void;
5
+ multiple: boolean;
5
6
  }) => void;
6
7
  };
@@ -2,6 +2,7 @@ declare const _default: import('vue').DefineComponent<{}, {
2
2
  show: (options: {
3
3
  data: any;
4
4
  callback: (val: any) => void;
5
+ multiple: boolean;
5
6
  }) => void;
6
7
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
8
  export default _default;
@@ -1,6 +1,16 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  modelValue: import('vue').PropType<string[]>;
3
+ multiple: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
3
7
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
8
  modelValue: import('vue').PropType<string[]>;
5
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ multiple: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>> & Readonly<{}>, {
14
+ multiple: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
16
  export default _default;
@@ -1 +1 @@
1
- export declare const useDataListByValue: (val: any) => never[] | import('vue').ComputedRef<any[]>;
1
+ export declare const useDataListByValue: (val: any) => import('vue').ComputedRef<any[]>;
@@ -1,6 +1,6 @@
1
1
  declare function __VLS_template(): {
2
2
  default?(_: {
3
- value: any[] | never[];
3
+ value: any[];
4
4
  selectHandler: () => void;
5
5
  }): any;
6
6
  };
@@ -11,6 +11,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
11
11
  type: BooleanConstructor;
12
12
  default: boolean;
13
13
  };
14
+ /** 是否多选 */
15
+ multiple: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
14
19
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
20
  modelValue: import('vue').PropType<any>;
16
21
  /** 默认显示的内容,是否简写 */
@@ -18,8 +23,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
18
23
  type: BooleanConstructor;
19
24
  default: boolean;
20
25
  };
26
+ /** 是否多选 */
27
+ multiple: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
21
31
  }>> & Readonly<{}>, {
22
32
  isAbbr: boolean;
33
+ multiple: boolean;
23
34
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
35
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
25
36
  export default _default;
@@ -3,9 +3,19 @@ declare function __VLS_template(): {
3
3
  };
4
4
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
5
  modelValue: import('vue').PropType<any>;
6
+ multiple: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
6
10
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
11
  modelValue: import('vue').PropType<any>;
8
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
+ multiple: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ }>> & Readonly<{}>, {
17
+ multiple: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
20
  export default _default;
11
21
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  value: {
3
- type: ArrayConstructor;
3
+ type: (ArrayConstructor | StringConstructor)[];
4
4
  default: () => never[];
5
5
  };
6
6
  isAbbr: {
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
11
11
  click: (...args: any[]) => void;
12
12
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
13
  value: {
14
- type: ArrayConstructor;
14
+ type: (ArrayConstructor | StringConstructor)[];
15
15
  default: () => never[];
16
16
  };
17
17
  isAbbr: {
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
21
21
  }>> & Readonly<{
22
22
  onClick?: ((...args: any[]) => any) | undefined;
23
23
  }>, {
24
- value: unknown[];
24
+ value: string | unknown[];
25
25
  isAbbr: boolean;
26
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
27
27
  export default _default;
@@ -2,5 +2,6 @@ export type DialogType = {
2
2
  show: (options: {
3
3
  data: any;
4
4
  callback: (val: any) => void;
5
+ multiple: boolean;
5
6
  }) => void;
6
7
  };
@@ -3,6 +3,7 @@ type NodesEditorContext = {
3
3
  props: {
4
4
  showCount?: number;
5
5
  multiple?: boolean;
6
+ disabledIds?: string[];
6
7
  };
7
8
  };
8
9
  export declare const pickerKey: unique symbol;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- modelValue: import('vue').PropType<string[]>;
2
+ modelValue: import('vue').PropType<string[] | string>;
3
3
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
- modelValue: import('vue').PropType<string[]>;
4
+ modelValue: import('vue').PropType<string[] | string>;
5
5
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- modelValue: import('vue').PropType<string[]>;
2
+ modelValue: import('vue').PropType<string[] | string>;
3
3
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
- modelValue: import('vue').PropType<string[]>;
4
+ modelValue: import('vue').PropType<string[] | string>;
5
5
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- modelValue: import('vue').PropType<string[]>;
2
+ modelValue: import('vue').PropType<string[] | string>;
3
3
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
- modelValue: import('vue').PropType<string[]>;
4
+ modelValue: import('vue').PropType<string[] | string>;
5
5
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
6
  export default _default;
@@ -1 +1 @@
1
- export declare const useDataListByValue: (val: any) => never[] | import('vue').ComputedRef<any[]>;
1
+ export declare const useDataListByValue: (val: any) => import('vue').ComputedRef<any[]>;
@@ -1,6 +1,8 @@
1
+ import { PropType } from 'vue';
2
+
1
3
  declare function __VLS_template(): {
2
4
  default?(_: {
3
- value: any[] | never[];
5
+ value: any[];
4
6
  selectHandler: () => void;
5
7
  }): any;
6
8
  };
@@ -21,6 +23,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
21
23
  type: BooleanConstructor;
22
24
  default: boolean;
23
25
  };
26
+ disabledIds: {
27
+ type: PropType<string[]>;
28
+ default: () => never[];
29
+ };
24
30
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
31
  ok: (...args: any[]) => void;
26
32
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -40,12 +46,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
40
46
  type: BooleanConstructor;
41
47
  default: boolean;
42
48
  };
49
+ disabledIds: {
50
+ type: PropType<string[]>;
51
+ default: () => never[];
52
+ };
43
53
  }>> & Readonly<{
44
54
  onOk?: ((...args: any[]) => any) | undefined;
45
55
  }>, {
46
56
  isAbbr: boolean;
47
57
  showCount: number;
48
58
  multiple: boolean;
59
+ disabledIds: string[];
49
60
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
50
61
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
51
62
  export default _default;
@@ -1,3 +1,5 @@
1
+ import { PropType } from 'vue';
2
+
1
3
  declare function __VLS_template(): {
2
4
  default?(_: {}): any;
3
5
  };
@@ -18,6 +20,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
18
20
  type: BooleanConstructor;
19
21
  default: boolean;
20
22
  };
23
+ disabledIds: {
24
+ type: PropType<string[]>;
25
+ default: () => never[];
26
+ };
21
27
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
28
  modelValue: import('vue').PropType<any>;
23
29
  /** 默认显示的内容,是否简写 */
@@ -35,10 +41,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
35
41
  type: BooleanConstructor;
36
42
  default: boolean;
37
43
  };
44
+ disabledIds: {
45
+ type: PropType<string[]>;
46
+ default: () => never[];
47
+ };
38
48
  }>> & Readonly<{}>, {
39
49
  isAbbr: boolean;
40
50
  showCount: number;
41
51
  multiple: boolean;
52
+ disabledIds: string[];
42
53
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
43
54
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
44
55
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyui/components",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",