cnhis-design-vue 3.2.4-beta.25 → 3.2.4-beta.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (255) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/button-print/index.d.ts +4 -0
  7. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -0
  8. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
  9. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  10. package/es/components/classification/src/index.vue.d.ts +3 -0
  11. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  12. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  13. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  14. package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
  15. package/es/components/form-config/index.d.ts +50 -7070
  16. package/es/components/form-config/src/FormConfig.vue.d.ts +84 -7104
  17. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  18. package/es/components/iho-table/src/plugins/defaultConfigPlugin.js +1 -1
  19. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +1 -1
  20. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowClassName.d.ts +2 -0
  21. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowClassName.js +1 -0
  22. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  23. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  24. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  25. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  26. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  27. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  28. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  29. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  30. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  31. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  32. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  33. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  34. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  35. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  36. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  37. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  38. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  39. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  40. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  41. package/es/shared/assets/img/emoji/emotion_001.png.js +1 -1
  42. package/es/shared/assets/img/emoji/emotion_002.png.js +1 -1
  43. package/es/shared/assets/img/emoji/emotion_003.png.js +1 -1
  44. package/es/shared/assets/img/emoji/emotion_004.png.js +1 -1
  45. package/es/shared/assets/img/emoji/emotion_005.png.js +1 -1
  46. package/es/shared/assets/img/emoji/emotion_006.png.js +1 -1
  47. package/es/shared/assets/img/emoji/emotion_007.png.js +1 -1
  48. package/es/shared/assets/img/emoji/emotion_008.png.js +1 -1
  49. package/es/shared/assets/img/emoji/emotion_009.png.js +1 -1
  50. package/es/shared/assets/img/emoji/emotion_010.png.js +1 -1
  51. package/es/shared/assets/img/emoji/emotion_011.png.js +1 -1
  52. package/es/shared/assets/img/emoji/emotion_012.png.js +1 -1
  53. package/es/shared/assets/img/emoji/emotion_013.png.js +1 -1
  54. package/es/shared/assets/img/emoji/emotion_014.png.js +1 -1
  55. package/es/shared/assets/img/emoji/emotion_015.png.js +1 -1
  56. package/es/shared/assets/img/emoji/emotion_016.png.js +1 -1
  57. package/es/shared/assets/img/emoji/emotion_017.png.js +1 -1
  58. package/es/shared/assets/img/emoji/emotion_018.png.js +1 -1
  59. package/es/shared/assets/img/emoji/emotion_019.png.js +1 -1
  60. package/es/shared/assets/img/emoji/emotion_020.png.js +1 -1
  61. package/es/shared/assets/img/emoji/emotion_021.png.js +1 -1
  62. package/es/shared/assets/img/emoji/emotion_022.png.js +1 -1
  63. package/es/shared/assets/img/emoji/emotion_023.png.js +1 -1
  64. package/es/shared/assets/img/emoji/emotion_024.png.js +1 -1
  65. package/es/shared/assets/img/emoji/emotion_025.png.js +1 -1
  66. package/es/shared/assets/img/emoji/emotion_026.png.js +1 -1
  67. package/es/shared/assets/img/emoji/emotion_027.png.js +1 -1
  68. package/es/shared/assets/img/emoji/emotion_028.png.js +1 -1
  69. package/es/shared/assets/img/emoji/emotion_029.png.js +1 -1
  70. package/es/shared/assets/img/emoji/emotion_030.png.js +1 -1
  71. package/es/shared/assets/img/emoji/emotion_031.png.js +1 -1
  72. package/es/shared/assets/img/emoji/emotion_032.png.js +1 -1
  73. package/es/shared/assets/img/emoji/emotion_033.png.js +1 -1
  74. package/es/shared/assets/img/emoji/emotion_034.png.js +1 -1
  75. package/es/shared/assets/img/emoji/emotion_035.png.js +1 -1
  76. package/es/shared/assets/img/emoji/emotion_036.png.js +1 -1
  77. package/es/shared/assets/img/emoji/emotion_037.png.js +1 -1
  78. package/es/shared/assets/img/emoji/emotion_038.png.js +1 -1
  79. package/es/shared/assets/img/emoji/emotion_039.png.js +1 -1
  80. package/es/shared/assets/img/emoji/emotion_040.png.js +1 -1
  81. package/es/shared/assets/img/emoji/emotion_041.png.js +1 -1
  82. package/es/shared/assets/img/emoji/emotion_042.png.js +1 -1
  83. package/es/shared/assets/img/emoji/emotion_043.png.js +1 -1
  84. package/es/shared/assets/img/emoji/emotion_044.png.js +1 -1
  85. package/es/shared/assets/img/emoji/emotion_045.png.js +1 -1
  86. package/es/shared/assets/img/emoji/emotion_046.png.js +1 -1
  87. package/es/shared/assets/img/emoji/emotion_047.png.js +1 -1
  88. package/es/shared/assets/img/emoji/emotion_048.png.js +1 -1
  89. package/es/shared/assets/img/emoji/emotion_049.png.js +1 -1
  90. package/es/shared/assets/img/emoji/emotion_050.png.js +1 -1
  91. package/es/shared/assets/img/emoji/emotion_051.png.js +1 -1
  92. package/es/shared/assets/img/emoji/emotion_052.png.js +1 -1
  93. package/es/shared/assets/img/emoji/emotion_053.png.js +1 -1
  94. package/es/shared/assets/img/emoji/emotion_054.png.js +1 -1
  95. package/es/shared/assets/img/emoji/emotion_055.png.js +1 -1
  96. package/es/shared/assets/img/emoji/emotion_056.png.js +1 -1
  97. package/es/shared/assets/img/emoji/emotion_057.png.js +1 -1
  98. package/es/shared/assets/img/emoji/emotion_058.png.js +1 -1
  99. package/es/shared/assets/img/emoji/emotion_059.png.js +1 -1
  100. package/es/shared/assets/img/emoji/emotion_060.png.js +1 -1
  101. package/es/shared/assets/img/emoji/emotion_061.png.js +1 -1
  102. package/es/shared/assets/img/emoji/emotion_062.png.js +1 -1
  103. package/es/shared/assets/img/emoji/emotion_063.png.js +1 -1
  104. package/es/shared/assets/img/emoji/emotion_064.png.js +1 -1
  105. package/es/shared/assets/img/emoji/emotion_065.png.js +1 -1
  106. package/es/shared/assets/img/emoji/emotion_066.png.js +1 -1
  107. package/es/shared/assets/img/emoji/emotion_067.png.js +1 -1
  108. package/es/shared/assets/img/emoji/emotion_068.png.js +1 -1
  109. package/es/shared/assets/img/emoji/emotion_069.png.js +1 -1
  110. package/es/shared/assets/img/emoji/emotion_070.png.js +1 -1
  111. package/es/shared/assets/img/emoji/emotion_071.png.js +1 -1
  112. package/es/shared/assets/img/emoji/emotion_072.png.js +1 -1
  113. package/es/shared/assets/img/emoji/emotion_073.png.js +1 -1
  114. package/es/shared/assets/img/emoji/emotion_074.png.js +1 -1
  115. package/es/shared/assets/img/emoji/emotion_075.png.js +1 -1
  116. package/es/shared/assets/img/emoji/emotion_076.png.js +1 -1
  117. package/es/shared/assets/img/emoji/emotion_077.png.js +1 -1
  118. package/es/shared/assets/img/emoji/emotion_078.png.js +1 -1
  119. package/es/shared/assets/img/emoji/emotion_079.png.js +1 -1
  120. package/es/shared/assets/img/emoji/emotion_080.png.js +1 -1
  121. package/es/shared/assets/img/emoji/emotion_081.png.js +1 -1
  122. package/es/shared/assets/img/emoji/emotion_082.png.js +1 -1
  123. package/es/shared/assets/img/emoji/emotion_083.png.js +1 -1
  124. package/es/shared/assets/img/emoji/emotion_084.png.js +1 -1
  125. package/es/shared/assets/img/emoji/emotion_085.png.js +1 -1
  126. package/es/shared/assets/img/emoji/emotion_086.png.js +1 -1
  127. package/es/shared/assets/img/emoji/emotion_087.png.js +1 -1
  128. package/es/shared/assets/img/emoji/emotion_088.png.js +1 -1
  129. package/es/shared/assets/img/emoji/emotion_089.png.js +1 -1
  130. package/es/shared/assets/img/emoji/emotion_090.png.js +1 -1
  131. package/es/shared/assets/img/emoji/emotion_091.png.js +1 -1
  132. package/es/shared/assets/img/emoji/emotion_092.png.js +1 -1
  133. package/es/shared/assets/img/emoji/emotion_093.png.js +1 -1
  134. package/es/shared/assets/img/emoji/emotion_094.png.js +1 -1
  135. package/es/shared/assets/img/emoji/emotion_095.png.js +1 -1
  136. package/es/shared/assets/img/emoji/emotion_096.png.js +1 -1
  137. package/es/shared/assets/img/emoji/emotion_097.png.js +1 -1
  138. package/es/shared/assets/img/emoji/emotion_098.png.js +1 -1
  139. package/es/shared/assets/img/emoji/emotion_099.png.js +1 -1
  140. package/es/shared/assets/img/emoji/emotion_100.png.js +1 -1
  141. package/es/shared/assets/img/emoji/emotion_101.png.js +1 -1
  142. package/es/shared/assets/img/emoji/emotion_102.png.js +1 -1
  143. package/es/shared/assets/img/emoji/emotion_103.png.js +1 -1
  144. package/es/shared/assets/img/emoji/emotion_104.png.js +1 -1
  145. package/es/shared/assets/img/emoji/emotion_105.png.js +1 -1
  146. package/es/shared/assets/img/emoji/emotion_106.png.js +1 -1
  147. package/es/shared/assets/img/emoji/emotion_107.png.js +1 -1
  148. package/es/shared/assets/img/emoji/emotion_108.png.js +1 -1
  149. package/es/shared/assets/img/emoji/emotion_109.png.js +1 -1
  150. package/es/shared/assets/img/emoji/emotion_110.png.js +1 -1
  151. package/es/shared/assets/img/emoji/emotion_111.png.js +1 -1
  152. package/es/shared/assets/img/emoji/emotion_112.png.js +1 -1
  153. package/es/shared/assets/img/emoji/emotion_113.png.js +1 -1
  154. package/es/shared/assets/img/emoji/emotion_114.png.js +1 -1
  155. package/es/shared/assets/img/emoji/emotion_115.png.js +1 -1
  156. package/es/shared/assets/img/emoji/emotion_116.png.js +1 -1
  157. package/es/shared/assets/img/emoji/emotion_117.png.js +1 -1
  158. package/es/shared/assets/img/emoji/emotion_118.png.js +1 -1
  159. package/es/shared/assets/img/emoji/emotion_119.png.js +1 -1
  160. package/es/shared/assets/img/emoji/emotion_120.png.js +1 -1
  161. package/es/shared/assets/img/emoji/emotion_121.png.js +1 -1
  162. package/es/shared/assets/img/emoji/emotion_122.png.js +1 -1
  163. package/es/shared/assets/img/emoji/emotion_123.png.js +1 -1
  164. package/es/shared/assets/img/emoji/emotion_124.png.js +1 -1
  165. package/es/shared/assets/img/emoji/emotion_125.png.js +1 -1
  166. package/es/shared/assets/img/emoji/emotion_126.png.js +1 -1
  167. package/es/shared/assets/img/emoji/emotion_127.png.js +1 -1
  168. package/es/shared/assets/img/emoji/emotion_128.png.js +1 -1
  169. package/es/shared/assets/img/emoji/emotion_129.png.js +1 -1
  170. package/es/shared/assets/img/emoji/emotion_130.png.js +1 -1
  171. package/es/shared/assets/img/emoji/emotion_131.png.js +1 -1
  172. package/es/shared/assets/img/emoji/emotion_132.png.js +1 -1
  173. package/es/shared/assets/img/emoji/emotion_133.png.js +1 -1
  174. package/es/shared/assets/img/emoji/emotion_134.png.js +1 -1
  175. package/es/shared/assets/img/emoji/emotion_135.png.js +1 -1
  176. package/es/shared/assets/img/emoji/emotion_136.png.js +1 -1
  177. package/es/shared/assets/img/emoji/emotion_137.png.js +1 -1
  178. package/es/shared/assets/img/emoji/emotion_138.png.js +1 -1
  179. package/es/shared/assets/img/emoji/emotion_139.png.js +1 -1
  180. package/es/shared/assets/img/emoji/emotion_140.png.js +1 -1
  181. package/es/shared/assets/img/emoji/emotion_141.png.js +1 -1
  182. package/es/shared/assets/img/emoji/emotion_142.png.js +1 -1
  183. package/es/shared/assets/img/emoji/emotion_143.png.js +1 -1
  184. package/es/shared/assets/img/emoji/emotion_144.png.js +1 -1
  185. package/es/shared/assets/img/emoji/emotion_145.png.js +1 -1
  186. package/es/shared/assets/img/emoji/emotion_146.png.js +1 -1
  187. package/es/shared/assets/img/emoji/emotion_147.png.js +1 -1
  188. package/es/shared/assets/img/emoji/emotion_148.png.js +1 -1
  189. package/es/shared/assets/img/emoji/emotion_149.png.js +1 -1
  190. package/es/shared/assets/img/emoji/emotion_150.png.js +1 -1
  191. package/es/shared/assets/img/emoji/emotion_151.png.js +1 -1
  192. package/es/shared/assets/img/emoji/emotion_152.png.js +1 -1
  193. package/es/shared/assets/img/emoji/emotion_153.png.js +1 -1
  194. package/es/shared/assets/img/emoji/emotion_154.png.js +1 -1
  195. package/es/shared/assets/img/emoji/emotion_155.png.js +1 -1
  196. package/es/shared/assets/img/emoji/emotion_156.png.js +1 -1
  197. package/es/shared/assets/img/emoji/emotion_157.png.js +1 -1
  198. package/es/shared/assets/img/emoji/emotion_158.png.js +1 -1
  199. package/es/shared/assets/img/emoji/emotion_159.png.js +1 -1
  200. package/es/shared/assets/img/emoji/emotion_160.png.js +1 -1
  201. package/es/shared/assets/img/emoji/emotion_161.png.js +1 -1
  202. package/es/shared/assets/img/emoji/emotion_162.png.js +1 -1
  203. package/es/shared/assets/img/emoji/emotion_163.png.js +1 -1
  204. package/es/shared/assets/img/emoji/emotion_164.png.js +1 -1
  205. package/es/shared/assets/img/emoji/emotion_165.png.js +1 -1
  206. package/es/shared/assets/img/emoji/emotion_166.png.js +1 -1
  207. package/es/shared/assets/img/emoji/emotion_167.png.js +1 -1
  208. package/es/shared/assets/img/failure.png.js +1 -1
  209. package/es/shared/assets/img/no-permission.png.js +1 -1
  210. package/es/shared/assets/img/nodata.png.js +1 -1
  211. package/es/shared/assets/img/notfound.png.js +1 -1
  212. package/es/shared/assets/img/qr.png.js +1 -1
  213. package/es/shared/assets/img/success.png.js +1 -1
  214. package/es/shared/assets/img/table_style_2.png.js +1 -1
  215. package/es/shared/assets/img/tooth/l-b-1.png.js +1 -1
  216. package/es/shared/assets/img/tooth/l-b-2.png.js +1 -1
  217. package/es/shared/assets/img/tooth/l-b-3.png.js +1 -1
  218. package/es/shared/assets/img/tooth/l-b-4.png.js +1 -1
  219. package/es/shared/assets/img/tooth/l-b-5.png.js +1 -1
  220. package/es/shared/assets/img/tooth/l-b-6.png.js +1 -1
  221. package/es/shared/assets/img/tooth/l-b-7.png.js +1 -1
  222. package/es/shared/assets/img/tooth/l-b-8.png.js +1 -1
  223. package/es/shared/assets/img/tooth/l-t-1.png.js +1 -1
  224. package/es/shared/assets/img/tooth/l-t-2.png.js +1 -1
  225. package/es/shared/assets/img/tooth/l-t-3.png.js +1 -1
  226. package/es/shared/assets/img/tooth/l-t-4.png.js +1 -1
  227. package/es/shared/assets/img/tooth/l-t-5.png.js +1 -1
  228. package/es/shared/assets/img/tooth/l-t-6.png.js +1 -1
  229. package/es/shared/assets/img/tooth/l-t-7.png.js +1 -1
  230. package/es/shared/assets/img/tooth/l-t-8.png.js +1 -1
  231. package/es/shared/assets/img/tooth/r-b-1.png.js +1 -1
  232. package/es/shared/assets/img/tooth/r-b-2.png.js +1 -1
  233. package/es/shared/assets/img/tooth/r-b-3.png.js +1 -1
  234. package/es/shared/assets/img/tooth/r-b-4.png.js +1 -1
  235. package/es/shared/assets/img/tooth/r-b-5.png.js +1 -1
  236. package/es/shared/assets/img/tooth/r-b-6.png.js +1 -1
  237. package/es/shared/assets/img/tooth/r-b-7.png.js +1 -1
  238. package/es/shared/assets/img/tooth/r-b-8.png.js +1 -1
  239. package/es/shared/assets/img/tooth/r-t-1.png.js +1 -1
  240. package/es/shared/assets/img/tooth/r-t-2.png.js +1 -1
  241. package/es/shared/assets/img/tooth/r-t-3.png.js +1 -1
  242. package/es/shared/assets/img/tooth/r-t-4.png.js +1 -1
  243. package/es/shared/assets/img/tooth/r-t-5.png.js +1 -1
  244. package/es/shared/assets/img/tooth/r-t-6.png.js +1 -1
  245. package/es/shared/assets/img/tooth/r-t-7.png.js +1 -1
  246. package/es/shared/assets/img/tooth/r-t-8.png.js +1 -1
  247. package/es/shared/assets/img/video.png.js +1 -1
  248. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  249. package/es/shared/assets/img/xb_big.png.js +1 -1
  250. package/es/shared/assets/img/xb_small.png.js +1 -1
  251. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  252. package/es/shared/package.json.js +1 -1
  253. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  254. package/es/shared/utils/tapable/index.d.ts +139 -0
  255. package/package.json +2 -2
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -0,0 +1 @@
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';
@@ -290,6 +290,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
290
290
  default: () => {
291
291
  isShowPrintAll: boolean;
292
292
  isShowOutSetting: boolean;
293
+ customProps: {};
293
294
  };
