cnhis-design-vue 3.1.42-release.3 → 3.1.42-release.5

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 (192) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/base-search/style/index.css +1 -1
  3. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  4. package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +1 -1
  5. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  6. package/es/components/big-table/src/hooks/useEvent.js +1 -1
  7. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  8. package/es/components/big-table/src/hooks/useNestTable.js +1 -1
  9. package/es/components/big-table/src/hooks/useTableParse.js +1 -1
  10. package/es/components/big-table/src/utils.d.ts +11 -1
  11. package/es/components/big-table/src/utils.js +1 -1
  12. package/es/components/button-print/index.d.ts +32 -7
  13. package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -8
  14. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  15. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  16. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  17. package/es/components/classification/index.d.ts +1 -1
  18. package/es/components/classification/src/index.vue.d.ts +2 -2
  19. package/es/components/classification/style/index.css +1 -1
  20. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  21. package/es/components/fabric-chart/index.d.ts +2 -2
  22. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  23. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
  24. package/es/components/field-set/index.d.ts +26 -81
  25. package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
  26. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  27. package/es/components/field-set/style/index.css +1 -1
  28. package/es/components/form-config/index.d.ts +45 -14
  29. package/es/components/form-config/src/FormConfig.vue.d.ts +45 -14
  30. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  31. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +15 -2
  32. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +24 -8
  33. package/es/components/form-render/index.d.ts +15 -2
  34. package/es/components/form-render/src/FormRender.vue.d.ts +15 -2
  35. package/es/components/form-render/src/FormRender.vue.js +1 -1
  36. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +15 -2
  37. package/es/components/form-render/src/components/renderer/date.d.ts +4 -0
  38. package/es/components/form-render/src/components/renderer/date.js +1 -1
  39. package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +18 -0
  40. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  41. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +36 -0
  42. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  43. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +18 -0
  44. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  45. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +18 -0
  46. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  47. package/es/components/form-render/src/components/renderer/select.d.ts +32 -5
  48. package/es/components/form-render/src/components/renderer/select.js +1 -1
  49. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  50. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  51. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
  52. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
  53. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  54. package/es/components/form-render/src/types/fieldItem.d.ts +6 -4
  55. package/es/components/form-render/src/types/index.d.ts +1 -1
  56. package/es/components/form-render/style/index.css +1 -1
  57. package/es/components/iho-table/index.d.ts +17 -3
  58. package/es/components/iho-table/src/IhoTable.vue.d.ts +17 -3
  59. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  60. package/es/components/iho-table/src/constants/index.d.ts +3 -2
  61. package/es/components/iho-table/src/constants/index.js +1 -1
  62. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -2
  63. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +19 -19
  64. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -237
  65. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -4
  66. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -16
  67. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +2 -2
  68. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  69. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  70. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
  71. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  72. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  73. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
  75. package/es/components/iho-table/src/plugins/index.js +1 -1
  76. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +25 -3
  78. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  79. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  80. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -1
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  86. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -0
  87. package/es/components/iho-table/src/plugins/rowDragPlugin/index.js +1 -0
  88. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  89. package/es/components/iho-table/src/types/index.d.ts +22 -5
  90. package/es/components/iho-table/src/types/pluginType.d.ts +11 -29
  91. package/es/components/iho-table/src/utils/index.d.ts +5 -3
  92. package/es/components/iho-table/src/utils/index.js +1 -1
  93. package/es/components/iho-table/style/iconfont.ttf +0 -0
  94. package/es/components/iho-table/style/index.css +1 -1
  95. package/es/components/index.css +1 -1
  96. package/es/components/index.d.ts +1 -0
  97. package/es/components/info-header/index.d.ts +31 -4
  98. package/es/components/info-header/src/InfoHeader.vue.d.ts +31 -4
  99. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  100. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  101. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -2
  102. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +16 -2
  103. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  104. package/es/components/info-header/style/index.css +1 -1
  105. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  106. package/es/components/map/index.d.ts +2 -14
  107. package/es/components/map/src/Map.vue.d.ts +1 -14
  108. package/es/components/map/src/types/index.d.ts +19 -0
  109. package/es/components/map/src/types/index.js +1 -0
  110. package/es/components/recommend-search/index.d.ts +13 -128
  111. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -130
  112. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  113. package/es/components/recommend-search/src/components/BaseSearch.d.ts +84 -0
  114. package/es/components/recommend-search/src/components/BaseSearch.js +1 -0
  115. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -63
  116. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  117. package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
  118. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  119. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -62
  120. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  121. package/es/components/recommend-search/src/constant/index.d.ts +3 -0
  122. package/es/components/recommend-search/src/constant/index.js +1 -1
  123. package/es/components/scale-view/index.d.ts +13 -158
  124. package/es/components/scale-view/index.js +1 -1
  125. package/es/components/scale-view/src/ScaleView.vue.d.ts +12 -158
  126. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  127. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +1 -43
  128. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  129. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -42
  130. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  131. package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
  132. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  133. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
  134. package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
  135. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
  136. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +7 -7
  137. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
  138. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  139. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
  140. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  141. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
  142. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +5 -1
  143. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  144. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
  145. package/es/components/scale-view/src/hooks/use-component.d.ts +73 -3
  146. package/es/components/scale-view/src/hooks/use-evaluate.js +1 -1
  147. package/es/components/scale-view/src/hooks/use-event.js +1 -1
  148. package/es/components/scale-view/src/types/index.d.ts +7 -0
  149. package/es/components/scale-view/src/types/index.js +1 -0
  150. package/es/components/scale-view/style/index.css +1 -1
  151. package/es/components/scale-view/style/scale-view-iconfont.ttf +0 -0
  152. package/es/components/search-cascader/index.d.ts +12 -1
  153. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +12 -1
  154. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  155. package/es/components/search-cascader/src/components/SearchMenu.d.ts +8 -1
  156. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  157. package/es/components/search-cascader/src/constants/index.d.ts +1 -0
  158. package/es/components/search-cascader/src/constants/index.js +1 -1
  159. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  160. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  161. package/es/components/select-label/style/index.css +1 -1
  162. package/es/components/select-person/index.d.ts +15 -7
  163. package/es/components/select-person/src/SelectPerson.vue.d.ts +9 -5
  164. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  165. package/es/components/shortcut-setter/index.d.ts +18 -4
  166. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -4
  167. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  168. package/es/components/table-filter/src/types/index.d.ts +9 -0
  169. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  170. package/es/components/vod-chunk-upload/index.d.ts +73 -3
  171. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -3
  172. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  173. package/es/env.d.ts +1 -0
  174. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  175. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  176. package/es/shared/hooks/useDateTime.d.ts +1 -1
  177. package/es/shared/hooks/useDateTime.js +1 -1
  178. package/es/shared/utils/anime.d.ts +1 -1
  179. package/es/shared/utils/anime.js +1 -1
  180. package/es/shared/utils/index.d.ts +3 -14
  181. package/es/shared/utils/index.js +1 -1
  182. package/es/shared/utils/vexutils.d.ts +2 -2
  183. package/es/shared/utils/vexutils.js +1 -1
  184. package/es/shared/utils/vexutilsExpand.d.ts +254 -0
  185. package/es/shared/utils/vexutilsExpand.js +1 -0
  186. package/package.json +2 -2
  187. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
  188. package/es/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
  189. /package/es/components/base-search/style/{iconfont.ttf → base-search-iconfont.ttf} +0 -0
  190. /package/es/components/classification/style/{iconfont.ttf → classification-iconfont.ttf} +0 -0
  191. /package/es/components/info-header/style/{iconfont.ttf → info-header-font.ttf} +0 -0
  192. /package/es/components/select-label/style/{iconfont.ttf → select-label-iconfont.ttf} +0 -0
