cnhis-design-vue 3.1.50 → 3.1.51-beta.1

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 (123) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +13 -8
  3. package/es/components/base-search/src/index.vue.d.ts +13 -8
  4. package/es/components/base-search/src/index.vue2.js +1 -1
  5. package/es/components/classification/index.d.ts +57 -15
  6. package/es/components/classification/src/components/search-filter/index.vue.d.ts +57 -15
  7. package/es/components/classification/src/components/set-classification/index.vue.d.ts +57 -15
  8. package/es/components/classification/src/index.vue.d.ts +57 -15
  9. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  10. package/es/components/expand-field/src/index.vue2.js +1 -1
  11. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  13. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -0
  24. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
  25. package/es/components/field-set/index.d.ts +1 -1
  26. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  27. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  28. package/es/components/form-config/index.d.ts +174 -25
  29. package/es/components/form-config/src/FormConfig.vue.d.ts +175 -26
  30. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  31. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
  32. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -10
  33. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +121 -0
  34. package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +1 -0
  35. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -0
  36. package/es/components/form-config/src/constants/index.d.ts +19 -1
  37. package/es/components/form-config/src/constants/index.js +1 -1
  38. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  39. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
  40. package/es/components/form-config/src/types/index.d.ts +7 -3
  41. package/es/components/form-config/style/index.css +1 -1
  42. package/es/components/form-render/index.d.ts +4 -4
  43. package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
  44. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
  45. package/es/components/form-render/src/components/renderer/select.d.ts +10 -1
  46. package/es/components/form-render/src/components/renderer/select.js +1 -1
  47. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  48. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  49. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  50. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  51. package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
  52. package/es/components/form-render/src/types/index.d.ts +1 -19
  53. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  54. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
  55. package/es/components/iho-table/src/types/index.d.ts +2 -1
  56. package/es/components/index.css +1 -1
  57. package/es/components/info-header/index.d.ts +13 -13
  58. package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -13
  59. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
  60. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
  61. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -5
  62. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
  63. package/es/components/quick-search/index.d.ts +13 -8
  64. package/es/components/quick-search/src/index.vue.d.ts +13 -8
  65. package/es/components/quick-search/src/index.vue2.js +1 -1
  66. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  67. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  68. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  69. package/es/components/shortcut-setter/index.d.ts +6 -5
  70. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -5
  71. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  72. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +52 -7
  73. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  74. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -1
  75. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
  76. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +34 -2
  77. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
  78. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
  79. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -6
  80. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  81. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +57 -15
  82. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  83. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +58 -0
  84. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.js +1 -0
  85. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +1 -0
  86. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +56 -1
  87. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  88. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +4 -1
  89. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  90. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +55 -1
  91. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  92. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
  93. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  94. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -7
  95. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  96. package/es/components/table-filter/src/tool/transformData.d.ts +1 -6
  97. package/es/components/table-filter/src/tool/transformData.js +1 -1
  98. package/es/components/table-filter/src/types/index.d.ts +16 -1
  99. package/es/env.d.ts +25 -25
  100. package/es/shared/assets/img/failure.png.js +1 -1
  101. package/es/shared/assets/img/no-permission.png.js +1 -1
  102. package/es/shared/assets/img/nodata.png.js +1 -1
  103. package/es/shared/assets/img/notfound.png.js +1 -1
  104. package/es/shared/assets/img/qr.png.js +1 -1
  105. package/es/shared/assets/img/success.png.js +1 -1
  106. package/es/shared/assets/img/video.png.js +1 -1
  107. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  108. package/es/shared/assets/img/xb_big.png.js +1 -1
  109. package/es/shared/assets/img/xb_small.png.js +1 -1
  110. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +19 -1
  111. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  112. package/es/shared/package.json.js +1 -1
  113. package/es/shared/types/business.d.ts +20 -0
  114. package/es/shared/utils/business.d.ts +1 -2
  115. package/es/shared/utils/index.d.ts +3 -3
  116. package/package.json +2 -2
  117. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  118. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  119. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  120. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  121. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  122. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  123. package/es/shared/utils/tapable/index.d.ts +0 -139
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
+ ```
@@ -27,13 +27,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
27
27
  handlerInitSearchItem(arr: import("..").ISearchType[]): void;
28
28
  };
29
29
  isRender: (cfg: import("..").ISearchType) => any;
30
- getRenderSearchConObj: (cfg: import("..").ISearchType) => {
31
- widgetType: any;
32
- field_key: string;
33
- con: string | undefined;
34
- value: any[] | null;
35
- unit: string;
36
- } | null;
30
+ getRenderSearchConObj: (cfg: import("..").ISearchType) => any;
37
31
  isExistDefValByRenderWidget: (cfg: import("..").ISearchType) => boolean;
38
32
  resetRenderWidgetValue: (cfg: import("..").ISearchType) => any;
39
33
  transformData: (advancedFilterData: import("..").IApiServerType[], extendData: import("..").IExtendConfigurationType) => {
@@ -61,6 +55,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
61
55
  };
62
56
  rangeFilter: boolean | undefined;
63
57
  unit: any;
58
+ isAccurateSearchVal: boolean;
64
59
  _extendData: import("..").IExtendConfigurationType;
65
60
  title: string;
66
61
  alias: string | undefined;
@@ -70,6 +65,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
70
65
  advanceOptionSetting: string;
71
66
  placeholder: string | undefined;
72
67
  advanceColWidth: number | null | undefined;
68
+ accurateSearch: any;
73
69
  }[];
74
70
  transformParams: (paramsList: any[]) => {};
75
71
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -107,6 +103,8 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
107
103
  con: string;
108
104
  value: string[];
109
105
  unit: "custom" | null;
106
+ isAccurateSearch?: boolean | undefined;
107
+ accurateSearchKey?: string | undefined;
110
108
  }[]>;
111
109
  showResetFilterBtn: import("vue").Ref<boolean>;
112
110
  outSearchFieldList: import("vue").Ref<{
@@ -136,6 +134,8 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
136
134
  value?: any;
137
135
  sid?: string | undefined;
138
136
  alias?: string | undefined;
137
+ accurateSearch?: any;
138
+ isAccurateSearchVal?: boolean | undefined;
139
139
  }[]>;
140
140
  showQuickSearch: import("vue").ComputedRef<boolean>;
141
141
  showResetBtn: import("vue").ComputedRef<boolean>;
@@ -148,6 +148,8 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
148
148
  onFilterSearch: (obj: import("..").ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
149
149
  handleReset: () => void;
150
150
  resetFunc: (arr: import("..").ISearchType[]) => void;
151
+ getFilterParams: () => {};
152
+ setFilterParams: (params?: any) => void;
151
153
  RenderWidget: import("vue").DefineComponent<{
152
154
  cfg: {
153
155
  type: ObjectConstructor;
@@ -161,6 +163,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
161
163
  }, {
162
164
  valueCp(): any;
163
165
  unit(): any;
166
+ isAccurateSearchVal(): any;
164
167
  }, {
165
168
  search(): void;
166
169
  getEleWidth(cfg: any): {
@@ -172,7 +175,8 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
172
175
  }> | null;
173
176
  handleUpdate(val: any): void;
174
177
  handleUpdateUnit(val: any): void;
175
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:unit" | "outFilterChange")[], "update:modelValue" | "update:unit" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
178
+ handleUpdateAccurateSearch(val: any): void;
179
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:unit" | "update:isAccurate" | "outFilterChange")[], "update:modelValue" | "update:unit" | "update:isAccurate" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
176
180
  cfg: {
177
181
  type: ObjectConstructor;
178
182
  required: true;
@@ -183,6 +187,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
183
187
  }>> & {
184
188
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
185
189
  "onUpdate:unit"?: ((...args: any[]) => any) | undefined;
190
+ "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
186
191
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
187
192
  }, {}>;
188
193
  NIcon: any;
@@ -28,13 +28,7 @@ declare const _default: import("vue").DefineComponent<{
28
28
  handlerInitSearchItem(arr: ISearchType[]): void;
29
29
  };
30
30
  isRender: (cfg: ISearchType) => any;
31
- getRenderSearchConObj: (cfg: ISearchType) => {
32
- widgetType: any;
33
- field_key: string;
34
- con: string | undefined;
35
- value: any[] | null;
36
- unit: string;
37
- } | null;
31
+ getRenderSearchConObj: (cfg: ISearchType) => any;
38
32
  isExistDefValByRenderWidget: (cfg: ISearchType) => boolean;
39
33
  resetRenderWidgetValue: (cfg: ISearchType) => any;
40
34
  transformData: (advancedFilterData: IApiServerType[], extendData: import("../../../../es/components/table-filter/src/types").IExtendConfigurationType) => {
@@ -62,6 +56,7 @@ declare const _default: import("vue").DefineComponent<{
62
56
  };
63
57
  rangeFilter: boolean | undefined;
64
58
  unit: any;
59
+ isAccurateSearchVal: boolean;
65
60
  _extendData: import("../../../../es/components/table-filter/src/types").IExtendConfigurationType;
66
61
  title: string;
67
62
  alias: string | undefined;
@@ -71,6 +66,7 @@ declare const _default: import("vue").DefineComponent<{
71
66
  advanceOptionSetting: string;
72
67
  placeholder: string | undefined;
73
68
  advanceColWidth: number | null | undefined;
69
+ accurateSearch: any;
74
70
  }[];
75
71
  transformParams: (paramsList: any[]) => {};
76
72
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -108,6 +104,8 @@ declare const _default: import("vue").DefineComponent<{
108
104
  con: string;
109
105
  value: string[];
110
106
  unit: "custom" | null;
107
+ isAccurateSearch?: boolean | undefined;
108
+ accurateSearchKey?: string | undefined;
111
109
  }[]>;
112
110
  showResetFilterBtn: import("vue").Ref<boolean>;
113
111
  outSearchFieldList: import("vue").Ref<{
@@ -137,6 +135,8 @@ declare const _default: import("vue").DefineComponent<{
137
135
  value?: any;
138
136
  sid?: string | undefined;
139
137
  alias?: string | undefined;
138
+ accurateSearch?: any;
139
+ isAccurateSearchVal?: boolean | undefined;
140
140
  }[]>;
141
141
  showQuickSearch: import("vue").ComputedRef<boolean>;
142
142
  showResetBtn: import("vue").ComputedRef<boolean>;
@@ -149,6 +149,8 @@ declare const _default: import("vue").DefineComponent<{
149
149
  onFilterSearch: (obj: ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
150
150
  handleReset: () => void;
151
151
  resetFunc: (arr: ISearchType[]) => void;
152
+ getFilterParams: () => {};
153
+ setFilterParams: (params?: any) => void;
152
154
  RenderWidget: import("vue").DefineComponent<{
153
155
  cfg: {
154
156
  type: ObjectConstructor;
@@ -162,6 +164,7 @@ declare const _default: import("vue").DefineComponent<{
162
164
  }, {
163
165
  valueCp(): any;
164
166
  unit(): any;
167
+ isAccurateSearchVal(): any;
165
168
  }, {
166
169
  search(): void;
167
170
  getEleWidth(cfg: any): {
@@ -173,7 +176,8 @@ declare const _default: import("vue").DefineComponent<{
173
176
  }> | null;
174
177
  handleUpdate(val: any): void;
175
178
  handleUpdateUnit(val: any): void;
176
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:unit" | "outFilterChange")[], "update:modelValue" | "update:unit" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
179
+ handleUpdateAccurateSearch(val: any): void;
180
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:unit" | "update:isAccurate" | "outFilterChange")[], "update:modelValue" | "update:unit" | "update:isAccurate" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
177
181
  cfg: {
178
182
  type: ObjectConstructor;
179
183
  required: true;
@@ -184,6 +188,7 @@ declare const _default: import("vue").DefineComponent<{
184
188
  }>> & {
185
189
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
186
190
  "onUpdate:unit"?: ((...args: any[]) => any) | undefined;
191
+ "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
187
192
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
188
193
  }, {}>;
189
194
  NIcon: any;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,provide as l,computed as i,watch as a,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as u,unref as c,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import b from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import y from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as j}from"naive-ui";import{Search as S}from"@vicons/ionicons5";import{isObject as x,cloneDeep as O}from"lodash-es";import{InjectionFilterApiConfig as q,InjectionFilterSearchConfig as R}from"../../table-filter/src/constants/index.js";const A={class:"base-search-block"},F={class:"base-container"},V={class:"bease-left"},Q={class:"base-ul"},_={key:0,class:"baseli showQuickBtn"},w=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),I={key:0,class:"qqConObjCount"},N={key:1,class:"baseli"},B={key:2,class:"baseli"},E=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var D=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object},appendValueConfig:{type:Object,default:()=>({})}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:D,emit:L}){const P=e,{outQuickSearchFn:W}=g(),{isRender:U,getRenderSearchConObj:$,isExistDefValByRenderWidget:z,resetRenderWidgetValue:M}=C(),{transformData:T,transformParams:G}=y(),H=t([]),J=t(!1),K=t([]);l(q,P.filterApiConfig),l(R,K);const X=i((()=>Z("hideQuickSearch"))),Y=i((()=>Z("hideResetBtn")));function Z(e){return 0==P.showSettings[e]}function ee(){L("foldQuickSearch",!0)}function te(e={}){const t=le()||[];!function(e,t,l=!1,i={}){let a=[];K.value.length>0&&(a=O(K.value));L("onFilterSearch",e,t,l,a,i)}(t,G(t),!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 a=$(i);a&&t.push(a)}return t.filter((e=>e.value))}(K.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{M(e)})),W.handlerInitSearchItem(e)}(K.value),L("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>P.searchFieldList),(e=>{e&&e.length>0&&function(){K.value=[];let e=O(T(P.searchFieldList,{_filterApiConfig:P.filterApiConfig})).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));K.value=e,W.handlerInitSearchItem(K.value),K.value.some((e=>U(e)?z(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),a((()=>P.qqConObjCount),(e=>{const t=H.value.length||0;J.value=t+Number(e)>0&&Y.value}),{immediate:!0}),a((()=>K),(()=>{H.value=le()||[];const e=G(H.value);J.value=H.value.length+Number(P.qqConObjCount)>0&&Y.value,L("getFilterParam",H.value,e)}),{immediate:!0,deep:!0}),a((()=>P.appendValueConfig),(e=>{if(x(e)&&Object.keys(e).length>0){const t=Object.keys(e);K.value.forEach((l=>{t.includes(l.columnName)&&(l.value=e[l.columnName])}))}}),{immediate:!0,deep:!0}),D({handleReset:ie}),(t,l)=>(n(),r("div",A,[s("div",F,[s("div",V,[s("ul",Q,[o(" 筛选分类插槽 "),u(t.$slots,"classification"),c(X)?(n(),r("li",_,[f(c(k),{class:"search-default",type:"default",onClick:ee},{default:d((()=>[w,m(" 筛选"),e.qqConObjCount?(n(),r("span",I,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(p,null,v(K.value,(e=>(n(),r(p,null,[e.isRender?(n(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:te},null,8,["cfg","modelValue","onUpdate:modelValue"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),K.value&&K.value.length>0?(n(),r("li",N,[f(c(k),{type:"primary",onClick:te},{default:d((()=>[f(c(j),{component:c(S),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),J.value?(n(),r("li",B,[f(c(k),{onClick:ie},{default:d((()=>[E,m(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),u(t.$slots,"buttons")])])])]))}});export{D as default};
1
+ import{defineComponent as e,ref as t,provide as a,computed as l,watch as i,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as c,unref as u,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import g from"../../table-filter/src/components/render-widget/index.vue.js";import b from"../../table-filter/src/hooks/useMixins.js";import y from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as j}from"naive-ui";import{Search as A}from"@vicons/ionicons5";import{isObject as S,cloneDeep as O}from"lodash-es";import{InjectionFilterApiConfig as x,InjectionFilterSearchConfig as q}from"../../table-filter/src/constants/index.js";const R={class:"base-search-block"},F={class:"base-container"},V={class:"bease-left"},Q={class:"base-ul"},N={key:0,class:"baseli showQuickBtn"},_=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),w={key:0,class:"qqConObjCount"},E={key:1,class:"baseli"},I={key:2,class:"baseli"},P=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var B=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object},appendValueConfig:{type:Object,default:()=>({})}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:B,emit:U}){const D=e,{outQuickSearchFn:L}=b(),{isRender:W,getRenderSearchConObj:$,isExistDefValByRenderWidget:z,resetRenderWidgetValue:M}=C(),{transformData:T,transformParams:G}=y(),H=t([]),J=t(!1),K=t([]);a(x,D.filterApiConfig),a(q,K);const X=l((()=>Z("hideQuickSearch"))),Y=l((()=>Z("hideResetBtn")));function Z(e){return 0==D.showSettings[e]}function ee(){U("foldQuickSearch",!0)}function te(e={}){const t=ae()||[];!function(e,t,a=!1,l={}){let i=[];K.value.length>0&&(i=O(K.value));U("onFilterSearch",e,t,a,i,l)}(t,G(t),!0,e)}function ae(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let a=0;a<e.length;a++){let l=e[a];const i=$(l);i&&t.push(i)}return t.filter((e=>e.value))}(K.value)}function le(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{M(e)})),L.handlerInitSearchItem(e)}(K.value),U("handleReset",{targetType:"outQuickSearchReset"})}return i((()=>D.searchFieldList),(e=>{e&&e.length>0&&function(){K.value=[];let e=O(T(D.searchFieldList,{_filterApiConfig:D.filterApiConfig})).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));K.value=e,L.handlerInitSearchItem(K.value),K.value.some((e=>W(e)?z(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),i((()=>D.qqConObjCount),(e=>{const t=H.value.length||0;J.value=t+Number(e)>0&&Y.value}),{immediate:!0}),i((()=>K),(()=>{H.value=ae()||[];const e=G(H.value);J.value=H.value.length+Number(D.qqConObjCount)>0&&Y.value,U("getFilterParam",H.value,e)}),{immediate:!0,deep:!0}),i((()=>D.appendValueConfig),(e=>{if(S(e)&&Object.keys(e).length>0){const t=Object.keys(e);K.value.forEach((a=>{t.includes(a.columnName)&&(a.value=e[a.columnName])}))}}),{immediate:!0,deep:!0}),B({handleReset:le,getFilterParams:function(){const e=ae()||[];return G(e)},setFilterParams:function(e){const t=e?Object.keys(e):[];t.length>0&&K.value.forEach((a=>{var l;if(W(a)&&t.includes(a.columnName)){const t=e[a.columnName];a.value=Array.isArray(t)&&!1===(null==(l=a.widgetCfg)?void 0:l.multiple)?t[0]:t}}))}}),(t,a)=>(n(),r("div",R,[s("div",F,[s("div",V,[s("ul",Q,[o(" 筛选分类插槽 "),c(t.$slots,"classification"),u(X)?(n(),r("li",N,[f(u(k),{class:"search-default",type:"default",onClick:ee},{default:d((()=>[_,m(" 筛选"),e.qqConObjCount?(n(),r("span",w,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(p,null,v(K.value,(e=>(n(),r(p,null,[e.isRender?(n(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(g,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,isAccurate:e.isAccurateSearchVal,"onUpdate:isAccurate":t=>e.isAccurateSearchVal=t,onOutFilterChange:te},null,8,["cfg","modelValue","onUpdate:modelValue","isAccurate","onUpdate:isAccurate"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),K.value&&K.value.length>0?(n(),r("li",E,[f(u(k),{type:"primary",onClick:te},{default:d((()=>[f(u(j),{component:u(A),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),J.value?(n(),r("li",I,[f(u(k),{onClick:le},{default:d((()=>[P,m(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),c(t.$slots,"buttons")])])])]))}});export{B as default};
@@ -647,10 +647,12 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
647
647
  className: string;
648
648
  displayCategory: string;
649
649
  filterConditions: {
650
- value: string;
651
- key: string;
652
650
  condition: string;
651
+ key: string;
653
652
  presetVal: string;
653
+ value: string;
654
+ isAccurateSearch?: boolean | undefined;
655
+ accurateSearchKey?: string | undefined;
654
656
  }[];
655
657
  };
656
658
  loading: import("vue").Ref<boolean>;
@@ -678,12 +680,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
678
680
  updateCondition: (index: number, val: any) => void;
679
681
  getParamCfg: (key: string) => any;
680
682
  initFilterConditions: (tableId: string, rawConditions: import("..").ISearchConfigType) => Promise<void>;
681
- getRawFilterConditions: () => {
682
- field_key: any;
683
- con: any;
684
- value: any;
685
- unit: any;
686
- }[];
683
+ getRawFilterConditions: () => any[];
687
684
  findConditionByDisplayCategory: (sid: string) => unknown;
688
685
  handleDisplayCategorySelectProxy: (item: import("..").ICategoryItemType) => void;
689
686
  clearFormData: () => void;
@@ -714,6 +711,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
714
711
  type: StringConstructor;
715
712
  default: null;
716
713
  };
714
+ isAccurate: {
715
+ type: BooleanConstructor;
716
+ };
717
717
  }, {
718
718
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
719
719
  paramCfg: {
@@ -728,13 +728,18 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
728
728
  type: StringConstructor;
729
729
  default: null;
730
730
  };
731
+ isAccurate: {
732
+ type: BooleanConstructor;
733
+ };
731
734
  }>> & {
732
735
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
736
+ "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
733
737
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
734
738
  }>>;
735
- emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
739
+ emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
736
740
  valueCp: import("vue").WritableComputedRef<any>;
737
741
  presetValCp: import("vue").WritableComputedRef<string>;
742
+ isAccurateCp: import("vue").WritableComputedRef<boolean>;
738
743
  widgetType: import("vue").ComputedRef<any>;
739
744
  Date: import("vue").DefineComponent<{
740
745
  componentCfg: {
@@ -884,35 +889,67 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
884
889
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
885
890
  }, {
886
891
  modelValue: string | number | unknown[];
887
- presetVal: string;
888
892
  paramCfg: Record<string, any>;
893
+ presetVal: string;
889
894
  }>;
890
895
  InputFilter: import("vue").DefineComponent<{
896
+ paramCfg: {
897
+ type: ObjectConstructor;
898
+ default: null;
899
+ };
891
900
  modelValue: {
892
901
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
893
902
  default: null;
894
903
  };
904
+ isAccurateFilter: {
905
+ type: BooleanConstructor;
906
+ };
895
907
  }, {
896
908
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
909
+ paramCfg: {
910
+ type: ObjectConstructor;
911
+ default: null;
912
+ };
897
913
  modelValue: {
898
914
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
899
915
  default: null;
900
916
  };
917
+ isAccurateFilter: {
918
+ type: BooleanConstructor;
919
+ };
901
920
  }>> & {
902
921
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
922
+ "onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
903
923
  }>>;
904
- emit: (event: "update:modelValue", ...args: any[]) => void;
924
+ emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
925
+ optionList: import("vue").Ref<{
926
+ label: string;
927
+ value: number;
928
+ }[]>;
905
929
  valueCp: import("vue").WritableComputedRef<any>;
930
+ isAccurateFilterCp: import("vue").WritableComputedRef<number>;
931
+ isShowSearch: import("vue").ComputedRef<any>;
906
932
  NInput: any;
907
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
933
+ NSelect: any;
934
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
935
+ paramCfg: {
936
+ type: ObjectConstructor;
937
+ default: null;
938
+ };
908
939
  modelValue: {
909
940
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
910
941
  default: null;
911
942
  };
943
+ isAccurateFilter: {
944
+ type: BooleanConstructor;
945
+ };
912
946
  }>> & {
913
947
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
948
+ "onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
914
949
  }, {
915
950
  modelValue: string | number | unknown[];
951
+ paramCfg: Record<string, any>;
952
+ isAccurateFilter: boolean;
916
953
  }>;
917
954
  InputNumber: import("vue").DefineComponent<{
918
955
  modelValue: {
@@ -1441,8 +1478,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1441
1478
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
1442
1479
  }, {
1443
1480
  modelValue: string | number | unknown[];
1444
- presetVal: string;
1445
1481
  paramCfg: Record<string, any>;
1482
+ presetVal: string;
1446
1483
  }>;
1447
1484
  SelectLabel: import("vue").DefineComponent<{
1448
1485
  paramCfg: {
@@ -1508,7 +1545,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1508
1545
  SELECTLABEL: string;
1509
1546
  SELECTDYNAMIC: string;
1510
1547
  };
1511
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1548
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1512
1549
  paramCfg: {
1513
1550
  type: ObjectConstructor;
1514
1551
  default: null;
@@ -1521,13 +1558,18 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1521
1558
  type: StringConstructor;
1522
1559
  default: null;
1523
1560
  };
1561
+ isAccurate: {
1562
+ type: BooleanConstructor;
1563
+ };
1524
1564
  }>> & {
1525
1565
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1566
+ "onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
1526
1567
  "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
1527
1568
  }, {
1528
1569
  modelValue: string | number | unknown[];
1529
- presetVal: string;
1530
1570
  paramCfg: Record<string, any>;
1571
+ presetVal: string;
1572
+ isAccurate: boolean;
1531
1573
  }>;
1532
1574
  ConditionEnums: {
1533
1575
  NULL: string;