294
295
  };
295
296
  }, {
@@ -395,6 +396,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
395
396
  default: () => {
396
397
  isShowPrintAll: boolean;
397
398
  isShowOutSetting: boolean;
399
+ customProps: {};
398
400
  };
399
401
  };
400
402
  }>> & {}>>;
@@ -435,6 +437,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
435
437
  getTemplateIdByFormatId: import("vue").ComputedRef<any>;
436
438
  isShowPrintAllBtn: import("vue").ComputedRef<any>;
437
439
  isShowOutSettingBtn: import("vue").ComputedRef<any>;
440
+ printCustomProps: import("vue").ComputedRef<any>;
438
441
  showSettingItems: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
439
442
  isSelectedAll: import("vue").WritableComputedRef<boolean>;
440
443
  initShowDownList: () => Promise<void>;
@@ -2216,6 +2219,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
2216
2219
  default: () => {
2217
2220
  isShowPrintAll: boolean;
2218
2221
  isShowOutSetting: boolean;
2222
+ customProps: {};
2219
2223
  };
2220
2224
  };
2221
2225
  }>>, {
@@ -296,6 +296,7 @@ declare const _default: import("vue").DefineComponent<{
296
296
  default: () => {
297
297
  isShowPrintAll: boolean;
298
298
  isShowOutSetting: boolean;
299
+ customProps: {};
299
300
  };
300
301
  };
301
302
  }, {
@@ -401,6 +402,7 @@ declare const _default: import("vue").DefineComponent<{
401
402
  default: () => {
402
403
  isShowPrintAll: boolean;
403
404
  isShowOutSetting: boolean;
405
+ customProps: {};
404
406
  };
405
407
  };
406
408
  }>> & {}>>;