@@ -2587,6 +2587,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2587
2587
  linebarAutoHidden: {
2588
2588
  type: BooleanConstructor;
2589
2589
  };
2590
+ bordered: {
2591
+ type: BooleanConstructor;
2592
+ default: boolean;
2593
+ };
2590
2594
  }, {
2591
2595
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2592
2596
  fieldList: {
@@ -2715,6 +2719,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2715
2719
  linebarAutoHidden: {
2716
2720
  type: BooleanConstructor;
2717
2721
  };
2722
+ bordered: {
2723
+ type: BooleanConstructor;
2724
+ default: boolean;
2725
+ };
2718
2726
  }>> & {
2719
2727
  onFormChange?: ((...args: any[]) => any) | undefined;
2720
2728
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2884,11 +2892,12 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2884
2892
  onBlur: (...args: any[]) => Promise<void>;
2885
2893
  onInput: (...args: any[]) => Promise<void>;
2886
2894
  reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
2895
+ title: string;
2896
+ editable: boolean;
2887
2897
  visible: boolean;
2888
2898
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2889
2899
  validator: import("@formily/core").FieldValidator;
2890
2900
  pattern: import("@formily/core").FieldPatternTypes;
2891
- title: string;
2892
2901
  form: import("@formily/core").Form<any>;
2893
2902
  content: any;
2894
2903
  componentProps: Record<string, any>;
@@ -2896,7 +2905,6 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2896
2905
  display: import("@formily/core").FieldDisplayTypes;
2897
2906
  description: string;
2898
2907
  readOnly: boolean;
2899
- editable: boolean;
2900
2908
  hidden: boolean;
2901
2909
  component: import("@formily/core").FieldComponent<any, any>;
2902
2910
  decorator: import("@formily/core").FieldDecorator<any, any>;
@@ -3158,6 +3166,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3158
3166
  linebarAutoHidden: {
3159
3167
  type: BooleanConstructor;
3160
3168
  };
3169
+ bordered: {
3170
+ type: BooleanConstructor;
3171
+ default: boolean;
3172
+ };
3161
3173
  }>> & {
3162
3174
  onFormChange?: ((...args: any[]) => any) | undefined;
3163
3175
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -3173,6 +3185,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3173
3185
  consumer: boolean;
3174
3186
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
3175
3187
  linebarAutoHidden: boolean;
3188
+ bordered: boolean;
3176
3189
  }>;
3177
3190
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
3178
3191
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -3278,6 +3291,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3278
3291
  color: string;
3279
3292
  textColor: string;
3280
3293
  };
3294
+ createSlotRenderer: (value: unknown) => any;
3281
3295
  show: import("vue").Ref<boolean>;
3282
3296
  fieldList: import("vue").ComputedRef<import("..").FieldItem[]>;
3283
3297
  formRenderRef: import("vue").Ref<import("..").FormRenderExpose | undefined>;
@@ -3422,6 +3436,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3422
3436
  linebarAutoHidden: {
3423
3437
  type: BooleanConstructor;
3424
3438
  };
