cnhis-design-vue 3.1.42-release.2 → 3.1.42-release.4

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 (157) 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 +2 -2
  4. package/es/components/base-search/src/index.vue.d.ts +2 -2
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/bpmn-workflow/index.d.ts +12 -0
  7. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  8. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +12 -0
  9. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  10. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  11. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  12. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  13. package/es/components/button-print/index.d.ts +4 -4
  14. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  15. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  16. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  17. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  18. package/es/components/classification/index.d.ts +1 -1
  19. package/es/components/classification/src/index.vue.d.ts +2 -2
  20. package/es/components/classification/style/index.css +1 -1
  21. package/es/components/date-picker/index.d.ts +4 -0
  22. package/es/components/date-picker/src/DatePicker.vue.d.ts +4 -0
  23. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  24. package/es/components/fabric-chart/index.d.ts +2 -2
  25. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  26. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
  27. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
  30. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
  32. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
  33. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  34. package/es/components/field-set/index.d.ts +26 -81
  35. package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
  36. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  37. package/es/components/field-set/style/index.css +1 -1
  38. package/es/components/form-config/index.d.ts +15 -15
  39. package/es/components/form-config/src/FormConfig.vue.d.ts +15 -15
  40. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  41. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +3 -2
  42. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +8 -9
  43. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  44. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  45. package/es/components/form-config/src/constants/index.d.ts +12 -1
  46. package/es/components/form-config/src/constants/index.js +1 -1
  47. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  48. package/es/components/form-config/src/types/index.d.ts +1 -0
  49. package/es/components/form-render/index.d.ts +3 -2
  50. package/es/components/form-render/src/FormRender.vue.d.ts +3 -2
  51. package/es/components/form-render/src/FormRender.vue.js +1 -1
  52. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +3 -2
  53. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  54. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
  55. package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +18 -0
  56. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  57. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +36 -0
  58. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  59. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +18 -0
  60. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  61. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +18 -0
  62. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  63. package/es/components/form-render/src/components/renderer/select.d.ts +32 -5
  64. package/es/components/form-render/src/components/renderer/select.js +1 -1
  65. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
  66. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
  67. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  68. package/es/components/form-render/src/types/fieldItem.d.ts +3 -4
  69. package/es/components/iho-table/index.d.ts +4 -1522
  70. package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -1522
  71. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  72. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
  73. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  74. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +22 -21
  75. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
  76. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  77. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  78. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  79. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
  80. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
  81. package/es/components/iho-table/src/plugins/index.js +1 -1
  82. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  83. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -0
  84. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
  86. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  87. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  88. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  89. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
  90. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  91. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  92. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  93. package/es/components/iho-table/src/types/index.d.ts +7 -4
  94. package/es/components/iho-table/src/types/pluginType.d.ts +6 -3
  95. package/es/components/iho-table/src/utils/index.d.ts +3 -0
  96. package/es/components/iho-table/src/utils/index.js +1 -1
  97. package/es/components/iho-table/style/iconfont.ttf +0 -0
  98. package/es/components/iho-table/style/index.css +1 -1
  99. package/es/components/index.css +1 -1
  100. package/es/components/info-header/index.d.ts +6 -4
  101. package/es/components/info-header/src/InfoHeader.vue.d.ts +6 -4
  102. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  103. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +3 -2
  104. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +3 -2
  105. package/es/components/info-header/style/index.css +1 -1
  106. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  107. package/es/components/map/index.d.ts +2 -14
  108. package/es/components/map/src/Map.vue.d.ts +1 -14
  109. package/es/components/map/src/types/index.d.ts +19 -0
  110. package/es/components/map/src/types/index.js +1 -0
  111. package/es/components/recommend-search/index.d.ts +13 -128
  112. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -130
  113. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  114. package/es/components/recommend-search/src/components/BaseSearch.d.ts +84 -0
  115. package/es/components/recommend-search/src/components/BaseSearch.js +1 -0
  116. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -63
  117. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  118. package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
  119. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  120. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -62
  121. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  122. package/es/components/recommend-search/src/constant/index.d.ts +3 -0
  123. package/es/components/recommend-search/src/constant/index.js +1 -1
  124. package/es/components/scale-view/index.d.ts +29 -94
  125. package/es/components/scale-view/src/ScaleView.vue.d.ts +29 -94
  126. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  127. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +3 -3
  128. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
  129. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  130. package/es/components/scale-view/src/hooks/use-component.d.ts +73 -3
  131. package/es/components/scale-view/style/index.css +1 -1
  132. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  133. package/es/components/select-label/style/index.css +1 -1
  134. package/es/components/shortcut-setter/index.d.ts +4 -4
  135. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -4
  136. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  137. package/es/components/table-filter/src/types/index.d.ts +11 -2
  138. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  139. package/es/components/vod-chunk-upload/index.d.ts +73 -3
  140. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -3
  141. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  142. package/es/env.d.ts +24 -24
  143. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  144. package/es/shared/hooks/useDateTime.d.ts +2 -2
  145. package/es/shared/hooks/useDateTime.js +1 -1
  146. package/es/shared/utils/index.d.ts +3 -3
  147. package/es/shared/utils/index.js +1 -1
  148. package/es/shared/utils/tapable/index.d.ts +139 -0
  149. package/package.json +2 -2
  150. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
  151. package/es/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
  152. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
  153. package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
  154. /package/es/components/base-search/style/{iconfont.ttf → base-search-iconfont.ttf} +0 -0
  155. /package/es/components/classification/style/{iconfont.ttf → classification-iconfont.ttf} +0 -0
  156. /package/es/components/info-header/style/{iconfont.ttf → info-header-font.ttf} +0 -0
  157. /package/es/components/select-label/style/{iconfont.ttf → select-label-iconfont.ttf} +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/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};
1
+ import{defineComponent as e,computed as o,ref as a,onDeactivated as t,createVNode as l,unref as u,createTextVNode as n}from"vue";import{useTheme as i}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";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 t((()=>{b.value=!1})),function(){return l("section",{class:["annotation-edit",{"is-active":!!u(x)}],style:{"--icon-right":"-5",...w.value},"annotation-hover-show":!u(x)&&!k.value},[l(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 l("section",{onMouseleave:j,onMouseenter:R},[l("div",null,[k.value?l(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):l("span",null,[u(x)])]),s(e.modelValue)?[l(p,{style:{margin:"4px 0",minWidth:"360px"}},null),l("section",{class:"annotation-edit__footer"},[m(e.modelValue.footerRender)?e.modelValue.footerRender(e.modelValue):[l(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.authorLabel)?o:"质控人",n(": "),e.modelValue.author]}}),l(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.dateLabel)?o:"质控时间",n(": "),e.modelValue.date]}})]])]:null])},trigger:function(){return l("div",{class:"annotation-edit__icon",onMouseleave:j,onMouseenter:R,onDblclick:M,onClick:P},[l(V,{component:u(x)?d:v},null)])}})])}}});export{g as default};
@@ -78,8 +78,8 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
78
78
  curConObj: import("vue").Ref<{
79
79
  field_key: string;
80
80
  con: string;
81
- value: any;
82
- unit: string | null;
81
+ value: string[];
82
+ unit: "custom" | null;
83
83
  }[]>;