@@ -441,6 +443,7 @@ declare const _default: import("vue").DefineComponent<{
441
443
  getTemplateIdByFormatId: import("vue").ComputedRef<any>;
442
444
  isShowPrintAllBtn: import("vue").ComputedRef<any>;
443
445
  isShowOutSettingBtn: import("vue").ComputedRef<any>;
446
+ printCustomProps: import("vue").ComputedRef<any>;
444
447
  showSettingItems: import("vue").ComputedRef<AnyObject[]>;
445
448
  isSelectedAll: import("vue").WritableComputedRef<boolean>;
446
449
  initShowDownList: () => Promise<void>;
@@ -2222,6 +2225,7 @@ declare const _default: import("vue").DefineComponent<{
2222
2225
  default: () => {
2223
2226
  isShowPrintAll: boolean;
2224
2227
  isShowOutSetting: boolean;
2228
+ customProps: {};
2225
2229
  };
2226
2230
  };
2227
2231
  }>>, {
@@ -99,6 +99,7 @@ declare const _default: import("vue").DefineComponent<{
99
99
  default: () => {
100
100
  isShowPrintAll: boolean;
101
101
  isShowOutSetting: boolean;
102
+ customProps: {};
102
103
  };
103
104
  };
104
105
  }, {
@@ -207,6 +208,7 @@ declare const _default: import("vue").DefineComponent<{
207
208
  default: () => {
208
209
  isShowPrintAll: boolean;
209
210
  isShowOutSetting: boolean;
211
+ customProps: {};
210
212
  };
211
213
  };
212
214
  }>> & {}>>;
