cnhis-design-vue 3.1.41-beta.35 → 3.1.41-beta.37

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 (74) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +286 -0
  3. package/es/components/base-search/index.js +1 -0
  4. package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +1 -4
  5. package/es/components/base-search/src/index.vue.js +1 -0
  6. package/es/components/base-search/style/index.css +1 -0
  7. package/es/components/classification/index.d.ts +1013 -0
  8. package/es/components/classification/index.js +1 -0
  9. package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +9 -9
  10. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  11. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  12. package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +1 -3
  13. package/es/components/classification/src/const/index.d.ts +2 -0
  14. package/es/components/classification/src/const/index.js +1 -0
  15. package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +6 -6
  16. package/es/components/classification/src/index.vue.js +1 -0
  17. package/es/components/classification/style/iconfont.ttf +0 -0
  18. package/es/components/classification/style/index.css +1 -0
  19. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  21. package/es/components/index.css +1 -1
  22. package/es/components/index.d.ts +3 -1
  23. package/es/components/index.js +1 -1
  24. package/es/components/quick-search/index.d.ts +712 -0
  25. package/es/components/quick-search/index.js +1 -0
  26. package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +21 -8
  27. package/es/components/quick-search/src/index.vue.js +1 -0
  28. package/es/components/quick-search/style/index.css +1 -0
  29. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  30. package/es/components/table-filter/index.d.ts +0 -1997
  31. package/es/components/table-filter/index.js +1 -1
  32. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -1
  33. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  34. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
  35. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  36. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  37. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  38. package/es/components/table-filter/src/tool/transformData.js +1 -1
  39. package/es/env.d.ts +24 -24
  40. package/package.json +2 -2
  41. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  42. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  43. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  44. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  45. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  46. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  47. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  48. package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
  49. package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
  50. package/es/components/table-filter/src/const/index.d.ts +0 -5
  51. package/es/components/table-filter/src/const/index.js +0 -1
  52. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  53. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  54. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  55. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  56. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  57. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  58. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  59. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  60. package/es/components/table-filter/src/tool/utils.js +0 -1
  61. package/es/components/table-filter/style/index.css +0 -1
  62. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  63. package/es/shared/utils/tapable/index.d.ts +0 -139
  64. /package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
  65. /package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
  66. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
  67. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
  68. /package/es/components/{table-filter → base-search}/style/iconfont.ttf +0 -0
  69. /package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +0 -0
  70. /package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.js +0 -0
  71. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  72. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
  73. /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
  74. /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -0,0 +1,286 @@
