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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/annotation-edit/src/type.d.ts +3 -0
  4. package/es/components/annotation-edit/style/index.css +1 -1
  5. package/es/components/base-search/index.d.ts +293 -0
  6. package/es/components/base-search/index.js +1 -0
  7. package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +26 -91
  8. package/es/components/base-search/src/index.vue.js +1 -0
  9. package/es/components/base-search/style/iconfont.ttf +0 -0
  10. package/es/components/base-search/style/index.css +1 -0
  11. package/es/components/big-table/index.d.ts +4 -3
  12. package/es/components/big-table/src/BigTable.vue.d.ts +4 -3
  13. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  14. package/es/components/big-table/style/index.css +1 -1
  15. package/es/components/button-print/index.d.ts +7 -6
  16. package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -6
  17. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  18. package/es/components/button-print/src/api.d.ts +3 -0
  19. package/es/components/button-print/src/api.js +1 -0
  20. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  21. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  22. package/es/components/button-print/src/utils/print.js +1 -1
  23. package/es/components/classification/index.d.ts +995 -0
  24. package/es/components/classification/index.js +1 -0
  25. package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +10 -93
  26. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  27. package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +5 -130
  28. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  29. package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -42
  30. package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
  31. package/es/components/classification/src/const/index.d.ts +2 -0
  32. package/es/components/classification/src/const/index.js +1 -0
  33. package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +57 -291
  34. package/es/components/classification/src/index.vue.js +1 -0
  35. package/es/components/classification/style/iconfont.ttf +0 -0
  36. package/es/components/classification/style/index.css +1 -0
  37. package/es/components/config-provider/index.d.ts +14 -0
  38. package/es/components/config-provider/index.js +1 -0
  39. package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
  40. package/es/components/config-provider/src/ConfigProvider.js +1 -0
  41. package/es/components/config-provider/src/interface.d.ts +19 -0
  42. package/es/components/config-provider/src/interface.js +1 -0
  43. package/es/components/config-provider/src/utils/index.d.ts +2 -0
  44. package/es/components/config-provider/src/utils/index.js +1 -0
  45. package/es/components/date-picker/index.d.ts +20 -0
  46. package/es/components/date-picker/index.js +1 -0
  47. package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -0
  48. package/es/components/date-picker/src/DatePicker.vue.js +1 -0
  49. package/es/components/fabric-chart/index.d.ts +2 -2
  50. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  51. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  52. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  53. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  54. package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
  55. package/es/components/field-set/index.d.ts +2 -2
  56. package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
  57. package/es/components/form-config/index.d.ts +46 -37
  58. package/es/components/form-config/src/FormConfig.vue.d.ts +46 -37
  59. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  60. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +16 -16
  61. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -19
  62. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +9 -1
  63. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  64. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +33 -6
  65. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  66. package/es/components/form-config/style/index.css +1 -1
  67. package/es/components/form-render/index.d.ts +16 -16
  68. package/es/components/form-render/src/FormRender.vue.d.ts +16 -16
  69. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +16 -16
  70. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  71. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  72. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  73. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  74. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  75. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  76. package/es/components/form-render/src/components/renderer/select.js +1 -1
  77. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  78. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  79. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
  80. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  81. package/es/components/form-render/style/index.css +1 -1
  82. package/es/components/iho-table/index.d.ts +3 -0
  83. package/es/components/iho-table/src/IhoTable.vue.d.ts +3 -0
  84. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  85. package/es/components/iho-table/src/constants/index.d.ts +4 -4
  86. package/es/components/iho-table/src/constants/index.js +1 -1
  87. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  88. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +20 -7
  89. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  90. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +18 -1
  91. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  92. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  93. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  94. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  95. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  96. package/es/components/iho-table/src/types/index.d.ts +1 -0
  97. package/es/components/iho-table/src/utils/index.d.ts +1 -0
  98. package/es/components/iho-table/src/utils/index.js +1 -1
  99. package/es/components/iho-table/style/index.css +1 -1
  100. package/es/components/index.css +1 -1
  101. package/es/components/index.d.ts +8 -2
  102. package/es/components/index.js +1 -1
  103. package/es/components/info-header/index.d.ts +3799 -156
  104. package/es/components/info-header/src/InfoHeader.vue.d.ts +3800 -156
  105. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  106. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
  107. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
  108. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
  109. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
  110. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  111. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  112. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  113. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2669 -139
  114. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  115. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
  116. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  117. package/es/components/info-header/src/constants/index.d.ts +4 -0
  118. package/es/components/info-header/src/constants/index.js +1 -0
  119. package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
  120. package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
  121. package/es/components/info-header/src/types/index.d.ts +17 -3
  122. package/es/components/info-header/style/index.css +1 -1
  123. package/es/components/keyboard/index.d.ts +4 -2
  124. package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -2
  125. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  126. package/es/components/keyboard/src/constants/index.d.ts +2 -0
  127. package/es/components/keyboard/src/constants/index.js +1 -0
  128. package/es/components/keyboard/style/index.css +1 -1
  129. package/es/components/quick-search/index.d.ts +713 -0
  130. package/es/components/quick-search/index.js +1 -0
  131. package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +31 -120
  132. package/es/components/quick-search/src/index.vue.js +1 -0
  133. package/es/components/quick-search/style/index.css +1 -0
  134. package/es/components/recommend-search/index.d.ts +2 -2
  135. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  136. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  137. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  138. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
  139. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  140. package/es/components/scale-view/src/hooks/use-component.d.ts +69 -116
  141. package/es/components/search-cascader/index.d.ts +2 -2
  142. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
  143. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  144. package/es/components/select-label/index.d.ts +70 -169
  145. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
  146. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  147. package/es/components/select-label/src/SelectLabel.vue.d.ts +70 -116
  148. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  149. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  150. package/es/components/select-label/style/iconfont.ttf +0 -0
  151. package/es/components/select-label/style/index.css +1 -1
  152. package/es/components/select-person/index.d.ts +1 -1
  153. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  154. package/es/components/shortcut-setter/index.d.ts +17 -17
  155. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +17 -17
  156. package/es/components/steps-wheel/index.d.ts +1 -0
  157. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
  158. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  159. package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
  160. package/es/components/steps-wheel/src/constants/index.js +1 -0
  161. package/es/components/steps-wheel/style/index.css +1 -1
  162. package/es/components/table-filter/index.d.ts +0 -2385
  163. package/es/components/table-filter/index.js +1 -1
  164. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
  165. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  166. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -42
  167. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  168. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  169. package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
  170. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  171. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
  172. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  173. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  174. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  175. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -1
  176. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  177. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
  178. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  179. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  180. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  181. package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
  182. package/es/components/table-filter/src/tool/transformData.js +1 -1
  183. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  184. package/es/components/table-filter/src/types/enums.js +1 -1
  185. package/es/components/table-filter/src/types/index.d.ts +13 -169
  186. package/es/components/time-picker/index.d.ts +18 -0
  187. package/es/components/time-picker/index.js +1 -0
  188. package/es/components/time-picker/src/TimePicker.vue.d.ts +18 -0
  189. package/es/components/time-picker/src/TimePicker.vue.js +1 -0
  190. package/es/env.d.ts +24 -24
  191. package/es/shared/mixins/index.d.ts +1 -0
  192. package/es/shared/mixins/index.js +1 -0
  193. package/es/shared/mixins/useTheme.d.ts +3 -0
  194. package/es/shared/mixins/useTheme.js +1 -0
  195. package/es/shared/utils/index.d.ts +1 -0
  196. package/es/shared/utils/index.js +1 -1
  197. package/package.json +2 -2
  198. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  199. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  200. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  201. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  202. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  203. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +0 -2
  204. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +0 -1
  205. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  206. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  207. package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
  208. package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
  209. package/es/components/table-filter/src/components/table-modal/index.vue.js +0 -1
  210. package/es/components/table-filter/src/const/index.d.ts +0 -5
  211. package/es/components/table-filter/src/const/index.js +0 -1
  212. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  213. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  214. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  215. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  216. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  217. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  218. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  219. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  220. package/es/components/table-filter/src/tool/utils.js +0 -1
  221. package/es/components/table-filter/style/index.css +0 -1
  222. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  223. package/es/shared/utils/tapable/index.d.ts +0 -139
  224. /package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
  225. /package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
  226. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
  227. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
  228. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  229. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
  230. /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
  231. /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -1 +1 @@