@@ -247,6 +249,7 @@ declare const _default: import("vue").DefineComponent<{
247
249
  getTemplateIdByFormatId: import("vue").ComputedRef<any>;
248
250
  isShowPrintAllBtn: import("vue").ComputedRef<any>;
249
251
  isShowOutSettingBtn: import("vue").ComputedRef<any>;
252
+ printCustomProps: import("vue").ComputedRef<any>;
250
253
  showSettingItems: import("vue").ComputedRef<AnyObject[]>;
251
254
  isSelectedAll: import("vue").WritableComputedRef<boolean>;
252
255
  initShowDownList: () => Promise<void>;
@@ -2031,6 +2034,7 @@ declare const _default: import("vue").DefineComponent<{
2031
2034
  default: () => {
2032
2035
  isShowPrintAll: boolean;
2033
2036
  isShowOutSetting: boolean;
2037
+ customProps: {};
2034
2038
  };
2035
2039
  };
2036
2040
  }>>, {
@@ -1 +1 @@
1
- import{defineComponent as t,inject as e,ref as n,reactive as i,computed as r,onMounted as a,watch as o,openBlock as l,createElementBlock as s,Fragment as c,createElementVNode as p,createCommentVNode as u,createVNode as d,unref as m,withCtx as y,renderList as f,createBlock as v,createTextVNode as g,toDisplayString as k,isRef as h,renderSlot as b,withModifiers as w,normalizeClass as P,mergeProps as O}from"vue";import{isObject as S}from"@vue/shared";import{useMessage as C,NButtonGroup as I,NDropdown as T,NButton as L,NIcon as M,NPopover as F,NCheckbox as j,NDivider as x}from"naive-ui";import{PrintOutline as E,SettingsOutline as N,ChevronDownSharp as _,ArrowForwardOutline as D}from"@vicons/ionicons5";import{InjectionButtonPrintEmits as z}from"../constants/index.js";import{Print as J}from"../utils/print.js";import{isIReport as U}from"../utils/browserPrint.js";import V from"./IdentityVerification.vue.js";import{format as A}from"date-fns";import"../api.js";const B={class:"newprint-button-outer"},R=p("span",{class:"label bold"},"外显设置",-1),H={class:"newprint-button-poperOver"},K={class:"print-lite"},q={class:"label bold"},G={class:"print-li"},Y={class:"print-lite"},$={class:"newprint-button-poperOver"},Q=["onMouseenter","onClick"],W={class:"label bold"},X={class:"newprint-button-poperOver"},Z={class:"print-lite"},tt={class:"label bold"},et={class:"print-li"},nt={class:"print-lite"},it={class:"print-lite"},rt=["onClick"],at={class:"newprint-button-poperOver"},ot=["onMouseenter"],lt={class:"print-lite"},st=["onClick"];var ct=t({__name:"NewPrintComponent",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},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number,default:1},newPrintSetting:{type:Object,default:()=>({isShowPrintAll:!0,isShowOutSetting:!0})}},setup(t,{expose:ct}){const pt=t,ut=[{label:"分割线",key:"divider"},{label:"外显设置",key:"outSetting"}],dt=C();let mt;const yt=e(z),ft=n(""),vt=i({spinning:!1,visible:!1,formatList:[],templateParams:{},printParams:[],currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null,isClickOuterPrint:!1});let gt=n([]),kt=n([{label:pt.pdfLoadText,key:"downloadPdf"},{label:pt.previewText,key:"previewText"},{label:pt.formatEditText,key:"formatEditText"},{label:"重置打印机",key:"resetPrinter"}]);const ht=i({oneMouseType:"",oneClickType:"",twoMouseType:""}),bt=i({oneShow:!1,isOperation:!1,isOutSetting:!1}),wt=n([]),Pt=n([]),Ot=r((()=>{if(!vt.currentFormatId)return{};let t=vt.currentFormatId;return vt.formatList.find((e=>e.id===t))}));r((()=>{var t;return(null==(t=Ot.value)?void 0:t.name)||"格式选择"}));const St=r((()=>{let t=vt.formatList.find((t=>t.id===vt.currentFormatId));return null==t?void 0:t.templateId})),Ct=r((()=>{var t;return null==(t=pt.newPrintSetting)?void 0:t.isShowPrintAll})),It=r((()=>{var t;return null==(t=pt.newPrintSetting)?void 0:t.isShowOutSetting})),Tt=r((()=>{const t=ut.map((t=>t.key));return gt.value.filter((e=>!t.includes(e.key)))})),Lt=r({get:()=>Tt.value.every((t=>t.selected)),set(t){Tt.value.forEach((e=>{e.selected=t}))}}),Mt=async()=>{await Zt(),bt.oneShow=!0},Ft=async t=>{if(pt.directPrint){if(vt.spinning)return;return"button"===t?void await ne():Mt()}return Mt()},jt=(t,e)=>{ht[t]=e},xt=()=>{wt.value=gt.value.filter((t=>!t.selected)),Pt.value=Tt.value.filter((t=>t.selected)).map((t=>({...t,isLoading:!1}))),Nt("oneShow"),Nt("isOutSetting")},Et=t=>{bt[t]=!0},Nt=t=>{ht.oneClickType="",bt[t]=!1,"isOutSetting"==t&&(bt.isOutSetting=!1)},_t=(t,e)=>{At(!1);let n={type:e,formatId:vt.currentFormatId,templateId:St.value};yt("success",t,n)},Dt=t=>{At(!1),yt("error",t),S(t)&&"notInstalledApp"===t.type&&dt.error(t.message)},zt=t=>{At(!1),yt("cancel",t)},Jt=t=>{yt("error",{message:"前置条件执行错误",type:t,preExecution:!0})},Ut=()=>JSON.stringify({...pt.token?{token:pt.token}:{}}),Vt=(t=[],e)=>{var n,i;let r={},a={};if((null==(n=vt.templateParams[e].customizeDataset)?void 0:n.length)>0){const e=(null==(i=Object.keys(t[0].datasetData||{}))?void 0:i[0])||"",n=JSON.stringify(t.map((t=>JSON.parse(t.datasetData[e]))));a={datasetData:{}},a.datasetData[e]=n}else Object.keys(t[0]).forEach((e=>{a[e]=[],t.forEach((t=>{a[e].includes(t[e])||a[e].push(t[e])})),a[e]=a[e].join(",")}));return r=Object.assign({},JSON.parse(Ut()),a),JSON.stringify(r)},At=(t,e)=>{if(vt.isClickOuterPrint){if(t&&e){const n=Pt.value.find((t=>t.key==e));return void(n&&(n.isLoading=t))}Pt.value.forEach((t=>{t.isLoading=!1}))}else vt.spinning=t},Bt=()=>vt.isClickOuterPrint?Pt.value.some((t=>t.isLoading)):vt.spinning,Rt=(t,e,n,i)=>{const r=vt.printParams[t];vt.isClickOuterPrint=i,Ht(r,t,e,n)},Ht=async(t=[],e,n,i,r)=>{let a=t.length;const o=async t=>{try{--a<=0&&_t(t,"print")}catch(t){console.log("error",t)}};pt.showLoading&&Bt()&&!r||(At(!0,i),pt.prevFn("print").then((()=>{vt.curPrintParamList=t;const r={formatId:i,templateId:n,authorizationKey:ft.value,printdlgshow:pt.printdlgshow,signature:pt.signature,copies:pt.printCopies};if("MULTI"===pt.strategy)for(let e=0;e<t.length;e++)e>0&&(r.printdlgshow="0"),mt.printDirect({...r,params:Object.assign({},JSON.parse(Ut()),t[e])},o,Dt,zt);else mt.printDirect({...r,params:Vt(t,e)},(t=>{_t(t,"print")}),Dt,zt)})).catch((()=>{Jt("print"),At(!1)})).finally((()=>{vt.visible=!1})))},Kt=async(t,{templateCode:e,templateId:n,key:i},r)=>{const a=vt.printParams[e];switch(vt.isClickOuterPrint=r,t){case"previewText":(async(t=[],e,n,i)=>{pt.showLoading&&Bt()||(At(!0,i),pt.prevFn("preview").then((()=>{vt.curPrintParamList=t;const r="MULTI"===pt.strategy?Object.assign({},JSON.parse(Ut()),t[0]):Vt(t,e),a={formatId:i,templateId:n,authorizationKey:ft.value,params:r,btnprint:pt.btnprint,signature:pt.signature};mt.preview(a,(t=>{_t(t,"preview")}),Dt)})).catch((()=>{Jt("preview"),At(!1)})).finally((()=>{vt.visible=!1})))})(a,e,n,i);break;case"formatEditText":((t=[],e,n,i)=>{pt.showLoading&&Bt()||(At(!0,i),pt.prevFn("edit").then((()=>{vt.curPrintParamList=t,vt.currentFormatId=i,vt.identityVerification.visible=!0})).catch((()=>{Jt("edit")})).finally((()=>{At(!1)})))})(a,0,0,i);break;case"downloadPdf":(async(t=[],e,n,i)=>{pt.showLoading&&Bt()||(At(!0,i),pt.prevFn("download").then((()=>{vt.curPrintParamList=t;const r="MULTI"===pt.strategy?Object.assign({},JSON.parse(Ut()),t[0]):Vt(t,e),a={formatId:i,templateId:n,authorizationKey:ft.value,print:{print:"1",type:"1"},params:r,signature:pt.signature};mt.downloadPDF(a,(t=>_t(t,"preview")),Dt)})).catch((()=>{Jt("download"),At(!1)})).finally((()=>{vt.visible=!1})))})(a,e,n,i)}},qt=()=>{yt("clickoutside")},Gt=(t,e=[])=>{let n={};return e.forEach((e=>{n=Object.assign({},Qt(n,e,t))})),n},Yt=(t,e,n)=>{const i={};return e.forEach((e=>{let r=((t,e)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let i=e;return Object.keys(n).includes(t.type)&&e&&e instanceof Date&&(i=A(e,n[t.type])),(null==t?void 0:t.defaultValue)||i})(e,t[e[n]]);t[e[n]]&&r&&(i[e[n]]=r)})),i},$t=({customizeDataset:t=[],param:e=[]},n={})=>{let i={};return t.forEach((t=>{const e=t.dataSetting[0].selectFieldList;i.datasetData||(i.datasetData={}),i.datasetData[t.name]=JSON.stringify(Yt(n,e,"fieldName"))})),i=Object.assign({},i,Yt(n,e,"key")),i},Qt=(t,e,n)=>{if(e.templateNumbers){for(let i=0;i<e.templateNumbers.length;i++){const r=e.templateNumbers[i],a=n[r];if(!a)return dt.error("当前勾选的数据没有匹配的模板"),t;t[r]||(t[r]=[]),t[r].push($t(a,e))}return t}const i=Object.keys(n);for(let r=0;r<i.length;r++){const a=i[r],o=n[a];if(!o)return dt.error("当前勾选的数据没有匹配的模板"),t;t[a]||(t[a]=[]),t[a].push($t(o,e))}return t},Wt=async t=>{vt.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):[],(()=>{var t;const e=vt.formatList.map((t=>({templateCode:t.number,templateId:t.templateId,label:t.name,key:t.id,selected:!1})));gt.value.unshift(...e),It.value&&gt.value.push(...ut),wt.value=gt.value.filter((t=>!t.selected)),pt.hideButtons.length>0&&(kt.value=kt.value.filter((t=>!pt.hideButtons.includes(t.key))));const n=sessionStorage.getItem("portal");if(n){const e=JSON.parse(n),i=(null==(t=null==e?void 0:e.user)?void 0:t.currentRoleResourceObj)||{},r=Object.keys(i);r.includes("RY7.2.21.1.M2.G94181E")||(kt.value=kt.value.filter((t=>"downloadPdf"!=t.key))),r.includes("RY7.2.21.1.M2.G33633A")||(kt.value=kt.value.filter((t=>"formatEditText"!=t.key)))}})(),vt.templateParams=(t=>{let e={};return t&&t.forEach((t=>{if(!t.templateConfig)return!1;e[t.number]=t.templateConfig})),e})(t.obj),vt.printParams=Gt(vt.templateParams,pt.params)},Xt=async()=>{var t;if(vt.isInited)return!0;vt.isInited=!0,vt.spinning=!0,(()=>{if(mt)return!1;mt=new J})();const e=await pt.queryPrintFormatByNumber();return await Wt(e),(null==(t=e.obj)?void 0:t.length)>0&&(ft.value=e.obj[0].authorizationKey||""),vt.spinning=!1,!0},Zt=async(t=!0)=>{var e,n;if(await pt.clickPrevFn())if((null==(e=pt.params)?void 0:e.length)||(null==(n=pt.printParams)?void 0:n.length)){if(!vt.visible){if(!await Xt())return!1}t&&(vt.visible=!vt.visible)}else dt.warning(pt.noDataMsg)},te=()=>{vt.watchPrintParamsReformatFn&&vt.watchPrintParamsReformatFn(),vt.isInited?vt.printParams=Gt(vt.templateParams,pt.params):vt.watchPrintParamsReformatFn=()=>o((()=>vt.isInited),(t=>{if(!t)return!1;te()}))},ee=t=>{if(vt.identityVerification.visible=!1,U(vt.currentFormatId))return _t(null,"edit");const e={formatId:vt.currentFormatId,templateId:St.value,params:Object.assign({},JSON.parse(Ut()),vt.curPrintParamList[0]),token:t};mt.editPrintFormat(e,(t=>{_t(t,"edit")}),Dt)};async function ne(){await Zt(!1),(()=>{const t=Object.keys(vt.printParams);vt.isClickOuterPrint=!1;for(let e=0;e<t.length;e++){const n=t[e],i=vt.printParams[n],r=vt.formatList.filter((t=>t.number==n));r&&r.length>0&&r.forEach((t=>{Ht(i,t.number,t.templateId,t.id,!0)}))}})()}return a((()=>{vt.isInited=!1})),o((()=>pt.params),(t=>{if(!(null==t?void 0:t.length))return!1;te()}),{deep:!0}),ct({directPrint:ne}),(e,n)=>(l(),s(c,null,[p("div",B,[u(" 外显按钮集合 "),d(m(I),null,{default:y((()=>[(l(!0),s(c,null,f(Pt.value,(e=>(l(),v(m(T),{key:e.key,class:"c-dropdown",placement:"bottom-start",trigger:"hover",onClickoutside:qt,options:m(kt),onSelect:t=>Kt(t,e,!0)},{default:y((()=>[d(m(L),{loading:t.showLoading&&e.isLoading,onClick:t=>Rt(e.templateCode,e.templateId,e.key,!0)},{icon:y((()=>[d(m(M),{component:m(E),size:"18"},null,8,["component"])])),default:y((()=>[g(" "+k(e.label),1)])),_:2},1032,["loading","onClick"])])),_:2},1032,["options","onSelect"])))),128))])),_:1}),u(' <n-button-group>\r\n\t\t\t<n-popover\r\n\t\t\t\tv-for="outer in outterPrintItems"\r\n :key="outer.key"\r\n\t\t\t\ttrigger="hover"\r\n\t\t\t\t:show-arrow="false"\r\n\t\t\t\t:show="downlistPopover.isOperation"\r\n\t\t\t\t@clickoutside="handleClickOutHide(\'isOperation\')"\r\n\t\t\t>\r\n\t\t\t\t<template #trigger>\r\n\t\t\t\t\t<n-button\r\n\t\t\t\t\t\t@mouseenter="delayShowPopover(\'isOperation\')"\r\n\t\t\t\t\t\t@mouseleave="handleClickOutHide(\'isOperation\')"\r\n\t\t\t\t\t\t@click="console.log(33)"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<template #icon>\r\n\t\t\t\t\t\t\t<n-icon :component="PrintOutline" size="18"></n-icon>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t\t<span class="label bold">{{ outer.label }}</span>\r\n\t\t\t\t\t</n-button>\r\n\t\t\t\t</template>\r\n\t\t\t\t<div class="newprint-button-poperOver">\r\n\t\t\t\t\t<div\r\n\t\t\t\t\t\tclass="print-li"\r\n\t\t\t\t\t\tv-for="operation in operations"\r\n\t\t\t\t\t\t:key="operation.key"\r\n\t\t\t\t\t\t:class="downlistOperation.twoMouseType==operation.key ? \'active\' : \'\' "\r\n\t\t\t\t\t\t@mouseenter="handleTypeChange(\'twoMouseType\', operation.key)"\r\n\t\t\t\t\t\t@mouseleave="handleTypeChange(\'twoMouseType\', \'\')"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<div class="print-lite">\r\n\t\t\t\t\t\t\t<span class="label"> {{ operation.label }} </span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</n-popover>\r\n\t\t</n-button-group> '),u(" 外显设置按钮 "),vt.isInited&&Pt.value.length>0&&Pt.value.length==m(Tt).length?(l(),v(m(F),{key:0,trigger:"click","show-arrow":!1,show:bt.isOutSetting,onClickoutside:n[2]||(n[2]=t=>Nt("isOutSetting"))},{trigger:y((()=>[d(m(L),{onClick:n[0]||(n[0]=t=>Et("isOutSetting"))},{default:y((()=>[R,d(m(M),{style:{"margin-left":"8px"},component:m(N),size:"18"},null,8,["component"])])),_:1})])),default:y((()=>[p("div",H,[(l(!0),s(c,null,f(m(Tt),(t=>(l(),s("div",{class:"print-li",key:t.key},[p("div",K,[p("span",q,k(t.label),1),d(m(j),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:y((()=>[g("外显")])),_:2},1032,["checked","onUpdate:checked"])])])))),128)),p("div",G,[d(m(x)),p("div",Y,[d(m(L),{type:"primary",size:"small",onClick:xt},{default:y((()=>[g("保存")])),_:1}),d(m(j),{checked:m(Lt),"onUpdate:checked":n[1]||(n[1]=t=>h(Lt)?Lt.value=t:null)},{default:y((()=>[g("全选")])),_:1},8,["checked"])])])])])),_:1},8,["show"])):(l(),s(c,{key:1},[u(" 打印全部按钮 "),d(m(F),{trigger:"click","show-arrow":!1,show:bt.oneShow,onClickoutside:n[10]||(n[10]=t=>Nt("oneShow"))},{trigger:y((()=>[b(e.$slots,"button",{handleClickPrintBtn:Zt,printSpinning:vt.spinning,printbtnText:t.btnText,printVisible:vt.visible},(()=>[d(m(I),{class:"newprint-button-component",onClick:n[4]||(n[4]=w((()=>Ft("icon")),["stop"]))},{default:y((()=>[d(m(L),{loading:t.showLoading&&vt.spinning,onClick:n[3]||(n[3]=w((()=>Ft("button")),["stop"]))},{icon:y((()=>[d(m(M),{component:m(E),size:"18"},null,8,["component"])])),default:y((()=>[g(" "+k(m(Ct)?"打印全部":t.btnText),1)])),_:1},8,["loading"]),d(m(L),{class:"icon-select"},{icon:y((()=>[d(m(M),{component:m(_),size:"18"},null,8,["component"])])),_:1})])),_:1})]))])),default:y((()=>[p("div",$,[(l(!0),s(c,null,f(wt.value,(t=>(l(),s("div",{class:P(["print-li",ht.oneMouseType==t.key||ht.oneClickType==t.key?"active":""]),key:t.key,onMouseenter:e=>jt("oneMouseType",t.key),onMouseleave:n[9]||(n[9]=t=>jt("oneMouseType","")),onClick:e=>{return n="oneClickType",i=t.key,void jt(n,i);var n,i}},["divider"==t.key?(l(),v(m(x),{key:0})):"outSetting"==t.key?(l(),s(c,{key:1},[u(" 第二层外显设置 "),d(m(F),{trigger:"click","show-arrow":!1,placement:"right-start",show:bt.isOutSetting,onClickoutside:n[7]||(n[7]=t=>Nt("isOutSetting"))},{trigger:y((()=>[p("div",{class:"print-lite",onClick:n[5]||(n[5]=t=>Et("isOutSetting"))},[p("span",W,k(t.label),1),d(m(M),{style:{background:"transparent"},component:m(N),size:"18"},null,8,["component"])])])),default:y((()=>[p("div",X,[(l(!0),s(c,null,f(m(Tt),(t=>(l(),s("div",{class:"print-li",key:t.key},[p("div",Z,[p("span",tt,k(t.label),1),d(m(j),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:y((()=>[g("外显")])),_:2},1032,["checked","onUpdate:checked"])])])))),128)),p("div",et,[d(m(x)),p("div",nt,[d(m(L),{type:"primary",size:"small",onClick:xt},{default:y((()=>[g("保存")])),_:1}),d(m(j),{checked:m(Lt),"onUpdate:checked":n[6]||(n[6]=t=>h(Lt)?Lt.value=t:null)},{default:y((()=>[g("全选")])),_:1},8,["checked"])])])])])),_:2},1032,["show"])],2112)):(l(),s(c,{key:2},[u(" 第二层功能操作 "),p("div",it,[p("span",{class:"label bold",onClick:e=>Rt(t.templateCode,t.templateId,t.key,!1)},k(t.label),9,rt),d(m(F),{trigger:"click","show-arrow":!1,placement:"right-start",show:bt[t.key],onClickoutside:e=>Nt(t.key)},{trigger:y((()=>[d(m(M),{component:m(D),size:"18",onClick:e=>Et(t.key)},null,8,["component","onClick"])])),default:y((()=>[p("div",at,[(l(!0),s(c,null,f(m(kt),(e=>(l(),s("div",{class:P(["print-li",ht.twoMouseType==e.key?"active":""]),key:e.key,onMouseenter:t=>jt("twoMouseType",e.key),onMouseleave:n[8]||(n[8]=t=>jt("twoMouseType",""))},[p("div",lt,[p("span",{class:"label",onClick:n=>Kt(e.key,t,!1)},k(e.label),9,st)])],42,ot)))),128))])])),_:2},1032,["show","onClickoutside"])])],2112))],42,Q)))),128))])])),_:3},8,["show"])],2112))]),d(V,O(e.$attrs,{modelValue:vt.identityVerification.visible,"onUpdate:modelValue":n[11]||(n[11]=t=>vt.identityVerification.visible=t),formatId:vt.currentFormatId,templateId:m(St),onSuccess:ee}),null,16,["modelValue","formatId","templateId"])],64))}});export{ct as default};
1
+ import{defineComponent as t,inject as e,ref as n,reactive as i,computed as r,onMounted as a,watch as o,openBlock as l,createElementBlock as s,Fragment as u,createElementVNode as c,createCommentVNode as p,createVNode as d,unref as m,withCtx as y,renderList as v,createBlock as f,createTextVNode as g,toDisplayString as k,isRef as h,renderSlot as b,withModifiers as w,normalizeClass as P,mergeProps as O}from"vue";import{isObject as S}from"@vue/shared";import{useMessage as C,NButtonGroup as I,NDropdown as T,NButton as L,NIcon as M,NPopover as F,NCheckbox as j,NDivider as x}from"naive-ui";import{PrintOutline as E,SettingsOutline as N,ChevronDownSharp as _,ArrowForwardOutline as D}from"@vicons/ionicons5";import{InjectionButtonPrintEmits as z}from"../constants/index.js";import{Print as J}from"../utils/print.js";import{isIReport as U}from"../utils/browserPrint.js";import V from"./IdentityVerification.vue.js";import{format as A}from"date-fns";import"../api.js";const B={class:"newprint-button-outer"},R=c("span",{class:"label bold"},"外显设置",-1),H={class:"newprint-button-poperOver"},K={class:"print-lite"},q={class:"label bold"},G={class:"print-li"},Y={class:"print-lite"},$={class:"newprint-button-poperOver"},Q=["onMouseenter","onClick"],W={class:"label bold"},X={class:"newprint-button-poperOver"},Z={class:"print-lite"},tt={class:"label bold"},et={class:"print-li"},nt={class:"print-lite"},it={class:"print-lite"},rt=["onClick"],at={class:"newprint-button-poperOver"},ot=["onMouseenter"],lt={class:"print-lite"},st=["onClick"];var ut=t({__name:"NewPrintComponent",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},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number,default:1},newPrintSetting:{type:Object,default:()=>({isShowPrintAll:!0,isShowOutSetting:!0,customProps:{}})}},setup(t,{expose:ut}){const ct=t,pt=[{label:"分割线",key:"divider"},{label:"外显设置",key:"outSetting"}],dt=C();let mt;const yt=e(z),vt=n(""),ft=i({spinning:!1,visible:!1,formatList:[],templateParams:{},printParams:[],currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null,isClickOuterPrint:!1});let gt=n([]),kt=n([{label:ct.pdfLoadText,key:"downloadPdf"},{label:ct.previewText,key:"previewText"},{label:ct.formatEditText,key:"formatEditText"},{label:"重置打印机",key:"resetPrinter"}]);const ht=i({oneMouseType:"",oneClickType:"",twoMouseType:""}),bt=i({oneShow:!1,isOperation:!1,isOutSetting:!1}),wt=n([]),Pt=n([]),Ot=r((()=>{if(!ft.currentFormatId)return{};let t=ft.currentFormatId;return ft.formatList.find((e=>e.id===t))}));r((()=>{var t;return(null==(t=Ot.value)?void 0:t.name)||"格式选择"}));const St=r((()=>{let t=ft.formatList.find((t=>t.id===ft.currentFormatId));return null==t?void 0:t.templateId})),Ct=r((()=>{var t;return null==(t=ct.newPrintSetting)?void 0:t.isShowPrintAll})),It=r((()=>{var t;return null==(t=ct.newPrintSetting)?void 0:t.isShowOutSetting})),Tt=r((()=>{var t;return(null==(t=ct.newPrintSetting)?void 0:t.customProps)||{}})),Lt=r((()=>{const t=pt.map((t=>t.key));return gt.value.filter((e=>!t.includes(e.key)))})),Mt=r({get:()=>Lt.value.every((t=>t.selected)),set(t){Lt.value.forEach((e=>{e.selected=t}))}}),Ft=async()=>{await te(),bt.oneShow=!0},jt=async t=>{if(ct.directPrint){if(ft.spinning)return;return"button"===t?void(Ct.value?await ie():Ft()):Ft()}return Ft()},xt=(t,e)=>{ht[t]=e},Et=()=>{wt.value=gt.value.filter((t=>!t.selected)),Pt.value=Lt.value.filter((t=>t.selected)).map((t=>({...t,isLoading:!1}))),_t("oneShow"),_t("isOutSetting")},Nt=t=>{bt[t]=!0},_t=t=>{ht.oneClickType="",bt[t]=!1,"isOutSetting"==t&&(bt.isOutSetting=!1)},Dt=(t,e)=>{Bt(!1);let n={type:e,formatId:ft.currentFormatId,templateId:St.value};yt("success",t,n)},zt=t=>{Bt(!1),yt("error",t),S(t)&&"notInstalledApp"===t.type&&dt.error(t.message)},Jt=t=>{Bt(!1),yt("cancel",t)},Ut=t=>{yt("error",{message:"前置条件执行错误",type:t,preExecution:!0})},Vt=()=>JSON.stringify({...ct.token?{token:ct.token}:{}}),At=(t=[],e)=>{var n,i;let r={},a={};if((null==(n=ft.templateParams[e].customizeDataset)?void 0:n.length)>0){const e=(null==(i=Object.keys(t[0].datasetData||{}))?void 0:i[0])||"",n=JSON.stringify(t.map((t=>JSON.parse(t.datasetData[e]))));a={datasetData:{}},a.datasetData[e]=n}else Object.keys(t[0]).forEach((e=>{a[e]=[],t.forEach((t=>{a[e].includes(t[e])||a[e].push(t[e])})),a[e]=a[e].join(",")}));return r=Object.assign({},JSON.parse(Vt()),Tt.value,a),JSON.stringify(r)},Bt=(t,e)=>{if(ft.isClickOuterPrint){if(t&&e){const n=Pt.value.find((t=>t.key==e));return void(n&&(n.isLoading=t))}Pt.value.forEach((t=>{t.isLoading=!1}))}else ft.spinning=t},Rt=()=>ft.isClickOuterPrint?Pt.value.some((t=>t.isLoading)):ft.spinning,Ht=(t,e,n,i)=>{const r=ft.printParams[t];ft.isClickOuterPrint=i,Kt(r,t,e,n)},Kt=async(t=[],e,n,i,r)=>{let a=t.length;const o=async t=>{try{--a<=0&&Dt(t,"print")}catch(t){console.log("error",t)}};ct.showLoading&&Rt()&&!r||(Bt(!0,i),ct.prevFn("print").then((()=>{ft.curPrintParamList=t;const r={formatId:i,templateId:n,authorizationKey:vt.value,printdlgshow:ct.printdlgshow,signature:ct.signature,copies:ct.printCopies};if("MULTI"===ct.strategy)for(let e=0;e<t.length;e++)e>0&&(r.printdlgshow="0"),mt.printDirect({...r,params:Object.assign({},JSON.parse(Vt()),Tt.value,t[e])},o,zt,Jt);else mt.printDirect({...r,params:At(t,e)},(t=>{Dt(t,"print")}),zt,Jt)})).catch((()=>{Ut("print"),Bt(!1)})).finally((()=>{ft.visible=!1})))},qt=async(t,{templateCode:e,templateId:n,key:i},r)=>{const a=ft.printParams[e];switch(ft.isClickOuterPrint=r,t){case"previewText":(async(t=[],e,n,i)=>{ct.showLoading&&Rt()||(Bt(!0,i),ct.prevFn("preview").then((()=>{ft.curPrintParamList=t;const r="MULTI"===ct.strategy?Object.assign({},JSON.parse(Vt()),Tt.value,t[0]):At(t,e),a={formatId:i,templateId:n,authorizationKey:vt.value,params:r,btnprint:ct.btnprint,signature:ct.signature};mt.preview(a,(t=>{Dt(t,"preview")}),zt)})).catch((()=>{Ut("preview"),Bt(!1)})).finally((()=>{ft.visible=!1})))})(a,e,n,i);break;case"formatEditText":((t=[],e,n,i)=>{ct.showLoading&&Rt()||(Bt(!0,i),ct.prevFn("edit").then((()=>{ft.curPrintParamList=t,ft.currentFormatId=i,ft.identityVerification.visible=!0})).catch((()=>{Ut("edit")})).finally((()=>{Bt(!1)})))})(a,0,0,i);break;case"downloadPdf":(async(t=[],e,n,i)=>{ct.showLoading&&Rt()||(Bt(!0,i),ct.prevFn("download").then((()=>{ft.curPrintParamList=t;const r="MULTI"===ct.strategy?Object.assign({},JSON.parse(Vt()),Tt.value,t[0]):At(t,e),a={formatId:i,templateId:n,authorizationKey:vt.value,print:{print:"1",type:"1"},params:r,signature:ct.signature};mt.downloadPDF(a,(t=>Dt(t,"preview")),zt)})).catch((()=>{Ut("download"),Bt(!1)})).finally((()=>{ft.visible=!1})))})(a,e,n,i)}},Gt=()=>{},Yt=(t,e=[])=>{let n={};return e.forEach((e=>{n=Object.assign({},Wt(n,e,t))})),n},$t=(t,e,n)=>{const i={};return e.forEach((e=>{let r=((t,e)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let i=e;return Object.keys(n).includes(t.type)&&e&&e instanceof Date&&(i=A(e,n[t.type])),(null==t?void 0:t.defaultValue)||i})(e,t[e[n]]);t[e[n]]&&r&&(i[e[n]]=r)})),i},Qt=({customizeDataset:t=[],param:e=[]},n={})=>{let i={};return t.forEach((t=>{const e=t.dataSetting[0].selectFieldList;i.datasetData||(i.datasetData={}),i.datasetData[t.name]=JSON.stringify($t(n,e,"fieldName"))})),i=Object.assign({},i,$t(n,e,"key")),i},Wt=(t,e,n)=>{if(e.templateNumbers){for(let i=0;i<e.templateNumbers.length;i++){const r=e.templateNumbers[i],a=n[r];if(!a)return dt.error("当前勾选的数据没有匹配的模板"),t;t[r]||(t[r]=[]),t[r].push(Qt(a,e))}return t}const i=Object.keys(n);for(let r=0;r<i.length;r++){const a=i[r],o=n[a];if(!o)return dt.error("当前勾选的数据没有匹配的模板"),t;t[a]||(t[a]=[]),t[a].push(Qt(o,e))}return t},Xt=async t=>{ft.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):[],(()=>{var t;const e=ft.formatList.map((t=>({templateCode:t.number,templateId:t.templateId,label:t.name,key:t.id,selected:!1})));gt.value.unshift(...e),It.value&&gt.value.push(...pt),wt.value=gt.value.filter((t=>!t.selected)),ct.hideButtons.length>0&&(kt.value=kt.value.filter((t=>!ct.hideButtons.includes(t.key))));const n=sessionStorage.getItem("portal");if(n){const e=JSON.parse(n),i=(null==(t=null==e?void 0:e.user)?void 0:t.currentRoleResourceObj)||{},r=Object.keys(i);r.includes("RY7.2.21.1.M2.G94181E")||(kt.value=kt.value.filter((t=>"downloadPdf"!=t.key))),r.includes("RY7.2.21.1.M2.G33633A")||(kt.value=kt.value.filter((t=>"formatEditText"!=t.key)))}})(),ft.templateParams=(t=>{let e={};return t&&t.forEach((t=>{if(!t.templateConfig)return!1;e[t.number]=t.templateConfig})),e})(t.obj),ft.printParams=Yt(ft.templateParams,ct.params)},Zt=async()=>{var t;if(ft.isInited)return!0;ft.isInited=!0,ft.spinning=!0,(()=>{if(mt)return!1;mt=new J})();const e=await ct.queryPrintFormatByNumber();return await Xt(e),(null==(t=e.obj)?void 0:t.length)>0&&(vt.value=e.obj[0].authorizationKey||""),ft.spinning=!1,!0},te=async(t=!0)=>{var e,n;if(await ct.clickPrevFn())if((null==(e=ct.params)?void 0:e.length)||(null==(n=ct.printParams)?void 0:n.length)){if(!ft.visible){if(!await Zt())return!1}t&&(ft.visible=!ft.visible)}else dt.warning(ct.noDataMsg)},ee=()=>{ft.watchPrintParamsReformatFn&&ft.watchPrintParamsReformatFn(),ft.isInited?ft.printParams=Yt(ft.templateParams,ct.params):ft.watchPrintParamsReformatFn=()=>o((()=>ft.isInited),(t=>{if(!t)return!1;ee()}))},ne=t=>{if(ft.identityVerification.visible=!1,U(ft.currentFormatId))return Dt(null,"edit");const e={formatId:ft.currentFormatId,templateId:St.value,params:Object.assign({},JSON.parse(Vt()),Tt.value,ft.curPrintParamList[0]),token:t};mt.editPrintFormat(e,(t=>{Dt(t,"edit")}),zt)};async function ie(){await te(!1),(()=>{const t=Object.keys(ft.printParams);ft.isClickOuterPrint=!1;for(let e=0;e<t.length;e++){const n=t[e],i=ft.printParams[n],r=ft.formatList.filter((t=>t.number==n));r&&r.length>0&&r.forEach((t=>{Kt(i,t.number,t.templateId,t.id,!0)}))}})()}return a((()=>{ft.isInited=!1})),o((()=>ct.params),(t=>{if(!(null==t?void 0:t.length))return!1;ee()}),{deep:!0}),ut({directPrint:ie}),(e,n)=>(l(),s(u,null,[c("div",B,[p(" 外显按钮集合 "),d(m(I),null,{default:y((()=>[(l(!0),s(u,null,v(Pt.value,(e=>(l(),f(m(T),{key:e.key,class:"c-dropdown",placement:"bottom-start",trigger:"hover",onClickoutside:Gt,options:m(kt),onSelect:t=>qt(t,e,!0)},{default:y((()=>[d(m(L),{loading:t.showLoading&&e.isLoading,onClick:t=>Ht(e.templateCode,e.templateId,e.key,!0)},{icon:y((()=>[d(m(M),{component:m(E),size:"18"},null,8,["component"])])),default:y((()=>[g(" "+k(e.label),1)])),_:2},1032,["loading","onClick"])])),_:2},1032,["options","onSelect"])))),128))])),_:1}),p(' <n-button-group>\r\n\t\t\t<n-popover\r\n\t\t\t\tv-for="outer in outterPrintItems"\r\n :key="outer.key"\r\n\t\t\t\ttrigger="hover"\r\n\t\t\t\t:show-arrow="false"\r\n\t\t\t\t:show="downlistPopover.isOperation"\r\n\t\t\t\t@clickoutside="handleClickOutHide(\'isOperation\')"\r\n\t\t\t>\r\n\t\t\t\t<template #trigger>\r\n\t\t\t\t\t<n-button\r\n\t\t\t\t\t\t@mouseenter="delayShowPopover(\'isOperation\')"\r\n\t\t\t\t\t\t@mouseleave="handleClickOutHide(\'isOperation\')"\r\n\t\t\t\t\t\t@click="console.log(33)"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<template #icon>\r\n\t\t\t\t\t\t\t<n-icon :component="PrintOutline" size="18"></n-icon>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t\t<span class="label bold">{{ outer.label }}</span>\r\n\t\t\t\t\t</n-button>\r\n\t\t\t\t</template>\r\n\t\t\t\t<div class="newprint-button-poperOver">\r\n\t\t\t\t\t<div\r\n\t\t\t\t\t\tclass="print-li"\r\n\t\t\t\t\t\tv-for="operation in operations"\r\n\t\t\t\t\t\t:key="operation.key"\r\n\t\t\t\t\t\t:class="downlistOperation.twoMouseType==operation.key ? \'active\' : \'\' "\r\n\t\t\t\t\t\t@mouseenter="handleTypeChange(\'twoMouseType\', operation.key)"\r\n\t\t\t\t\t\t@mouseleave="handleTypeChange(\'twoMouseType\', \'\')"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<div class="print-lite">\r\n\t\t\t\t\t\t\t<span class="label"> {{ operation.label }} </span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</n-popover>\r\n\t\t</n-button-group> '),p(" 外显设置按钮 "),ft.isInited&&Pt.value.length>0&&Pt.value.length==m(Lt).length&&m(It)?(l(),f(m(F),{key:0,trigger:"click","show-arrow":!1,show:bt.isOutSetting,onClickoutside:n[2]||(n[2]=t=>_t("isOutSetting"))},{trigger:y((()=>[d(m(L),{onClick:n[0]||(n[0]=t=>Nt("isOutSetting"))},{default:y((()=>[R,d(m(M),{style:{"margin-left":"8px"},component:m(N),size:"18"},null,8,["component"])])),_:1})])),default:y((()=>[c("div",H,[(l(!0),s(u,null,v(m(Lt),(t=>(l(),s("div",{class:"print-li",key:t.key},[c("div",K,[c("span",q,k(t.label),1),d(m(j),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:y((()=>[g("外显")])),_:2},1032,["checked","onUpdate:checked"])])])))),128)),c("div",G,[d(m(x)),c("div",Y,[d(m(L),{type:"primary",size:"small",onClick:Et},{default:y((()=>[g("保存")])),_:1}),d(m(j),{checked:m(Mt),"onUpdate:checked":n[1]||(n[1]=t=>h(Mt)?Mt.value=t:null)},{default:y((()=>[g("全选")])),_:1},8,["checked"])])])])])),_:1},8,["show"])):(l(),s(u,{key:1},[p(" 打印全部按钮 "),d(m(F),{trigger:"click","show-arrow":!1,show:bt.oneShow,onClickoutside:n[10]||(n[10]=t=>_t("oneShow"))},{trigger:y((()=>[b(e.$slots,"button",{handleClickPrintBtn:te,printSpinning:ft.spinning,printbtnText:t.btnText,printVisible:ft.visible},(()=>[d(m(I),{class:"newprint-button-component",onClick:n[4]||(n[4]=w((()=>jt("icon")),["stop"]))},{default:y((()=>[d(m(L),{loading:t.showLoading&&ft.spinning,onClick:n[3]||(n[3]=w((()=>jt("button")),["stop"]))},{icon:y((()=>[d(m(M),{component:m(E),size:"18"},null,8,["component"])])),default:y((()=>[g(" "+k(m(Ct)?"打印全部":t.btnText),1)])),_:1},8,["loading"]),d(m(L),{class:"icon-select"},{icon:y((()=>[d(m(M),{component:m(_),size:"18"},null,8,["component"])])),_:1})])),_:1})]))])),default:y((()=>[c("div",$,[(l(!0),s(u,null,v(wt.value,(t=>(l(),s("div",{class:P(["print-li",ht.oneMouseType==t.key||ht.oneClickType==t.key?"active":""]),key:t.key,onMouseenter:e=>xt("oneMouseType",t.key),onMouseleave:n[9]||(n[9]=t=>xt("oneMouseType","")),onClick:e=>{return n="oneClickType",i=t.key,void xt(n,i);var n,i}},["divider"==t.key?(l(),f(m(x),{key:0})):"outSetting"==t.key?(l(),s(u,{key:1},[p(" 第二层外显设置 "),d(m(F),{trigger:"click","show-arrow":!1,placement:"right-start",show:bt.isOutSetting,onClickoutside:n[7]||(n[7]=t=>_t("isOutSetting"))},{trigger:y((()=>[c("div",{class:"print-lite",onClick:n[5]||(n[5]=t=>Nt("isOutSetting"))},[c("span",W,k(t.label),1),d(m(M),{style:{background:"transparent"},component:m(N),size:"18"},null,8,["component"])])])),default:y((()=>[c("div",X,[(l(!0),s(u,null,v(m(Lt),(t=>(l(),s("div",{class:"print-li",key:t.key},[c("div",Z,[c("span",tt,k(t.label),1),d(m(j),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:y((()=>[g("外显")])),_:2},1032,["checked","onUpdate:checked"])])])))),128)),c("div",et,[d(m(x)),c("div",nt,[d(m(L),{type:"primary",size:"small",onClick:Et},{default:y((()=>[g("保存")])),_:1}),d(m(j),{checked:m(Mt),"onUpdate:checked":n[6]||(n[6]=t=>h(Mt)?Mt.value=t:null)},{default:y((()=>[g("全选")])),_:1},8,["checked"])])])])])),_:2},1032,["show"])],2112)):(l(),s(u,{key:2},[p(" 第二层功能操作 "),c("div",it,[c("span",{class:"label bold",onClick:e=>Ht(t.templateCode,t.templateId,t.key,!1)},k(t.label),9,rt),d(m(F),{trigger:"click","show-arrow":!1,placement:"right-start",show:bt[t.key],onClickoutside:e=>_t(t.key)},{trigger:y((()=>[d(m(M),{component:m(D),size:"18",onClick:e=>Nt(t.key)},null,8,["component","onClick"])])),default:y((()=>[c("div",at,[(l(!0),s(u,null,v(m(kt),(e=>(l(),s("div",{class:P(["print-li",ht.twoMouseType==e.key?"active":""]),key:e.key,onMouseenter:t=>xt("twoMouseType",e.key),onMouseleave:n[8]||(n[8]=t=>xt("twoMouseType",""))},[c("div",lt,[c("span",{class:"label",onClick:n=>qt(e.key,t,!1)},k(e.label),9,st)])],42,ot)))),128))])])),_:2},1032,["show","onClickoutside"])])],2112))],42,Q)))),128))])])),_:3},8,["show"])],2112))]),d(V,O(e.$attrs,{modelValue:ft.identityVerification.visible,"onUpdate:modelValue":n[11]||(n[11]=t=>ft.identityVerification.visible=t),formatId:ft.currentFormatId,templateId:m(St),onSuccess:ne}),null,16,["modelValue","formatId","templateId"])],64))}});export{ut as default};
@@ -1449,6 +1449,9 @@ declare const _default: import("vue").DefineComponent<{
1449
1449
  isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
1450
1450
  };