1
+ import { SFCWithInstall } from '../../../es/shared/types';
2
+ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
3
+ showSettings: {
4
+ type: import("vue").PropType<import("..").IsettingsType>;
5
+ default: () => {
6
+ hideQuickSearch: number;
7
+ };
8
+ };
9
+ searchFieldList: {
10
+ type: import("vue").PropType<import("..").IApiServerType[]>;
11
+ default: () => never[];
12
+ };
13
+ classificationIndex: {
14
+ type: NumberConstructor;
15
+ };
16
+ qqConObjCount: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ }, {
21
+ outQuickSearchFn: {
22
+ handlerInitSearchItem(arr: import("..").ISearchType[]): void;
23
+ };
24
+ isRender: (cfg: import("..").ISearchType) => any;
25
+ getRenderSearchConObj: (cfg: import("..").ISearchType) => {
26
+ field_key: string;
27
+ con: string | undefined;
28
+ value: any[] | null;
29
+ unit: null;
30
+ } | null;
31
+ isExistDefValByRenderWidget: (cfg: import("..").ISearchType) => boolean;
32
+ resetRenderWidgetValue: (cfg: import("..").ISearchType) => any;
33
+ transformData: (advancedFilterData: import("..").IApiServerType[]) => {
34
+ fieldType: string;
35
+ columnName: string;
36
+ settingObj: {};
37
+ setting: string;
38
+ widgetCfg: {
39
+ isRender: boolean;
40
+ widgetType: string | null;
41
+ valueList: {
42
+ value: any;
43
+ label: string;
44
+ }[] | undefined;
45
+ defaultValue: any;
46
+ defValueUnit: any;
47
+ multiple: boolean;
48
+ };
49
+ title: string;
50
+ alias: string | undefined;
51
+ isShowSearch: number;
52
+ filterExplicit: number;
53
+ explicitRequired: number;
54
+ advanceOptionSetting: string;
55
+ placeholder: string | undefined;
56
+ advanceColWidth: string;
57
+ }[];
58
+ baseLeft: any;
59
+ quickSearchLi: any;
60
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
61
+ showSettings: {
62
+ type: import("vue").PropType<import("..").IsettingsType>;
63
+ default: () => {
64
+ hideQuickSearch: number;
65
+ };
66
+ };
67
+ searchFieldList: {
68
+ type: import("vue").PropType<import("..").IApiServerType[]>;
69
+ default: () => never[];
70
+ };
71
+ classificationIndex: {
72
+ type: NumberConstructor;
73
+ };
74
+ qqConObjCount: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ }>> & {
79
+ onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
80
+ onOnFilterSearch?: ((...args: any[]) => any) | undefined;
81
+ onHandleReset?: ((...args: any[]) => any) | undefined;
82
+ onGetFilterParam?: ((...args: any[]) => any) | undefined;
83
+ }>>;
84
+ emit: (event: "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", ...args: any[]) => void;
85
+ baseLeftWidth: import("vue").Ref<number>;
86
+ classificationWidth: import("vue").Ref<number>;
87
+ quickSearchWidth: import("vue").Ref<number>;
88
+ diffWidth: import("vue").Ref<number>;
89
+ showResetFilterBtn: import("vue").Ref<boolean>;
90
+ resizeFlag: import("vue").Ref<boolean>;
91
+ outSearchFieldList: import("vue").Ref<{
92
+ columnName: string;
93
+ title: string;
94
+ fieldType?: string | undefined;
95
+ filterExplicit?: number | undefined;
96
+ isShowSearch?: number | undefined;
97
+ setting?: any;
98
+ settingObj?: any;
99
+ placeholder?: string | undefined;
100
+ AGEAttr?: boolean | undefined;
101
+ CL?: string | undefined;
102
+ CONVERT?: any;
103
+ EVALUATEAttr?: boolean | undefined;
104
+ EQ?: string | undefined;
105
+ LABELAttr?: boolean | undefined;
106
+ _isBlock?: boolean | undefined;
107
+ _frontId?: any;
108
+ NUMBERFiled?: boolean | undefined;
109
+ PASSWORDTYPE?: boolean | undefined;
110
+ advanceColWidth?: string | undefined;
111
+ advanceOptionSetting?: string | undefined;
112
+ alias?: string | undefined;
113
+ ageObj?: any;
114
+ attr?: string | undefined;
115
+ bigValue?: string | number | undefined;
116
+ classify?: string | undefined;
117
+ colWidth?: number | undefined;
118
+ columnFullName?: string | undefined;
119
+ com?: string | undefined;
120
+ comType?: string | undefined;
121
+ comAttr?: string | undefined;
122
+ con?: string | undefined;
123
+ dataSource?: any;
124
+ dictionarieObj?: any;
125
+ explicitRequired?: number | undefined;
126
+ explicitDefaultVal?: string | undefined;
127
+ extraField?: boolean | undefined;
128
+ fieldSetting?: string | undefined;
129
+ format?: string | undefined;
130
+ i18n?: string | undefined;
131
+ id?: string | undefined;
132
+ inputVal?: string | undefined;
133
+ inputUnit?: string | undefined;
134
+ isAvg?: number | undefined;
135
+ isEdit?: number | undefined;
136
+ isFixed?: number | undefined;
137
+ isFixedShow?: number | undefined;
138
+ isFontWeight?: number | undefined;
139
+ isMerge?: number | undefined;
140
+ isOrder?: number | undefined;
141
+ isPreciseSearch?: boolean | undefined;
142
+ isRender?: boolean | undefined;
143
+ isSearch?: number | undefined;
144
+ isShow?: number | undefined;
145
+ isSort?: number | undefined;
146
+ isSum?: number | undefined;
147
+ labelObj?: any;
148
+ labelList?: {
149
+ labelId?: string | undefined;
150
+ change_text: string;
151
+ field_key: string;
152
+ filter: {
153
+ con: string;
154
+ conName?: string | undefined;
155
+ field_key: string;
156
+ key?: string | undefined;
157
+ value: string;
158
+ }[];
159
+ label: string;
160
+ labelName: string;
161
+ sqlExpression: string;
162
+ value: string;
163
+ isSelect?: boolean | undefined;
164
+ }[] | undefined;
165
+ labelSelectList?: {
166
+ labelId?: string | undefined;
167
+ change_text: string;
168
+ field_key: string;
169
+ filter: {
170
+ con: string;
171
+ conName?: string | undefined;
172
+ field_key: string;
173
+ key?: string | undefined;
174
+ value: string;
175
+ }[];
176
+ label: string;
177
+ labelName: string;
178
+ sqlExpression: string;
179
+ value: string;
180
+ isSelect?: boolean | undefined;
181
+ }[] | undefined;
182
+ lessValue?: string | number | undefined;
183
+ marginx?: string | undefined;
184
+ notParticipatingSearch?: number | undefined;
185
+ order?: string | undefined;
186
+ QUOTE?: any;
187
+ searchPageConfig?: any;
188
+ selecteds?: any;
189
+ sequence?: number | undefined;
190
+ showDate?: boolean | undefined;
191
+ showFormat?: string | undefined;
192
+ showTime?: boolean | undefined;
193
+ sid?: string | undefined;
194
+ start_val?: number | null | undefined;
195
+ end_val?: number | null | undefined;
196
+ tempCon?: any;
197
+ tableId?: string | undefined;
198
+ value?: any;
199
+ unit?: string | undefined;
200
+ widgetCfg?: any;
201
+ formTitle?: string | undefined;
202
+ random_key?: string | undefined;
203
+ widgetType?: any;
204
+ hasFieldList?: any;
205
+ search_DefaultValue?: any;
206
+ }[]>;
207
+ showQuickSearch: import("vue").ComputedRef<boolean>;
208
+ initOutSearchFieldList: (config?: any) => void;
209
+ pageResize: (obj: any) => any;
210
+ handleTileBtnWidth: () => void;
211
+ onResize: () => void;
212
+ isShowSetting: (v: string) => boolean;
213
+ foldQuickSearch: () => void;
214
+ outFilterChange: (config?: {}) => void;
215
+ getConObjParams: () => any;
216
+ getConObj: (arr: any) => any;
217
+ onFilterSearch: (obj: import("..").ISearchParamsType[], isOutFilter?: boolean, config?: {}) => void;
218
+ handleReset: () => void;
219
+ resetFunc: (arr: import("..").ISearchType[]) => void;
220
+ vResize: {
221
+ mounted(el: any, binding: any): void;
222
+ };
223
+ RenderWidget: import("vue").DefineComponent<{
224
+ cfg: {
225
+ type: ObjectConstructor;
226
+ required: true;
227
+ };
228
+ modelValue: {
229
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
230
+ };
231
+ }, any, {
232
+ initialProps: {};
233
+ }, {
234
+ valueCp(): any;
235
+ }, {
236
+ search(): void;
237
+ getEleWidth(cfg: any): string | undefined;
238
+ initComponentProps(cfg: any): void;
239
+ generateWidget(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
240
+ [key: string]: any;
241
+ }> | null;
242
+ handleUpdate(val: any, widgetType: any, defValueUnit: any): void;
243
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange")[], "update:modelValue" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
244
+ cfg: {
245
+ type: ObjectConstructor;
246
+ required: true;
247
+ };
248
+ modelValue: {
249
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
250
+ };
251
+ }>> & {
252
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
253
+ onOutFilterChange?: ((...args: any[]) => any) | undefined;
254
+ }, {}>;
255
+ NIcon: any;
256
+ NButton: any;
257
+ Search: 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<{}>>, {}>;
258
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam")[], "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
259
+ showSettings: {
260
+ type: import("vue").PropType<import("..").IsettingsType>;
261
+ default: () => {
262
+ hideQuickSearch: number;
263
+ };
264
+ };
265
+ searchFieldList: {
266
+ type: import("vue").PropType<import("..").IApiServerType[]>;
267
+ default: () => never[];
268
+ };
269
+ classificationIndex: {
270
+ type: NumberConstructor;
271
+ };
272
+ qqConObjCount: {
273
+ type: NumberConstructor;
274
+ default: number;
275
+ };
276
+ }>> & {
277
+ onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
278
+ onOnFilterSearch?: ((...args: any[]) => any) | undefined;
279
+ onHandleReset?: ((...args: any[]) => any) | undefined;
280
+ onGetFilterParam?: ((...args: any[]) => any) | undefined;
281
+ }, {
282
+ showSettings: import("..").IsettingsType;
283
+ searchFieldList: import("..").IApiServerType[];
284
+ qqConObjCount: number;
285
+ }>>;
286
+ export default CBaseSearch;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as s}from"../../shared/utils/index.js";import a from"./src/index.vue.js";const e=a;e.install=function(a){s(a,e,r+"BaseSearch")};export{e as default};
@@ -1,5 +1,5 @@
1
+ import { ISearchType, IsettingsType, IApiServerType, ISearchParamsType } from '../../../../es/components/table-filter/src/types';
1
2
  import { PropType } from 'vue';
