yc-vep-ui 0.0.57 → 0.0.59

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.
@@ -8,8 +8,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
8
8
  change: (...args: any[]) => void;
9
9
  "update:modelValue": (value: string) => void;
10
10
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
- onChange?: ((...args: any[]) => any) | undefined;
12
11
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
+ onChange?: ((...args: any[]) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
14
14
  editorRef: HTMLDivElement;
15
15
  }, HTMLDivElement>;
@@ -0,0 +1,7 @@
1
+ import { IStaffSelectProps } from './type.d';
2
+ declare const _default: import('vue').DefineComponent<IStaffSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ "update:modelValue": (value: string | string[]) => any;
4
+ }, string, import('vue').PublicProps, Readonly<IStaffSelectProps> & Readonly<{
5
+ "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { StaffOption } from './type.d';
2
+ type __VLS_Props = {
3
+ modelValue?: StaffOption[];
4
+ disabled?: boolean;
5
+ data?: StaffOption[];
6
+ required?: boolean;
7
+ };
8
+ declare function validate(): boolean;
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
10
+ validate: typeof validate;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ "update:modelValue": (...args: any[]) => void;
13
+ change: (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
16
+ onChange?: ((...args: any[]) => any) | undefined;
17
+ }>, {
18
+ disabled: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
+ staffDialogRef: unknown;
21
+ }, any>;
22
+ export default _default;
@@ -0,0 +1,56 @@
1
+ import { IStaffSelectProps } from './type.d';
2
+ declare const _default: import('vue').DefineComponent<IStaffSelectProps, {
3
+ validate: () => any;
4
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IStaffSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
5
+ staffSelectRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<IStaffSelectProps> & Readonly<{
6
+ "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
7
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ "update:modelValue": (value: string | string[]) => any;
9
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
10
+ P: {};
11
+ B: {};
12
+ D: {};
13
+ C: {};
14
+ M: {};
15
+ Defaults: {};
16
+ }, Readonly<IStaffSelectProps> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
18
+ }>, {}, {}, {}, {}, {}> | import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
19
+ modelValue?: import('./type.d').StaffOption[];
20
+ disabled?: boolean;
21
+ data?: import('./type.d').StaffOption[];
22
+ required?: boolean;
23
+ }> & Readonly<{
24
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
25
+ onChange?: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ validate: () => boolean;
28
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
+ "update:modelValue": (...args: any[]) => void;
30
+ change: (...args: any[]) => void;
31
+ }, import('vue').PublicProps, {
32
+ disabled: boolean;
33
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
34
+ staffDialogRef: unknown;
35
+ }, any, import('vue').ComponentProvideOptions, {
36
+ P: {};
37
+ B: {};
38
+ D: {};
39
+ C: {};
40
+ M: {};
41
+ Defaults: {};
42
+ }, Readonly<{
43
+ modelValue?: import('./type.d').StaffOption[];
44
+ disabled?: boolean;
45
+ data?: import('./type.d').StaffOption[];
46
+ required?: boolean;
47
+ }> & Readonly<{
48
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
49
+ onChange?: ((...args: any[]) => any) | undefined;
50
+ }>, {
51
+ validate: () => boolean;
52
+ }, {}, {}, {}, {
53
+ disabled: boolean;
54
+ }> | null;
55
+ }, any>;
56
+ export default _default;
@@ -0,0 +1,45 @@
1
+ // 员工接口
2
+ export interface IStaffSelectProps {
3
+ multiple?: boolean
4
+ type?: 'default' | 'dialog'
5
+ /** 值取值 employeeId 或 employeeName */
6
+ valueAt?: 'account' | 'name' | 'all'
7
+ modelValue?: string[] | string
8
+ token?: string
9
+ }
10
+
11
+ export interface StaffOption {
12
+ label?: string
13
+ value?: any
14
+ orgFullName?: string
15
+ employeeCode?: string
16
+ employeeName?: string
17
+ /** id */
18
+ id?: string | number
19
+ /** 账号 */
20
+ account?: string
21
+ /** 姓名 */
22
+ name?: string
23
+ /** 姓名/部门/ */
24
+ fullName?: string
25
+ /** 群: 名 */
26
+ fdName?: string
27
+ /** 群:id */
28
+ fdId?: string
29
+ /** 群:归属部门 */
30
+ fdParent?: StaffOption
31
+ /** 群:归属部门下的群 */
32
+ children?: StaffOption[]
33
+ }
34
+
35
+ export interface IDepartment {
36
+ id: string | number
37
+ name: string
38
+ code: string
39
+ parentName: string
40
+ parentCode: string
41
+ deleted: number
42
+ structureCode: string
43
+ structureName: string
44
+ children: IDepartment[]
45
+ }
@@ -7,3 +7,4 @@ export * as UiTree from './Tree/index.vue';
7
7
  export * as UiInfiniteScroll from './InfiniteScroll/index.vue';
8
8
  export * as UiDescriptions from './Descriptions/index.vue';
9
9
  export * as UiDialog from './Dialog/index.vue';
10
+ export * as UiStaffSelect from './StaffSelect/index.vue';
@@ -27,4 +27,6 @@ export declare const El: {
27
27
  readonly ButtonGroup: any;
28
28
  readonly Descriptions: any;
29
29
  readonly DescriptionsItem: any;
30
+ readonly Message: any;
30
31
  };
32
+ export declare function getIcon(name: string): any;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 数组去重工具函数
3
+ */
4
+ /**
5
+ * 去重数组(基于 SameValueZero 比较)
6
+ */
7
+ export declare function uniq<T>(arr: T[]): T[];
8
+ /**
9
+ * 根据指定 key 去重数组
10
+ */
11
+ export declare function uniqBy<T>(arr: T[], key: keyof T | ((item: T) => unknown)): T[];
@@ -34,6 +34,7 @@ declare function radio(props: RadioGroupProps): any;
34
34
  declare function text(props: TextProps & {
35
35
  prop: string;
36
36
  }): any;
37
+ declare function staffSelect(props: any): any;
37
38
  declare const _default: {
38
39
  button: typeof button;
39
40
  link: typeof link;
@@ -49,5 +50,6 @@ declare const _default: {
49
50
  editor: typeof editor;
50
51
  radio: typeof radio;
51
52
  text: typeof text;
53
+ staffSelect: typeof staffSelect;
52
54
  };
53
55
  export default _default;