cnhis-design-vue 3.1.42-beta.1 → 3.1.42-beta.10

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 (142) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/base-search/index.d.ts +0 -22
  4. package/es/components/base-search/src/index.vue.d.ts +0 -22
  5. package/es/components/base-search/src/index.vue.js +1 -1
  6. package/es/components/base-search/style/index.css +1 -1
  7. package/es/components/big-table/index.d.ts +3 -4
  8. package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
  9. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  10. package/es/components/big-table/style/index.css +1 -1
  11. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  12. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  13. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  14. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  15. package/es/components/button-print/index.d.ts +4 -4
  16. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  17. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  18. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  19. package/es/components/classification/src/index.vue.js +1 -1
  20. package/es/components/date-picker/index.d.ts +5 -13
  21. package/es/components/date-picker/src/DatePicker.vue.d.ts +5 -13
  22. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  23. package/es/components/fabric-chart/index.d.ts +2 -2
  24. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  25. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  26. package/es/components/field-set/index.d.ts +84 -15
  27. package/es/components/field-set/src/FieldSet.vue.d.ts +80 -29
  28. package/es/components/field-set/src/types/index.d.ts +18 -0
  29. package/es/components/field-set/src/types/index.js +1 -0
  30. package/es/components/form-config/index.d.ts +24 -24
  31. package/es/components/form-config/src/FormConfig.vue.d.ts +24 -24
  32. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  33. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +12 -12
  34. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -12
  35. package/es/components/form-render/index.d.ts +12 -12
  36. package/es/components/form-render/index.js +1 -1
  37. package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
  38. package/es/components/form-render/src/FormRender.vue.js +1 -1
  39. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +12 -12
  40. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  41. package/es/components/form-render/src/components/renderer/date.js +1 -1
  42. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  43. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  44. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  45. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  46. package/es/components/form-render/src/components/renderer/select.js +1 -1
  47. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  48. package/es/components/form-render/src/hooks/index.js +1 -1
  49. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  50. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  51. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  52. package/es/components/form-render/src/types/index.d.ts +2 -1
  53. package/es/components/iho-table/index.d.ts +1523 -0
  54. package/es/components/iho-table/src/IhoTable.vue.d.ts +1523 -0
  55. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  56. package/es/components/iho-table/src/constants/index.d.ts +2 -1
  57. package/es/components/iho-table/src/constants/index.js +1 -1
  58. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
  59. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  60. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
  61. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  62. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  63. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  64. package/es/components/iho-table/src/plugins/index.js +1 -1
  65. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +5 -13
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  71. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +4 -10
  72. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
  73. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
  74. package/es/components/iho-table/src/types/index.d.ts +1 -0
  75. package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
  76. package/es/components/iho-table/src/utils/index.d.ts +1 -0
  77. package/es/components/iho-table/src/utils/index.js +1 -1
  78. package/es/components/iho-table/style/index.css +1 -1
  79. package/es/components/index.css +1 -1
  80. package/es/components/index.d.ts +1 -0
  81. package/es/components/index.js +1 -1
  82. package/es/components/info-header/index.d.ts +28 -28
  83. package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
  84. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  85. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  86. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  87. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  88. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
  89. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  90. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +12 -12
  91. package/es/components/info-header/style/index.css +1 -1
  92. package/es/components/keyboard/index.d.ts +1 -1
  93. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  94. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  95. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  96. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  97. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  98. package/es/components/select-person/index.d.ts +1 -1
  99. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  100. package/es/components/shortcut-setter/index.d.ts +12 -12
  101. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  102. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  103. package/es/components/table-filter/index.d.ts +0 -1
  104. package/es/components/table-filter/index.js +1 -1
  105. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  106. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  107. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  108. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  109. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  110. package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -10
  111. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  112. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  113. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  114. package/es/components/table-filter/src/types/index.d.ts +0 -74
  115. package/es/components/time-picker/index.d.ts +4 -10
  116. package/es/components/time-picker/src/TimePicker.vue.d.ts +4 -10
  117. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  118. package/es/env.d.ts +24 -24
  119. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  120. package/es/shared/hooks/index.d.ts +3 -0
  121. package/es/shared/hooks/index.js +1 -0
  122. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  123. package/es/shared/hooks/useAsyncQueue.js +1 -0
  124. package/es/shared/hooks/useDateTime.d.ts +6 -0
  125. package/es/shared/hooks/useDateTime.js +1 -0
  126. package/es/shared/utils/tapable/index.d.ts +139 -0
  127. package/package.json +2 -2
  128. package/es/components/base-search/src/directive/resize.d.ts +0 -4
  129. package/es/components/base-search/src/directive/resize.js +0 -1
  130. package/es/components/base-search/src/tool/resizeSensor.d.ts +0 -16
  131. package/es/components/base-search/src/tool/resizeSensor.js +0 -1
  132. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  133. package/es/components/table-filter/src/hooks/export.d.ts +0 -1
  134. package/es/components/table-filter/src/hooks/export.js +0 -1
  135. package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
  136. package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
  137. package/es/shared/mixins/index.d.ts +0 -1
  138. package/es/shared/mixins/index.js +0 -1
  139. package/es/shared/utils/colorLog.d.ts +0 -31
  140. package/es/shared/utils/colorLog.js +0 -1
  141. /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
  142. /package/es/shared/{mixins → hooks}/useTheme.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