3439
+ bordered: {
3440
+ type: BooleanConstructor;
3441
+ default: boolean;
3442
+ };
3425
3443
  }, {
3426
3444
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
3427
3445
  fieldList: {
@@ -3550,6 +3568,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3550
3568
  linebarAutoHidden: {
3551
3569
  type: BooleanConstructor;
3552
3570
  };
3571
+ bordered: {
3572
+ type: BooleanConstructor;
3573
+ default: boolean;
3574
+ };
3553
3575
  }>> & {
3554
3576
  onFormChange?: ((...args: any[]) => any) | undefined;
3555
3577
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -3719,11 +3741,12 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3719
3741
  onBlur: (...args: any[]) => Promise<void>;
3720
3742
  onInput: (...args: any[]) => Promise<void>;
3721
3743
  reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
3744
+ title: string;
3745
+ editable: boolean;
3722
3746
  visible: boolean;
3723
3747
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
3724
3748
  validator: import("@formily/core").FieldValidator;
3725
3749
  pattern: import("@formily/core").FieldPatternTypes;
3726
- title: string;
3727
3750
  form: import("@formily/core").Form<any>;
3728
3751
  content: any;
3729
3752
  componentProps: Record<string, any>;
@@ -3731,7 +3754,6 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3731
3754
  display: import("@formily/core").FieldDisplayTypes;
3732
3755
  description: string;
3733
3756
  readOnly: boolean;
3734
- editable: boolean;
3735
3757
  hidden: boolean;
3736
3758
  component: import("@formily/core").FieldComponent<any, any>;
3737
3759
  decorator: import("@formily/core").FieldDecorator<any, any>;
@@ -3993,6 +4015,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3993
4015
  linebarAutoHidden: {
3994
4016
  type: BooleanConstructor;
3995
4017
  };
4018
+ bordered: {
4019
+ type: BooleanConstructor;
4020
+ default: boolean;
4021
+ };
3996
4022
  }>> & {
3997
4023
  onFormChange?: ((...args: any[]) => any) | undefined;
3998
4024
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -4008,6 +4034,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
4008
4034
  consumer: boolean;
4009
4035
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
4010
4036
  linebarAutoHidden: boolean;
4037
+ bordered: boolean;
4011
4038
  }>;
4012
4039
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
4013
4040
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -2581,6 +2581,10 @@ declare const _default: import("vue").DefineComponent<{
2581
2581
  linebarAutoHidden: {
2582
2582
  type: BooleanConstructor;
2583
2583
  };
2584
+ bordered: {
2585
+ type: BooleanConstructor;
2586
+ default: boolean;
2587
+ };
2584
2588
  }, {
2585
2589
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2586
2590
  fieldList: {
@@ -2709,6 +2713,10 @@ declare const _default: import("vue").DefineComponent<{
2709
2713
  linebarAutoHidden: {
2710
2714
  type: BooleanConstructor;
2711
2715
  };
2716
+ bordered: {
2717
+ type: BooleanConstructor;
2718
+ default: boolean;
2719
+ };
2712
2720
  }>> & {
2713
2721
  onFormChange?: ((...args: any[]) => any) | undefined;
2714
2722
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2878,11 +2886,12 @@ declare const _default: import("vue").DefineComponent<{
2878
2886
  onBlur: (...args: any[]) => Promise<void>;
2879
2887
  onInput: (...args: any[]) => Promise<void>;
2880
2888
  reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2889
+ title: string;
2890
+ editable: boolean;
2881
2891
  visible: boolean;
2882
2892
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2883
2893
  validator: import("../../../../es/components/form-render").FieldValidator;
2884
2894
  pattern: import("../../../../es/components/form-render").FieldPatternTypes;
2885
- title: string;
2886
2895
  form: import("../../../../es/components/form-render").Form<any>;
2887
2896
  content: any;
2888
2897
  componentProps: Record<string, any>;
@@ -2890,7 +2899,6 @@ declare const _default: import("vue").DefineComponent<{
2890
2899
  display: import("../../../../es/components/form-render").FieldDisplayTypes;
2891
2900
  description: string;
2892
2901
  readOnly: boolean;
2893
- editable: boolean;
2894
2902
  hidden: boolean;
2895
2903
  component: import("../../../../es/components/form-render").FieldComponent<any, any>;
2896
2904
  decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
@@ -3152,6 +3160,10 @@ declare const _default: import("vue").DefineComponent<{
3152
3160
  linebarAutoHidden: {
3153
3161
  type: BooleanConstructor;
3154
3162
  };
3163
+ bordered: {
3164
+ type: BooleanConstructor;
3165
+ default: boolean;
3166
+ };
3155
3167
  }>> & {
3156
3168
  onFormChange?: ((...args: any[]) => any) | undefined;
3157
3169
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -3167,6 +3179,7 @@ declare const _default: import("vue").DefineComponent<{
3167
3179
  consumer: boolean;
3168
3180
  enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
3169
3181
  linebarAutoHidden: boolean;
3182
+ bordered: boolean;
3170
3183
  }>;
3171
3184
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
3172
3185
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -3272,6 +3285,7 @@ declare const _default: import("vue").DefineComponent<{
3272
3285
  color: string;
3273
3286
  textColor: string;
3274
3287
  };
3288
+ createSlotRenderer: (value: unknown) => any;
3275
3289
  show: import("vue").Ref<boolean>;
3276
3290
  fieldList: import("vue").ComputedRef<import("../../../../es/components/form-render").FieldItem[]>;
3277
3291
  formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
@@ -3416,6 +3430,10 @@ declare const _default: import("vue").DefineComponent<{
3416
3430
  linebarAutoHidden: {
3417
3431
  type: BooleanConstructor;
3418
3432
  };
3433
+ bordered: {
3434
+ type: BooleanConstructor;
3435
+ default: boolean;
3436
+ };
3419
3437
  }, {
3420
3438
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
3421
3439
  fieldList: {
@@ -3544,6 +3562,10 @@ declare const _default: import("vue").DefineComponent<{
3544
3562
  linebarAutoHidden: {
3545
3563
  type: BooleanConstructor;
3546
3564
  };
3565
+ bordered: {
3566
+ type: BooleanConstructor;
3567
+ default: boolean;
3568
+ };
3547
3569
  }>> & {
3548
3570
  onFormChange?: ((...args: any[]) => any) | undefined;
3549
3571
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -3713,11 +3735,12 @@ declare const _default: import("vue").DefineComponent<{
3713
3735
  onBlur: (...args: any[]) => Promise<void>;
3714
3736
  onInput: (...args: any[]) => Promise<void>;
3715
3737
  reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
3738
+ title: string;
3739
+ editable: boolean;
3716
3740
  visible: boolean;
3717
3741
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
3718
3742
  validator: import("../../../../es/components/form-render").FieldValidator;
3719
3743
  pattern: import("../../../../es/components/form-render").FieldPatternTypes;
3720
- title: string;
3721
3744
  form: import("../../../../es/components/form-render").Form<any>;
3722
3745
  content: any;
3723
3746
  componentProps: Record<string, any>;
@@ -3725,7 +3748,6 @@ declare const _default: import("vue").DefineComponent<{
3725
3748
  display: import("../../../../es/components/form-render").FieldDisplayTypes;
3726
3749
  description: string;
3727
3750
  readOnly: boolean;
3728
- editable: boolean;
3729
3751
  hidden: boolean;
3730
3752
  component: import("../../../../es/components/form-render").FieldComponent<any, any>;
3731
3753
  decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
@@ -3987,6 +4009,10 @@ declare const _default: import("vue").DefineComponent<{
3987
4009
  linebarAutoHidden: {
3988
4010
  type: BooleanConstructor;
3989
4011
  };
4012
+ bordered: {
4013
+ type: BooleanConstructor;
4014
+ default: boolean;
4015
+ };
3990
4016
  }>> & {
3991
4017
  onFormChange?: ((...args: any[]) => any) | undefined;
3992
4018
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -4002,6 +4028,7 @@ declare const _default: import("vue").DefineComponent<{
4002
4028
  consumer: boolean;
4003
4029
  enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
4004
4030
  linebarAutoHidden: boolean;
4031
+ bordered: boolean;
4005
4032
  }>;
4006
4033
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
4007
4034
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- import{defineComponent as e,provide as t,ref as n,computed as o,openBlock as i,createElementBlock as a,normalizeClass as r,normalizeStyle as s,unref as p,createElementVNode as c,createCommentVNode as l,renderSlot as f,createVNode as d,withCtx as u,mergeProps as m,Fragment as h,renderList as v,createBlock as g,resolveDynamicComponent as y,h as _,nextTick as b}from"vue";import{isString as I}from"lodash-es";import $ from"./components/infoDescription/index.vue.js";import x from"./components/patientInfo/index.vue.js";import{InjectionInfoHeaderEmit as S,InjectionInfoHeaderFormRef as j}from"./constants/index.js";import z from"../../../_virtual/plugin-vue_export-helper.js";const w={class:"c-info-header__operation"},k={key:0,class:"c-info-header__divider"},C={class:"c-info-header__setting"},H=["onClick"];var P=z(e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},patientInfo:{type:Object,default:()=>({})},patientEditable:{type:Boolean},separator:{type:String,default:":"},infoList:{type:Array,default:()=>[]},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:38},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]},formProps:{type:Object}},emits:["openPatientInfo","fieldSet","update:compact","formChange"],setup(e,{expose:z,emit:P}){const A=e;t(S,P);const B=n();function D(){var e;return null==(e=B.value)?void 0:e.updateColumn()}const E=o((()=>({"--row-height":A.rowHeight,"--row-num":A.compact?1:2,"--padding-tb":A.compact?9:4}))),F={patientInfo:{event:function(){P("openPatientInfo")},render:()=>[_("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){P("fieldSet")},render:()=>[_("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){P("update:compact",!A.compact),await b(),await D()},render:()=>[_("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},N=o((()=>A.settingIcons.map((e=>(I(e)?F[e]:e)||{})))),O=n();return t(j,O),z({update:D,$formRender:O}),(t,n)=>(i(),a("div",{class:r(["c-info-header",{"is-compact":e.compact}]),style:s(p(E))},[c("section",w,[l(" 操作区插槽 "),f(t.$slots,"operation")]),t.$slots.operation?(i(),a("div",k)):l("v-if",!0),l(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),f(t.$slots,"patientModule",{},(()=>[d(p(x),{"patient-info":e.patientInfo,"patient-editable":e.patientEditable},{avatarInfo:u((()=>[l(" 头像区补充内容插槽 (会插入头像下方) "),f(t.$slots,"avatarInfo")])),avatar:u((()=>[l(" 头像插槽 "),f(t.$slots,"avatar")])),tags:u((()=>[l(" 标签插槽 "),f(t.$slots,"tags")])),_:3},8,["patient-info","patient-editable"])])),d(p($),m({ref_key:"infoDescriptionRef",ref:B,"root-slot":t.$slots},t.$props),{info:u((()=>[l(" 信息描述区插槽 "),f(t.$slots,"info")])),_:3},16,["root-slot"]),c("section",C,[l(" 设置区插槽 "),f(t.$slots,"setting",{},(()=>[(i(!0),a(h,null,v(p(N),(e=>(i(),a("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(i(),g(y(e.render)))],8,H)))),128))]))])],6))}}),[["__file","InfoHeader.vue"]]);export{P as default};
1
+ import{defineComponent as e,provide as t,ref as n,computed as o,openBlock as i,createElementBlock as a,normalizeClass as r,normalizeStyle as s,unref as p,createElementVNode as f,createCommentVNode as c,renderSlot as l,createVNode as d,withCtx as u,mergeProps as m,Fragment as h,renderList as v,createBlock as g,resolveDynamicComponent as y,h as _,nextTick as b}from"vue";import{isString as I}from"lodash-es";import $ from"./components/infoDescription/index.vue.js";import x from"./components/patientInfo/index.vue.js";import{InjectionInfoHeaderEmit as S,InjectionInfoHeaderFormRef as j}from"./constants/index.js";import z from"../../../_virtual/plugin-vue_export-helper.js";const w={class:"c-info-header__operation"},k={key:0,class:"c-info-header__divider"},C={class:"c-info-header__setting"},H=["onClick"];var P=z(e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},patientInfo:{type:Object,default:()=>({})},patientEditable:{type:Boolean},separator:{type:String,default:":"},infoList:{type:Array,default:()=>[]},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:38},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]},formProps:{type:Object}},emits:["openPatientInfo","fieldSet","update:compact","formChange"],setup(e,{expose:z,emit:P}){const A=e;t(S,P);const B=n();function D(){var e;return null==(e=B.value)?void 0:e.updateColumn()}const E=o((()=>({"--row-height":A.rowHeight,"--row-num":A.compact?1:2,"--padding-tb":A.compact?9:4}))),F={patientInfo:{event:function(){P("openPatientInfo")},render:()=>[_("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){P("fieldSet")},render:()=>[_("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){P("update:compact",!A.compact),await b(),await D()},render:()=>[_("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},N=o((()=>A.settingIcons.map((e=>(I(e)?F[e]:e)||{})))),O=n();return t(j,O),z({update:D,$formRender:O}),(t,n)=>(i(),a("div",{class:r(["c-info-header",{"is-compact":e.compact}]),style:s(p(E))},[f("section",w,[c(" 操作区插槽 "),l(t.$slots,"operation")]),t.$slots.operation?(i(),a("div",k)):c("v-if",!0),c(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),l(t.$slots,"patientModule",{},(()=>[d(p(x),{"patient-info":e.patientInfo,"patient-editable":e.patientEditable},{avatarInfo:u((()=>[c(" 头像区补充内容插槽 (会插入头像下方) "),l(t.$slots,"avatarInfo")])),avatar:u((()=>[c(" 头像插槽 "),l(t.$slots,"avatar")])),tags:u((()=>[c(" 标签插槽 "),l(t.$slots,"tags")])),_:3},8,["patient-info","patient-editable"])])),d(p($),m({ref_key:"infoDescriptionRef",ref:B,"root-slot":t.$slots},t.$props),{info:u((()=>[c(" 信息描述区插槽 "),l(t.$slots,"info")])),_:3},16,["root-slot"]),f("section",C,[c(" 设置区插槽 "),l(t.$slots,"setting",{},(()=>[(i(!0),a(h,null,v(p(N),(e=>(i(),a("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(i(),g(y(e.render)))],8,H)))),128))]))])],6))}}),[["__file","InfoHeader.vue"]]);export{P as default};
@@ -1 +1 @@
1
- import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as u,createVNode as a,normalizeClass as c}from"vue";import s from"./InfoEllipsis.vue.js";import d from"../../../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-info-header__hidden--content"};var p=d(t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const d=t,p=n(!0);function h(){p.value=!p.value}const v=e((()=>{const t=d.width+"px";return{maxWidth:t,width:t}})),_=e((()=>{if(!d.width)return{};const t=d.width-40+"px";return Object.assign({},d.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=d;if(!p.value)return t;if(null==t)return"-";t+="";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[u("div",f,[a(s,{"content-style":l(_),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),u("i",{onClick:h,class:c(["c-info-header__hidden--icon","iconfont","info-header--icon-"+(p.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}}),[["__file","HiddenContent.vue"]]);export{p as default};
1
+ import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as u,createVNode as a,normalizeClass as c}from"vue";import s from"./InfoEllipsis.vue.js";import d from"../../../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-info-header__hidden--content"};var p=d(t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const d=t,p=n(!0);function h(){p.value=!p.value}const v=e((()=>{const t=d.width+"px";return{maxWidth:t,width:t}})),_=e((()=>{if(!d.width)return{};const t=d.width-40+"px";return Object.assign({},d.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=d;if(!p.value)return t;if(null==t)return"-";t+="";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[u("div",f,[a(s,{"content-style":l(_),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),u("i",{onClick:h,class:c(["c-info-header__hidden--icon","info-header--iconfont","info-header--icon-"+(p.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}}),[["__file","HiddenContent.vue"]]);export{p as default};
@@ -2169,6 +2169,10 @@ declare const _default: import("vue").DefineComponent<{
2169
2169
  linebarAutoHidden: {
2170
2170
  type: BooleanConstructor;
2171
2171
  };
2172
+ bordered: {
2173
+ type: BooleanConstructor;
2174
+ default: boolean;
2175
+ };
2172
2176
  }, {
2173
2177
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2174
2178
  fieldList: {
@@ -2297,6 +2301,10 @@ declare const _default: import("vue").DefineComponent<{
2297
2301
  linebarAutoHidden: {
2298
2302
  type: BooleanConstructor;
2299
2303
  };
2304
+ bordered: {
2305
+ type: BooleanConstructor;
2306
+ default: boolean;
2307
+ };
2300
2308
  }>> & {
2301
2309
  onFormChange?: ((...args: any[]) => any) | undefined;
2302
2310
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2466,11 +2474,12 @@ declare const _default: import("vue").DefineComponent<{
2466
2474
  onBlur: (...args: any[]) => Promise<void>;
2467
2475
  onInput: (...args: any[]) => Promise<void>;
2468
2476
  reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2477
+ title: string;
2478
+ editable: boolean;
2469
2479
  visible: boolean;
2470
2480
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2471
2481
  validator: import("../../../../../../es/components/form-render").FieldValidator;
2472
2482
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
2473
- title: string;
2474
2483
  form: import("../../../../../../es/components/form-render").Form<any>;
2475
2484
  content: any;
2476
2485
  componentProps: Record<string, any>;
@@ -2478,7 +2487,6 @@ declare const _default: import("vue").DefineComponent<{
2478
2487
  display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
2479
2488
  description: string;
2480
2489
  readOnly: boolean;
2481
- editable: boolean;
2482
2490
  hidden: boolean;
2483
2491
  component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
2484
2492
  decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
@@ -2740,6 +2748,10 @@ declare const _default: import("vue").DefineComponent<{
2740
2748
  linebarAutoHidden: {
2741
2749
  type: BooleanConstructor;
2742
2750
  };
2751
+ bordered: {
2752
+ type: BooleanConstructor;
2753
+ default: boolean;
2754
+ };
2743
2755
  }>> & {
2744
2756
  onFormChange?: ((...args: any[]) => any) | undefined;
2745
2757
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2755,6 +2767,7 @@ declare const _default: import("vue").DefineComponent<{
2755
2767
  consumer: boolean;
2756
2768
  enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
2757
2769
  linebarAutoHidden: boolean;
2770
+ bordered: boolean;
2758
2771
  }>;
2759
2772
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
2760
2773
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -36,6 +36,7 @@ declare const _default: import("vue").DefineComponent<{
36
36
  color: string;
37
37
  textColor: string;
38
38
  };
39
+ createSlotRenderer: (value: unknown) => any;
39
40
  show: import("vue").Ref<boolean>;
40
41
  fieldList: import("vue").ComputedRef<FieldItem[]>;
41
42
  formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
@@ -180,6 +181,10 @@ declare const _default: import("vue").DefineComponent<{
180
181
  linebarAutoHidden: {
181
182
  type: BooleanConstructor;
182
183
  };
184
+ bordered: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
183
188
  }, {
184
189
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
185
190
  fieldList: {
@@ -308,6 +313,10 @@ declare const _default: import("vue").DefineComponent<{
308
313
  linebarAutoHidden: {
309
314
  type: BooleanConstructor;
310
315
  };
316
+ bordered: {
317
+ type: BooleanConstructor;
318
+ default: boolean;
319
+ };
311
320
  }>> & {
312
321
  onFormChange?: ((...args: any[]) => any) | undefined;
313
322
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -477,11 +486,12 @@ declare const _default: import("vue").DefineComponent<{
477
486
  onBlur: (...args: any[]) => Promise<void>;
478
487
  onInput: (...args: any[]) => Promise<void>;
479
488
  reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
489
+ title: string;
490
+ editable: boolean;
480
491
  visible: boolean;
481
492
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
482
493
  validator: import("../../../../../../es/components/form-render").FieldValidator;
483
494
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
484
- title: string;
485
495
  form: import("../../../../../../es/components/form-render").Form<any>;
486
496
  content: any;
487
497
  componentProps: Record<string, any>;
@@ -489,7 +499,6 @@ declare const _default: import("vue").DefineComponent<{
489
499
  display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
490
500
  description: string;
491
501
  readOnly: boolean;
492
- editable: boolean;
493
502
  hidden: boolean;
494
503
  component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
495
504
  decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
@@ -751,6 +760,10 @@ declare const _default: import("vue").DefineComponent<{
751
760
  linebarAutoHidden: {
752
761
  type: BooleanConstructor;
753
762
  };
763
+ bordered: {
764
+ type: BooleanConstructor;
765
+ default: boolean;
766
+ };
754
767
  }>> & {
755
768
  onFormChange?: ((...args: any[]) => any) | undefined;
756
769
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -766,6 +779,7 @@ declare const _default: import("vue").DefineComponent<{
766
779
  consumer: boolean;
767
780
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
768
781
  linebarAutoHidden: boolean;
782
+ bordered: boolean;
769
783
  }>;
770
784
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
771
785
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,ref as a,watch as n,nextTick as i,openBlock as l,createElementBlock as o,renderSlot as r,createVNode as s,unref as p,withCtx as f,mergeProps as d,createElementVNode as u,normalizeClass as c,toDisplayString as v,createCommentVNode as _,createTextVNode as m,Fragment as g,renderList as x,createBlock as y,resolveDynamicComponent as I}from"vue";import{isArray as h,isString as w,pick as b}from"lodash-es";import{NPopover as k,NImage as P,NDivider as E,NSpace as U,NButton as C,NTag as L,NEllipsis as H}from"naive-ui";import j from"../../../../form-render/index.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const T={class:"c-info-header__patient"},F={class:"c-info-header__patientHeader"},N={key:0,class:"c-info-header__patientHeader--name"},R={key:1,class:"c-info-header__patientHeader--sex"},$={key:2,class:"c-info-header__patientHeader--age"};var B=z(e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const z=e,B=t((()=>z.patientInfo&&h(z.patientInfo.tagList)?z.patientInfo.tagList.filter((e=>e.render||w(e.content)&&e.content)):[])),S={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},V={warning:"#fff",info:"#2563F4"};function D({type:e="warning"}){return{color:S[e],textColor:V[e]}}const M=a(!1),O=t((()=>z.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:"姓名",html_type:"INPUT",...z.patientInfo.nameProps},{val_key:"sex",alias:"性别",html_type:"SELECT",is_null:"0",option:[{text:"未知",value:"未知"},{text:"男",value:"男"},{text:"女",value:"女"}],...z.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...z.patientInfo.ageProps,suffixConfig:{alias:"年龄单位",is_null:"0",val_key:"ageUnit",html_type:"SELECT",decoratorProps:{style:{flex:1}},option:[{value:"天",text:"天"},{value:"月",text:"月"},{value:"岁",text:"岁"},{value:"小时",text:"小时"},{value:"分",text:"分"},{value:"周",text:"周"}],...z.patientInfo.ageUnitProps}}]:[])),W=a();async function q(){W.value&&(await W.value.validate(),Object.assign(z.patientInfo,b(W.value.getFormValues(),["name","sex","age","ageUnit"])),M.value=!1)}return n(M,(async e=>{await i(),e&&W.value&&W.value.setFormValues(z.patientInfo||{})})),(t,a)=>(l(),o("section",T,[r(t.$slots,"avatar",{},(()=>[s(p(k),null,{trigger:f((()=>[s(p(P),d({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:f((()=>[s(p(P),d({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),u("section",null,[u("header",F,[s(p(k),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:M.value},{trigger:f((()=>[u("section",{class:c(["c-info-header__patientHeaderWrapper",{"in-edit":M.value}]),onDblclick:a[0]||(a[0]=t=>e.patientEditable&&(M.value=!0))},[e.patientInfo.name?(l(),o("div",N,v(e.patientInfo.name),1)):_("v-if",!0),e.patientInfo.sex?(l(),o("div",R,"/ "+v(e.patientInfo.sex),1)):_("v-if",!0),null!=e.patientInfo.age?(l(),o("div",$," / "+v(e.patientInfo.age)+v(e.patientInfo.ageUnit||"岁"),1)):_("v-if",!0)],34)])),default:f((()=>[s(p(j),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":p(O),ref_key:"formRenderRef",ref:W},null,8,["field-list"]),s(p(E),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),s(p(U),{justify:"end"},{default:f((()=>[s(p(C),{size:"small",onClick:a[1]||(a[1]=e=>M.value=!1)},{default:f((()=>[m("取消")])),_:1}),s(p(C),{size:"small",type:"info",onClick:q},{default:f((()=>[m("确认")])),_:1})])),_:1})])),_:1},8,["disabled","show"]),r(t.$slots,"tags",{tagList:p(B)},(()=>[(l(!0),o(g,null,x(e.patientInfo.tagList||[],(e=>(l(),y(p(L),d({key:e.content,size:"medium",bordered:!1,color:D(e)},e),{default:f((()=>[e.render?(l(),y(I(e.render),{key:0})):(l(),y(p(H),{key:1,style:{"max-width":"96px"}},{default:f((()=>[m(v(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),r(t.$slots,"avatarInfo")])]))}}),[["__file","index.vue"]]);export{B as default};
1
+ import{defineComponent as e,computed as t,ref as a,watch as n,nextTick as i,openBlock as l,createElementBlock as o,renderSlot as r,createVNode as s,unref as p,withCtx as f,mergeProps as u,createElementVNode as d,normalizeClass as c,createBlock as v,resolveDynamicComponent as _,createCommentVNode as m,createTextVNode as g,Fragment as x,renderList as y,toDisplayString as I,h}from"vue";import{isArray as w,isString as b,isNumber as k,isFunction as P,isObject as E,pick as U}from"lodash-es";import{NPopover as C,NImage as L,NDivider as H,NSpace as j,NButton as z,NTag as T,NEllipsis as F}from"naive-ui";import N from"../../../../form-render/index.js";import R from"../../../../../_virtual/plugin-vue_export-helper.js";const $={class:"c-info-header__patient"},B={class:"c-info-header__patientHeader"},S={key:0,class:"c-info-header__patientHeader--name"},V={key:1,class:"c-info-header__patientHeader--sex"},D={key:2,class:"c-info-header__patientHeader--age"};var M=R(e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const R=e,M=t((()=>R.patientInfo&&w(R.patientInfo.tagList)?R.patientInfo.tagList.filter((e=>e.render||b(e.content)&&e.content)):[])),O={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},W={warning:"#fff",info:"#2563F4"};function q({type:e="warning"}){return{color:O[e],textColor:W[e]}}function A(e){return()=>b(e)||k(e)?e:P(e)?e():E(e)?h(e):null}const G=a(!1),J=t((()=>R.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:"姓名",html_type:"INPUT",...R.patientInfo.nameProps},{val_key:"sex",alias:"性别",html_type:"SELECT",is_null:"0",option:[{text:"未知",value:"未知"},{text:"男",value:"男"},{text:"女",value:"女"}],...R.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...R.patientInfo.ageProps,suffixConfig:{alias:"年龄单位",is_null:"0",val_key:"ageUnit",html_type:"SELECT",decoratorProps:{style:{flex:1}},option:[{value:"天",text:"天"},{value:"月",text:"月"},{value:"岁",text:"岁"},{value:"小时",text:"小时"},{value:"分",text:"分"},{value:"周",text:"周"}],...R.patientInfo.ageUnitProps}}]:[])),K=a();async function Q(){K.value&&(await K.value.validate(),Object.assign(R.patientInfo,U(K.value.getFormValues(),["name","sex","age","ageUnit"])),G.value=!1)}return n(G,(async e=>{await i(),e&&K.value&&K.value.setFormValues(R.patientInfo||{})})),(t,a)=>(l(),o("section",$,[r(t.$slots,"avatar",{},(()=>[s(p(C),null,{trigger:f((()=>[s(p(L),u({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:f((()=>[s(p(L),u({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),d("section",null,[d("header",B,[s(p(C),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:G.value},{trigger:f((()=>{var t;return[d("section",{class:c(["c-info-header__patientHeaderWrapper",{"in-edit":G.value}]),onDblclick:a[0]||(a[0]=t=>e.patientEditable&&(G.value=!0))},[e.patientInfo.name?(l(),o("div",S,[(l(),v(_(A(e.patientInfo.name))))])):m("v-if",!0),e.patientInfo.sex?(l(),o("div",V,[g(" / "),(l(),v(_(A(e.patientInfo.sex))))])):m("v-if",!0),null!=e.patientInfo.age?(l(),o("div",D,[g(" / "),(l(),v(_(A(e.patientInfo.age)))),(l(),v(_(A(null!=(t=e.patientInfo.ageUnit)?t:"岁"))))])):m("v-if",!0)],34)]})),default:f((()=>[s(p(N),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":p(J),ref_key:"formRenderRef",ref:K},null,8,["field-list"]),s(p(H),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),s(p(j),{justify:"end"},{default:f((()=>[s(p(z),{size:"small",onClick:a[1]||(a[1]=e=>G.value=!1)},{default:f((()=>[g("取消")])),_:1}),s(p(z),{size:"small",type:"info",onClick:Q},{default:f((()=>[g("确认")])),_:1})])),_:1})])),_:1},8,["disabled","show"]),r(t.$slots,"tags",{tagList:p(M)},(()=>[(l(!0),o(x,null,y(e.patientInfo.tagList||[],(e=>(l(),v(p(T),u({key:e.content,size:"medium",bordered:!1,color:q(e)},e),{default:f((()=>[e.render?(l(),v(_(e.render),{key:0})):(l(),v(p(F),{key:1,style:{"max-width":"96px"}},{default:f((()=>[g(I(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),r(t.$slots,"avatarInfo")])]))}}),[["__file","index.vue"]]);export{M as default};
@@ -1 +1 @@
1
- .c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 16px}@font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.c-info-header .iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px)}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s ease-in-out}.c-info-header.is-compact [compact-hidden]{display:none!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}.c-info-header__formRender .n-form-item-blank>.n-input .n-input-wrapper{border-bottom:1px solid var(--n-text-color)}.c-info-header__formRender .n-base-selection,.c-info-header__formRender .n-base-selection-label,.c-info-header__formRender .n-date-picker,.c-info-header__formRender .n-input,.c-info-header__formRender .n-input-wrapper{max-height:18px;min-height:18px;vertical-align:top}.c-info-header__formRender .n-base-selection input,.c-info-header__formRender .n-base-selection-label input,.c-info-header__formRender .n-date-picker input,.c-info-header__formRender .n-input input,.c-info-header__formRender .n-input-wrapper input{max-height:18px;min-height:18px}.c-info-header__formRender .n-select{line-height:1}
1
+ .c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 16px;transition:height .2s linear,padding .2s linear}@font-face{font-family:info-header-iconfont;src:url(info-header-font.ttf) format("truetype")}.c-info-header .info-header--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:info-header-iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px);transition:height .2s linear,max-height .2s linear}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .info-header--iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s linear}.c-info-header [compact-hidden]{max-height:160px;transition:max-height .2s ease-in-out,opacity .2s linear}.c-info-header.is-compact [compact-hidden]{max-height:0!important;opacity:0!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}.c-info-header__formRender .n-form-item-blank>.n-input .n-input-wrapper{border-bottom:1px solid var(--n-text-color)}.c-info-header__formRender .n-base-selection,.c-info-header__formRender .n-base-selection-label,.c-info-header__formRender .n-date-picker,.c-info-header__formRender .n-input,.c-info-header__formRender .n-input-wrapper{max-height:18px;min-height:18px;vertical-align:top}.c-info-header__formRender .n-base-selection input,.c-info-header__formRender .n-base-selection-label input,.c-info-header__formRender .n-date-picker input,.c-info-header__formRender .n-input input,.c-info-header__formRender .n-input-wrapper input{max-height:18px;min-height:18px}.c-info-header__formRender .n-select{line-height:1}
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,provide as t,computed as o,unref as n,openBlock as a,createBlock as u,normalizeStyle as i,withCtx as s,createVNode as r,mergeProps as d,createElementBlock as f,normalizeClass as p,createElementVNode as c,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as b,NSpace as w,NIcon as V}from"naive-ui";import{Close as _,GitCompareOutline as x,ArrowUndoSharp as O}from"@vicons/ionicons5";import S from"./components/NumberPanel.vue.js";import{useDraggable as j}from"@vueuse/core";import{useTheme as C}from"../../../shared/hooks/useTheme.js";import"lodash-es";import{defaultCssVars as I}from"./constants/index.js";import D from"../../../_virtual/plugin-vue_export-helper.js";const K=c("span",null,"键盘",-1),N={class:"keys"},R=["onClick"];var U=D(e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:D,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=C(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),A=o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),G=l(J.slice()),H=l(null),L=l(null),W=l(null),X=l(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=j(L,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var t,o,n,a;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(a=null==(n=B.moveOffset)?void 0:n.y)?a:0}});return t}}();function Z(e){"Switch"!==e?U("keydown",e):G.value="Q"===G.value[0]?M.slice():J.slice()}function q(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),X.value=e,U("change",e)}return D({select:function(){Q.value=Date.now()}}),(l,t)=>n(T)||e.panel?!n(T)&&e.panel?(a(),u(S,d({key:1},n($),{style:n(P)}),null,16,["style"])):(a(),f("div",{key:2,class:p(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(n(A))},[r(n(w),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:s((()=>[K,r(n(V),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(_)},null,8,["component"])])),_:1},8,["style"]),c("div",N,[(a(!0),f(m,null,v(G.value,((e,l)=>(a(),f("span",{key:e,class:p(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(a(),u(n(V),{key:0,component:n(x)},null,8,["component"])):y("v-if",!0),"Undo"===e?(a(),u(n(V),{key:1,component:n(O)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,R)))),128))])],6)):(a(),u(n(k),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},n(P)]),"display-directive":"show"},{trigger:s((()=>[r(n(b),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:s((()=>[r(S,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}}),[["__file","Keyboard.vue"]]);export{U as default};
1
+ import{defineComponent as e,ref as l,provide as t,computed as o,unref as n,openBlock as a,createBlock as u,normalizeStyle as i,withCtx as s,createVNode as r,mergeProps as d,createElementBlock as f,normalizeClass as p,createElementVNode as c,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as b,NSpace as w,NIcon as V}from"naive-ui";import{Close as _,GitCompareOutline as x,ArrowUndoSharp as O}from"@vicons/ionicons5";import S from"./components/NumberPanel.vue.js";import{useDraggable as j}from"@vueuse/core";import{useTheme as C}from"../../../shared/hooks/useTheme.js";import"date-fns";import"lodash-es";import{defaultCssVars as I}from"./constants/index.js";import D from"../../../_virtual/plugin-vue_export-helper.js";const K=c("span",null,"键盘",-1),N={class:"keys"},R=["onClick"];var U=D(e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:D,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=C(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),A=o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),G=l(J.slice()),H=l(null),L=l(null),W=l(null),X=l(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=j(L,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var t,o,n,a;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(a=null==(n=B.moveOffset)?void 0:n.y)?a:0}});return t}}();function Z(e){"Switch"!==e?U("keydown",e):G.value="Q"===G.value[0]?M.slice():J.slice()}function q(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),X.value=e,U("change",e)}return D({select:function(){Q.value=Date.now()}}),(l,t)=>n(T)||e.panel?!n(T)&&e.panel?(a(),u(S,d({key:1},n($),{style:n(P)}),null,16,["style"])):(a(),f("div",{key:2,class:p(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(n(A))},[r(n(w),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:s((()=>[K,r(n(V),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(_)},null,8,["component"])])),_:1},8,["style"]),c("div",N,[(a(!0),f(m,null,v(G.value,((e,l)=>(a(),f("span",{key:e,class:p(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(a(),u(n(V),{key:0,component:n(x)},null,8,["component"])):y("v-if",!0),"Undo"===e?(a(),u(n(V),{key:1,component:n(O)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,R)))),128))])],6)):(a(),u(n(k),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},n(P)]),"display-directive":"show"},{trigger:s((()=>[r(n(b),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:s((()=>[r(S,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}}),[["__file","Keyboard.vue"]]);export{U as default};
@@ -1,4 +1,5 @@
1
1
  import { SFCWithInstall } from '../../../es/shared/types';
2
+ export * from './src/types';
2
3
  declare const Map: SFCWithInstall<import("vue").DefineComponent<{
3
4
  locationProp: {
4
5
  type: StringConstructor;
@@ -21,20 +22,7 @@ declare const Map: SFCWithInstall<import("vue").DefineComponent<{
21
22
  }>> & {
22
23
  onSelectLocation?: ((...args: any[]) => any) | undefined;
23
24
  }>>;
24
- state: {
25
- qq: any;
26
- searchKey: any;
27
- centrePoint: any;
28
- location: any;
29
- localObj: any;
30
- map: any;
31
- ac: any;
32
- addressList: any[];
33
- markers: any[];
34
- timeout: any;
35
- searchService: any;
36
- geocoder: any;
37
- };
25
+ state: import("./src/types").IState;
38
26
  defAdress: import("vue").ComputedRef<any>;
39
27
  emit: (event: "selectLocation", ...args: any[]) => void;
40
28
  calculateLocationProp: import("vue").ComputedRef<any>;
@@ -1,17 +1,4 @@
1
- declare type IState = {
2
- qq: any;
3
- searchKey: any;
4
- centrePoint: any;
5
- location: any;
6
- localObj: any;
7
- map: any;
8
- ac: any;
9
- addressList: any[];
10
- markers: any[];
11
- timeout: any;
12
- searchService: any;
13
- geocoder: any;
14
- };
1
+ import { IState } from '../../../../es/components/map/src/types';
15
2
  declare const _default: import("vue").DefineComponent<{
16
3
  locationProp: {
17
4
  type: StringConstructor;
@@ -0,0 +1,19 @@
1
+ export declare type IState = {
2
+ qq: any;
3
+ searchKey: any;
4
+ centrePoint: any;
5
+ location: any;
6
+ localObj: any;
7
+ map: any;
8
+ ac: any;
9
+ addressList: any[];
10
+ markers: any[];
11
+ timeout: any;
12
+ searchService: any;
13
+ geocoder: any;
14
+ };
15
+ export declare type IMapLocation = Partial<{
16
+ isInit: boolean;
17
+ locationProp: string;
18
+ [key: string]: any;
19
+ }>;