cnhis-design-vue 3.1.42-release.6 → 3.1.42-release.8
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.
- package/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +12 -12
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -9
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +9 -9
- package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +12 -12
- package/es/components/classification/src/index.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-config/index.d.ts +10 -10
- package/es/components/form-config/src/FormConfig.vue.d.ts +10 -10
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +5 -5
- package/es/components/form-config/src/constants/index.d.ts +1 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-render/index.d.ts +5 -5
- package/es/components/form-render/src/FormRender.vue.d.ts +5 -5
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -5
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/iho-table/index.d.ts +2 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +4 -0
- package/es/components/info-header/index.d.ts +13 -13
- package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -13
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +8 -8
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -5
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/components/select-label/index.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/es/components/select-person/index.d.ts +141 -0
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +8 -8
- package/es/components/select-person/src/SearchMultiple.vue.js +1 -0
- package/es/components/select-person/src/SearchMultiple.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +143 -2
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +5 -5
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
- package/es/env.d.ts +25 -25
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
|
@@ -272,6 +272,147 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
272
272
|
readonly privateShow: boolean;
|
|
273
273
|
}>;
|
|
274
274
|
CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
275
|
+
SearchMultiple: import("vue").DefineComponent<{
|
|
276
|
+
treeData: {
|
|
277
|
+
type: import("vue").PropType<any[]>;
|
|
278
|
+
default: () => never[];
|
|
279
|
+
};
|
|
280
|
+
checkedKeys: {
|
|
281
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
282
|
+
default: () => never[];
|
|
283
|
+
};
|
|
284
|
+
}, {
|
|
285
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
286
|
+
treeData: {
|
|
287
|
+
type: import("vue").PropType<any[]>;
|
|
288
|
+
default: () => never[];
|
|
289
|
+
};
|
|
290
|
+
checkedKeys: {
|
|
291
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
292
|
+
default: () => never[];
|
|
293
|
+
};
|
|
294
|
+
}>> & {
|
|
295
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
296
|
+
}>>;
|
|
297
|
+
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
298
|
+
optionsRef: import("vue").ComputedRef<any[]>;
|
|
299
|
+
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
300
|
+
containerProps: {
|
|
301
|
+
ref: import("vue").Ref<any>;
|
|
302
|
+
onScroll: () => void;
|
|
303
|
+
style: Partial<CSSStyleDeclaration>;
|
|
304
|
+
};
|
|
305
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
306
|
+
style: {
|
|
307
|
+
width: string;
|
|
308
|
+
height: string;
|
|
309
|
+
marginTop: string;
|
|
310
|
+
};
|
|
311
|
+
}>;
|
|
312
|
+
containerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
313
|
+
searchCheckKeys: import("vue").Ref<(string | number)[]>;
|
|
314
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
315
|
+
checkedChange: (checkList: (string | number)[], meta: {
|
|
316
|
+
actionType: "check" | "uncheck";
|
|
317
|
+
value: string | number;
|
|
318
|
+
}) => void;
|
|
319
|
+
handleCheckKey: (baseKeys: (string | number)[], currentTree: {
|
|
320
|
+
[key: string]: any;
|
|
321
|
+
key: string | number;
|
|
322
|
+
children: any[];
|
|
323
|
+
parentNode: any;
|
|
324
|
+
} | null, value: string | number) => false | undefined;
|
|
325
|
+
findParent: (baseKeys: (string | number)[], currentTree: {
|
|
326
|
+
[key: string]: any;
|
|
327
|
+
key: string | number;
|
|
328
|
+
children: any[];
|
|
329
|
+
parentNode: any;
|
|
330
|
+
}) => false | undefined;
|
|
331
|
+
handleUnCheckKey: (baseKeys: (string | number)[], currentTree: {
|
|
332
|
+
[key: string]: any;
|
|
333
|
+
key: string | number;
|
|
334
|
+
children: any[];
|
|
335
|
+
parentNode: any;
|
|
336
|
+
}, value: string | number) => false | undefined;
|
|
337
|
+
findChild: (baseKeys: (string | number)[], children: {
|
|
338
|
+
[key: string]: any;
|
|
339
|
+
key: string | number;
|
|
340
|
+
children: any[];
|
|
341
|
+
parentNode: any;
|
|
342
|
+
}[], value: string | number) => false | undefined;
|
|
343
|
+
checkInitTree: (tree: {
|
|
344
|
+
[key: string]: any;
|
|
345
|
+
key: string | number;
|
|
346
|
+
children: any[];
|
|
347
|
+
parentNode: any;
|
|
348
|
+
}, baseKey: string | number) => false | undefined;
|
|
349
|
+
ref: typeof import("vue").ref;
|
|
350
|
+
NCheckboxGroup: import("vue").DefineComponent<{
|
|
351
|
+
readonly min: NumberConstructor;
|
|
352
|
+
readonly max: NumberConstructor;
|
|
353
|
+
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
354
|
+
readonly value: import("vue").PropType<(string | number)[] | null>;
|
|
355
|
+
readonly defaultValue: {
|
|
356
|
+
readonly type: import("vue").PropType<(string | number)[] | null>;
|
|
357
|
+
readonly default: null;
|
|
358
|
+
};
|
|
359
|
+
readonly disabled: {
|
|
360
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
361
|
+
readonly default: undefined;
|
|
362
|
+
};
|
|
363
|
+
readonly 'onUpdate:value': import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
364
|
+
actionType: "check" | "uncheck";
|
|
365
|
+
value: string | number;
|
|
366
|
+
}) => void>>;
|
|
367
|
+
readonly onUpdateValue: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
368
|
+
actionType: "check" | "uncheck";
|
|
369
|
+
value: string | number;
|
|
370
|
+
}) => void>>;
|
|
371
|
+
readonly onChange: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
372
|
+
}, {
|
|
373
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
374
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
375
|
+
readonly min: NumberConstructor;
|
|
376
|
+
readonly max: NumberConstructor;
|
|
377
|
+
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
378
|
+
readonly value: import("vue").PropType<(string | number)[] | null>;
|
|
379
|
+
readonly defaultValue: {
|
|
380
|
+
readonly type: import("vue").PropType<(string | number)[] | null>;
|
|
381
|
+
readonly default: null;
|
|
382
|
+
};
|
|
383
|
+
readonly disabled: {
|
|
384
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
385
|
+
readonly default: undefined;
|
|
386
|
+
};
|
|
387
|
+
readonly 'onUpdate:value': import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
388
|
+
actionType: "check" | "uncheck";
|
|
389
|
+
value: string | number;
|
|
390
|
+
}) => void>>;
|
|
391
|
+
readonly onUpdateValue: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
392
|
+
actionType: "check" | "uncheck";
|
|
393
|
+
value: string | number;
|
|
394
|
+
}) => void>>;
|
|
395
|
+
readonly onChange: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
396
|
+
}>>, {
|
|
397
|
+
readonly disabled: boolean | undefined;
|
|
398
|
+
readonly defaultValue: (string | number)[] | null;
|
|
399
|
+
}>;
|
|
400
|
+
NCheckbox: any;
|
|
401
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
402
|
+
treeData: {
|
|
403
|
+
type: import("vue").PropType<any[]>;
|
|
404
|
+
default: () => never[];
|
|
405
|
+
};
|
|
406
|
+
checkedKeys: {
|
|
407
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
408
|
+
default: () => never[];
|
|
409
|
+
};
|
|
410
|
+
}>> & {
|
|
411
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
412
|
+
}, {
|
|
413
|
+
treeData: any[];
|
|
414
|
+
checkedKeys: (string | number)[];
|
|
415
|
+
}>;
|
|
275
416
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
276
417
|
defaultList: {
|
|
277
418
|
type: import("vue").PropType<((string | number) | {
|
|
@@ -2,13 +2,13 @@ import { ref, PropType, CSSProperties } from 'vue';
|
|
|
2
2
|
declare type IKey = string | number;
|
|
3
3
|
declare type ITreeOption = {
|
|
4
4
|
key: IKey;
|
|
5
|
-
children:
|
|
6
|
-
parentNode:
|
|
5
|
+
children: any[];
|
|
6
|
+
parentNode: any;
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|
|
9
9
|
declare const _default: import("vue").DefineComponent<{
|
|
10
10
|
treeData: {
|
|
11
|
-
type: PropType<
|
|
11
|
+
type: PropType<any[]>;
|
|
12
12
|
default: () => never[];
|
|
13
13
|
};
|
|
14
14
|
checkedKeys: {
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}, {
|
|
19
19
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
20
20
|
treeData: {
|
|
21
|
-
type: PropType<
|
|
21
|
+
type: PropType<any[]>;
|
|
22
22
|
default: () => never[];
|
|
23
23
|
};
|
|
24
24
|
checkedKeys: {
|
|
@@ -29,8 +29,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
30
30
|
}>>;
|
|
31
31
|
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
32
|
-
optionsRef: import("vue").ComputedRef<
|
|
33
|
-
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<
|
|
32
|
+
optionsRef: import("vue").ComputedRef<any[]>;
|
|
33
|
+
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
34
34
|
containerProps: {
|
|
35
35
|
ref: import("vue").Ref<any>;
|
|
36
36
|
onScroll: () => void;
|
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
NCheckbox: any;
|
|
110
110
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
111
|
treeData: {
|
|
112
|
-
type: PropType<
|
|
112
|
+
type: PropType<any[]>;
|
|
113
113
|
default: () => never[];
|
|
114
114
|
};
|
|
115
115
|
checkedKeys: {
|
|
@@ -119,7 +119,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
119
119
|
}>> & {
|
|
120
120
|
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
121
121
|
}, {
|
|
122
|
-
treeData:
|
|
122
|
+
treeData: any[];
|
|
123
123
|
checkedKeys: IKey[];
|
|
124
124
|
}>;
|
|
125
125
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./SearchMultiple.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var l=r(e,[["__file","SearchMultiple.vue"]]);export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as t,ref as a,watch as r,openBlock as l,createBlock as n,unref as i,withCtx as o,createElementVNode as u,normalizeStyle as c,createElementBlock as d,Fragment as s,renderList as p,createVNode as v}from"vue";import{NCheckboxGroup as f,NCheckbox as y}from"naive-ui";import{isEqual as h}from"lodash-es";import{useVirtualList as k}from"@vueuse/core";var m=e({__name:"SearchMultiple",props:{treeData:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]}},emits:["notifyCheck"],setup(e,{emit:m}){const N=e,_=t((()=>N.treeData)),{list:b,containerProps:g,wrapperProps:D}=k(_,{itemHeight:30,overscan:5}),A=t((()=>({...g.style,height:"308px"}))),K=a(N.checkedKeys),S=a([]);function x(e,t){const{actionType:a,value:r}=t,l=N.treeData.find((e=>e.key===r));if(l){switch(a){case"check":w(K.value.filter((e=>e!==r)),l,r);break;case"uncheck":E(K.value,l,r)}m("notifyCheck",K.value)}}function w(e,t,a){var r;if(!(null==t?void 0:t.parentNode))return K.value=[...e,a],!1;const l=null==(r=t.parentNode)?void 0:r.key;if(e.includes(l))return K.value=e,!1;if(t.parentNode.children){const r=t.parentNode.children.every((t=>[...e,a].includes(t.key)));if(r){const a=null==t?void 0:t.parentNode.children.map((e=>e.key)),l=e.filter((e=>!a.includes(e)));return r&&C(l,t.parentNode),!1}}w(e,t.parentNode,a)}function C(e,t){if(!t.parentNode||t.parentNode.children.length>1)return K.value=[...e,t.key],!1;C(e,t.parentNode)}function E(e,t,a){var r,l;if(e.includes(a)){const t=e.filter((e=>e!==a));return K.value=t,!1}if(!(null==t?void 0:t.parentNode))return K.value=e,!1;const n=null==(r=t.parentNode)?void 0:r.key,i=e.indexOf(n);if(i>-1){const r=null==(l=t.parentNode)?void 0:l.children;return e.splice(i,1),P(e,r,a),!1}E(e,t.parentNode,a)}function P(e,t,a){if(!Array.isArray(t))return K.value=e,!1;if(t.length>1){const r=t.filter((e=>e.key!==a)).map((e=>e.key));return K.value=[...e,...r],!1}P(e,t[0].children,a)}function H(e,t){const a=N.checkedKeys;return!!e&&(a.includes(e.key)?(S.value.push(t),!1):void H(e.parentNode,t))}return r((()=>N.treeData),(e=>{e&&e.length>0&&(S.value=[],e.forEach((e=>{H(e,e.key)})))}),{deep:!0,immediate:!0}),r((()=>N.checkedKeys),((e,t)=>{h(e,t)||N.treeData.length>0&&(S.value=[],K.value=e,N.treeData.forEach((e=>{H(e,e.key)})))}),{immediate:!0}),(e,t)=>(l(),n(i(f),{value:S.value,"onUpdate:value":[t[1]||(t[1]=e=>S.value=e),x]},{default:o((()=>[u("section",{class:"select-person__multipleWrapper",ref:i(g).ref,style:c(i(A)),onScroll:t[0]||(t[0]=(...e)=>i(g).onScroll&&i(g).onScroll(...e))},[u("section",{style:c(i(D).style)},[(l(!0),d(s,null,p(i(b),(e=>(l(),d("div",{class:"select-person__multiple-search",key:e.data.key},[v(i(y),{value:e.data.key,label:e.data.title,disabled:e.data.disabled},null,8,["value","label","disabled"])])))),128))],4)],36)])),_:1},8,["value"]))}});export{m as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { ref, PropType } from 'vue';
|
|
2
2
|
import { type TreeOption } from 'naive-ui';
|
|
3
3
|
import { AnyObject } from '../../../../es/shared/types';
|
|
4
4
|
declare type IKey = string | number;
|
|
@@ -178,7 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
178
|
setCheckedAll: () => void;
|
|
179
179
|
clearAll: () => void;
|
|
180
180
|
closeTag: (tag: ITag) => void;
|
|
181
|
-
notifyCheck: (keys:
|
|
181
|
+
notifyCheck: (keys: IKey[]) => void;
|
|
182
182
|
NButton: any;
|
|
183
183
|
NInput: any;
|
|
184
184
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -248,6 +248,147 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
248
248
|
readonly privateShow: boolean;
|
|
249
249
|
}>;
|
|
250
250
|
CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
251
|
+
SearchMultiple: import("vue").DefineComponent<{
|
|
252
|
+
treeData: {
|
|
253
|
+
type: PropType<any[]>;
|
|
254
|
+
default: () => never[];
|
|
255
|
+
};
|
|
256
|
+
checkedKeys: {
|
|
257
|
+
type: PropType<(string | number)[]>;
|
|
258
|
+
default: () => never[];
|
|
259
|
+
};
|
|
260
|
+
}, {
|
|
261
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
262
|
+
treeData: {
|
|
263
|
+
type: PropType<any[]>;
|
|
264
|
+
default: () => never[];
|
|
265
|
+
};
|
|
266
|
+
checkedKeys: {
|
|
267
|
+
type: PropType<(string | number)[]>;
|
|
268
|
+
default: () => never[];
|
|
269
|
+
};
|
|
270
|
+
}>> & {
|
|
271
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
272
|
+
}>>;
|
|
273
|
+
emit: (event: "notifyCheck", ...args: any[]) => void;
|
|
274
|
+
optionsRef: import("vue").ComputedRef<any[]>;
|
|
275
|
+
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
|
|
276
|
+
containerProps: {
|
|
277
|
+
ref: import("vue").Ref<any>;
|
|
278
|
+
onScroll: () => void;
|
|
279
|
+
style: Partial<CSSStyleDeclaration>;
|
|
280
|
+
};
|
|
281
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
282
|
+
style: {
|
|
283
|
+
width: string;
|
|
284
|
+
height: string;
|
|
285
|
+
marginTop: string;
|
|
286
|
+
};
|
|
287
|
+
}>;
|
|
288
|
+
containerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
289
|
+
searchCheckKeys: import("vue").Ref<(string | number)[]>;
|
|
290
|
+
showSelectKeys: import("vue").Ref<(string | number)[]>;
|
|
291
|
+
checkedChange: (checkList: (string | number)[], meta: {
|
|
292
|
+
actionType: "check" | "uncheck";
|
|
293
|
+
value: string | number;
|
|
294
|
+
}) => void;
|
|
295
|
+
handleCheckKey: (baseKeys: (string | number)[], currentTree: {
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
key: string | number;
|
|
298
|
+
children: any[];
|
|
299
|
+
parentNode: any;
|
|
300
|
+
} | null, value: string | number) => false | undefined;
|
|
301
|
+
findParent: (baseKeys: (string | number)[], currentTree: {
|
|
302
|
+
[key: string]: any;
|
|
303
|
+
key: string | number;
|
|
304
|
+
children: any[];
|
|
305
|
+
parentNode: any;
|
|
306
|
+
}) => false | undefined;
|
|
307
|
+
handleUnCheckKey: (baseKeys: (string | number)[], currentTree: {
|
|
308
|
+
[key: string]: any;
|
|
309
|
+
key: string | number;
|
|
310
|
+
children: any[];
|
|
311
|
+
parentNode: any;
|
|
312
|
+
}, value: string | number) => false | undefined;
|
|
313
|
+
findChild: (baseKeys: (string | number)[], children: {
|
|
314
|
+
[key: string]: any;
|
|
315
|
+
key: string | number;
|
|
316
|
+
children: any[];
|
|
317
|
+
parentNode: any;
|
|
318
|
+
}[], value: string | number) => false | undefined;
|
|
319
|
+
checkInitTree: (tree: {
|
|
320
|
+
[key: string]: any;
|
|
321
|
+
key: string | number;
|
|
322
|
+
children: any[];
|
|
323
|
+
parentNode: any;
|
|
324
|
+
}, baseKey: string | number) => false | undefined;
|
|
325
|
+
ref: typeof ref;
|
|
326
|
+
NCheckboxGroup: import("vue").DefineComponent<{
|
|
327
|
+
readonly min: NumberConstructor;
|
|
328
|
+
readonly max: NumberConstructor;
|
|
329
|
+
readonly size: PropType<"small" | "medium" | "large">;
|
|
330
|
+
readonly value: PropType<(string | number)[] | null>;
|
|
331
|
+
readonly defaultValue: {
|
|
332
|
+
readonly type: PropType<(string | number)[] | null>;
|
|
333
|
+
readonly default: null;
|
|
334
|
+
};
|
|
335
|
+
readonly disabled: {
|
|
336
|
+
readonly type: PropType<boolean | undefined>;
|
|
337
|
+
readonly default: undefined;
|
|
338
|
+
};
|
|
339
|
+
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
340
|
+
actionType: "check" | "uncheck";
|
|
341
|
+
value: string | number;
|
|
342
|
+
}) => void>>;
|
|
343
|
+
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
344
|
+
actionType: "check" | "uncheck";
|
|
345
|
+
value: string | number;
|
|
346
|
+
}) => void>>;
|
|
347
|
+
readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
348
|
+
}, {
|
|
349
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
350
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
351
|
+
readonly min: NumberConstructor;
|
|
352
|
+
readonly max: NumberConstructor;
|
|
353
|
+
readonly size: PropType<"small" | "medium" | "large">;
|
|
354
|
+
readonly value: PropType<(string | number)[] | null>;
|
|
355
|
+
readonly defaultValue: {
|
|
356
|
+
readonly type: PropType<(string | number)[] | null>;
|
|
357
|
+
readonly default: null;
|
|
358
|
+
};
|
|
359
|
+
readonly disabled: {
|
|
360
|
+
readonly type: PropType<boolean | undefined>;
|
|
361
|
+
readonly default: undefined;
|
|
362
|
+
};
|
|
363
|
+
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
364
|
+
actionType: "check" | "uncheck";
|
|
365
|
+
value: string | number;
|
|
366
|
+
}) => void>>;
|
|
367
|
+
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
368
|
+
actionType: "check" | "uncheck";
|
|
369
|
+
value: string | number;
|
|
370
|
+
}) => void>>;
|
|
371
|
+
readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
|
|
372
|
+
}>>, {
|
|
373
|
+
readonly disabled: boolean | undefined;
|
|
374
|
+
readonly defaultValue: (string | number)[] | null;
|
|
375
|
+
}>;
|
|
376
|
+
NCheckbox: any;
|
|
377
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "notifyCheck"[], "notifyCheck", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
378
|
+
treeData: {
|
|
379
|
+
type: PropType<any[]>;
|
|
380
|
+
default: () => never[];
|
|
381
|
+
};
|
|
382
|
+
checkedKeys: {
|
|
383
|
+
type: PropType<(string | number)[]>;
|
|
384
|
+
default: () => never[];
|
|
385
|
+
};
|
|
386
|
+
}>> & {
|
|
387
|
+
onNotifyCheck?: ((...args: any[]) => any) | undefined;
|
|
388
|
+
}, {
|
|
389
|
+
treeData: any[];
|
|
390
|
+
checkedKeys: (string | number)[];
|
|
391
|
+
}>;
|
|
251
392
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
252
393
|
defaultList: {
|
|
253
394
|
type: PropType<(IKey | ITag)[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,computed as t,watch as
|
|
1
|
+
import{defineComponent as e,ref as l,computed as t,watch as a,openBlock as n,createBlock as u,unref as i,withCtx as o,createVNode as r,withKeys as c,createTextVNode as d,toDisplayString as s,withDirectives as v,vShow as h,createCommentVNode as p,mergeProps as f,createElementBlock as y,createElementVNode as k,Fragment as m,renderList as g}from"vue";import{NGrid as b,NGi as _,NSpace as w,NInputGroup as C,NInput as x,NButton as L,NCheckbox as S,NTree as j,NIcon as T,NTooltip as N}from"naive-ui";import{CloseCircleSharp as $}from"@vicons/ionicons5";import{filterTree as I,getExpandedKeys as D}from"./utils/index.js";import{cloneDeep as q}from"lodash-es";import B from"./SearchMultiple.vue.js";const K={key:0},P={class:"c-select-person__scroll",style:{height:"342px"}};var U=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:"输入关键字搜索"},searchButtonText:{type:String,default:"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])}},emits:["check","checkWithLevel"],setup(e,{emit:U}){const E=e,O=l(""),A=l(!1),F=l([]),W=l([]),M=l([]),R=l([]),z=l([]),G=l(!1),H=q(((J=E.data).forEach((e=>{var l;if(null==(l=e.children)?void 0:l.length){const l=ne(e.children,[]);e.innerItemsNum=l.length}})),ue(J,"")));var J;let Q=[];const V=t((()=>!!E.queryLoadChildData)),X=t((()=>{var e,l;return null!=(l=null==(e=null==E?void 0:E.treeSetting)?void 0:e.checkStrategy)?l:"child"}));function Y(e){e.disabled||e.children||!e.key||Q.push(e.key)}function Z(e){e.disabled||e.tempTitle||!e.key||Q.push(e.key)}async function ee(e){if(E.queryLoadChildData){const l=await E.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.title}/${l.tempTitle}`:l.title})))),l}return e}function le(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function te({option:e}){var l;if((null==(l=e.children)?void 0:l.length)||V.value&&!(null==e?void 0:e.isLeaf)){const l=E.wordbook.user_count_obj&&e[E.wordbook.user_count_obj]||"",t=l?`(${l})`:"";return r("span",null,[`${e.title}${t}`])}return r(N,{trigger:"hover"},{default:()=>r("span",null,[e.title]),trigger:()=>r("span",null,[e.title])})}function ae(e){return e[E.wordbookChild.user_name_obj]||e[E.wordbook.parent_name_obj]||e.orgName||e.title||""}function ne(e,l){return e.forEach((e=>{var t;(null==(t=e.children)?void 0:t.length)?ne(e.children,l):l.push(e)})),l}function ue(e,l){return e&&0!==e.length?e.map((e=>{var t;const a=ae(e),n=l?`${a}/${l}`:a;return{...e,tempTitle:l,children:(null==(t=e.children)?void 0:t.length)?ue(null==e?void 0:e.children,n):[]}})):[]}async function ie(){G.value=!!O.value.trim(),V.value?M.value=await E.queryTreeSearch(O.value):M.value=I(H,O.value),W.value=M.value.length&&O.value?D(M.value):[]}function oe(){setTimeout((()=>{ie()}))}function re(e,l){var t,a;switch(null!=(a=null==(t=null==E?void 0:E.treeSetting)?void 0:t.checkStrategy)?a:"child"){case"child":!function(e,l){for(let t=0,a=e.length;t<a;t++){const a=e[t];if(!a.disabled&&(!a.children||a.isLeaf)&&(l&&!F.value.includes(a.key)&&F.value.push(a.key),!l)){const e=F.value.findIndex((e=>e===a.key));F.value.splice(e,1)}a.children&&re(a.children,l)}}(e,l);break;case"parent":!function(e,l){F.value=[];for(let t=0,a=e.length;t<a;t++){const a=e[t];if(!a.disabled&&!a.tempTitle&&(l&&!F.value.includes(a.key)&&F.value.push(a.key),!l)){const e=F.value.findIndex((e=>e===a.key));F.value.splice(e,1)}}}(e,l)}}function ce(e){re(M.value,e)}function de(e){var l;for(let t=0,a=e.length;t<a;t++){const a=e[t],n=z.value.map((e=>e.key));F.value.includes(a.key)&&!n.includes(a.key)&&R.value.push({key:a.key,name:a.title,parentName:a.tempTitle,innerItemsNum:a.innerItemsNum}),(null==(l=a.children)?void 0:l.length)&&de(a.children)}}function se(e){F.value=e}function ve(){F.value=[]}function he(e){F.value=e}return function e(l,t){var a,n,u,i;for(let o=0,r=l.length;o<r;o++){const r=l[o];switch(r.title=ae(r),r.parentNode=t,r.key||(r.key=r[E.wordbookChild.user_id_obj]||r[E.wordbook.parent_id_obj]||Date.now()),(null==(a=r.children)?void 0:a.length)?(e(r.children,r),le(r)):0===(null==(n=r.children)?void 0:n.length)&&Reflect.deleteProperty(r,"children"),null!=(i=null==(u=null==E?void 0:E.treeSetting)?void 0:u.checkStrategy)?i:"child"){case"child":Y(r);break;case"parent":Z(r)}}}(H,null),M.value=H,E.defaultList.length>0&&(V.value?(E.defaultList.forEach((e=>F.value.push(e.key))),R.value=q(E.defaultList),z.value=q(E.defaultList)):(E.defaultList.forEach((e=>F.value.push(e))),de(H))),a((()=>F),(e=>{R.value=z.value.filter((l=>e.value.includes(l.key))),e.value.length&&de(V.value?M.value:H),A.value=Q.every((e=>R.value.findIndex((l=>l.key===e))>-1));const l=R.value.filter((l=>e.value.includes(l.key)));U("check",e.value),U("checkWithLevel",l)}),{deep:!0}),(l,t)=>(n(),u(i(b),{cols:2,class:"c-select-person"},{default:o((()=>[r(i(_),null,{default:o((()=>[r(i(w),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:o((()=>[r(i(C),{style:{"margin-bottom":"12px"}},{default:o((()=>[r(i(x),{clearable:"",value:O.value,"onUpdate:value":t[0]||(t[0]=e=>O.value=e),placeholder:e.searchPlaceholder,onClear:oe,onKeyup:c(ie,["enter"])},null,8,["value","placeholder","onKeyup"]),r(i(L),{type:"primary",onClick:ie},{default:o((()=>[d(s(e.searchButtonText),1)])),_:1})])),_:1}),e.multiple&&!G.value?v((n(),u(i(S),{key:0,checked:A.value,"onUpdate:checked":[t[1]||(t[1]=e=>A.value=e),ce]},{default:o((()=>[d(" 全选 ")])),_:1},8,["checked"])),[[h,i(Q).length<1e3]]):p("v-if",!0),e.multiple&&G.value&&"parent"===i(X)?(n(),u(B,{key:1,treeData:M.value,checkedKeys:F.value,onNotifyCheck:he},null,8,["treeData","checkedKeys"])):(n(),u(i(j),f({key:2,"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":F.value,"expanded-keys":W.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>W.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":F.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>F.value=e),data:M.value,"check-strategy":"child","render-label":te},e.treeSetting,{"onUpdate:checkedKeys":se,onLoad:ee}),null,16,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data"]))])),_:1})])),_:1}),r(i(_),null,{default:o((()=>[r(i(w),{vertical:"",style:{"padding-left":"12px"}},{default:o((()=>[r(i(w),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:o((()=>[e.showCount?(n(),y("span",K,"已选择:"+s(R.value.length),1)):p("v-if",!0),e.showClear?(n(),y("span",{key:1,class:"c-select-person__clear-btn",onClick:ve},"清空")):p("v-if",!0)])),_:1}),k("div",P,[(n(!0),y(m,null,g(R.value,(e=>(n(),y("span",{class:"c-select-person__tag-item",key:e.key},[d(s(e.name)+" "+s(e.parentName?`(${e.parentName})`:e.innerItemsNum?`(${e.innerItemsNum})`:"")+" ",1),r(i(T),{class:"tag-close",component:i($),onClick:l=>function(e){F.value=F.value.filter((l=>l!==e.key))}(e)},null,8,["component","onClick"])])))),128))])])),_:1})])),_:1})])),_:1}))}});export{U as default};
|
|
@@ -1994,7 +1994,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1994
1994
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
1995
1995
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
1996
1996
|
}>>;
|
|
1997
|
-
emit: (event: "
|
|
1997
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
1998
1998
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
1999
1999
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2000
2000
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -2164,14 +2164,14 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2164
2164
|
submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
|
|
2165
2165
|
validator: import("@formily/core").FieldValidator;
|
|
2166
2166
|
pattern: import("@formily/core").FieldPatternTypes;
|
|
2167
|
-
form: import("@formily/core").Form<any>;
|
|
2168
2167
|
content: any;
|
|
2168
|
+
display: import("@formily/core").FieldDisplayTypes;
|
|
2169
|
+
hidden: boolean;
|
|
2170
|
+
form: import("@formily/core").Form<any>;
|
|
2169
2171
|
componentProps: Record<string, any>;
|
|
2170
2172
|
decoratorProps: Record<string, any>;
|
|
2171
|
-
display: import("@formily/core").FieldDisplayTypes;
|
|
2172
2173
|
description: string;
|
|
2173
2174
|
readOnly: boolean;
|
|
2174
|
-
hidden: boolean;
|
|
2175
2175
|
component: import("@formily/core").FieldComponent<any, any>;
|
|
2176
2176
|
decorator: import("@formily/core").FieldDecorator<any, any>;
|
|
2177
2177
|
validating: boolean;
|
|
@@ -2305,7 +2305,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2305
2305
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
2306
2306
|
}>;
|
|
2307
2307
|
NTabs: any;
|
|
2308
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
2308
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2309
2309
|
fieldList: {
|
|
2310
2310
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
|
2311
2311
|
};
|
|
@@ -1996,7 +1996,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1996
1996
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
1997
1997
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
1998
1998
|
}>>;
|
|
1999
|
-
emit: (event: "
|
|
1999
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
2000
2000
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
2001
2001
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2002
2002
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -2166,14 +2166,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2166
2166
|
submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
|
|
2167
2167
|
validator: import("../../../../es/components/form-render").FieldValidator;
|
|
2168
2168
|
pattern: import("../../../../es/components/form-render").FieldPatternTypes;
|
|
2169
|
-
form: import("../../../../es/components/form-render").Form<any>;
|
|
2170
2169
|
content: any;
|
|
2170
|
+
display: import("../../../../es/components/form-render").FieldDisplayTypes;
|
|
2171
|
+
hidden: boolean;
|
|
2172
|
+
form: import("../../../../es/components/form-render").Form<any>;
|
|
2171
2173
|
componentProps: Record<string, any>;
|
|
2172
2174
|
decoratorProps: Record<string, any>;
|
|
2173
|
-
display: import("../../../../es/components/form-render").FieldDisplayTypes;
|
|
2174
2175
|
description: string;
|
|
2175
2176
|
readOnly: boolean;
|
|
2176
|
-
hidden: boolean;
|
|
2177
2177
|
component: import("../../../../es/components/form-render").FieldComponent<any, any>;
|
|
2178
2178
|
decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
|
|
2179
2179
|
validating: boolean;
|
|
@@ -2307,7 +2307,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2307
2307
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
2308
2308
|
}>;
|
|
2309
2309
|
NTabs: any;
|
|
2310
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
2310
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2311
2311
|
fieldList: {
|
|
2312
2312
|
type: import("vue").PropType<FieldItem[]>;
|
|
2313
2313
|
};
|
package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
value: {
|
|
8
8
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
9
|
-
default: string
|
|
9
|
+
default: string;
|
|
10
10
|
};
|
|
11
11
|
multiple: {
|
|
12
12
|
type: BooleanConstructor;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
};
|
|
20
20
|
value: {
|
|
21
21
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
22
|
-
default: string
|
|
22
|
+
default: string;
|
|
23
23
|
};
|
|
24
24
|
multiple: {
|
|
25
25
|
type: BooleanConstructor;
|
|
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
89
|
};
|
|
90
90
|
value: {
|
|
91
91
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
92
|
-
default: string
|
|
92
|
+
default: string;
|
|
93
93
|
};
|
|
94
94
|
multiple: {
|
|
95
95
|
type: BooleanConstructor;
|
package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:
|
|
1
|
+
import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:""},multiple:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const f=e,y=u({set(e){s("update:value",e)},get:()=>Array.isArray(f.value)?f.value:f.value?[f.value]:[]});function d(e){f.multiple||!Array.isArray(e)?y.value=e:y.value=function(e){return e.filter((e=>!y.value.includes(e)))}(e)[0]}return(u,s)=>(l(),a(r(n),t(u.$attrs,{value:r(y),"onUpdate:value":d}),{default:o((()=>[(l(!0),v(i,null,p(e.options,(e=>(l(),a(r(m),{key:e.value,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:1},16,["value"]))}}),[["__file","CheckboxGroup.vue"]]);export{f as default};
|
|
@@ -86,7 +86,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
86
86
|
};
|
|
87
87
|
value: {
|
|
88
88
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
89
|
-
default: string
|
|
89
|
+
default: string;
|
|
90
90
|
};
|
|
91
91
|
multiple: {
|
|
92
92
|
type: BooleanConstructor;
|
|
@@ -99,7 +99,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
99
99
|
};
|
|
100
100
|
value: {
|
|
101
101
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
102
|
-
default: string
|
|
102
|
+
default: string;
|
|
103
103
|
};
|
|
104
104
|
multiple: {
|
|
105
105
|
type: BooleanConstructor;
|
|
@@ -169,7 +169,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
169
169
|
};
|
|
170
170
|
value: {
|
|
171
171
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
172
|
-
default: string
|
|
172
|
+
default: string;
|
|
173
173
|
};
|
|
174
174
|
multiple: {
|
|
175
175
|
type: BooleanConstructor;
|
|
@@ -190,7 +190,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
190
190
|
valueFormat?: undefined;
|
|
191
191
|
};
|
|
192
192
|
style: {
|
|
193
|
-
|
|
193
|
+
'line-height': string;
|
|
194
194
|
};
|
|
195
195
|
handlerProps(props: any, { valueList, multiple }?: any): any;
|
|
196
196
|
setDefaultValue: (defaultValue: any) => any;
|
package/es/env.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
interface ImportMetaEnv {
|
|
4
|
-
readonly VITE_APP_TYPE: string;
|
|
5
|
-
// 更多环境变量...
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface ImportMeta {
|
|
9
|
-
readonly env: ImportMetaEnv;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare module '*.vue' {
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import type { App, defineComponent } from 'vue';
|
|
15
|
-
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
-
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
-
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
-
install(app: App): void;
|
|
19
|
-
};
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export default component;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare module '*.js';
|
|
25
|
-
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
interface ImportMetaEnv {
|
|
4
|
+
readonly VITE_APP_TYPE: string;
|
|
5
|
+
// 更多环境变量...
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface ImportMeta {
|
|
9
|
+
readonly env: ImportMetaEnv;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare module '*.vue' {
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
import type { App, defineComponent } from 'vue';
|
|
15
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
+
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
+
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
+
install(app: App): void;
|
|
19
|
+
};
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
export default component;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '*.js';
|
|
25
|
+
|