+ ```
@@ -1 +1 @@
1
- import{defineComponent as e,computed as o,ref as a,onDeactivated as l,createVNode as t,unref as u,createTextVNode as n}from"vue";import{useTheme as i}from"../../../shared/mixins/useTheme.js";import{FileTrayFull as r,FileTray as s}from"@vicons/ionicons5";import{isString as m,isObject as d,isFunction as v}from"lodash-es";import{NPopover as c,NDivider as p,NEllipsis as f,NIcon as V,NInput as h}from"naive-ui";var g=e({props:{modelValue:{type:[String,Object],default:""}},emits:["update:modelValue"],setup(e,{emit:g}){const w=i(),x=o({get:()=>m(e.modelValue)?e.modelValue:d(e.modelValue)&&e.modelValue.content||"",set(o){let a=o;d(e.modelValue)&&(a={...e.modelValue,content:o}),g("update:modelValue",a)}}),T=a(!1),b=o({get:()=>T.value,async set(e){T.value=e,!e&&y.value&&(await new Promise((e=>setTimeout(e,200))),y.value=!1)}}),y=a(!1);let _,k;function P(e){e.stopPropagation(),clearTimeout(_),b.value&&y.value?b.value=!1:u(x)||(_=setTimeout((()=>{y.value=b.value=!0}),200))}function M(e){e.stopPropagation(),clearTimeout(_),u(x)&&(b.value=!0,y.value=!0)}function R(e){e.stopPropagation(),clearTimeout(k),u(x)&&(b.value=!0)}function j(e){e.stopPropagation(),clearTimeout(k),u(x)&&!y.value&&(k=setTimeout((()=>{b.value=!1}),300))}return l((()=>{b.value=!1})),function(){return t("section",{class:["annotation-edit",{"is-active":!!u(x)}],style:{"--icon-right":"-5",...w.value},"annotation-hover-show":!u(x)&&!y.value},[t(c,{"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:b.value,"onUpdate:show":e=>b.value=e,trigger:"manual",duration:100},{default:function(){return t("section",{onMouseleave:j,onMouseenter:R},[t("div",null,[y.value?t(h,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:x.value,"onUpdate:value":e=>x.value=e},null):t("span",null,[u(x)])]),d(e.modelValue)?[t(p,{style:{margin:"4px 0",minWidth:"360px"}},null),t("section",{class:"annotation-edit__footer"},[v(e.modelValue.footerRender)?e.modelValue.footerRender(e.modelValue):[t(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.authorLabel)?o:"质控人",n(": "),e.modelValue.author]}}),t(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.dateLabel)?o:"质控时间",n(": "),e.modelValue.date]}})]])]:null])},trigger:function(){return t("div",{class:"annotation-edit__icon",onMouseleave:j,onMouseenter:R,onDblclick:M,onClick:P},[t(V,{component:u(x)?r:s},null)])}})])}}});export{g as default};
1
+ import{defineComponent as e,computed as o,ref as a,onDeactivated as l,createVNode as t,unref as u,createTextVNode as n}from"vue";import{useTheme as i}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import{isString as r,isObject as s,isFunction as m}from"lodash-es";import{FileTrayFull as d,FileTray as v}from"@vicons/ionicons5";import{NPopover as c,NDivider as p,NEllipsis as f,NIcon as V,NInput as h}from"naive-ui";var g=e({props:{modelValue:{type:[String,Object],default:""}},emits:["update:modelValue"],setup(e,{emit:g}){const w=i(),x=o({get:()=>r(e.modelValue)?e.modelValue:s(e.modelValue)&&e.modelValue.content||"",set(o){let a=o;s(e.modelValue)&&(a={...e.modelValue,content:o}),g("update:modelValue",a)}}),T=a(!1),b=o({get:()=>T.value,async set(e){T.value=e,!e&&k.value&&(await new Promise((e=>setTimeout(e,200))),k.value=!1)}}),k=a(!1);let y,_;function P(e){e.stopPropagation(),clearTimeout(y),b.value&&k.value?b.value=!1:u(x)||(y=setTimeout((()=>{k.value=b.value=!0}),200))}function M(e){e.stopPropagation(),clearTimeout(y),u(x)&&(b.value=!0,k.value=!0)}function R(e){e.stopPropagation(),clearTimeout(_),u(x)&&(b.value=!0)}function j(e){e.stopPropagation(),clearTimeout(_),u(x)&&!k.value&&(_=setTimeout((()=>{b.value=!1}),300))}return l((()=>{b.value=!1})),function(){return t("section",{class:["annotation-edit",{"is-active":!!u(x)}],style:{"--icon-right":"-5",...w.value},"annotation-hover-show":!u(x)&&!k.value},[t(c,{"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:b.value,"onUpdate:show":e=>b.value=e,trigger:"manual",duration:100},{default:function(){return t("section",{onMouseleave:j,onMouseenter:R},[t("div",null,[k.value?t(h,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:x.value,"onUpdate:value":e=>x.value=e},null):t("span",null,[u(x)])]),s(e.modelValue)?[t(p,{style:{margin:"4px 0",minWidth:"360px"}},null),t("section",{class:"annotation-edit__footer"},[m(e.modelValue.footerRender)?e.modelValue.footerRender(e.modelValue):[t(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.authorLabel)?o:"质控人",n(": "),e.modelValue.author]}}),t(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.dateLabel)?o:"质控时间",n(": "),e.modelValue.date]}})]])]:null])},trigger:function(){return t("div",{class:"annotation-edit__icon",onMouseleave:j,onMouseenter:R,onDblclick:M,onClick:P},[t(V,{component:u(x)?d:v},null)])}})])}}});export{g as default};
@@ -10,9 +10,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
10
10
  type: import("vue").PropType<import("..").IApiServerType[]>;
11
11
  default: () => never[];
12
12
  };
13
- classificationIndex: {
14
- type: NumberConstructor;
15
- };
16
13
  qqConObjCount: {
17
14
  type: NumberConstructor;
18
15
  default: number;
@@ -56,8 +53,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
56
53
  advanceColWidth: string;
57
54
  }[];
58
55
  transformParams: (paramsList: any) => {};
59
- baseLeft: any;
60
- quickSearchLi: any;
61
56
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
62
57
  showSettings: {
63
58
  type: import("vue").PropType<import("..").IsettingsType>;
@@ -69,9 +64,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
69
64
  type: import("vue").PropType<import("..").IApiServerType[]>;
70
65
  default: () => never[];
71
66
  };
72
- classificationIndex: {
73
- type: NumberConstructor;
74
- };
75
67
  qqConObjCount: {
76
68
  type: NumberConstructor;
77
69
  default: number;
@@ -83,10 +75,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
83
75
  onGetFilterParam?: ((...args: any[]) => any) | undefined;
84
76
  }>>;
85
77
  emit: (event: "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", ...args: any[]) => void;
86
- baseLeftWidth: import("vue").Ref<number>;
87
- classificationWidth: import("vue").Ref<number>;
88
- quickSearchWidth: import("vue").Ref<number>;
89
- diffWidth: import("vue").Ref<number>;
90
78
  curConObj: import("vue").Ref<{
91
79
  field_key: string;
92
80
  con: string;
@@ -94,7 +82,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
94
82
  unit: string | null;
95
83
  }[]>;
96
84
  showResetFilterBtn: import("vue").Ref<boolean>;
97
- resizeFlag: import("vue").Ref<boolean>;
98
85
  outSearchFieldList: import("vue").Ref<{
99
86
  columnName: string;
100
87
  title: string;
@@ -213,9 +200,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
213
200
  }[]>;
214
201
  showQuickSearch: import("vue").ComputedRef<boolean>;
215
202
  initOutSearchFieldList: (config?: any) => void;
216
- pageResize: (obj: any) => any;
217
- handleTileBtnWidth: () => void;
218
- onResize: () => void;
219
203
  isShowSetting: (v: string) => boolean;
220
204
  foldQuickSearch: () => void;
221
205
  outFilterChange: (config?: {}) => void;
@@ -224,9 +208,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
224
208
  onFilterSearch: (obj: import("..").ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
225
209
  handleReset: () => void;
226
210
  resetFunc: (arr: import("..").ISearchType[]) => void;
227
- vResize: {
228
- mounted(el: any, binding: any): void;
229
- };
230
211
  RenderWidget: import("vue").DefineComponent<{
231
212
  cfg: {
232
213
  type: ObjectConstructor;
@@ -273,9 +254,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
273
254
  type: import("vue").PropType<import("..").IApiServerType[]>;
274
255
  default: () => never[];
275
256
  };
276
- classificationIndex: {
277
- type: NumberConstructor;
278
- };
279
257
  qqConObjCount: {
280
258
  type: NumberConstructor;
281
259
  default: number;
@@ -11,9 +11,6 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: PropType<IApiServerType[]>;
12
12
  default: () => never[];
13
13
  };
14
- classificationIndex: {
15
- type: NumberConstructor;
16
- };
17
14
  qqConObjCount: {
18
15
  type: NumberConstructor;
19
16
  default: number;
@@ -57,8 +54,6 @@ declare const _default: import("vue").DefineComponent<{
57
54
  advanceColWidth: string;
58
55
  }[];
59
56
  transformParams: (paramsList: any) => {};
60
- baseLeft: any;
61
- quickSearchLi: any;
62
57
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
63
58
  showSettings: {
64
59
  type: PropType<IsettingsType>;
@@ -70,9 +65,6 @@ declare const _default: import("vue").DefineComponent<{
70
65
  type: PropType<IApiServerType[]>;
71
66
  default: () => never[];
72
67
  };
73
- classificationIndex: {
74
- type: NumberConstructor;
75
- };
76
68
  qqConObjCount: {
77
69
  type: NumberConstructor;
78
70
  default: number;
@@ -84,10 +76,6 @@ declare const _default: import("vue").DefineComponent<{
84
76
  onGetFilterParam?: ((...args: any[]) => any) | undefined;
85
77
  }>>;
86
78
  emit: (event: "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", ...args: any[]) => void;
87
- baseLeftWidth: import("vue").Ref<number>;
88
- classificationWidth: import("vue").Ref<number>;
89
- quickSearchWidth: import("vue").Ref<number>;
90
- diffWidth: import("vue").Ref<number>;
91
79
  curConObj: import("vue").Ref<{
92
80
  field_key: string;
93
81
  con: string;
@@ -95,7 +83,6 @@ declare const _default: import("vue").DefineComponent<{
95
83
  unit: string | null;
96
84
  }[]>;
97
85
  showResetFilterBtn: import("vue").Ref<boolean>;
98
- resizeFlag: import("vue").Ref<boolean>;
99
86
  outSearchFieldList: import("vue").Ref<{
100
87
  columnName: string;
101
88
  title: string;
@@ -214,9 +201,6 @@ declare const _default: import("vue").DefineComponent<{
214
201
  }[]>;
215
202
  showQuickSearch: import("vue").ComputedRef<boolean>;
216
203
  initOutSearchFieldList: (config?: any) => void;
217
- pageResize: (obj: any) => any;
218
- handleTileBtnWidth: () => void;
219
- onResize: () => void;
220
204
  isShowSetting: (v: string) => boolean;
221
205
  foldQuickSearch: () => void;
222
206
  outFilterChange: (config?: {}) => void;
@@ -225,9 +209,6 @@ declare const _default: import("vue").DefineComponent<{
225
209
  onFilterSearch: (obj: ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
226
210
  handleReset: () => void;
227
211
  resetFunc: (arr: ISearchType[]) => void;
228
- vResize: {
229
- mounted(el: any, binding: any): void;
230
- };
231
212
  RenderWidget: import("vue").DefineComponent<{
232
213
  cfg: {
233
214
  type: ObjectConstructor;
@@ -274,9 +255,6 @@ declare const _default: import("vue").DefineComponent<{
274
255
  type: PropType<IApiServerType[]>;
275
256
  default: () => never[];
276
257
  };
277
- classificationIndex: {
278
- type: NumberConstructor;
279
- };
280
258
  qqConObjCount: {
281
259
  type: NumberConstructor;
282
260
  default: number;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as l,watch as i,openBlock as a,createElementBlock as r,createElementVNode as n,withDirectives as u,createCommentVNode as s,renderSlot as o,unref as c,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as v,Fragment as h,renderList as p}from"vue";import b from"xe-utils";import"moment";import g from"./directive/resize.js";import y 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 C,NIcon as j}from"naive-ui";import{Search as _}from"@vicons/ionicons5";import{cloneDeep as q}from"lodash-es";import F from"../../../_virtual/plugin-vue_export-helper.js";const R={class:"base-search-block"},O={class:"base-container"},I={class:"base-ul"},Q=n("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),V={key:1,class:"baseli"},A={key:2,class:"baseli"},L=n("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var W=F(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:F}){const W=e,{outQuickSearchFn:w}=x(),{isRender:z,getRenderSearchConObj:N,isExistDefValByRenderWidget:D,resetRenderWidgetValue:E}=S(),{transformData:P,transformParams:U}=k(),$=t(null),B=t(null),M=t(0),T=t(0),G=t(0),H=t(0),J=t([]),K=t(!1),X=t(!1),Y=t([]),Z=l((()=>{var e;return e="hideQuickSearch",0==W.showSettings[e]}));function ee(e){var t;if(X.value)return;let l=$.value;if(!l)return;X.value=!0,M.value=l.clientWidth,T.value=2===W.classificationIndex?160:0,G.value=(null==(t=B.value)?void 0:t.clientWidth)||0;let i=T.value+G.value,a=M.value-i;H.value=a,e.type&&"resize"===e.type&&function(){if(Y.value.length>0)return;X.value=!1}()}function te(){b.debounce(ee({type:"resize"}),300)}function le(){F("foldQuickSearch",!0)}function ie(e={}){const t=ae()||[];!function(e,t,l=!1,i={}){let a=[];Y.value.length>0&&(a=q(Y.value));F("onFilterSearch",e,t,l,a,i)}(t,U(t),!0,e)}function ae(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=N(i);a&&t.push(a)}return t.filter((e=>e.value))}(Y.value)}function re(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{E(e)})),w.handlerInitSearchItem(e)}(Y.value),F("handleReset",{targetType:"outQuickSearchReset"})}return i((()=>W.searchFieldList),(e=>{e&&e.length>0&&function(e={}){Y.value=[];let t=q(P(W.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));Y.value=t,w.handlerInitSearchItem(Y.value),Y.value.some((e=>z(e)?D(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),i((()=>W.qqConObjCount),(e=>{const t=J.value.length||0;K.value=t+Number(e)>0}),{immediate:!0}),i((()=>Y),(()=>{J.value=ae()||[];const e=U(J.value);K.value=J.value.length+Number(W.qqConObjCount)>0,F("getFilterParam",J.value,e)}),{immediate:!0,deep:!0}),(t,l)=>(a(),r("div",R,[n("div",O,[u((a(),r("div",{class:"bease-left",ref_key:"baseLeft",ref:$},[n("ul",I,[s(" 筛选分类插槽内容 "),o(t.$slots,"classification"),c(Z)?(a(),r("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:B},[f(c(C),{class:"search-default",type:"default",onClick:le},{default:d((()=>[Q,m(" 筛选 "+v(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):s("v-if",!0),s(" start--筛选外显--start "),(a(!0),r(h,null,p(Y.value,(e=>(a(),r(h,null,[e.isRender?(a(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(y,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:ie},null,8,["cfg","modelValue","onUpdate:modelValue"])])):s("v-if",!0)],64)))),256)),s(" end--筛选外显--end "),s(" 查询按钮 "),Y.value&&Y.value.length>0?(a(),r("li",V,[f(c(C),{type:"primary",onClick:ie,style:{margin:"0 8px 8px 0"}},{default:d((()=>[f(c(j),{component:c(_),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):s("v-if",!0),s(" 重置按钮 "),K.value?(a(),r("li",A,[f(c(C),{onClick:re,style:{margin:"0 8px 8px 0"}},{default:d((()=>[L,m(" 重置 ")])),_:1})])):s("v-if",!0)])])),[[c(g),te]])])]))}}),[["__file","index.vue"]]);export{W as default};
1
+ import{defineComponent as e,ref as t,computed as l,watch as a,openBlock as i,createElementBlock as r,createElementVNode as n,createCommentVNode as s,renderSlot as o,unref as u,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as m,Fragment as h,renderList as v}from"vue";import p from"../../table-filter/src/components/render-widget/index.vue.js";import b from"../../table-filter/src/hooks/useMixins.js";import g from"../../table-filter/src/hooks/useAdvanced.js";import y from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as C}from"naive-ui";import{Search as S}from"@vicons/ionicons5";import{cloneDeep as j}from"lodash-es";import x from"../../../_virtual/plugin-vue_export-helper.js";const q={class:"base-search-block"},_={class:"base-container"},F={class:"bease-left"},O={class:"base-ul"},R={key:0,class:"baseli showQuickBtn"},Q=n("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),V={key:0,class:"qqConObjCount"},A={key:1,class:"baseli"},w={key:2,class:"baseli"},I=n("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var D=x(e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{emit:x}){const D=e,{outQuickSearchFn:E}=b(),{isRender:L,getRenderSearchConObj:N,isExistDefValByRenderWidget:P,resetRenderWidgetValue:W}=y(),{transformData:B,transformParams:U}=g(),$=t([]),z=t(!1),M=t([]),T=l((()=>{var e;return e="hideQuickSearch",0==D.showSettings[e]}));function G(){x("foldQuickSearch",!0)}function H(e={}){const t=J()||[];!function(e,t,l=!1,a={}){let i=[];M.value.length>0&&(i=j(M.value));x("onFilterSearch",e,t,l,i,a)}(t,U(t),!0,e)}function J(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let a=e[l];const i=N(a);i&&t.push(i)}return t.filter((e=>e.value))}(M.value)}function K(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{W(e)})),E.handlerInitSearchItem(e)}(M.value),x("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>D.searchFieldList),(e=>{e&&e.length>0&&function(e={}){M.value=[];let t=j(B(D.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));M.value=t,E.handlerInitSearchItem(M.value),M.value.some((e=>L(e)?P(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),a((()=>D.qqConObjCount),(e=>{const t=$.value.length||0;z.value=t+Number(e)>0}),{immediate:!0}),a((()=>M),(()=>{$.value=J()||[];const e=U($.value);z.value=$.value.length+Number(D.qqConObjCount)>0,x("getFilterParam",$.value,e)}),{immediate:!0,deep:!0}),(t,l)=>(i(),r("div",q,[n("div",_,[n("div",F,[n("ul",O,[s(" 筛选分类插槽 "),o(t.$slots,"classification"),u(T)?(i(),r("li",R,[c(u(k),{class:"search-default",type:"default",onClick:G},{default:f((()=>[Q,d(" 筛选"),e.qqConObjCount?(i(),r("span",V,"("+m(e.qqConObjCount)+")",1)):s("v-if",!0)])),_:1})])):s("v-if",!0),s(" start--筛选外显--start "),(i(!0),r(h,null,v(M.value,(e=>(i(),r(h,null,[e.isRender?(i(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[c(p,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:H},null,8,["cfg","modelValue","onUpdate:modelValue"])])):s("v-if",!0)],64)))),256)),s(" end--筛选外显--end "),s(" 查询按钮 "),M.value&&M.value.length>0?(i(),r("li",A,[c(u(k),{type:"primary",onClick:H},{default:f((()=>[c(u(C),{component:u(S),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):s("v-if",!0),s(" 重置按钮 "),z.value?(i(),r("li",w,[c(u(k),{onClick:K},{default:f((()=>[I,d(" 重置 ")])),_:1})])):s("v-if",!0),s(" 业务按钮插槽 "),o(t.$slots,"buttons")])])])]))}}),[["__file","index.vue"]]);export{D as default};
@@ -1 +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:0}.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}
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:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
@@ -483,7 +483,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
483
483
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
484
484
  }>>;
485
485
  attr: import("../../../es/shared/types").AnyObject;
486
- cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
487
486
  formatData: (data?: {
488
487
  tableList: any[];
489
488
  fieldList: any[];
@@ -757,7 +756,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
757
756
  };
758
757
  readonly disabled: BooleanConstructor;
759
758
  readonly displayDirective: {
760
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
759
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
761
760
  readonly default: "if";
762
761
  };
763
762
  readonly closable: {
@@ -782,7 +781,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
782
781
  };
783
782
  readonly disabled: BooleanConstructor;
784
783
  readonly displayDirective: {
785
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
784
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
786
785
  readonly default: "if";
787
786
  };
788
787
  readonly closable: {
@@ -796,7 +795,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
796
795
  }>>, {
797
796
  readonly disabled: boolean;
798
797
  readonly closable: boolean | undefined;
799
- readonly displayDirective: "show" | "if" | "show:lazy";
798
+ readonly displayDirective: "if" | "show" | "show:lazy";
800
799
  }>;
801
800
  NIcon: any;
802
801
  CGrid: SFCWithInstall<import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
@@ -485,7 +485,6 @@ declare const _default: import("vue").DefineComponent<{
485
485
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
486
486
  }>>;
487
487
  attr: AnyObject;
488
- cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
489
488
  formatData: (data?: {
490
489
  tableList: any[];
491
490
  fieldList: any[];
@@ -747,7 +746,7 @@ declare const _default: import("vue").DefineComponent<{
747
746
  };
748
747
  readonly disabled: BooleanConstructor;
749
748
  readonly displayDirective: {
750
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
749
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
751
750
  readonly default: "if";
752
751
  };
753
752
  readonly closable: {
@@ -772,7 +771,7 @@ declare const _default: import("vue").DefineComponent<{
772
771
  };
773
772
  readonly disabled: BooleanConstructor;
774
773
  readonly displayDirective: {
775
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
774
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
776
775
  readonly default: "if";
777
776
  };
778
777
  readonly closable: {
@@ -786,7 +785,7 @@ declare const _default: import("vue").DefineComponent<{
786
785
  }>>, {
787
786
  readonly disabled: boolean;
788
787
  readonly closable: boolean | undefined;
789
- readonly displayDirective: "show" | "if" | "show:lazy";
788
+ readonly displayDirective: "if" | "show" | "show:lazy";
790
789
  }>;
791
790
  NIcon: any;
792
791
  CGrid: import("../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;