84
84
  showResetFilterBtn: import("vue").Ref<boolean>;
85
85
  outSearchFieldList: import("vue").Ref<{
@@ -79,8 +79,8 @@ declare const _default: import("vue").DefineComponent<{
79
79
  curConObj: import("vue").Ref<{
80
80
  field_key: string;
81
81
  con: string;
82
- value: any;
83
- unit: string | null;
82
+ value: string[];
83
+ unit: "custom" | null;
84
84
  }[]>;
85
85
  showResetFilterBtn: import("vue").Ref<boolean>;
86
86
  outSearchFieldList: import("vue").Ref<{
@@ -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;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
1
+ @font-face{font-family:base-search-iconfont;src:url(base-search-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:base-search-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}
@@ -9,12 +9,15 @@ declare const BpmnWorkflow: SFCWithInstall<import("vue").DefineComponent<{
9
9
  token: StringConstructor;
10
10
  getBpmnXml: {
11
11
  type: FunctionConstructor;
12
+ default: () => Promise<{}>;
12
13
  };
13
14
  getInstanceHistory: {
14
15
  type: FunctionConstructor;
16
+ default: () => Promise<{}>;
15
17
  };
16
18
  getNodeApprovaler: {
17
19
  type: FunctionConstructor;
20
+ default: () => Promise<{}>;
18
21
  };
19
22
  }, {
20
23
  $message: import("naive-ui").MessageApi;
@@ -30,12 +33,15 @@ declare const BpmnWorkflow: SFCWithInstall<import("vue").DefineComponent<{
30
33
  token: StringConstructor;
31
34
  getBpmnXml: {
32
35
  type: FunctionConstructor;
36
+ default: () => Promise<{}>;
33
37
  };
34
38
  getInstanceHistory: {
35
39
  type: FunctionConstructor;
40
+ default: () => Promise<{}>;
36
41
  };
37
42
  getNodeApprovaler: {
38
43
  type: FunctionConstructor;
44
+ default: () => Promise<{}>;
39
45
  };
40
46
  }>> & {}>>;
41
47
  instance: import("axios").AxiosInstance;
@@ -59,14 +65,20 @@ declare const BpmnWorkflow: SFCWithInstall<import("vue").DefineComponent<{
59
65
  token: StringConstructor;
60
66
  getBpmnXml: {
61
67
  type: FunctionConstructor;
68
+ default: () => Promise<{}>;
62
69
  };
63
70
  getInstanceHistory: {
64
71
  type: FunctionConstructor;
72
+ default: () => Promise<{}>;
65
73
  };
66
74
  getNodeApprovaler: {
67
75
  type: FunctionConstructor;
76
+ default: () => Promise<{}>;
68
77
  };
69
78
  }>>, {
70
79
  flowType: string;
80
+ getBpmnXml: Function;
81
+ getInstanceHistory: Function;
82
+ getNodeApprovaler: Function;
71
83
  }>>;
72
84
  export default BpmnWorkflow;
@@ -12,12 +12,15 @@ declare const _default: import("vue").DefineComponent<{
12
12
  token: StringConstructor;
13
13
  getBpmnXml: {
14
14
  type: FunctionConstructor;
15
+ default: () => Promise<{}>;
15
16
  };
16
17
  getInstanceHistory: {
17
18
  type: FunctionConstructor;
19
+ default: () => Promise<{}>;
18
20
  };
19
21
  getNodeApprovaler: {
20
22
  type: FunctionConstructor;
23
+ default: () => Promise<{}>;
21
24
  };
22
25
  }, {
23
26
  $message: import("naive-ui").MessageApi;
@@ -33,12 +36,15 @@ declare const _default: import("vue").DefineComponent<{
33
36
  token: StringConstructor;
34
37
  getBpmnXml: {
35
38
  type: FunctionConstructor;
39
+ default: () => Promise<{}>;
36
40
  };
37
41
  getInstanceHistory: {
38
42
  type: FunctionConstructor;
43
+ default: () => Promise<{}>;
39
44
  };
40
45
  getNodeApprovaler: {
41
46
  type: FunctionConstructor;
47
+ default: () => Promise<{}>;
42
48
  };
43
49
  }>> & {}>>;
44
50
  instance: import("axios").AxiosInstance;
@@ -62,14 +68,20 @@ declare const _default: import("vue").DefineComponent<{
62
68
  token: StringConstructor;
63
69
  getBpmnXml: {
64
70
  type: FunctionConstructor;
71
+ default: () => Promise<{}>;
65
72
  };
66
73
  getInstanceHistory: {
67
74
  type: FunctionConstructor;
75
+ default: () => Promise<{}>;
68
76
  };
69
77
  getNodeApprovaler: {
70
78
  type: FunctionConstructor;
79
+ default: () => Promise<{}>;
71
80
  };
72
81
  }>>, {
73
82
  flowType: string;
83
+ getBpmnXml: Function;
84
+ getInstanceHistory: Function;
85
+ getNodeApprovaler: Function;
74
86
  }>;
75
87
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,reactive as n,onMounted as o,openBlock as r,createElementBlock as i,createCommentVNode as s,createElementVNode as l}from"vue";import"bpmn-js/dist/assets/diagram-js.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";import{attr as a}from"tiny-svg";import{useMessage as p}from"naive-ui";import d from"axios";import c from"moment";import m from"bpmn-js/lib/Viewer";import u from"./custom/customOtherModule/zoomScroll.js";import v from"bpmn-js/lib/features/modeling";import b from"diagram-js/lib/navigation/movecanvas";import f from"./custom/customOtherModule/customViewerRenderer.js";import y from"../../../_virtual/plugin-vue_export-helper.js";const g={class:"containers"};var h=y(e({__name:"BpmnWorkflow",props:{flowType:{type:String,default:"workflow"},processId:String,instanceId:String,token:String,getBpmnXml:{type:Function},getInstanceHistory:{type:Function},getNodeApprovaler:{type:Function}},setup(e){const y=e;p();const h=t(null),w=n({nodeMenu:[],currentCanvasXml:null,eventType:["element.click","element.hover","element.out"]});d.create({withCredentials:!0,timeout:5e3,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"bearer "+y.token},baseURL:"/"}),o((()=>{console.log("生成bpmnModeler,展示画布"),x(y.processId,y.instanceId)}));const x=async(e,t)=>{"function"==typeof y.getBpmnXml&&(w.currentCanvasXml=await y.getBpmnXml(e),k(e,t))},k=async(e,t)=>{w.bpmnModeler&&w.bpmnModeler.destroy(),w.bpmnModeler=new m({container:h.value,additionalModules:[v,b,u,f,{bendpoints:["value",{}]}]});try{const{err:n}=await w.bpmnModeler.importXML(w.currentCanvasXml);if(n&&n.length)return console.error(n);w.bpmnModeler.get("canvas").zoom("fit-viewport","auto"),I(),j(e,t)}catch(e){console.error(`[Process Designer Warn]: ${(null==e?void 0:e.message)||e}`)}},I=()=>{let e=w.bpmnModeler.get("eventBus"),t=w.bpmnModeler.get("overlays"),n=w.bpmnModeler.get("selection");w.eventType.forEach((o=>{e.on(o,(e=>{let{element:r}=e;if(r.parent){if(!e||"bpmn:Process"===r.type)return!1;switch(o){case"element.hover":(async(e,t)=>{var n;let o="",{id:r,type:i}=e;if(!["label","bpmn:SequenceFlow"].includes(e.type)){const t=w.bpmnModeler.get("selection");t.select(null),t.select(e,!0)}if("bpmn:UserTask"==i){let e=w.nodeMenu.find((e=>e.key==r));(null==(n=null==e?void 0:e.auditor)?void 0:n.length)&&(o=`审核人:${e.auditor.map((e=>e.name)).join("、")}`,t.add(r,"tip",{position:{top:0,right:-12},html:`<div style="position: absolute;\n top: calc(50% - 5px);\n left: -10px;\n width: 0px;\n height: 0px;\n border:5px solid rgba(0, 0, 0, 0.75);\n border-top: 5px solid transparent;\n border-left: 5px solid transparent;\n border-bottom: 5px solid transparent;">\n </div>\n <div class="diagram-note"\n style="background-color: rgba(0, 0, 0, 0.75);\n color: #fff;\n font-size: 14px;\n text-align:left;\n width: 200px;\n max-height: 71px;\n padding: 5px;\n border-radius: 4px;\n word-break: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;">\n ${o}\n </div>`}))}})(r,t);break;case"element.out":n.select(null),t.clear()}}}))}))},M=(e,t)=>{const n=w.bpmnModeler.get("modeling");e.renderPathColor=t,n.setColor(e,{stroke:t})},j=async(e,t)=>{if("function"!=typeof y.getInstanceHistory)return;const n=w.bpmnModeler.get("elementRegistry");let o=n.filter((e=>!["label","bpmn:Process","bpmn:SequenceFlow"].includes(e.type))),r=await y.getInstanceHistory(e,t),i={},s=[],l=[];var p,d,m;r.historyActivity.map((e=>{-1!=e.activityId.indexOf("#multiInstanceBody")&&(s.push(e.activityId.replace("#multiInstanceBody","")),l.push(e))})),(p=r.historyActivity,d="activityId",m={},p.reduce((function(e,t){return!m[t[d]]&&(m[t[d]]=e.push(t)),e}),[])).filter((e=>![...new Set(s)].includes(e.activityId)&&"StartEvent_1"!=e.activityId&&!e.activityId.startsWith("Event_"))).map((e=>{let t=e.activityId.replace("#multiInstanceBody",""),n=e,o=l.filter((t=>e.activityId==t.activityId));(null==o?void 0:o.length)&&(n=o.reduce(((e,t)=>c(e.endTime).isBefore(t.endTime)?t:e))),i[t]=n.activityState}));let u=[];await Promise.all(o.map((async t=>{var o;if(Object.keys(i).includes(t.id)){let r=n.getGraphics(t.id).childNodes[2];a(r,{rx:10,ry:10,strokeWidth:3,strokeDasharray:0});let s=n.get(t.id);4==i[t.id]&&M(s,"#5aa36a"),2==i[t.id]&&M(s,"#d14141");let l={};if("bpmn:UserTask"==t.type){if("function"!=typeof y.getNodeApprovaler)return;l=await y.getNodeApprovaler(e,t.id),u.push({key:t.id,value:null==(o=null==t?void 0:t.businessObject)?void 0:o.name,auditor:null==l?void 0:l.auditor})}}}))),w.nodeMenu=u};return(e,t)=>(r(),i("div",g,[s(" 流程画布部分 "),l("div",{class:"canvas",ref_key:"canva",ref:h},null,512)]))}}),[["__file","BpmnWorkflow.vue"]]);export{h as default};
1
+ import{defineComponent as e,ref as t,reactive as n,onMounted as o,openBlock as r,createElementBlock as i,createCommentVNode as s,createElementVNode as l}from"vue";import"bpmn-js/dist/assets/diagram-js.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";import{attr as a}from"tiny-svg";import{useMessage as d}from"naive-ui";import p from"axios";import m from"moment";import c from"bpmn-js/lib/Viewer";import u from"./custom/customOtherModule/zoomScroll.js";import v from"bpmn-js/lib/features/modeling";import f from"diagram-js/lib/navigation/movecanvas";import b from"./custom/customOtherModule/customViewerRenderer.js";import y from"../../../_virtual/plugin-vue_export-helper.js";const g={class:"containers"};var h=y(e({__name:"BpmnWorkflow",props:{flowType:{type:String,default:"workflow"},processId:String,instanceId:String,token:String,getBpmnXml:{type:Function,default:()=>Promise.resolve({})},getInstanceHistory:{type:Function,default:()=>Promise.resolve({})},getNodeApprovaler:{type:Function,default:()=>Promise.resolve({})}},setup(e){const y=e;d();const h=t(null),w=n({nodeMenu:[],currentCanvasXml:null,eventType:["element.click","element.hover","element.out"]});p.create({withCredentials:!0,timeout:5e3,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"bearer "+y.token},baseURL:"/"}),o((()=>{console.log("生成bpmnModeler,展示画布"),x(y.processId,y.instanceId)}));const x=async(e,t)=>{"function"==typeof y.getBpmnXml&&(w.currentCanvasXml=await y.getBpmnXml(e),k(e,t))},k=async(e,t)=>{w.bpmnModeler&&w.bpmnModeler.destroy(),w.bpmnModeler=new c({container:h.value,additionalModules:[v,f,u,b,{bendpoints:["value",{}]}]});try{const{err:n}=await w.bpmnModeler.importXML(w.currentCanvasXml);if(n&&n.length)return console.error(n);w.bpmnModeler.get("canvas").zoom("fit-viewport","auto"),I(),j(e,t)}catch(e){console.error(`[Process Designer Warn]: ${(null==e?void 0:e.message)||e}`)}},I=()=>{let e=w.bpmnModeler.get("eventBus"),t=w.bpmnModeler.get("overlays"),n=w.bpmnModeler.get("selection");w.eventType.forEach((o=>{e.on(o,(e=>{let{element:r}=e;if(r.parent){if(!e||"bpmn:Process"===r.type)return!1;switch(o){case"element.hover":(async(e,t)=>{var n;let o="",{id:r,type:i}=e;if(!["label","bpmn:SequenceFlow"].includes(e.type)){const t=w.bpmnModeler.get("selection");t.select(null),t.select(e,!0)}if("bpmn:UserTask"==i){let e=w.nodeMenu.find((e=>e.key==r));(null==(n=null==e?void 0:e.auditor)?void 0:n.length)&&(o=`审核人:${e.auditor.map((e=>e.name)).join("、")}`,t.add(r,"tip",{position:{top:0,right:-12},html:`<div style="position: absolute;\n top: calc(50% - 5px);\n left: -10px;\n width: 0px;\n height: 0px;\n border:5px solid rgba(0, 0, 0, 0.75);\n border-top: 5px solid transparent;\n border-left: 5px solid transparent;\n border-bottom: 5px solid transparent;">\n </div>\n <div class="diagram-note"\n style="background-color: rgba(0, 0, 0, 0.75);\n color: #fff;\n font-size: 14px;\n text-align:left;\n width: 200px;\n max-height: 71px;\n padding: 5px;\n border-radius: 4px;\n word-break: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;">\n ${o}\n </div>`}))}})(r,t);break;case"element.out":n.select(null),t.clear()}}}))}))},M=(e,t)=>{const n=w.bpmnModeler.get("modeling");e.renderPathColor=t,n.setColor(e,{stroke:t})},j=async(e,t)=>{if("function"!=typeof y.getInstanceHistory)return;const n=w.bpmnModeler.get("elementRegistry");let o=n.filter((e=>!["label","bpmn:Process","bpmn:SequenceFlow"].includes(e.type))),r=await y.getInstanceHistory(e,t),i={},s=[],l=[];var d,p,c;r.historyActivity.map((e=>{-1!=e.activityId.indexOf("#multiInstanceBody")&&(s.push(e.activityId.replace("#multiInstanceBody","")),l.push(e))})),(d=r.historyActivity,p="activityId",c={},d.reduce((function(e,t){return!c[t[p]]&&(c[t[p]]=e.push(t)),e}),[])).filter((e=>![...new Set(s)].includes(e.activityId)&&"StartEvent_1"!=e.activityId&&!e.activityId.startsWith("Event_"))).map((e=>{let t=e.activityId.replace("#multiInstanceBody",""),n=e,o=l.filter((t=>e.activityId==t.activityId));(null==o?void 0:o.length)&&(n=o.reduce(((e,t)=>m(e.endTime).isBefore(t.endTime)?t:e))),i[t]=n.activityState}));let u=[];await Promise.all(o.map((async t=>{var o;if(Object.keys(i).includes(t.id)){let r=n.getGraphics(t.id).childNodes[2];a(r,{rx:10,ry:10,strokeWidth:3,strokeDasharray:0});let s=n.get(t.id);4==i[t.id]&&M(s,"#5aa36a"),2==i[t.id]&&M(s,"#d14141");let l={};if("bpmn:UserTask"==t.type){if("function"!=typeof y.getNodeApprovaler)return;l=await y.getNodeApprovaler(e,t.id),u.push({key:t.id,value:null==(o=null==t?void 0:t.businessObject)?void 0:o.name,auditor:null==l?void 0:l.auditor})}}}))),w.nodeMenu=u};return(e,t)=>(r(),i("div",g,[s(" 流程画布部分 "),l("div",{class:"canvas",ref_key:"canva",ref:h},null,512)]))}}),[["__file","BpmnWorkflow.vue"]]);export{h as default};
@@ -0,0 +1 @@
1
+ declare module 'bpmn-js/lib/Viewer';
@@ -0,0 +1 @@
1
+ declare module 'bpmn-js/lib/features/modeling';
@@ -0,0 +1 @@
1
+ declare module 'diagram-js/lib/navigation/movecanvas';
@@ -917,7 +917,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
917
917
  NUpload: any;
918
918
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
919
919
  NP: import("vue").DefineComponent<{
920
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
920
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
921
921
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
922
922
  aTextColor: string;
923
923
  blockquoteTextColor: string;
@@ -1128,7 +1128,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1128
1128
  themeClass: import("vue").Ref<string> | undefined;
1129
1129
  onRender: (() => void) | undefined;
1130
1130
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1131
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1131
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1132
1132
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
1133
1133
  aTextColor: string;
1134
1134
  blockquoteTextColor: string;
@@ -1339,7 +1339,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1339
1339
  readonly strong: BooleanConstructor;
1340
1340
  readonly italic: BooleanConstructor;
1341
1341
  readonly underline: BooleanConstructor;
1342
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1342
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1343
1343
  readonly tag: StringConstructor;
1344
1344
  readonly as: {
1345
1345
  readonly type: StringConstructor;
@@ -1569,7 +1569,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1569
1569
  readonly strong: BooleanConstructor;
1570
1570
  readonly italic: BooleanConstructor;
1571
1571
  readonly underline: BooleanConstructor;
1572
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1572
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1573
1573
  readonly tag: StringConstructor;
1574
1574
  readonly as: {
1575
1575
  readonly type: StringConstructor;
@@ -925,7 +925,7 @@ declare const _default: import("vue").DefineComponent<{
925
925
  NUpload: any;
926
926
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
927
927
  NP: import("vue").DefineComponent<{
928
- depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
928
+ depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
929
929
  theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
930
930
  aTextColor: string;
931
931
  blockquoteTextColor: string;
@@ -1136,7 +1136,7 @@ declare const _default: import("vue").DefineComponent<{
1136
1136
  themeClass: import("vue").Ref<string> | undefined;
1137
1137
  onRender: (() => void) | undefined;
1138
1138
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1139
- depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
1139
+ depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
1140
1140
  theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
1141
1141
  aTextColor: string;
1142
1142
  blockquoteTextColor: string;
@@ -1347,7 +1347,7 @@ declare const _default: import("vue").DefineComponent<{
1347
1347
  readonly strong: BooleanConstructor;
1348
1348
  readonly italic: BooleanConstructor;
1349
1349
  readonly underline: BooleanConstructor;
1350
- readonly depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
1350
+ readonly depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
1351
1351
  readonly tag: StringConstructor;
1352
1352
  readonly as: {
1353
1353
  readonly type: StringConstructor;
@@ -1577,7 +1577,7 @@ declare const _default: import("vue").DefineComponent<{
1577
1577
  readonly strong: BooleanConstructor;
1578
1578
  readonly italic: BooleanConstructor;
1579
1579
  readonly underline: BooleanConstructor;
1580
- readonly depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
1580
+ readonly depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
1581
1581
  readonly tag: StringConstructor;
1582
1582
  readonly as: {
1583
1583
  readonly type: StringConstructor;
@@ -1 +1 @@
1
- import{defineComponent as t,reactive as e,computed as r,onMounted as a,onUnmounted as i,watch as n,openBlock as s,createElementBlock as o,Fragment as l,createVNode as m,unref as p,withCtx as d,renderSlot as u,withModifiers as c,createCommentVNode as f,createTextVNode as y,toDisplayString as v,mergeProps as b}from"vue";import{isObject as g}from"@vue/shared";import{useMessage as P,NDropdown as I,NButton as h,NIcon as F}from"naive-ui";import{ChevronDown as w}from"@vicons/ionicons5";import{Print as k}from"./utils/print.js";import{isIReport as T}from"./utils/browserPrint.js";import S from"./components/IdentityVerification.vue.js";import{format as x}from"date-fns";import{savePrivateFormatApi as D,getPrivateFormatApi as j}from"./api.js";var E=t({__name:"ButtonPrint",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:"打印",type:String},printText:{default:"直接打印",type:String},previewText:{default:"打印预览",type:String},pdfLoadText:{default:"下载pdf",type:String},formatEditText:{default:"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1}},emits:["success","error","clickoutside"],setup(t,{expose:E,emit:L}){const N=t,M=P();let O;const V={},Y=e({spinning:!1,visible:!1,formatList:[],templateParams:{},printParams:[],currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null}),U=e([{label:N.printText,key:"printText"},{label:N.previewText,key:"previewText"},{label:N.pdfLoadText,key:"downloadPdf"},{label:N.formatEditText,key:"formatEditText"}]),B=r((()=>{if(!Y.currentFormatId)return{};let t=Y.currentFormatId;return Y.formatList.find((e=>e.id===t))})),C=r((()=>B.value.name||"格式选择")),J=r((()=>{let t=Y.formatList.find((t=>t.id===Y.currentFormatId));return null==t?void 0:t.templateId})),A=async t=>{if(N.directPrint){if(Y.spinning)return;return"button"===t?void await nt():rt()}return rt()},R=t=>m("span",{class:{active:t.key===Y.currentFormatId}},[t.label]),q=(t,e)=>{let r={type:e,formatId:Y.currentFormatId,templateId:J.value};L("success",t,r)},_=t=>{L("error",t),g(t)&&"notInstalledApp"===t.type&&M.error(t.message)},z=()=>{L("error",{message:"前置条件执行错误"})},H=(t=0)=>{var e;const r=(null==(e=N.printParams)?void 0:e.length)?N.printParams[t]:Y.printParams[t];return JSON.stringify({...r||{},...N.token?{token:N.token}:{}})},$=()=>{var t,e;let r={},a={};if(null==(t=Y.templateParams.customizeDataset)?void 0:t.length){const t=(null==(e=Object.keys(Y.printParams[0].datasetData||{}))?void 0:e[0])||"",r=JSON.stringify(Y.printParams.map((e=>JSON.parse(e.datasetData[t]))));a={datasetData:{}},a.datasetData[t]=r}else Object.keys(Y.printParams[0]).forEach((t=>{a[t]=[],Y.printParams.forEach((e=>{a[t].push(e[t])})),a[t]=a[t].join(",")}));return r=Object.assign({},JSON.parse(H(0)),a),JSON.stringify(r)},G=()=>{let t=Y.printParams.length;const e=async e=>{try{--t<=0&&q(e,"print")}catch(t){console.log("error",t)}};N.prevFn().catch((()=>(z(),Promise.reject()))).then((()=>{const t={formatId:Y.currentFormatId,templateId:J.value,printdlgshow:N.printdlgshow};if("MULTI"===N.strategy)for(let r=0;r<Y.printParams.length;r++)r>0&&(t.printdlgshow="0"),O.printDirect({...t,params:H(r)},e,_);else O.printDirect({...t,params:$()},(t=>{q(t,"print")}),_)})).finally((()=>{Y.visible=!1}))},K=async t=>{switch(t){case"printText":G();break;case"previewText":(async()=>{N.prevFn().catch((()=>(z(),Promise.reject()))).then((()=>{const t="MULTI"===N.strategy?H():$(),e={formatId:Y.currentFormatId,templateId:J.value,params:t,btnprint:N.btnprint};O.preview(e,(t=>{q(t,"preview")}),_)})).finally((()=>{Y.visible=!1}))})();break;case"formatEditText":N.prevFn().catch((()=>(z(),Promise.reject()))).then((()=>{Y.identityVerification.visible=!0})).finally((()=>{Y.visible=!1}));break;case"downloadPdf":(async()=>{N.prevFn().catch((()=>(z(),Promise.reject()))).then((()=>{const t="MULTI"===N.strategy?H():$(),e={formatId:Y.currentFormatId,templateId:J.value,print:{print:"1",type:"1"},params:t};O.downloadPDF(e,(t=>q(t,"preview")),_)})).finally((()=>{Y.visible=!1}))})();break;default:{Y.currentFormatId=t,Y.visible=!1;const e=Y.formatList.find((e=>e.id===t));await D({formatForms:[{...e}],name:V.name||e.templateName,number:V.number||e.number,templateId:V.templateId||e.templateId,...V.id?{id:V.id}:{}},{token:N.token});break}}},Q=()=>{Y.visible=!1,L("clickoutside")},W=()=>(Y.isInited=!1,Y.spinning=!1,setTimeout((()=>{Y.visible=!1}),0),!1),X=(t,e,r)=>{const a={};return e.forEach((e=>{let i=((t,e)=>{let r=t.defaultValue||"",a=e;return"NUMBER"===t.type&&(a=Number(e)||0),"DATE"===t.type&&(a=e?x(e,"YYYY-MM-DD"):""),"DATETIME"===t.type&&(a=e?x(e,"YYYY-MM-DD HH:mm:ss"):""),r||a})(e,t[e[r]]);t[e[r]]&&i&&(a[e[r]]=i)})),a},Z=({customizeDataset:t=[],param:e=[]},r=[])=>r.map((r=>{let a={};return t.forEach((t=>{const e=t.dataSetting[0].selectFieldList;a.datasetData={[t.name]:JSON.stringify(X(r,e,"fieldName"))}})),a=Object.assign({},a,X(r,e,"key")),a})),tt=async t=>{var e;if(Y.formatList=t?(t=>{let e=[];return t&&t.forEach((t=>{if(!t.format)return!1;e.push(...t.format.map((e=>Object.assign({},e,{templateName:t.name}))))})),e})(t.obj):[],Y.currentFormatId=await(async(t,e)=>{var r;if(!(null==t?void 0:t.length))return"";const{data:a}=await j({templateId:t[0].templateId},{token:N.token});if("SUCCESS"===a.result){const{formatForms:t=[]}=a.map||{};Object.assign(V,a.map||{});const e=null==(r=null==t?void 0:t[0])?void 0:r.id;if(e)return e}const i=t.find((t=>1==t[e]));return(null==i?void 0:i.id)||t[0].id})(Y.formatList,"defaultFlag"),!Y.currentFormatId)return M.error("获取打印格式失败,请联系管理员!"),W();(()=>{const t=Y.formatList.map((t=>({label:t.name,key:t.id})));U.unshift({label:C.value,key:"format",children:t})})();let r=null==(e=await N.queryTemplateParams())?void 0:e.obj;if(!r||!J.value)return M.error("获取打印模板失败,请联系管理员!"),W();Y.templateParams=r,Y.printParams=Z(Y.templateParams,N.params)},et=async()=>{if(Y.isInited)return!0;Y.isInited=!0,Y.spinning=!0,(()=>{if(O)return!1;O=new k})();const t=await N.queryPrintFormatByNumber();return await tt(t),Y.spinning=!1,!0},rt=async(t=!0)=>{var e;if(await N.clickPrevFn())if(null==(e=N.params)?void 0:e.length){if(!Y.visible){if(!await et())return!1}t&&(Y.visible=!Y.visible)}else M.warning(N.noDataMsg)},at=()=>{Y.watchPrintParamsReformatFn&&Y.watchPrintParamsReformatFn(),Y.isInited?Y.printParams=Z(Y.templateParams,N.params):Y.watchPrintParamsReformatFn=()=>n((()=>Y.isInited),(t=>{if(!t)return!1;at()}))},it=t=>{if(Y.identityVerification.visible=!1,T(Y.currentFormatId))return q(null,"edit");const e={formatId:Y.currentFormatId,templateId:J.value,params:H(),token:t};O.editPrintFormat(e,(t=>{q(t,"edit")}),_)};async function nt(){await rt(!1),G()}return a((()=>{Y.isInited=!1})),i((()=>{null==O||O.destroy()})),n((()=>N.params),(t=>{if(!(null==t?void 0:t.length))return!1;at()}),{deep:!0}),E({directPrint:nt}),(e,r)=>(s(),o(l,null,[m(p(I),{class:"c-dropdown",placement:"bottom-start",trigger:"click",show:Y.visible,onClickoutside:Q,options:U,onSelect:K,"render-label":R},{default:d((()=>[u(e.$slots,"button",{handleClickPrintBtn:rt,printSpinning:Y.spinning,printbtnText:t.btnText,printVisible:Y.visible},(()=>[m(p(h),{class:"dropdown-button",onClick:r[1]||(r[1]=c((()=>A("button")),["stop"]))},{default:d((()=>[f(' <n-spin v-show="state.spinning" size="small"></n-spin> '),y(v(t.btnText)+" ",1),m(p(F),{component:p(w),style:{"margin-left":"5px"},onClick:r[0]||(r[0]=c((()=>A("icon")),["stop"]))},null,8,["component"])])),_:1})]))])),_:3},8,["show","options"]),m(S,b(e.$attrs,{modelValue:Y.identityVerification.visible,"onUpdate:modelValue":r[2]||(r[2]=t=>Y.identityVerification.visible=t),formatId:Y.currentFormatId,templateId:p(J),onSuccess:it}),null,16,["modelValue","formatId","templateId"])],64))}});export{E as default};
1
+ import{defineComponent as t,reactive as e,computed as r,onMounted as a,onUnmounted as i,watch as n,openBlock as s,createElementBlock as o,Fragment as l,createVNode as m,unref as p,withCtx as d,renderSlot as u,withModifiers as c,createCommentVNode as f,createTextVNode as v,toDisplayString as y,mergeProps as b}from"vue";import{isObject as g}from"@vue/shared";import{useMessage as P,NDropdown as I,NButton as h,NIcon as F}from"naive-ui";import{ChevronDown as w}from"@vicons/ionicons5";import{Print as k}from"./utils/print.js";import{isIReport as T}from"./utils/browserPrint.js";import S from"./components/IdentityVerification.vue.js";import{format as x}from"date-fns";import{savePrivateFormatApi as D,getPrivateFormatApi as j}from"./api.js";var E=t({__name:"ButtonPrint",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:"打印",type:String},printText:{default:"直接打印",type:String},previewText:{default:"打印预览",type:String},pdfLoadText:{default:"下载pdf",type:String},formatEditText:{default:"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1}},emits:["success","error","clickoutside"],setup(t,{expose:E,emit:L}){const N=t,M=P();let O;const V={},Y=e({spinning:!1,visible:!1,formatList:[],templateParams:{},printParams:[],currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null}),U=e([{label:N.printText,key:"printText"},{label:N.previewText,key:"previewText"},{label:N.pdfLoadText,key:"downloadPdf"},{label:N.formatEditText,key:"formatEditText"}]),B=r((()=>{if(!Y.currentFormatId)return{};let t=Y.currentFormatId;return Y.formatList.find((e=>e.id===t))})),C=r((()=>{var t;return(null==(t=B.value)?void 0:t.name)||"格式选择"})),J=r((()=>{let t=Y.formatList.find((t=>t.id===Y.currentFormatId));return null==t?void 0:t.templateId})),A=async t=>{if(N.directPrint){if(Y.spinning)return;return"button"===t?void await nt():rt()}return rt()},R=t=>m("span",{class:{active:t.key===Y.currentFormatId}},[t.label]),q=(t,e)=>{let r={type:e,formatId:Y.currentFormatId,templateId:J.value};L("success",t,r)},_=t=>{L("error",t),g(t)&&"notInstalledApp"===t.type&&M.error(t.message)},z=()=>{L("error",{message:"前置条件执行错误"})},H=(t=0)=>{var e;const r=(null==(e=N.printParams)?void 0:e.length)?N.printParams[t]:Y.printParams[t];return JSON.stringify({...r||{},...N.token?{token:N.token}:{}})},$=()=>{var t,e;let r={},a={};if(null==(t=Y.templateParams.customizeDataset)?void 0:t.length){const t=(null==(e=Object.keys(Y.printParams[0].datasetData||{}))?void 0:e[0])||"",r=JSON.stringify(Y.printParams.map((e=>JSON.parse(e.datasetData[t]))));a={datasetData:{}},a.datasetData[t]=r}else Object.keys(Y.printParams[0]).forEach((t=>{a[t]=[],Y.printParams.forEach((e=>{a[t].push(e[t])})),a[t]=a[t].join(",")}));return r=Object.assign({},JSON.parse(H(0)),a),JSON.stringify(r)},G=()=>{let t=Y.printParams.length;const e=async e=>{try{--t<=0&&q(e,"print")}catch(t){console.log("error",t)}};N.prevFn().catch((()=>(z(),Promise.reject()))).then((()=>{const t={formatId:Y.currentFormatId,templateId:J.value,printdlgshow:N.printdlgshow};if("MULTI"===N.strategy)for(let r=0;r<Y.printParams.length;r++)r>0&&(t.printdlgshow="0"),O.printDirect({...t,params:H(r)},e,_);else O.printDirect({...t,params:$()},(t=>{q(t,"print")}),_)})).finally((()=>{Y.visible=!1}))},K=async t=>{switch(t){case"printText":G();break;case"previewText":(async()=>{N.prevFn().catch((()=>(z(),Promise.reject()))).then((()=>{const t="MULTI"===N.strategy?H():$(),e={formatId:Y.currentFormatId,templateId:J.value,params:t,btnprint:N.btnprint};O.preview(e,(t=>{q(t,"preview")}),_)})).finally((()=>{Y.visible=!1}))})();break;case"formatEditText":N.prevFn().catch((()=>(z(),Promise.reject()))).then((()=>{Y.identityVerification.visible=!0})).finally((()=>{Y.visible=!1}));break;case"downloadPdf":(async()=>{N.prevFn().catch((()=>(z(),Promise.reject()))).then((()=>{const t="MULTI"===N.strategy?H():$(),e={formatId:Y.currentFormatId,templateId:J.value,print:{print:"1",type:"1"},params:t};O.downloadPDF(e,(t=>q(t,"preview")),_)})).finally((()=>{Y.visible=!1}))})();break;default:{Y.currentFormatId=t,Y.visible=!1;const[e]=U,r=Y.formatList.find((e=>e.id===t));e.label=(null==r?void 0:r.name)||e.label,await D({formatForms:[{...r}],name:V.name||r.templateName,number:V.number||r.number,templateId:V.templateId||r.templateId,...V.id?{id:V.id}:{}},{token:N.token});break}}},Q=()=>{Y.visible=!1,L("clickoutside")},W=()=>(Y.isInited=!1,Y.spinning=!1,setTimeout((()=>{Y.visible=!1}),0),!1),X=(t,e,r)=>{const a={};return e.forEach((e=>{let i=((t,e)=>{let r=t.defaultValue||"",a=e;return"NUMBER"===t.type&&(a=Number(e)||0),"DATE"===t.type&&(a=e?x(e,"YYYY-MM-DD"):""),"DATETIME"===t.type&&(a=e?x(e,"YYYY-MM-DD HH:mm:ss"):""),r||a})(e,t[e[r]]);t[e[r]]&&i&&(a[e[r]]=i)})),a},Z=({customizeDataset:t=[],param:e=[]},r=[])=>r.map((r=>{let a={};return t.forEach((t=>{const e=t.dataSetting[0].selectFieldList;a.datasetData={[t.name]:JSON.stringify(X(r,e,"fieldName"))}})),a=Object.assign({},a,X(r,e,"key")),a})),tt=async t=>{var e;if(Y.formatList=t?(t=>{let e=[];return t&&t.forEach((t=>{if(!t.format)return!1;e.push(...t.format.map((e=>Object.assign({},e,{templateName:t.name}))))})),e})(t.obj):[],Y.currentFormatId=await(async(t,e)=>{var r;if(!(null==t?void 0:t.length))return"";const{data:a}=await j({templateId:t[0].templateId},{token:N.token});if("SUCCESS"===a.result){const{formatForms:e=[]}=a.map||{};Object.assign(V,a.map||{});const i=null==(r=null==e?void 0:e[0])?void 0:r.id;if(i&&t.map((t=>t.id)).includes(i))return i}const i=t.find((t=>1==t[e]));return(null==i?void 0:i.id)||t[0].id})(Y.formatList,"defaultFlag"),!Y.currentFormatId)return M.error("获取打印格式失败,请联系管理员!"),W();(()=>{const t=Y.formatList.map((t=>({label:t.name,key:t.id})));U.unshift({label:C.value,key:"format",children:t})})();let r=null==(e=await N.queryTemplateParams())?void 0:e.obj;if(!r||!J.value)return M.error("获取打印模板失败,请联系管理员!"),W();Y.templateParams=r,Y.printParams=Z(Y.templateParams,N.params)},et=async()=>{if(Y.isInited)return!0;Y.isInited=!0,Y.spinning=!0,(()=>{if(O)return!1;O=new k})();const t=await N.queryPrintFormatByNumber();return await tt(t),Y.spinning=!1,!0},rt=async(t=!0)=>{var e;if(await N.clickPrevFn())if(null==(e=N.params)?void 0:e.length){if(!Y.visible){if(!await et())return!1}t&&(Y.visible=!Y.visible)}else M.warning(N.noDataMsg)},at=()=>{Y.watchPrintParamsReformatFn&&Y.watchPrintParamsReformatFn(),Y.isInited?Y.printParams=Z(Y.templateParams,N.params):Y.watchPrintParamsReformatFn=()=>n((()=>Y.isInited),(t=>{if(!t)return!1;at()}))},it=t=>{if(Y.identityVerification.visible=!1,T(Y.currentFormatId))return q(null,"edit");const e={formatId:Y.currentFormatId,templateId:J.value,params:H(),token:t};O.editPrintFormat(e,(t=>{q(t,"edit")}),_)};async function nt(){await rt(!1),G()}return a((()=>{Y.isInited=!1})),i((()=>{null==O||O.destroy()})),n((()=>N.params),(t=>{if(!(null==t?void 0:t.length))return!1;at()}),{deep:!0}),E({directPrint:nt}),(e,r)=>(s(),o(l,null,[m(p(I),{class:"c-dropdown",placement:"bottom-start",trigger:"click",show:Y.visible,onClickoutside:Q,options:U,onSelect:K,"render-label":R},{default:d((()=>[u(e.$slots,"button",{handleClickPrintBtn:rt,printSpinning:Y.spinning,printbtnText:t.btnText,printVisible:Y.visible},(()=>[m(p(h),{class:"dropdown-button",onClick:r[1]||(r[1]=c((()=>A("button")),["stop"]))},{default:d((()=>[f(' <n-spin v-show="state.spinning" size="small"></n-spin> '),v(y(t.btnText)+" ",1),m(p(F),{component:p(w),style:{"margin-left":"5px"},onClick:r[0]||(r[0]=c((()=>A("icon")),["stop"]))},null,8,["component"])])),_:1})]))])),_:3},8,["show","options"]),m(S,b(e.$attrs,{modelValue:Y.identityVerification.visible,"onUpdate:modelValue":r[2]||(r[2]=t=>Y.identityVerification.visible=t),formatId:Y.currentFormatId,templateId:p(J),onSuccess:it}),null,16,["modelValue","formatId","templateId"])],64))}});export{E as default};
@@ -363,7 +363,7 @@ declare const _default: import("vue").DefineComponent<{
363
363
  NUpload: any;
364
364
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
365
365
  NP: import("vue").DefineComponent<{
366
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
366
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
367
367
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
368
368
  aTextColor: string;
369
369
  blockquoteTextColor: string;
@@ -574,7 +574,7 @@ declare const _default: import("vue").DefineComponent<{
574
574
  themeClass: import("vue").Ref<string> | undefined;
575
575
  onRender: (() => void) | undefined;
576
576
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
577
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
577
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
578
578
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
579
579
  aTextColor: string;
580
580
  blockquoteTextColor: string;
@@ -785,7 +785,7 @@ declare const _default: import("vue").DefineComponent<{
785
785
  readonly strong: BooleanConstructor;
786
786
  readonly italic: BooleanConstructor;
787
787
  readonly underline: BooleanConstructor;
788
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
788
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
789
789
  readonly tag: StringConstructor;
790
790
  readonly as: {
791
791
  readonly type: StringConstructor;
@@ -1015,7 +1015,7 @@ declare const _default: import("vue").DefineComponent<{
1015
1015
  readonly strong: BooleanConstructor;
1016
1016
  readonly italic: BooleanConstructor;
1017
1017
  readonly underline: BooleanConstructor;
1018
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1018
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1019
1019
  readonly tag: StringConstructor;
1020
1020
  readonly as: {
1021
1021
  readonly type: StringConstructor;
@@ -720,7 +720,7 @@ declare const _default: import("vue").DefineComponent<{
720
720
  NUpload: any;
721
721
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
722
722
  NP: import("vue").DefineComponent<{
723
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
723
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
724
724
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
725
725
  aTextColor: string;
726
726
  blockquoteTextColor: string;
@@ -931,7 +931,7 @@ declare const _default: import("vue").DefineComponent<{
931
931
  themeClass: import("vue").Ref<string> | undefined;
932
932
  onRender: (() => void) | undefined;
933
933
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
934
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
934
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
935
935
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
936
936
  aTextColor: string;
937
937
  blockquoteTextColor: string;
@@ -1142,7 +1142,7 @@ declare const _default: import("vue").DefineComponent<{
1142
1142
  readonly strong: BooleanConstructor;
1143
1143
  readonly italic: BooleanConstructor;
1144
1144
  readonly underline: BooleanConstructor;
1145
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1145
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1146
1146
  readonly tag: StringConstructor;
1147
1147
  readonly as: {
1148
1148
  readonly type: StringConstructor;
@@ -1372,7 +1372,7 @@ declare const _default: import("vue").DefineComponent<{
1372
1372
  readonly strong: BooleanConstructor;
1373
1373
  readonly italic: BooleanConstructor;
1374
1374
  readonly underline: BooleanConstructor;
1375
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1375
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1376
1376
  readonly tag: StringConstructor;
1377
1377
  readonly as: {
1378
1378
  readonly type: StringConstructor;
@@ -184,7 +184,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
184
184
  titleName: import("vue").ComputedRef<string>;
185
185
  tooltipTilte: import("vue").ComputedRef<(item: any) => string>;
186
186
  handleFold: (item: import("..").ITreeDataType) => void;
187
- handleItemClick: (child: any, i?: number | undefined, p?: import("..").ITreeDataType | undefined) => void;
187
+ handleItemClick: (child: import("..").IClassifyItemType, i?: number | undefined, p?: import("..").ITreeDataType | undefined) => void;
188
188
  initTree: (conditionSidTemp: string[]) => import("..").IClassifyListType[];
189
189
  getConditionSid: (sid: string, conditionSidVal: string[], p?: import("..").ITreeDataType | undefined) => string[];
190
190
  handleModeChange: () => void;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { IClassifyListType, ITreeDataType, IConditionMapType } from '../../../../es/components/table-filter/src/types';
2
+ import { IClassifyListType, ITreeDataType, IConditionMapType, IClassifyItemType } from '../../../../es/components/table-filter/src/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  tableId: {
5
5
  type: StringConstructor;
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
185
185
  titleName: import("vue").ComputedRef<string>;
186
186
  tooltipTilte: import("vue").ComputedRef<(item: any) => string>;
187
187
  handleFold: (item: ITreeDataType) => void;
188
- handleItemClick: (child: any, i?: number, p?: ITreeDataType) => void;
188
+ handleItemClick: (child: IClassifyItemType, i?: number, p?: ITreeDataType) => void;
189
189
  initTree: (conditionSidTemp: string[]) => IClassifyListType[];
190
190
  getConditionSid: (sid: string, conditionSidVal: string[], p?: ITreeDataType) => string[];
191
191
  handleModeChange: () => void;