1451
1451
  NSelect: any;
1452
+ /**
1453
+ * 改变展示方式
1454
+ */
1452
1455
  NPopover: any;
1453
1456
  CDatePicker: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
1454
1457
  updateUnchangedValue: {
@@ -437,9 +437,9 @@ declare const _default: import("vue").DefineComponent<{
437
437
  requiredDisable: boolean;
438
438
  hide: boolean;
439
439
  }>;
440
- isHighlightRow: boolean;
441
440
  idx: number;
442
441
  isHighlight: boolean;
442
+ isHighlightRow: boolean;
443
443
  }>;
444
444
  EditDialog: import("vue").DefineComponent<{
445
445
  visible: {
@@ -458,9 +458,9 @@ declare const _default: import("vue").DefineComponent<{
458
458
  requiredDisable: boolean;
459
459
  hide: boolean;
460
460
  }>;
461
- isHighlightRow: boolean;
462
461
  idx: number;
463
462
  isHighlight: boolean;
463
+ isHighlightRow: boolean;
464
464
  }>;
465
465
  setStyle: typeof setStyle;
466
466
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -555,9 +555,9 @@ declare const _default: import("vue").DefineComponent<{
555
555
  requiredDisable: boolean;
556
556
  hide: boolean;
557
557
  }>;
558
- isHighlightRow: boolean;
559
558
  idx: number;
560
559
  isHighlight: boolean;
560
+ isHighlightRow: boolean;
561
561
  }>;
562
562
  isArray: {
563
563
  (value?: any): value is any[];
@@ -279,8 +279,8 @@ declare const _default: import("vue").DefineComponent<{
279
279
  requiredDisable: boolean;
280
280
  hide: boolean;
281
281
  }>;
282
- isHighlightRow: boolean;
283
282
  idx: number;
284
283
  isHighlight: boolean;
284
+ isHighlightRow: boolean;
285
285
  }>;
286
286
  export default _default;