2
- import { ISearchType, IsettingsType, IApiServerType, ISearchParamsType } from '../../../../../es/components/table-filter/src/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  showSettings: {
5
5
  type: PropType<IsettingsType>;
@@ -20,10 +20,7 @@ declare const _default: import("vue").DefineComponent<{
20
20
  };
21
21
  }, {
22
22
  outQuickSearchFn: {
23
- handleRequestedLabel(v: any): Promise<import("axios").AxiosResponse<any, any>>;
24
23
  handlerInitSearchItem(arr: ISearchType[]): void;
25
- handleSetLabelOptions(labelType: any, el: ISearchType): void;
26
- getConObj(arr: any): any;
27
24
  };
28
25
  isRender: (cfg: ISearchType) => any;
29
26
  getRenderSearchConObj: (cfg: ISearchType) => {
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,computed as l,watch as i,openBlock as r,createElementBlock as a,createElementVNode as n,withDirectives as s,createCommentVNode as u,renderSlot as o,unref as c,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import g from"xe-utils";import"moment";import y from"./directive/resize.js";import b from"../../table-filter/src/components/render-widget/index.vue.js";import x from"../../table-filter/src/hooks/useMixins.js";import k from"../../table-filter/src/hooks/useAdvanced.js";import S from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as _,NIcon as j}from"naive-ui";import{Search as C}from"@vicons/ionicons5";import{cloneDeep as F}from"lodash-es";import R from"../../../_virtual/plugin-vue_export-helper.js";const q={class:"base-search-block"},I={class:"base-container"},Q={class:"base-ul"},V=n("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),A={key:1,class:"baseli"},O={key:2,class:"baseli"},L=n("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var W=R(e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{emit:R}){const W=e,{outQuickSearchFn:w}=x(),{isRender:z,getRenderSearchConObj:D,isExistDefValByRenderWidget:E,resetRenderWidgetValue:N}=S(),{transformData:P}=k(),U=t(null),$=t(null),B=t(0),M=t(0),T=t(0),G=t(0),H=t(!1),J=t(!1),K=t([]),X=l((()=>{var e;return e="hideQuickSearch",0==W.showSettings[e]}));function Y(e){var t;if(J.value)return;let l=U.value;if(!l)return;J.value=!0,B.value=l.clientWidth,M.value=2===W.classificationIndex?160:0,T.value=(null==(t=$.value)?void 0:t.clientWidth)||0;let i=M.value+T.value,r=B.value-i;G.value=r,e.type&&"resize"===e.type&&function(){if(K.value.length>0)return;J.value=!1}()}function Z(){g.debounce(Y({type:"resize"}),300)}function ee(){R("foldQuickSearch",!0)}function te(e={}){!function(e,t=!1,l={}){let i=[];K.value.length>0&&(i=F(K.value));R("onFilterSearch",e,t,i,l)}(le()||[],!0,e)}function le(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const r=D(i);r&&t.push(r)}return t.filter((e=>e.value))}(K.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{N(e)})),w.handlerInitSearchItem(e)}(K.value),R("handleReset",{targetType:"outQuickSearchReset"})}return i((()=>W.searchFieldList),(e=>{e&&e.length>0&&function(e={}){K.value=[];let t=F(P(W.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));K.value=t,w.handlerInitSearchItem(K.value),K.value.some((e=>z(e)?E(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),i((()=>K),(()=>{const e=le()||[];R("getFilterParam",e),H.value=!!e.length}),{immediate:!0,deep:!0}),(t,l)=>(r(),a("div",q,[n("div",I,[s((r(),a("div",{class:"bease-left",ref_key:"baseLeft",ref:U},[n("ul",Q,[u(" 筛选分类插槽内容 "),o(t.$slots,"classification"),c(X)?(r(),a("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:$},[f(c(_),{class:"search-default",type:"default",onClick:ee},{default:d((()=>[V,m(" 筛选 "+h(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):u("v-if",!0),u(" start--筛选外显--start "),(r(!0),a(p,null,v(K.value,(e=>(r(),a(p,null,[e.isRender?(r(),a("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:te},null,8,["cfg","modelValue","onUpdate:modelValue"])])):u("v-if",!0)],64)))),256)),u(" end--筛选外显--end "),u(" 查询按钮 "),K.value&&K.value.length>0?(r(),a("li",A,[f(c(_),{type:"primary",onClick:te,style:{margin:"0 8px 8px 0"}},{default:d((()=>[f(c(j),{component:c(C),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):u("v-if",!0),u(" 重置按钮 "),H.value?(r(),a("li",O,[f(c(_),{onClick:ie,style:{margin:"0 8px 8px 0"}},{default:d((()=>[L,m(" 重置 ")])),_:1})])):u("v-if",!0)])])),[[c(y),Z]])])]))}}),[["__file","index.vue"]]);export{W as default};
@@ -0,0 +1 @@
1
+ @font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:8px}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px}