cnhis-design-vue 3.1.46-beta.9 → 3.1.46-release.0

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 (133) hide show
  1. package/es/components/base-search/index.d.ts +8 -17
  2. package/es/components/base-search/src/index.vue.d.ts +8 -17
  3. package/es/components/base-search/src/index.vue2.js +1 -1
  4. package/es/components/base-search/style/index.css +1 -1
  5. package/es/components/button-print/src/utils/print.js +1 -1
  6. package/es/components/classification/index.d.ts +18 -219
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +18 -219
  8. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  9. package/es/components/classification/src/components/set-classification/index.vue.d.ts +18 -219
  10. package/es/components/classification/src/index.vue.d.ts +18 -219
  11. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  19. package/es/components/fabric-chart/src/utils/index.d.ts +0 -1
  20. package/es/components/fabric-chart/src/utils/index.js +1 -1
  21. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  22. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
  23. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  24. package/es/components/index.css +1 -1
  25. package/es/components/index.d.ts +1 -2
  26. package/es/components/index.js +1 -1
  27. package/es/components/quick-search/index.d.ts +7 -21
  28. package/es/components/quick-search/src/index.vue.d.ts +7 -21
  29. package/es/components/quick-search/src/index.vue2.js +1 -1
  30. package/es/components/quick-search/style/index.css +1 -1
  31. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +17 -219
  32. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  33. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -17
  34. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  35. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -19
  36. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  37. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +11 -178
  38. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  39. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +5 -1
  40. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
  41. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -2
  42. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  43. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +17 -217
  44. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  45. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +17 -219
  46. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  47. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  48. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  49. package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
  50. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  51. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  52. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +8 -117
  53. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  54. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
  55. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  56. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +6 -8
  57. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  58. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +6 -7
  59. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  60. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -19
  61. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  62. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +36 -611
  63. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  64. package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
  65. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  66. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
  67. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  68. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -4
  69. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  70. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +35 -639
  71. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  72. package/es/components/table-filter/src/constants/index.d.ts +1 -3
  73. package/es/components/table-filter/src/constants/index.js +1 -1
  74. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -9
  75. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  76. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +3 -3
  77. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  78. package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
  79. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  80. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +7 -0
  81. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -0
  82. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  83. package/es/components/table-filter/src/tool/transformData.js +1 -1
  84. package/es/components/table-filter/src/types/enums.d.ts +0 -3
  85. package/es/components/table-filter/src/types/enums.js +1 -1
  86. package/es/components/table-filter/src/types/index.d.ts +0 -7
  87. package/es/shared/package.json.js +1 -1
  88. package/es/shared/utils/fabricjs/index.js +1 -1
  89. package/package.json +2 -2
  90. package/es/components/table-export-field/index.d.ts +0 -967
  91. package/es/components/table-export-field/index.js +0 -1
  92. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -192
  93. package/es/components/table-export-field/src/components/ExportModal.vue.js +0 -1
  94. package/es/components/table-export-field/src/components/ExportModal.vue2.js +0 -1
  95. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +0 -687
  96. package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +0 -1
  97. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +0 -1
  98. package/es/components/table-export-field/src/constants/index.d.ts +0 -3
  99. package/es/components/table-export-field/src/constants/index.js +0 -1
  100. package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +0 -6
  101. package/es/components/table-export-field/src/hooks/useAsyncData.js +0 -1
  102. package/es/components/table-export-field/src/index.vue.d.ts +0 -968
  103. package/es/components/table-export-field/src/index.vue.js +0 -1
  104. package/es/components/table-export-field/src/index.vue2.js +0 -1
  105. package/es/components/table-export-field/src/types/index.d.ts +0 -6
  106. package/es/components/table-export-field/src/types/index.js +0 -1
  107. package/es/components/table-export-field/style/index.css +0 -1
  108. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -231
  109. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
  110. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
  111. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
  112. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
  113. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
  114. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
  115. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
  116. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -223
  117. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
  118. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
  119. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -158
  120. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
  121. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
  122. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
  123. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
  124. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
  125. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
  126. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
  127. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
  128. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +0 -4
  129. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +0 -1
  130. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +0 -4
  131. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +0 -1
  132. package/es/components/table-filter/src/hooks/useAsyncData.d.ts +0 -4
  133. package/es/components/table-filter/src/hooks/useAsyncData.js +0 -1