1
- import{defineComponent as e,computed as o,ref as t,onDeactivated as a,createVNode as l,unref as n,createTextVNode as u}from"vue";import{FileTrayFull as i,FileTray as r}from"@vicons/ionicons5";import{isString as s,isObject as m}from"lodash-es";import{NPopover as v,NDivider as c,NEllipsis as d,NIcon as p,NInput as f}from"naive-ui";var g=e({props:{modelValue:{type:[String,Object],default:""}},emits:["update:modelValue"],setup(e,{emit:g}){const V=o({get:()=>s(e.modelValue)?e.modelValue:m(e.modelValue)&&e.modelValue.content||"",set(o){let t=o;m(e.modelValue)&&(t={...e.modelValue,content:o}),g("update:modelValue",t)}}),h=t(!1),w=o({get:()=>h.value,async set(e){h.value=e,!e&&x.value&&(await new Promise((e=>setTimeout(e,200))),x.value=!1)}}),x=t(!1);let T,y;function _(e){e.stopPropagation(),clearTimeout(T),w.value&&x.value?w.value=!1:n(V)||(T=setTimeout((()=>{x.value=w.value=!0}),200))}function k(e){e.stopPropagation(),clearTimeout(T),n(V)&&(w.value=!0,x.value=!0)}function P(e){e.stopPropagation(),clearTimeout(y),n(V)&&(w.value=!0)}function b(e){e.stopPropagation(),clearTimeout(y),n(V)&&!x.value&&(y=setTimeout((()=>{w.value=!1}),300))}return a((()=>{w.value=!1})),function(){return l("section",{class:["annotation-edit",{"is-active":!!n(V)}],style:{"--icon-right":"-5"},"annotation-hover-show":!n(V)&&!x.value},[l(v,{"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:w.value,"onUpdate:show":e=>w.value=e,trigger:"manual",duration:100},{default:function(){return l("section",{onMouseleave:b,onMouseenter:P},[l("div",null,[x.value?l(f,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:V.value,"onUpdate:value":e=>V.value=e},null):l("span",null,[n(V)])]),m(e.modelValue)?[l(c,{style:{margin:"4px 0",minWidth:"360px"}},null),l("section",{class:"annotation-edit__footer"},[l(d,null,{default:()=>[u("质控人: "),e.modelValue.author]}),l(d,null,{default:()=>[u("质控时间: "),e.modelValue.date]})])]:null])},trigger:function(){return l("div",{class:"annotation-edit__icon",onMouseleave:b,onMouseenter:P,onDblclick:k,onClick:_},[l(p,{component:n(V)?i:r},null)])}})])}}});export{g as default};
1
+ import{defineComponent as e,computed as o,ref as a,onDeactivated as l,createVNode as t,unref as u,createTextVNode as n}from"vue";import{useTheme as i}from"../../../shared/mixins/useTheme.js";import{FileTrayFull as r,FileTray as s}from"@vicons/ionicons5";import{isString as m,isObject as d,isFunction as v}from"lodash-es";import{NPopover as c,NDivider as p,NEllipsis as f,NIcon as V,NInput as h}from"naive-ui";var g=e({props:{modelValue:{type:[String,Object],default:""}},emits:["update:modelValue"],setup(e,{emit:g}){const w=i(),x=o({get:()=>m(e.modelValue)?e.modelValue:d(e.modelValue)&&e.modelValue.content||"",set(o){let a=o;d(e.modelValue)&&(a={...e.modelValue,content:o}),g("update:modelValue",a)}}),T=a(!1),b=o({get:()=>T.value,async set(e){T.value=e,!e&&y.value&&(await new Promise((e=>setTimeout(e,200))),y.value=!1)}}),y=a(!1);let _,k;function P(e){e.stopPropagation(),clearTimeout(_),b.value&&y.value?b.value=!1:u(x)||(_=setTimeout((()=>{y.value=b.value=!0}),200))}function M(e){e.stopPropagation(),clearTimeout(_),u(x)&&(b.value=!0,y.value=!0)}function R(e){e.stopPropagation(),clearTimeout(k),u(x)&&(b.value=!0)}function j(e){e.stopPropagation(),clearTimeout(k),u(x)&&!y.value&&(k=setTimeout((()=>{b.value=!1}),300))}return l((()=>{b.value=!1})),function(){return t("section",{class:["annotation-edit",{"is-active":!!u(x)}],style:{"--icon-right":"-5",...w.value},"annotation-hover-show":!u(x)&&!y.value},[t(c,{"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:b.value,"onUpdate:show":e=>b.value=e,trigger:"manual",duration:100},{default:function(){return t("section",{onMouseleave:j,onMouseenter:R},[t("div",null,[y.value?t(h,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:x.value,"onUpdate:value":e=>x.value=e},null):t("span",null,[u(x)])]),d(e.modelValue)?[t(p,{style:{margin:"4px 0",minWidth:"360px"}},null),t("section",{class:"annotation-edit__footer"},[v(e.modelValue.footerRender)?e.modelValue.footerRender(e.modelValue):[t(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.authorLabel)?o:"质控人",n(": "),e.modelValue.author]}}),t(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.dateLabel)?o:"质控时间",n(": "),e.modelValue.date]}})]])]:null])},trigger:function(){return t("div",{class:"annotation-edit__icon",onMouseleave:j,onMouseenter:R,onDblclick:M,onClick:P},[t(V,{component:u(x)?r:s},null)])}})])}}});export{g as default};
@@ -1,5 +1,8 @@
1
1
  export declare type AnnotationItem = string | Partial<{
2
2
  content: string;
3
3
  author: string;
4
+ authorLabel: string;
4
5
  date: string;
6
+ dateLabel: string;
7
+ footerRender: (item: Exclude<AnnotationItem, string>) => any;
5
8
  }>;
@@ -1 +1 @@
1
- .annotation-edit{align-items:center;color:#0067ee;cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:#ff9828}.annotation-edit__icon{align-items:center;display:inline-flex}.annotation-edit__textarea{min-width:200px}.annotation-edit__footer{align-items:center;display:flex;flex-wrap:nowrap;gap:8px;justify-content:space-between;opacity:.5}.annotation-edit__footer>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.annotation-edit__footer>div:first-of-type{min-width:30%}
1
+ .annotation-edit{align-items:center;color:var(--c-primary-color);cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:var(--c-primary-color);filter:hue-rotate(140deg)}.annotation-edit__icon{align-items:center;display:inline-flex}.annotation-edit__textarea{min-width:200px}.annotation-edit__footer{align-items:center;display:flex;flex-wrap:nowrap;gap:8px;justify-content:space-between;opacity:.5}.annotation-edit__footer>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.annotation-edit__footer>div:first-of-type{min-width:30%}
@@ -0,0 +1,293 @@
1
+ import { SFCWithInstall } from '../../../es/shared/types';
2
+ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
3
+ showSettings: {
4
+ type: import("vue").PropType<import("..").IsettingsType>;
5
+ default: () => {
6
+ hideQuickSearch: number;
7
+ };
8
+ };
9
+ searchFieldList: {
10
+ type: import("vue").PropType<import("..").IApiServerType[]>;
11
+ default: () => never[];
12
+ };
13
+ classificationIndex: {
14
+ type: NumberConstructor;
15
+ };
16
+ qqConObjCount: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ }, {
21
+ outQuickSearchFn: {
22
+ handlerInitSearchItem(arr: import("..").ISearchType[]): void;
23
+ };
24
+ isRender: (cfg: import("..").ISearchType) => any;
25
+ getRenderSearchConObj: (cfg: import("..").ISearchType) => {
26
+ field_key: string;
27
+ con: string | undefined;
28
+ value: any[] | null;
29
+ unit: null;
30
+ } | null;
31
+ isExistDefValByRenderWidget: (cfg: import("..").ISearchType) => boolean;
32
+ resetRenderWidgetValue: (cfg: import("..").ISearchType) => any;
33
+ transformData: (advancedFilterData: import("..").IApiServerType[]) => {
34
+ fieldType: string;
35
+ columnName: string;
36
+ settingObj: {};
37
+ setting: string;
38
+ widgetCfg: {
39
+ isRender: boolean;
40
+ widgetType: string | null;
41
+ valueList: {
42
+ value: any;
43
+ label: string;
44
+ }[] | undefined;
45
+ defaultValue: any;
46
+ defValueUnit: any;
47
+ multiple: boolean;
48
+ };
49
+ title: string;
50
+ alias: string | undefined;
51
+ isShowSearch: number;
52
+ filterExplicit: number;
53
+ explicitRequired: number;
54
+ advanceOptionSetting: string;
55
+ placeholder: string | undefined;
56
+ advanceColWidth: string;
57
+ }[];
58
+ transformParams: (paramsList: any) => {};
59
+ baseLeft: any;
60
+ quickSearchLi: any;
61
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
62
+ showSettings: {
63
+ type: import("vue").PropType<import("..").IsettingsType>;
64
+ default: () => {
65
+ hideQuickSearch: number;
66
+ };
67
+ };
68
+ searchFieldList: {
69
+ type: import("vue").PropType<import("..").IApiServerType[]>;
70
+ default: () => never[];
71
+ };
72
+ classificationIndex: {
73
+ type: NumberConstructor;
74
+ };
75
+ qqConObjCount: {
76
+ type: NumberConstructor;
77
+ default: number;
78
+ };
79
+ }>> & {
80
+ onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
81
+ onOnFilterSearch?: ((...args: any[]) => any) | undefined;
82
+ onHandleReset?: ((...args: any[]) => any) | undefined;
83
+ onGetFilterParam?: ((...args: any[]) => any) | undefined;
84
+ }>>;
85
+ emit: (event: "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", ...args: any[]) => void;
86
+ baseLeftWidth: import("vue").Ref<number>;
87
+ classificationWidth: import("vue").Ref<number>;
88
+ quickSearchWidth: import("vue").Ref<number>;
89
+ diffWidth: import("vue").Ref<number>;
90
+ curConObj: import("vue").Ref<{
91
+ field_key: string;
92
+ con: string;
93
+ value: any;
94
+ unit: string | null;
95
+ }[]>;
96
+ showResetFilterBtn: import("vue").Ref<boolean>;
97
+ resizeFlag: import("vue").Ref<boolean>;
98
+ outSearchFieldList: import("vue").Ref<{
99
+ columnName: string;
100
+ title: string;
101
+ fieldType?: string | undefined;
102
+ filterExplicit?: number | undefined;
103
+ isShowSearch?: number | undefined;
104
+ setting?: any;
105
+ settingObj?: any;
106
+ placeholder?: string | undefined;
107
+ AGEAttr?: boolean | undefined;
108
+ CL?: string | undefined;
109
+ CONVERT?: any;
110
+ EVALUATEAttr?: boolean | undefined;
111
+ EQ?: string | undefined;
112
+ LABELAttr?: boolean | undefined;
113
+ _isBlock?: boolean | undefined;
114
+ _frontId?: any;
115
+ NUMBERFiled?: boolean | undefined;
116
+ PASSWORDTYPE?: boolean | undefined;
117
+ advanceColWidth?: string | undefined;
118
+ advanceOptionSetting?: string | undefined;
119
+ alias?: string | undefined;
120
+ ageObj?: any;
121
+ attr?: string | undefined;
122
+ bigValue?: string | number | undefined;
123
+ classify?: string | undefined;
124
+ colWidth?: number | undefined;
125
+ columnFullName?: string | undefined;
126
+ com?: string | undefined;
127
+ comType?: string | undefined;
128
+ comAttr?: string | undefined;
129
+ con?: string | undefined;
130
+ dataSource?: any;
131
+ dictionarieObj?: any;
132
+ explicitRequired?: number | undefined;
133
+ explicitDefaultVal?: string | undefined;
134
+ extraField?: boolean | undefined;
135
+ fieldSetting?: string | undefined;
136
+ format?: string | undefined;
137
+ i18n?: string | undefined;
138
+ id?: string | undefined;
139
+ inputVal?: string | undefined;
140
+ inputUnit?: string | undefined;
141
+ isAvg?: number | undefined;
142
+ isEdit?: number | undefined;
143
+ isFixed?: number | undefined;
144
+ isFixedShow?: number | undefined;
145
+ isFontWeight?: number | undefined;
146
+ isMerge?: number | undefined;
147
+ isOrder?: number | undefined;
148
+ isPreciseSearch?: boolean | undefined;
149
+ isRender?: boolean | undefined;
150
+ isSearch?: number | undefined;
151
+ isShow?: number | undefined;
152
+ isSort?: number | undefined;
153
+ isSum?: number | undefined;
154
+ labelObj?: any;
155
+ labelList?: {
156
+ labelId?: string | undefined;
157
+ change_text: string;
158
+ field_key: string;
159
+ filter: {
160
+ con: string;
161
+ conName?: string | undefined;
162
+ field_key: string;
163
+ key?: string | undefined;
164
+ value: string;
165
+ }[];
166
+ label: string;
167
+ labelName: string;
168
+ sqlExpression: string;
169
+ value: string;
170
+ isSelect?: boolean | undefined;
171
+ }[] | undefined;
172
+ labelSelectList?: {
173
+ labelId?: string | undefined;
174
+ change_text: string;
175
+ field_key: string;
176
+ filter: {
177
+ con: string;
178
+ conName?: string | undefined;
179
+ field_key: string;
180
+ key?: string | undefined;
181
+ value: string;
182
+ }[];
183
+ label: string;
184
+ labelName: string;
185
+ sqlExpression: string;
186
+ value: string;
187
+ isSelect?: boolean | undefined;
188
+ }[] | undefined;
189
+ lessValue?: string | number | undefined;
190
+ marginx?: string | undefined;
191
+ notParticipatingSearch?: number | undefined;
192
+ order?: string | undefined;
193
+ QUOTE?: any;
194
+ searchPageConfig?: any;
195
+ selecteds?: any;
196
+ sequence?: number | undefined;
197
+ showDate?: boolean | undefined;
198
+ showFormat?: string | undefined;
199
+ showTime?: boolean | undefined;
200
+ sid?: string | undefined;
201
+ start_val?: number | null | undefined;
202
+ end_val?: number | null | undefined;
203
+ tempCon?: any;
204
+ tableId?: string | undefined;
205
+ value?: any;
206
+ unit?: string | undefined;
207
+ widgetCfg?: any;
208
+ formTitle?: string | undefined;
209
+ random_key?: string | undefined;
210
+ widgetType?: any;
211
+ hasFieldList?: any;
212
+ search_DefaultValue?: any;
213
+ }[]>;
214
+ showQuickSearch: import("vue").ComputedRef<boolean>;
215
+ initOutSearchFieldList: (config?: any) => void;
216
+ pageResize: (obj: any) => any;
217
+ handleTileBtnWidth: () => void;
218
+ onResize: () => void;
219
+ isShowSetting: (v: string) => boolean;
220
+ foldQuickSearch: () => void;
221
+ outFilterChange: (config?: {}) => void;
222
+ getConObjParams: () => any;
223
+ getConObj: (arr: any) => any;
224
+ onFilterSearch: (obj: import("..").ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
225
+ handleReset: () => void;
226
+ resetFunc: (arr: import("..").ISearchType[]) => void;
227
+ vResize: {
228
+ mounted(el: any, binding: any): void;
229
+ };
230
+ RenderWidget: import("vue").DefineComponent<{
231
+ cfg: {
232
+ type: ObjectConstructor;
233
+ required: true;
234
+ };
235
+ modelValue: {
236
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
237
+ };
238
+ }, any, {
239
+ initialProps: {};
240
+ }, {
241
+ valueCp(): any;
242
+ }, {
243
+ search(): void;
244
+ getEleWidth(cfg: any): string | undefined;
245
+ initComponentProps(cfg: any): void;
246
+ generateWidget(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
247
+ [key: string]: any;
248
+ }> | null;
249
+ handleUpdate(val: any, widgetType: any, defValueUnit: any): void;
250
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange")[], "update:modelValue" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
251
+ cfg: {
252
+ type: ObjectConstructor;
253
+ required: true;
254
+ };
255
+ modelValue: {
256
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
257
+ };
258
+ }>> & {
259
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
260
+ onOutFilterChange?: ((...args: any[]) => any) | undefined;
261
+ }, {}>;
262
+ NIcon: any;
263
+ NButton: any;
264
+ Search: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
265
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam")[], "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
266
+ showSettings: {
267
+ type: import("vue").PropType<import("..").IsettingsType>;
268
+ default: () => {
269
+ hideQuickSearch: number;
270
+ };
271
+ };
272
+ searchFieldList: {
273
+ type: import("vue").PropType<import("..").IApiServerType[]>;
274
+ default: () => never[];
275
+ };
276
+ classificationIndex: {
277
+ type: NumberConstructor;
278
+ };
279
+ qqConObjCount: {
280
+ type: NumberConstructor;
281
+ default: number;
282
+ };
283
+ }>> & {
284
+ onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
285
+ onOnFilterSearch?: ((...args: any[]) => any) | undefined;
286
+ onHandleReset?: ((...args: any[]) => any) | undefined;
287
+ onGetFilterParam?: ((...args: any[]) => any) | undefined;
288
+ }, {
289
+ showSettings: import("..").IsettingsType;
290
+ searchFieldList: import("..").IApiServerType[];
291
+ qqConObjCount: number;
292
+ }>>;
293
+ export default CBaseSearch;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as s}from"../../shared/utils/index.js";import a from"./src/index.vue.js";const e=a;e.install=function(a){s(a,e,r+"BaseSearch")};export{e as default};