@@ -1 +0,0 @@
1
- import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as i,provide as t,computed as a,watch as l,openBlock as o,createElementBlock as n,createVNode as r,unref as s,withCtx as d,createTextVNode as u}from"vue";import{useMessage as c,NButton as m}from"naive-ui";import f from"./components/ExportModal.vue.js";import p from"./components/SaveProjectModal.vue.js";import v from"./hooks/useAsyncData.js";import{InjectionExportApiConfig as g}from"./constants/index.js";const b={class:"table-export-field"};var L=e({__name:"index",props:{visible:{type:Boolean,default:!1},tableListId:{type:String,default:""},fieldOriginList:{type:Array,default:()=>[]},exportApiConfig:{type:Object}},emits:["cancelModal"],setup(e,{emit:L}){const h=e,y="default",O=c(),{getTableListExportScheme:I,deleteTableListExportScheme:S,exportTableListScheme:x}=v(),j={schemeId:y,schemeName:"列表显示字段",fieldKeys:[]},N=i(!1),C=i({schemeId:"",schemeName:"",fieldKeys:[]}),w=i([JSON.parse(JSON.stringify(j))]);t(g,h.exportApiConfig);const M=a((()=>h.fieldOriginList.filter((e=>{var i;return"operatorColumn"!=e.columnName&&(!e.settingObj||(!(null==e?void 0:e.settingObj)||"0"===(null==(i=null==e?void 0:e.settingObj)?void 0:i.isHide)))})))),P=a((()=>{var e;let i=M.value.filter((e=>"1"==e.isShow));return(null==(e=null==i?void 0:i.map)?void 0:e.call(i,(e=>e.columnName)))||[]}));function A(){N.value=!N.value}function E(){L("cancelModal")}function J(e){const i=w.value.find((i=>i.schemeId===e));i&&(C.value=i)}function K(e){C.value.fieldKeys=e}async function _(){await async function(){if(!h.tableListId)return O.warning("请传入列表id");try{let e=await I({id:h.tableListId},h.exportApiConfig);if(e){const{schemes:i=[],lastUsedSchemeName:t=""}=e.obj;if(i&&i.length>0){w.value=[JSON.parse(JSON.stringify(j)),...i];const e=i.find((e=>e.schemeName===t));if(e)return void(C.value=e)}C.value=w.value[0]}}catch(e){O.error(`获取导出方案数据请求失败:${e}`)}}(),w.value.forEach((e=>{e.schemeId===y&&(e.fieldKeys=P.value||[])}))}return l((()=>h.visible),(async e=>{e&&await _()}),{immediate:!0}),(i,t)=>(o(),n("div",b,[r(f,{visible:e.visible,tableListId:e.tableListId,fieldOriginList:e.fieldOriginList,curProgram:C.value,programOptions:w.value,downLoadFieldList:s(M),onCancelModal:E,onUpdateCurProgram:J,onUpdateFieldCheckList:K},{add:d((()=>[r(s(m),{type:"info",onClick:A},{default:d((()=>[u("导出并存为方案")])),_:1})])),_:1},8,["visible","tableListId","fieldOriginList","curProgram","programOptions","downLoadFieldList"]),r(p,{visible:N.value,tableListId:e.tableListId,programOptions:w.value,curProgram:C.value,onCancelSaveModal:A},null,8,["visible","tableListId","programOptions","curProgram"])]))}});export{L as default};
@@ -1,6 +0,0 @@
1
- export declare type IExportSchemeType = {
2
- schemeId: string;
3
- schemeName: string;
4
- fieldKeys: string[];
5
- updatedTime?: string;
6
- };
@@ -1 +0,0 @@
1
- .table-export-field-modal .n-card-header .svg-wrap i{cursor:pointer;font-size:18px}.table-export-field-modal .n-card-header .svg-wrap i:last-child{margin-left:16px}.table-export-field-modal .n-card-header .svg-wrap .n-icon{cursor:pointer}.table-export-field-modal .n-card__content{overflow-y:auto}.table-export-field-modal .n-card__content .export-field-con{display:flex;flex-direction:column}.table-export-field-modal .n-card__content .export-field-con .flex_between{display:flex;justify-content:space-between;margin-bottom:10px}.table-export-field-modal .n-card__content .export-field-con .select-fields{overflow-y:auto}.table-export-field-modal .n-card__content .export-field-con .select-fields .n-checkbox-group{display:flex;flex-wrap:wrap}.table-export-field-modal .n-card__content .export-field-con .select-fields .n-checkbox-group .n-checkbox{box-sizing:border-box;display:flex;flex-wrap:nowrap;padding:8px 0;width:16.6%}.table-export-field-modal .n-card__content .export-field-con .select-fields .n-checkbox-group .n-checkbox .n-checkbox__label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-export-field-modal .flex_right{display:flex;justify-content:flex-end}.table-export-field-modal .flex_right .n-button{margin-left:8px}.table-export-field-modal .save-project-content .n-radio-group{margin-bottom:20px}.table-export-field-modal .select-export-popover .n-base-select-option{padding-left:12px}.table-export-field-modal .select-export-popover .n-base-select-option.n-base-select-option--show-checkmark{padding-right:12px}.table-export-field-modal .select-export-popover .n-base-select-option .n-base-select-option__content{width:100%}.table-export-field-modal .select-export-popover .n-base-select-option .n-base-select-option__content .flex-between{align-items:center;cursor:pointer;display:flex;justify-content:space-between}.table-export-field-modal .select-export-popover .n-base-select-option .n-base-select-option__content .flex-between .content{flex:1;overflow:hidden;padding-right:5px;text-overflow:ellipsis;white-space:nowrap}.table-export-field-modal .select-export-popover .n-base-select-option .n-base-select-option__content .n-base-select-option__check{display:none!important}
@@ -1,231 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { AnyObject } from '../../../../../../../es/shared/types';
3
- declare type ITypeDate = 'date' | 'datetime';
4
- declare const _default: import("vue").DefineComponent<{
5
- componentCfg: {
6
- type: PropType<AnyObject>;
7
- };
8
- type: {
9
- type: PropType<ITypeDate>;
10
- default: string;
11
- };
12
- clearable: {
13
- type: BooleanConstructor;
14
- default: boolean;
15
- };
16
- valueFormat: {
17
- type: StringConstructor;
18
- default: string;
19
- };
20
- placeholder: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- value: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- unit: {
29
- type: StringConstructor;
30
- default: string;
31
- };
32
- }, {
33
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
34
- componentCfg: {
35
- type: PropType<AnyObject>;
36
- };
37
- type: {
38
- type: PropType<ITypeDate>;
39
- default: string;
40
- };
41
- clearable: {
42
- type: BooleanConstructor;
43
- default: boolean;
44
- };
45
- valueFormat: {
46
- type: StringConstructor;
47
- default: string;
48
- };
49
- placeholder: {
50
- type: StringConstructor;
51
- default: string;
52
- };
53
- value: {
54
- type: StringConstructor;
55
- default: string;
56
- };
57
- unit: {
58
- type: StringConstructor;
59
- default: string;
60
- };
61
- }>> & {
62
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
63
- "onUpdate:unit"?: ((...args: any[]) => any) | undefined;
64
- }>>;
65
- emit: (event: "update:unit" | "update:value", ...args: any[]) => void;
66
- valueCp: import("vue").Ref<any>;
67
- isShowDateRange: import("vue").Ref<boolean>;
68
- dateFormat: import("vue").ComputedRef<string>;
69
- showTabStr: import("vue").ComputedRef<string>;
70
- radioValue: import("vue").ComputedRef<string>;
71
- optionSetting: import("vue").ComputedRef<any>;
72
- onlyRadio: import("vue").ComputedRef<boolean>;
73
- defaultTime: import("vue").ComputedRef<string>;
74
- changeDateShowType: () => void;
75
- handleClickQuickBtn: (result: string) => void;
76
- changeRadioValue: (value: string) => void;
77
- handleChange: (val: any) => void;
78
- isDateDisabled: (ts: number) => boolean;
79
- timeDisabled: (ts: number) => {
80
- isHourDisabled(hour: number): boolean | undefined;
81
- isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
82
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
83
- };
84
- init: () => void;
85
- NButton: any;
86
- CDatePicker: import("../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
87
- updateUnchangedValue: {
88
- type: BooleanConstructor;
89
- };
90
- onConfirm: {
91
- type: FunctionConstructor;
92
- };
93
- }, {
94
- attrs: {
95
- [x: string]: unknown;
96
- };
97
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
98
- updateUnchangedValue: {
99
- type: BooleanConstructor;
100
- };
101
- onConfirm: {
102
- type: FunctionConstructor;
103
- };
104
- }>> & {}>>;
105
- datePickerRef: import("vue").Ref<AnyObject | null>;
106
- panelInstRef: import("vue").Ref<null>;
107
- isDateTime: import("vue").ComputedRef<boolean>;
108
- formatRef: import("vue").ComputedRef<string>;
109
- panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
110
- focus: () => any;
111
- blur: () => any;
112
- onUpdateShow: (show: boolean) => void;
113
- onConfirm: (...args: any[]) => void;
114
- NDatePicker: any;
115
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
116
- updateUnchangedValue: {
117
- type: BooleanConstructor;
118
- };
119
- onConfirm: {
120
- type: FunctionConstructor;
121
- };
122
- }>>, {
123
- updateUnchangedValue: boolean;
124
- }>>;
125
- DateQuickBtn: import("vue").DefineComponent<{
126
- componentCfg: {
127
- type: PropType<AnyObject>;
128
- };
129
- type: {
130
- type: PropType<"date" | "datetime">;
131
- default: string;
132
- };
133
- dateFormat: {
134
- type: StringConstructor;
135
- default: string;
136
- };
137
- radioValue: {
138
- type: StringConstructor;
139
- default: string;
140
- };
141
- }, {
142
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
143
- componentCfg: {
144
- type: PropType<AnyObject>;
145
- };
146
- type: {
147
- type: PropType<"date" | "datetime">;
148
- default: string;
149
- };
150
- dateFormat: {
151
- type: StringConstructor;
152
- default: string;
153
- };
154
- radioValue: {
155
- type: StringConstructor;
156
- default: string;
157
- };
158
- }>> & {
159
- onClickQuickBtn?: ((...args: any[]) => any) | undefined;
160
- onChangeRadioValue?: ((...args: any[]) => any) | undefined;
161
- }>>;
162
- emit: (event: "clickQuickBtn" | "changeRadioValue", ...args: any[]) => void;
163
- dateList: import("vue").Ref<any[]>;
164
- optionSetting: import("vue").ComputedRef<any>;
165
- isRange: import("vue").ComputedRef<any>;
166
- initData: () => void;
167
- handleRadioClick: (value: string) => void;
168
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickQuickBtn" | "changeRadioValue")[], "clickQuickBtn" | "changeRadioValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
169
- componentCfg: {
170
- type: PropType<AnyObject>;
171
- };
172
- type: {
173
- type: PropType<"date" | "datetime">;
174
- default: string;
175
- };
176
- dateFormat: {
177
- type: StringConstructor;
178
- default: string;
179
- };
180
- radioValue: {
181
- type: StringConstructor;
182
- default: string;
183
- };
184
- }>> & {
185
- onClickQuickBtn?: ((...args: any[]) => any) | undefined;
186
- onChangeRadioValue?: ((...args: any[]) => any) | undefined;
187
- }, {
188
- type: "date" | "datetime";
189
- dateFormat: string;
190
- radioValue: string;
191
- }>;
192
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:unit" | "update:value")[], "update:unit" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
193
- componentCfg: {
194
- type: PropType<AnyObject>;
195
- };
196
- type: {
197
- type: PropType<ITypeDate>;
198
- default: string;
199
- };
200
- clearable: {
201
- type: BooleanConstructor;
202
- default: boolean;
203
- };
204
- valueFormat: {
205
- type: StringConstructor;
206
- default: string;
207
- };
208
- placeholder: {
209
- type: StringConstructor;
210
- default: string;
211
- };
212
- value: {
213
- type: StringConstructor;
214
- default: string;
215
- };
216
- unit: {
217
- type: StringConstructor;
218
- default: string;
219
- };
220
- }>> & {
221
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
222
- "onUpdate:unit"?: ((...args: any[]) => any) | undefined;
223
- }, {
224
- type: ITypeDate;
225
- value: string;
226
- placeholder: string;
227
- unit: string;
228
- clearable: boolean;
229
- valueFormat: string;
230
- }>;
231
- export default _default;
@@ -1 +0,0 @@
1
- import e from"./DateInner.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","DateInner.vue"]]);export{t as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as u,createElementBlock as n,unref as o,createBlock as r,createCommentVNode as i,normalizeClass as d,withCtx as p,createTextVNode as m,toDisplayString as c}from"vue";import{NButton as v}from"naive-ui";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as g}from"../../../types/enums.js";import{dateDisabledCollect as b,setDateDisabled as h,setTimeDisabled as k}from"../helpers/dateDisabled.js";import C from"./DateQuickBtn/index.vue.js";const Y={class:"render-widget-date-range"};var D=e({__name:"DateInner",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""},unit:{type:String,default:""}},emits:["update:value","update:unit"],setup(e,{emit:D}){const M=e,S=t(),F=t(!1),j=a((()=>{let e="";switch(M.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),T=a((()=>{let e="";switch(M.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e})),w=a((()=>M.unit)),_=a((()=>{var e;return null==(e=M.componentCfg)?void 0:e.widgetCfg.optionSetting})),x=a((()=>_.value!==g.SELECT_TIME)),B=a((()=>b.curTime));function E(){x.value&&(F.value=!F.value)}function V(e){D("update:value",e)}function H(e){D("update:unit",e)}function I(e){S.value=e;const t=e?f(e).format(j.value):e;D("update:value",t)}function O(e){return h(e,_.value)}function Q(e){return k(e,_.value)}return l((()=>M.value),(e=>{e&&y(e)?S.value=f(e).valueOf():S.value=null}),{immediate:!0}),x.value||(F.value=!0),(t,a)=>(u(),n("div",Y,[o(x)&&!F.value?(u(),r(C,{key:0,componentCfg:e.componentCfg,type:e.type,dateFormat:o(j),radioValue:o(w),onClickQuickBtn:V,onChangeRadioValue:H},null,8,["componentCfg","type","dateFormat","radioValue"])):i("v-if",!0),o(x)?(u(),r(o(v),{key:1,secondary:"",class:d(F.value?"select-date-right":"select-date-left"),onClick:E},{default:p((()=>[m(c(o(T)),1)])),_:1},8,["class"])):i("v-if",!0),!o(x)||F.value?(u(),r(o(s),{key:2,to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:S.value,defaultTime:o(B),"is-date-disabled":O,"is-time-disabled":Q,"onUpdate:value":I},null,8,["type","clearable","valueFormat","placeholder","value","defaultTime"])):i("v-if",!0)]))}});export{D as default};
@@ -1 +0,0 @@
1
- import e from"./DateOut.vue2.js";import t from"../../../../../../_virtual/_plugin-vue_export-helper.js";var r=t(e,[["__file","DateOut.vue"]]);export{r as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as r,createBlock as o,unref as u}from"vue";import p from"../../../../../date-picker/index.js";import n from"moment";import{isString as i}from"lodash-es";import{WidgetOptionEnums as m}from"../../../types/enums.js";import{DateExtraOptions as d,DateExtraMap as s}from"../helpers/dateExtraMap.js";import{setDateDisabled as v,setTimeDisabled as f}from"../helpers/dateDisabled.js";import{presetValToTimestamp as c}from"../helpers/presetValToTimestamp.js";var y=e({__name:"DateOut",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:y}){const g=e,h=t(),b=t(),Y=a((()=>{let e="";switch(g.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),M=a((()=>{var e;return null==(e=g.componentCfg)?void 0:e.widgetCfg.optionSetting}));function j(e){h.value=e;const t=e?n(e).format(Y.value):e;y("update:value",t)}function D(e){return v(e,M.value)}function C(e){return f(e,M.value)}return l((()=>g.value),(e=>{e&&i(e)?h.value=n(e).valueOf():h.value=null}),{immediate:!0}),function(){var e,t;const{originType:a}=null==(e=g.componentCfg)?void 0:e.widgetCfg,l=`${a}_${M.value||m.ALL}`,r=null!=(t=d[s[l]])?t:[];let o={};r.forEach((({label:e,value:t})=>{const a=c(t,Y.value,!0);a&&(o[e]=a.valueOf())})),b.value=o}(),(t,a)=>(r(),o(u(p),{to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:h.value,"default-time":"00:00:00","is-date-disabled":D,"is-time-disabled":C,shortcuts:b.value,"onUpdate:value":j},null,8,["type","clearable","valueFormat","placeholder","value","shortcuts"]))}});export{y as default};
@@ -1,71 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { AnyObject } from '../../../../../../../../es/shared/types';
3
- declare type ITypeDate = 'date' | 'datetime';
4
- declare const _default: import("vue").DefineComponent<{
5
- componentCfg: {
6
- type: PropType<AnyObject>;
7
- };
8
- type: {
9
- type: PropType<ITypeDate>;
10
- default: string;
11
- };
12
- dateFormat: {
13
- type: StringConstructor;
14
- default: string;
15
- };
16
- radioValue: {
17
- type: StringConstructor;
18
- default: string;
19
- };
20
- }, {
21
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
22
- componentCfg: {
23
- type: PropType<AnyObject>;
24
- };
25
- type: {
26
- type: PropType<ITypeDate>;
27
- default: string;
28
- };
29
- dateFormat: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- radioValue: {
34
- type: StringConstructor;
35
- default: string;
36
- };
37
- }>> & {
38
- onClickQuickBtn?: ((...args: any[]) => any) | undefined;
39
- onChangeRadioValue?: ((...args: any[]) => any) | undefined;
40
- }>>;
41
- emit: (event: "clickQuickBtn" | "changeRadioValue", ...args: any[]) => void;
42
- dateList: import("vue").Ref<any[]>;
43
- optionSetting: import("vue").ComputedRef<any>;
44
- isRange: import("vue").ComputedRef<any>;
45
- initData: () => void;
46
- handleRadioClick: (value: string) => void;
47
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickQuickBtn" | "changeRadioValue")[], "clickQuickBtn" | "changeRadioValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
- componentCfg: {
49
- type: PropType<AnyObject>;
50
- };
51
- type: {
52
- type: PropType<ITypeDate>;
53
- default: string;
54
- };
55
- dateFormat: {
56
- type: StringConstructor;
57
- default: string;
58
- };
59
- radioValue: {
60
- type: StringConstructor;
61
- default: string;
62
- };
63
- }>> & {
64
- onClickQuickBtn?: ((...args: any[]) => any) | undefined;
65
- onChangeRadioValue?: ((...args: any[]) => any) | undefined;
66
- }, {
67
- type: ITypeDate;
68
- dateFormat: string;
69
- radioValue: string;
70
- }>;
71
- export default _default;
@@ -1 +0,0 @@
1
- import e from"./index.vue2.js";import r from"../../../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as a,openBlock as o,createElementBlock as n,Fragment as i,renderList as r,normalizeClass as l,toDisplayString as u}from"vue";import{WidgetDateOptionEnums as p}from"../../helpers/enums.js";import{widgetDateValOptions as c}from"../../helpers/dateExtraMap.js";import{formatDateRangeInfo as d,presetValToTimestamp as m}from"../../helpers/presetValToTimestamp.js";import{WidgetOptionEnums as s}from"../../../../types/enums.js";const f={class:"radio-date-group"},g=["onClick"];var v=e({__name:"index",props:{componentCfg:{type:Object},type:{type:String,default:"date"},dateFormat:{type:String,default:"YYYY-MM-DD"},radioValue:{type:String,default:""}},emits:["clickQuickBtn","changeRadioValue"],setup(e,{emit:v}){const y=e,C=t([]),k=a((()=>{var e;return null==(e=y.componentCfg)?void 0:e.widgetCfg.optionSetting})),V=a((()=>{var e;return null==(e=y.componentCfg)?void 0:e.rangeFilter}));return function(){var e,t;const{originType:a}=null==(e=y.componentCfg)?void 0:e.widgetCfg,o=`${a}_${k.value||s.ALL}${V.value?"_RANGE":""}`,n=p[o];C.value=null!=(t=c[n])?t:[]}(),(t,a)=>(o(),n("div",f,[(o(!0),n(i,null,r(C.value,(t=>(o(),n("span",{key:t.con,class:l(["radio-date-item",e.radioValue===t.con?"radio-date-item-active":""]),onClick:e=>function(e){let t=null;const a=y.radioValue===e?"":e;a&&(t=V.value?d(a,y.dateFormat,k.value):m(a,y.dateFormat)),v("clickQuickBtn",t),v("changeRadioValue",a)}(t.con)},u(t.title),11,g)))),128))]))}});export{v as default};
@@ -1,223 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- value: {
3
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
4
- };
5
- componentCfg: {
6
- type: ObjectConstructor;
7
- };
8
- }, {
9
- message: import("naive-ui").MessageApi;
10
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
11
- value: {
12
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
13
- };
14
- componentCfg: {
15
- type: ObjectConstructor;
16
- };
17
- }>> & {
18
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
19
- }>>;
20
- getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
21
- $attrs: {
22
- [x: string]: unknown;
23
- };
24
- emit: (event: "update:value", ...args: any[]) => void;
25
- isLoading: import("vue").Ref<boolean>;
26
- filterApiConfig: import("../../../../..").AnyObject;
27
- searchFilterList: import("vue").Ref<import("../../../../..").AnyObject[]>;
28
- curPage: import("vue").Ref<number>;
29
- fieldTitleList: import("vue").Ref<any>;
30
- selectOptions: import("vue").Ref<any[]>;
31
- baseOptionList: import("vue").Ref<any[]>;
32
- keywordVal: import("vue").Ref<any>;
33
- totalPage: import("vue").Ref<number>;
34
- menuProps: {
35
- class: string;
36
- };
37
- isMultiple: import("vue").ComputedRef<unknown>;
38
- dynamicOptionInfos: import("vue").ComputedRef<any>;
39
- isShowWhole: import("vue").ComputedRef<any>;
40
- isLastPage: import("vue").ComputedRef<boolean>;
41
- valueCp: import("vue").ComputedRef<string | number | any[] | null>;
42
- isForbidRequest: import("vue").ComputedRef<boolean>;
43
- setOptionActive: (selectIds: string[]) => void;
44
- handleUpdateSelect: (value: string[] | null) => void;
45
- handleUpdatePage: (page: number) => Promise<void>;
46
- getOptionsData: (keyword: string, curPage: number) => Promise<void>;
47
- isWhole: (value: string) => boolean;
48
- _handleSearch: (query: string) => Promise<void>;
49
- handleSearch: (query: string) => Promise<void>;
50
- handleInitData: () => Promise<void>;
51
- handleClear: () => Promise<void>;
52
- handleUpdateShow: (show: boolean) => void;
53
- renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
54
- [key: string]: any;
55
- }>;
56
- init: () => void;
57
- NSelect: any;
58
- SelectDynamicOption: import("vue").DefineComponent<{
59
- dynamicOptionInfo: {
60
- type: import("vue").PropType<import("../../../../..").AnyObject>;
61
- default: () => {};
62
- };
63
- fieldTitleList: {
64
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
65
- default: () => never[];
66
- };
67
- optionList: {
68
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
69
- default: () => never[];
70
- };
71
- isMultiple: {
72
- type: BooleanConstructor;
73
- default: boolean;
74
- };
75
- curPage: {
76
- type: NumberConstructor;
77
- default: number;
78
- };
79
- isLastPage: {
80
- type: BooleanConstructor;
81
- default: boolean;
82
- };
83
- isShowWhole: {
84
- type: BooleanConstructor;
85
- default: boolean;
86
- };
87
- }, {
88
- selectMinWidth: number;
89
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
90
- dynamicOptionInfo: {
91
- type: import("vue").PropType<import("../../../../..").AnyObject>;
92
- default: () => {};
93
- };
94
- fieldTitleList: {
95
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
96
- default: () => never[];
97
- };
98
- optionList: {
99
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
100
- default: () => never[];
101
- };
102
- isMultiple: {
103
- type: BooleanConstructor;
104
- default: boolean;
105
- };
106
- curPage: {
107
- type: NumberConstructor;
108
- default: number;
109
- };
110
- isLastPage: {
111
- type: BooleanConstructor;
112
- default: boolean;
113
- };
114
- isShowWhole: {
115
- type: BooleanConstructor;
116
- default: boolean;
117
- };
118
- }>> & {
119
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
120
- onUpdatePage?: ((...args: any[]) => any) | undefined;
121
- }>>;
122
- emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
123
- dragEndWidth: import("vue").Ref<number>;
124
- showKeys: import("vue").ComputedRef<any>;
125
- titleList: import("vue").ComputedRef<string[]>;
126
- handleSelect: (option: any) => void;
127
- searchByPage: (onePage: number) => void;
128
- changeWidth: ({ distance }: any) => void;
129
- saveWidth: () => void;
130
- NEmpty: any;
131
- NButtonGroup: any;
132
- NButton: any;
133
- NIcon: any;
134
- NPopover: any;
135
- vFlexibleResize: {
136
- mounted(el: any, { value }: any): void;
137
- beforeUnmount(el: any): void;
138
- };
139
- WidgetValEnums: {
140
- CUSTOM: string;
141
- FIRST_VAL: string;
142
- WHOLE: string;
143
- NOW: string;
144
- TODAY: string;
145
- TODAY_START: string;
146
- TODAY_END: string;
147
- TOMORROW: string;
148
- TOMORROW_START: string;
149
- TOMORROW_END: string;
150
- YESTERDAY: string;
151
- YESTERDAY_START: string;
152
- YESTERDAY_END: string;
153
- THIS_WEEK: string;
154
- WEEK_START: string;
155
- WEEK_END: string;
156
- NEXT_WEEK: string;
157
- LAST_WEEK: string;
158
- THIS_MONTH: string;
159
- MONTH_START: string;
160
- MONTH_END: string;
161
- NEXT_MONTH: string;
162
- LAST_MONTH: string;
163
- THIS_QUARTER: string;
164
- NEXT_QUARTER: string;
165
- LAST_QUARTER: string;
166
- THIS_YEAR: string;
167
- NEXT_YEAR: string;
168
- LAST_YEAR: string;
169
- };
170
- ArrowBack: 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<{}>>, {}>;
171
- ArrowForward: 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<{}>>, {}>;
172
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
173
- dynamicOptionInfo: {
174
- type: import("vue").PropType<import("../../../../..").AnyObject>;
175
- default: () => {};
176
- };
177
- fieldTitleList: {
178
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
179
- default: () => never[];
180
- };
181
- optionList: {
182
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
183
- default: () => never[];
184
- };
185
- isMultiple: {
186
- type: BooleanConstructor;
187
- default: boolean;
188
- };
189
- curPage: {
190
- type: NumberConstructor;
191
- default: number;
192
- };
193
- isLastPage: {
194
- type: BooleanConstructor;
195
- default: boolean;
196
- };
197
- isShowWhole: {
198
- type: BooleanConstructor;
199
- default: boolean;
200
- };
201
- }>> & {
202
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
203
- onUpdatePage?: ((...args: any[]) => any) | undefined;
204
- }, {
205
- dynamicOptionInfo: import("../../../../..").AnyObject;
206
- fieldTitleList: import("../../../../..").AnyObject[];
207
- optionList: import("../../../../..").AnyObject[];
208
- isMultiple: boolean;
209
- curPage: number;
210
- isLastPage: boolean;
211
- isShowWhole: boolean;
212
- }>;
213
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
214
- value: {
215
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
216
- };
217
- componentCfg: {
218
- type: ObjectConstructor;
219
- };
220
- }>> & {
221
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
222
- }, {}>;
223
- export default _default;
@@ -1 +0,0 @@
1
- import e from"./SelectDynamic.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","SelectDynamic.vue"]]);export{t as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as n,nextTick as u,openBlock as o,createBlock as i,unref as r,mergeProps as s,isRef as v,withCtx as c,createVNode as p,h as f}from"vue";import{useMessage as m,NSelect as d,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as w}from"../helpers/setDefaultValue.js";import{WholeSelectObj as O}from"../helpers/selectExtraMap.js";import{WidgetValEnums as S}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as j}from"../../../constants/index.js";import C from"./SelectDynamicOption/index.vue.js";import{isEqual as N,cloneDeep as A}from"lodash-es";var L=e({__name:"SelectDynamic",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:L}){const P=e,k=m(),{getDynamicSelectData:x}=h(),D=a(),J=l(!1),E=t(b),I=t(j),K=l(1),T=l(),U=l([JSON.parse(JSON.stringify(O))]),W=l([]),M=l(),$=l(0),_={class:"select-dynamic-popover"},F=n((()=>D.multiple)),H=n((()=>{const{widgetCfg:e}=P.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),V=n((()=>{const{widgetCfg:e}=P.componentCfg,{showWholeOption:a=!1}=e;return a&&1===K.value})),q=n((()=>$.value>0&&K.value>=$.value)),z=n((()=>{var e;if(Array.isArray(P.value)&&P.value.length>0){const e=P.value;if(G(e),!F.value&&1==e.length){const a=U.value.find((a=>a.value===e[0]));return JSON.stringify(a)}return U.value.filter((a=>e.includes(a.value)))}return G([]),null!=(e=P.value)?e:null})),B=n((()=>{if(Object.keys(H.value).length>0){const{defaultParams:e=[]}=H.value;return w(e)&&!P.value}return!1}));function G(e){U.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function Q(e){const{widgetCfg:a}=P.componentCfg,{linkageFieldKeys:l=[]}=a;N(P.value,e)||(l.forEach((e=>{const a=I.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),L("update:value",e))}async function R(e){K.value=e,await X(M.value,K.value)}async function X(e,a){try{if(Object.keys(H.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:n,filterKeys:u,defaultParams:o=[],showKeys:i,valueKey:r}=H.value;let s={wordbookId:t,autograph:l,wordbookType:n,fieldKeys:u,page:a};u.length>0&&(s[u[0]]=e),J.value=!0;if(w(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=I.value.find((a=>a.columnName===e));a&&a.value&&a.value!==S.WHOLE&&(s[e]=a.value)}))}let v=await x(s,E);if(v){const{fieldList:e=[],rows:a=[],total:l=0}=v.map,t=a.map((e=>({...e,label:e[i[0]],value:e[r]}))),n=A(t);V.value&&t.unshift(JSON.parse(JSON.stringify(O))),T.value=null!=e?e:[],U.value=null!=t?t:[],W.value=n,$.value=l}}}catch(e){k.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{J.value=!1}}const Y=g((async e=>{await async function(e){M.value=e.trim(),K.value=1,await X(M.value,K.value)}(e)}),300);async function Z(){Object.keys(H.value).length>0&&E&&await X("",K.value)}async function ee(){L("update:value",null),await Z()}function ae(e){e&&Z()}function le({option:e,handleClose:a}){if(F.value){const l=e.value;return f(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(P.value)&&P.value.length>0){const e=P.value,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);L("update:value",l.length>0?l:null)}}}},{default:()=>f("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return f("div",l.label)}return u((()=>{B.value||Z()})),(e,a)=>(o(),i(r(d),s(r(D),{value:r(z),"onUpdate:value":a[0]||(a[0]=e=>v(z)?z.value=e:null),remote:"",loading:J.value,"render-tag":le,"menu-props":_,onSearch:r(Y),onClear:ee,"onUpdate:show":ae}),{empty:c((()=>[p(C,s(r(D),{dynamicOptionInfo:r(H),fieldTitleList:T.value,optionList:U.value,isMultiple:r(F),curPage:K.value,isLastPage:r(q),isShowWhole:r(V),onUpdateSelect:Q,onUpdatePage:R}),null,16,["dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{L as default};