cnhis-design-vue 3.1.53-beta.2 → 3.1.53-beta.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 (71) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/body-select/index.d.ts +9 -4
  3. package/es/components/body-select/src/config/index.js +1 -1
  4. package/es/components/body-select/src/hooks/renderCanvas.d.ts +1 -1
  5. package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
  6. package/es/components/body-select/src/index.vue.d.ts +9 -4
  7. package/es/components/body-select/src/index.vue2.js +1 -1
  8. package/es/components/callback/src/components/render/popupMaps.d.ts +25 -1
  9. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  10. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  11. package/es/components/form-config/index.d.ts +74 -2
  12. package/es/components/form-config/src/FormConfig.vue.d.ts +74 -2
  13. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  14. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +25 -1
  15. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +37 -1
  16. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  17. package/es/components/form-render/index.d.ts +25 -1
  18. package/es/components/form-render/index.js +1 -1
  19. package/es/components/form-render/src/FormRender.vue.d.ts +25 -1
  20. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  21. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +25 -1
  22. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  23. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
  24. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  25. package/es/components/form-render/src/components/renderer/select.d.ts +1 -1
  26. package/es/components/form-render/src/components/renderer/select.js +1 -1
  27. package/es/components/form-render/src/hooks/index.js +1 -1
  28. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -2
  29. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  30. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +8 -0
  31. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  32. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +9 -1
  33. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +0 -1
  34. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  35. package/es/components/form-render/src/types/index.d.ts +5 -1
  36. package/es/components/form-render/src/utils/schema.js +1 -1
  37. package/es/components/guide/src/renderer.js +1 -1
  38. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  39. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +1 -1
  40. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +4 -1
  41. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  42. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  43. package/es/components/index.js +1 -1
  44. package/es/components/info-header/index.d.ts +70 -2
  45. package/es/components/info-header/src/InfoHeader.vue.d.ts +70 -2
  46. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +4 -0
  47. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +4 -0
  48. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +29 -1
  49. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +25 -1
  50. package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
  51. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  52. package/es/components/shortcut-setter/index.d.ts +25 -1
  53. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +25 -1
  54. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
  55. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  56. package/es/shared/hooks/index.d.ts +1 -0
  57. package/es/shared/hooks/index.js +1 -1
  58. package/es/shared/hooks/selectHooks/index.d.ts +4 -0
  59. package/es/shared/hooks/selectHooks/index.js +1 -0
  60. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +10 -0
  61. package/es/shared/hooks/selectHooks/useOptionFiltered.js +1 -0
  62. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +6 -0
  63. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -0
  64. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +23 -0
  65. package/es/shared/hooks/selectHooks/useSelectAllowModify.js +1 -0
  66. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +19 -0
  67. package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -0
  68. package/es/shared/hooks/useFormRequest/index.js +1 -1
  69. package/es/shared/hooks/useLevelSearchCascader.js +1 -1
  70. package/es/shared/package.json.js +1 -1
  71. package/package.json +2 -2
@@ -1 +1 @@
1
- import{defineComponent as e,computed as o,ref as a,onDeactivated as t,createVNode as l,unref as u,createTextVNode as n}from"vue";import{useTheme as i}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isString as r,isObject as s,isFunction as m}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import{FileTrayFull as d,FileTray as v}from"@vicons/ionicons5";import{NPopover as c,NDivider as p,NEllipsis as f,NIcon as h,NInput as V}from"naive-ui";var g=e({props:{modelValue:{type:[String,Object],default:""}},emits:["update:modelValue"],setup(e,{emit:g}){const w=i(),x=o({get:()=>r(e.modelValue)?e.modelValue:s(e.modelValue)&&e.modelValue.content||"",set(o){let a=o;s(e.modelValue)&&(a={...e.modelValue,content:o}),g("update:modelValue",a)}}),T=a(!1),k=o({get:()=>T.value,async set(e){T.value=e,!e&&b.value&&(await new Promise((e=>setTimeout(e,200))),b.value=!1)}}),b=a(!1);let y,_;function P(e){e.stopPropagation(),clearTimeout(y),k.value&&b.value?k.value=!1:u(x)||(y=setTimeout((()=>{b.value=k.value=!0}),200))}function M(e){e.stopPropagation(),clearTimeout(y),u(x)&&(k.value=!0,b.value=!0)}function R(e){e.stopPropagation(),clearTimeout(_),u(x)&&(k.value=!0)}function j(e){e.stopPropagation(),clearTimeout(_),u(x)&&!b.value&&(_=setTimeout((()=>{k.value=!1}),300))}return t((()=>{k.value=!1})),function(){return l("section",{class:["annotation-edit",{"is-active":!!u(x)}],style:{"--icon-right":"-5",...w.value},"annotation-hover-show":!u(x)&&!b.value},[l(c,{"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:k.value,"onUpdate:show":e=>k.value=e,trigger:"manual",duration:100,onClickoutside:P},{default:function(){return l("section",{onMouseleave:j,onMouseenter:R},[l("div",null,[b.value?l(V,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:x.value,"onUpdate:value":e=>x.value=e},null):l("span",null,[u(x)])]),s(e.modelValue)?[l(p,{style:{margin:"4px 0",minWidth:"360px"}},null),l("section",{class:"annotation-edit__footer"},[m(e.modelValue.footerRender)?e.modelValue.footerRender(e.modelValue):[l(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.authorLabel)?o:"质控人",n(": "),e.modelValue.author]}}),l(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.dateLabel)?o:"质控时间",n(": "),e.modelValue.date]}})]])]:null])},trigger:function(){return l("div",{class:"annotation-edit__icon",onMouseleave:j,onMouseenter:R,onDblclick:M,onClick:P},[l(h,{component:u(x)?d:v},null)])}})])}}});export{g as default};
1
+ import{defineComponent as e,computed as o,ref as t,onDeactivated as a,createVNode as l,unref as u,createTextVNode as n}from"vue";import{useTheme as i}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isString as r,isObject as s,isFunction as m}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import{FileTrayFull as d,FileTray as v}from"@vicons/ionicons5";import{NPopover as c,NDivider as p,NEllipsis as f,NIcon as h,NInput as V}from"naive-ui";var g=e({props:{modelValue:{type:[String,Object],default:""}},emits:["update:modelValue"],setup(e,{emit:g}){const k=i(),w=o({get:()=>r(e.modelValue)?e.modelValue:s(e.modelValue)&&e.modelValue.content||"",set(o){let t=o;s(e.modelValue)&&(t={...e.modelValue,content:o}),g("update:modelValue",t)}}),x=t(!1),T=o({get:()=>x.value,async set(e){x.value=e,!e&&b.value&&(await new Promise((e=>setTimeout(e,200))),b.value=!1)}}),b=t(!1);let y,_;function P(e){e.stopPropagation(),clearTimeout(y),T.value&&b.value?T.value=!1:u(w)||(y=setTimeout((()=>{b.value=T.value=!0}),200))}function j(e){e.stopPropagation(),clearTimeout(y),u(w)&&(T.value=!0,b.value=!0)}function M(e){e.stopPropagation(),clearTimeout(_),u(w)&&(T.value=!0)}function R(e){e.stopPropagation(),clearTimeout(_),u(w)&&!b.value&&(_=setTimeout((()=>{T.value=!1}),300))}return a((()=>{T.value=!1})),function(){return l("section",{class:["annotation-edit",{"is-active":!!u(w)}],style:{"--icon-right":"-5",...k.value},"annotation-hover-show":!u(w)&&!b.value},[l(c,{"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:T.value,"onUpdate:show":e=>T.value=e,trigger:"manual",duration:100,onClickoutside:P},{default:function(){return l("section",{onMouseleave:R,onMouseenter:M},[l("div",null,[b.value?l(V,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:w.value,"onUpdate:value":e=>w.value=e},null):l("span",null,[u(w)])]),s(e.modelValue)?[l(p,{style:{margin:"4px 0",minWidth:"360px"}},null),l("section",{class:"annotation-edit__footer"},[m(e.modelValue.footerRender)?e.modelValue.footerRender(e.modelValue):[l(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.authorLabel)?o:"质控人",n(": "),e.modelValue.author]}}),l(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.dateLabel)?o:"质控时间",n(": "),e.modelValue.date]}})]])]:null])},trigger:function(){return l("div",{class:"annotation-edit__icon",onMouseleave:R,onMouseenter:M,onDblclick:j,onClick:P},[l(h,{component:u(w)?d:v},null)])}})])}}});export{g as default};
@@ -26,7 +26,10 @@ declare const BodySelect: SFCWithInstall<import("vue").DefineComponent<{
26
26
  type: NumberConstructor;
27
27
  default: number;
28
28
  };
29
- }>> & {}>>;
29
+ }>> & {
30
+ onSelect?: ((...args: any[]) => any) | undefined;
31
+ }>>;
32
+ emits: (event: "select", ...args: any[]) => void;
30
33
  canvasFrontRef: any;
31
34
  canvasFrontValue: import("vue").Ref<any>;
32
35
  canvasBackRef: any;
@@ -35,8 +38,8 @@ declare const BodySelect: SFCWithInstall<import("vue").DefineComponent<{
35
38
  canvasPalmsValue: import("vue").Ref<any>;
36
39
  moduleData: import("vue").Ref<any[]>;
37
40
  scaleNum: number;
38
- renderBodyModules: (settingObj: any) => void;
39
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
41
+ renderBodyModules: (settingObj: any, cb?: any) => void;
42
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
40
43
  setting: {
41
44
  type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
42
45
  default: () => {};
@@ -49,7 +52,9 @@ declare const BodySelect: SFCWithInstall<import("vue").DefineComponent<{
49
52
  type: NumberConstructor;
50
53
  default: number;
51
54
  };
52
- }>>, {
55
+ }>> & {
56
+ onSelect?: ((...args: any[]) => any) | undefined;
57
+ }, {
53
58
  setting: import("../../../es/shared/types").AnyObject;
54
59
  fillColor: string;
55
60
  canvasWidth: number;
@@ -1 +1 @@
1
- const Q={1:"L208 25 Q205 24 202 30 Q194 28 186 30 Q180 26 174 30 Q166 28 158 30 Q155 24 152 25 Q154 20 166 16 Q180 18 194 16 Q206 20 208 25",2:"L178 2 Q204 0 212 24 L208 25 Q206 20 194 16 Q180 18 166 16 Q154 20 152 25 L148 24 Q156 0 182 2","3-1":"L212 24 L208 25 Q205 24 202 30 Q203 34 202 40 Q208 50 214 54 Q214 43 213 32 Q213 28 212 24","3-2":"L148 24 L152 25 Q155 24 158 30 Q157 34 158 40 Q152 50 146 54 Q146 43 147 32 Q147 28 148 24","5-1":"L202 30 Q194 28 186 30 Q188 34 188 42 Q196 42 202 40 Q203 34 202 30","5-2":"L158 30 Q166 28 174 30 Q172 34 172 42 Q164 42 158 40 Q157 34 158 30",6:"L186 30 Q188 34 188 42 Q189 48 188 52 Q180 62 172 52 Q171 48 172 42 Q172 34 174 30 Q180 26 186 30","7-1":"L214 54 Q208 50 202 40 Q196 42 188 42 Q189 48 188 52 Q192 52 196 56 L202 50 Q210 54 214 54","7-2":"L146 54 Q152 50 158 40 Q164 42 172 42 Q171 48 172 52 Q168 52 164 56 L158 50 Q150 54 146 54",8:"L187 73 Q180 74 173 73 Q164 68 170 60 Q180 56 190 60 Q196 68 187 73",9:"L188 52 Q192 52 196 56 Q200 64 192 72 L187 73 Q196 68 190 60 Q180 56 170 60 Q164 68 173 73 L168 72 Q160 64 164 56 Q168 52 172 52 Q180 62 188 52","10-1":"L196 56 Q200 64 192 72 L196 80 L200 78 Q214 67 214 54 Q210 54 202 50 Z","10-2":"L164 56 Q160 64 168 72 L164 80 L160 78 Q146 67 146 54 Q150 54 158 50 Z",11:"L187 73 L192 72 L196 80 Q180 88 164 80 L168 72 L173 73 Q180 74 187 73",12:"L164 80 L160 78 Q164 92 148 100 Q164 110 180 110 Q196 110 212 100 Q196 92 200 78 L196 80 Q180 88 164 80","16-1":"L230 225 Q218 230 205 230 Q202 272 200 272 Q207 270 213 270 Q224 258 235 254 Q234 255 230 225","16-2":"L130 225 Q142 230 155 230 Q158 272 160 272 Q153 270 146 270 Q136 258 125 254 Q126 255 130 225","19-1":"L190 300 Q196 282 214 270 Q224 258 235 254 Q232 280 240 294 Q242 294 244 312 Q217 326 190 300","19-2":"L170 300 Q164 282 146 270 Q136 258 125 254 Q128 280 120 294 Q118 294 116 312 Q143 326 170 300","20-1":"L212 100 Q196 110 180 110 L180 171 Q192 170 204 183 Q228 182 236 177 L238 176 Q244 176 252 168 Q220 152 226 124 Q224 116 245 107 Q229 108 212 100","20-2":"L148 100 Q164 110 180 110 L180 171 Q168 170 156 183 Q132 182 124 177 L122 176 Q116 174 108 168 Q140 152 134 124 Q136 116 115 107 Q131 108 148 100",21:"L180 171 Q192 170 204 183 Q206 182 210 200 Q210 215 205 230 Q202 272 200 272 Q180 294 160 272 Q158 272 155 230 Q150 215 150 200 Q154 182 156 183 Q168 170 180 171",22:"L200 272 Q207 270 213 270 Q196 282 190 300 Q184 306 180 344 Q176 306 170 300 Q164 282 146 270 Q153 270 160 272 Q180 294 200 272","23-1":"L204 183 Q228 182 236 177 L238 176 L238 192 L230 225 Q218 230 205 230 Q210 215 210 200 Q206 182 204 183","23-2":"L156 183 Q132 182 124 177 L122 176 L122 192 L130 225 Q142 230 155 230 Q150 215 150 200 Q154 182 156 183","24-1":"L252 168 Q220 152 226 124 Q224 116 245 107 Q278 120 270 170 Q261 170 252 168","24-2":"L108 168 Q140 152 134 124 Q136 116 115 107 Q82 120 90 170 Q99 170 108 168","25-1":"L270 170 Q261 170 252 168 Q244 174 238 176 L238 192 Q248 209 253 226 Q266 226 278 208 Q278 189 270 170","25-2":"L90 170 Q99 170 108 168 Q116 174 122 176 L122 192 Q112 209 107 226 Q94 226 82 208 Q82 189 90 170","26-1":"L253 226 Q266 226 278 208 Q290 222 294 236 Q275 228 256 248 Q252 237 253 226","26-2":"L107 226 Q94 226 82 208 Q70 222 66 236 Q85 228 104 248 Q108 237 107 226","27-1":"L294 236 Q275 228 256 248 Q280 296 286 318 Q298 320 310 308 Q300 289 300 270 Q297 236 294 236","27-2":"L66 236 Q85 228 104 248 Q80 296 74 318 Q62 320 50 308 Q60 289 60 270 Q63 236 66 236","28-1":"L286 318 Q298 320 310 308 Q315 316 320 316 Q330 320 332 326 Q334 332 342 340 Q344 350 334 344 L324 336 Q333 349 338 362 Q341 372 332 368 Q326 361 322 354 Q327 364 328 375 Q325 386 319 375 Q315 366 312 356 Q314 367 314 378 Q312 386 306 378 Q306 368 302 358 Q302 366 298 374 Q295 378 292 372 Q291 345 286 318","28-2":"L74 318 Q62 320 50 308 Q45 316 40 316 Q30 320 28 326 Q26 332 18 340 Q16 350 26 344 L36 336 Q27 349 22 362 Q19 372 28 368 Q34 361 38 354 Q33 364 32 375 Q35 386 41 375 Q45 366 48 356 Q46 367 46 378 Q48 386 54 378 Q54 368 58 358 Q58 366 62 374 Q65 378 68 372 Q69 345 74 318","34-1":"L244 312 Q217 326 190 300 Q184 306 180 344 Q187 430 194 440 Q216 430 238 444 Q238 424 244 404 Q252 358 244 312","34-2":"L116 312 Q143 326 170 300 Q176 306 180 344 Q173 430 166 440 Q144 430 122 444 Q122 424 116 404 Q108 358 116 312","35-1":"L194 440 Q216 430 238 444 Q236 460 240 476 Q220 488 200 480 Q194 460 194 440","35-2":"L166 440 Q144 430 122 444 Q124 460 120 476 Q140 488 160 480 Q166 460 166 440","37-1":"L240 476 Q220 488 200 480 Q204 497 198 514 Q195 534 201 554 Q210 573 208 592 Q220 598 232 594 Q230 577 236 560 Q244 518 240 476","37-2":"L120 476 Q140 488 160 480 Q156 497 162 514 Q165 534 159 554 Q150 573 152 592 Q140 598 128 594 Q130 577 124 560 Q114 518 120 476","38-1":"L208 592 Q220 598 232 594 Q230 606 231 619 Q218 612 204 620 Q200 614 208 592","38-2":"L152 592 Q140 598 128 594 Q130 606 129 619 Q142 612 156 620 Q160 614 152 592","39-1":"L231 619 Q218 612 204 620 Q206 636 204 652 Q208 660 216 660 Q229 662 240 656 Q250 648 242 638 Q230 629 231 619","39-2":"L129 619 Q142 612 156 620 Q154 636 156 652 Q152 660 144 660 Q131 662 120 656 Q110 648 118 638 Q130 629 129 619","41-1":"L214 54 Q214 43 213 32 Q232 38 214 54","41-2":"L146 54 Q146 43 147 32 Q128 38 146 54"},L={2:"L163 4 Q180 -2 197 4 Q192 12 192 20 Q180 18 168 20 Q168 12 163 4","3-1":"L163 4 Q168 12 168 20 Q170 28 162 36 Q154 42 146 40 L146 30 Q144 17 163 4","3-2":"L197 4 Q192 12 192 20 Q190 28 198 36 Q206 42 214 40 L214 30 Q216 17 197 4",4:"L192 20 Q180 18 168 20 Q170 28 162 36 Q182 63 170 92 Q180 90 190 92 Q178 63 198 36 Q190 28 192 20","13-1":"L162 36 Q182 63 170 92 Q159 92 148 98 Q164 88 158 74 Q148 64 146 54 Q145 47 146 40 Q154 42 162 36","13-2":"L198 36 Q178 63 190 92 Q201 92 212 98 Q196 88 202 74 Q212 64 214 54 Q215 47 214 40 Q206 42 198 36","14-1":"L148 98 Q190 140 150 182 Q140 188 122 184 Q122 166 120 148 Q136 132 136 102 Q142 102 148 98","14-2":"L212 98 Q170 140 210 182 Q220 188 238 184 Q238 166 240 148 Q224 132 224 102 Q218 102 212 98",15:"L148 98 Q159 92 170 92 Q180 90 190 92 Q201 92 212 98 Q170 140 210 182 Q212 198 206 214 Q198 226 200 238 L160 238 Q162 226 154 214 Q148 198 150 182 Q190 140 148 98","16-1":"L124 258 Q140 238 160 238 L180 238 L180 300 Q162 286 146 290 Q130 288 114 306 L118 288 Q124 279 124 270 L124 258","16-2":"L236 258 Q210 238 200 238 L180 238 L180 300 Q198 286 214 290 Q230 288 246 306 L242 288 Q236 279 236 270 L236 258","17-1":"L146 290 Q130 288 114 306 L112 368 Q144 400 176 366 L178 342 Q150 326 146 290","17-2":"L214 290 Q230 288 246 306 L248 368 Q216 400 184 366 L182 342 Q210 326 214 290",18:"L180 300 Q162 286 146 290 Q150 326 178 342 L180 344 L182 342 Q210 326 214 290 Q198 286 180 300","23-1":"L150 182 Q140 188 122 184 Q122 204 130 224 Q126 242 124 258 Q140 238 160 238 Q160 226 156 216 Q149 199 150 182","23-2":"L210 182 Q220 188 238 184 Q238 204 230 224 Q234 242 236 258 Q210 238 200 238 Q200 226 204 216 Q211 199 210 182","24-1":"L136 102 Q136 132 120 148 Q106 166 88 166 Q80 100 136 102","24-2":"L224 102 Q224 132 240 148 Q254 166 272 166 Q280 100 224 102","25-1":"L120 148 Q106 166 88 166 Q82 186 82 206 Q95 200 108 224 L122 184 Q122 166 120 148","25-2":"L240 148 Q254 166 272 166 Q278 186 278 206 Q265 200 252 224 L238 184 Q238 166 240 148","26-1":"L82 206 Q95 200 108 224 Q108 229 106 234 Q85 240 68 224 Q70 215 82 206","26-2":"L278 206 Q265 200 252 224 Q252 229 254 234 Q275 240 292 224 Q290 215 278 206","27-1":"L106 234 Q85 240 68 224 Q62 275 50 308 Q62 306 74 318 Q76 300 106 234","27-2":"L254 234 Q275 240 292 224 Q298 275 310 308 Q298 306 286 318 Q284 300 254 234","30-1":"L74 318 Q62 306 50 308 Q45 316 40 316 Q30 320 28 326 Q26 332 18 340 Q16 350 26 344 L36 336 Q27 349 22 362 Q19 372 28 368 Q34 361 38 354 Q33 364 32 375 Q35 386 41 375 Q45 366 48 356 Q46 367 46 378 Q48 386 54 378 Q54 368 58 358 Q58 366 62 374 Q65 378 68 372 Q69 345 74 318","30-2":"L286 318 Q298 306 310 308 Q315 316 320 316 Q330 320 332 326 Q334 332 342 340 Q344 350 334 344 L324 336 Q333 349 338 362 Q341 372 332 368 Q326 361 322 354 Q327 364 328 375 Q325 386 319 375 Q315 366 312 356 Q314 367 314 378 Q312 386 306 378 Q306 368 302 358 Q302 366 298 374 Q295 378 292 372 Q291 345 286 318","34-1":"L112 368 Q144 400 176 366 Q166 417 160 470 Q146 454 120 464 Q124 432 114 400 Q112 380 112 368","34-2":"L248 368 Q216 400 184 366 Q194 417 200 470 Q214 454 240 464 Q236 432 246 400 Q248 380 248 368","35-1":"L160 470 Q146 454 120 464 Q122 478 120 492 Q140 478 160 492 Q158 481 160 470","35-2":"L200 470 Q214 454 240 464 Q238 478 240 492 Q220 478 200 492 Q202 481 200 470","36-1":"L120 492 Q140 478 160 492 Q159 511 162 530 Q164 551 156 572 Q139 578 122 564 Q116 526 120 492","36-2":"L240 492 Q220 478 200 492 Q201 511 198 530 Q196 551 204 572 Q221 578 238 564 Q244 526 240 492","38-1":"L156 572 Q139 578 122 564 L130 610 Q140 576 155 582 L156 572","38-2":"L204 572 Q221 578 238 564 L230 610 Q220 576 205 582 L204 572","39-1":"L130 610 Q140 576 155 582 Q166 580 162 602 Q152 618 166 634 Q168 641 168 648 Q146 654 124 644 Q122 627 130 610","39-2":"L230 610 Q220 576 205 582 Q194 580 198 602 Q208 618 194 634 Q192 641 192 648 Q214 654 236 644 Q238 627 230 610","40-1":"L168 648 Q146 654 124 644 Q126 660 154 660 Q164 664 168 648","40-2":"L192 648 Q214 654 236 644 Q234 660 206 660 Q196 664 192 648","41-1":"L146 54 Q146 43 146 30 Q128 38 146 54","41-2":"L214 54 Q214 43 214 30 Q232 38 214 54"},o={"29-1":"L31 64 Q36 62 42 62 Q47 60 55 60 Q62 60 69 62 Q74 62 79 66 L80 70 Q62 72 58 84 Q60 98 69 100 L69 110 L34 110 L34 100 Q46 100 46 84 Q44 70 28 66 L31 64","29-2":"L149 64 Q144 62 138 62 Q133 60 125 60 Q118 60 111 62 Q106 62 101 66 L100 70 Q118 72 122 84 Q120 98 111 100 L111 110 L146 110 L146 100 Q134 100 134 84 Q136 70 152 66 L149 64","31-1":"L80 70 Q62 72 58 84 Q60 98 69 100 Q82 85 80 70","31-2":"L100 70 Q118 72 122 84 Q120 98 111 100 Q98 85 100 70","32-1":"L29 52 Q31 58 31 64 L28 66 Q44 70 46 84 Q46 100 34 100 Q18 96 18 80 L16 54 Q2 40 20 44 Q24 44 29 52","32-2":"L151 52 Q149 58 149 64 L152 66 Q136 70 134 84 Q134 100 146 100 Q162 96 162 80 L164 54 Q178 40 160 44 Q156 44 151 52","33-1":"L79 66 L79 28 Q74 22 69 28 L69 62 L69 24 Q62 16 55 24 L55 60 L55 20 Q47 12 42 24 L42 62 L42 24 Q35 16 29 26 L29 52 Q31 58 31 64 Q36 62 42 62 Q47 60 55 60 Q62 60 69 62 Q74 62 79 66","33-2":"L101 66 L101 28 Q106 22 111 28 L111 62 L111 24 Q118 16 125 24 L125 60 L125 20 Q133 12 138 24 L138 62 L138 24 Q145 16 151 26 L151 52 Q149 58 149 64 Q144 62 138 62 Q133 60 125 60 Q118 60 111 62 Q106 62 101 66"};export{L as backCanvasParams,Q as frontCanvasParams,o as palmCanvasParams};
1
+ const Q={1:"L208 25 Q205 24 202 30 Q194 28 186 30 Q180 26 174 30 Q166 28 158 30 Q155 24 152 25 Q154 20 166 16 Q180 18 194 16 Q206 20 208 25",2:"L178 2 Q204 0 212 24 L208 25 Q206 20 194 16 Q180 18 166 16 Q154 20 152 25 L148 24 Q156 0 182 2","3-1":"L212 24 L208 25 Q205 24 202 30 Q203 34 202 40 Q208 50 214 54 Q214 43 213 32 Q213 28 212 24","3-2":"L148 24 L152 25 Q155 24 158 30 Q157 34 158 40 Q152 50 146 54 Q146 43 147 32 Q147 28 148 24","5-1":"L202 30 Q194 28 186 30 Q188 34 188 42 Q196 42 202 40 Q203 34 202 30","5-2":"L158 30 Q166 28 174 30 Q172 34 172 42 Q164 42 158 40 Q157 34 158 30",6:"L186 30 Q188 34 188 42 Q189 48 188 52 Q180 62 172 52 Q171 48 172 42 Q172 34 174 30 Q180 26 186 30","7-1":"L214 54 Q208 50 202 40 Q196 42 188 42 Q189 48 188 52 Q192 52 196 56 L202 50 Q210 54 214 54","7-2":"L146 54 Q152 50 158 40 Q164 42 172 42 Q171 48 172 52 Q168 52 164 56 L158 50 Q150 54 146 54",8:"L187 73 Q180 74 173 73 Q164 68 170 60 Q180 56 190 60 Q196 68 187 73",9:"L188 52 Q192 52 196 56 Q200 64 192 72 L187 73 Q196 68 190 60 Q180 56 170 60 Q164 68 173 73 L168 72 Q160 64 164 56 Q168 52 172 52 Q180 62 188 52","10-1":"L196 56 Q200 64 192 72 L196 80 L200 78 Q214 67 214 54 Q210 54 202 50 L196 56","10-2":"L164 56 Q160 64 168 72 L164 80 L160 78 Q146 67 146 54 Q150 54 158 50 L164 56",11:"L187 73 L192 72 L196 80 Q180 88 164 80 L168 72 L173 73 Q180 74 187 73",12:"L164 80 L160 78 Q164 92 148 100 Q164 110 180 110 Q196 110 212 100 Q196 92 200 78 L196 80 Q180 88 164 80","16-1":"L230 225 Q218 230 205 230 Q202 272 200 272 Q207 270 213 270 Q224 258 235 254 Q234 255 230 225","16-2":"L130 225 Q142 230 155 230 Q158 272 160 272 Q153 270 146 270 Q136 258 125 254 Q126 255 130 225","19-1":"L190 300 Q196 282 214 270 Q224 258 235 254 Q232 280 240 294 Q242 294 244 312 Q217 326 190 300","19-2":"L170 300 Q164 282 146 270 Q136 258 125 254 Q128 280 120 294 Q118 294 116 312 Q143 326 170 300","20-1":"L212 100 Q196 110 180 110 L180 171 Q192 170 204 183 Q228 182 236 177 L238 176 Q244 176 252 168 Q220 152 226 124 Q224 116 245 107 Q229 108 212 100","20-2":"L148 100 Q164 110 180 110 L180 171 Q168 170 156 183 Q132 182 124 177 L122 176 Q116 174 108 168 Q140 152 134 124 Q136 116 115 107 Q131 108 148 100",21:"L180 171 Q192 170 204 183 Q206 182 210 200 Q210 215 205 230 Q202 272 200 272 Q180 294 160 272 Q158 272 155 230 Q150 215 150 200 Q154 182 156 183 Q168 170 180 171",22:"L200 272 Q207 270 213 270 Q196 282 190 300 Q184 306 180 344 Q176 306 170 300 Q164 282 146 270 Q153 270 160 272 Q180 294 200 272","23-1":"L204 183 Q228 182 236 177 L238 176 L238 192 L230 225 Q218 230 205 230 Q210 215 210 200 Q206 182 204 183","23-2":"L156 183 Q132 182 124 177 L122 176 L122 192 L130 225 Q142 230 155 230 Q150 215 150 200 Q154 182 156 183","24-1":"L252 168 Q220 152 226 124 Q224 116 245 107 Q278 120 270 170 Q261 170 252 168","24-2":"L108 168 Q140 152 134 124 Q136 116 115 107 Q82 120 90 170 Q99 170 108 168","25-1":"L270 170 Q261 170 252 168 Q244 174 238 176 L238 192 Q248 209 253 226 Q266 226 278 208 Q278 189 270 170","25-2":"L90 170 Q99 170 108 168 Q116 174 122 176 L122 192 Q112 209 107 226 Q94 226 82 208 Q82 189 90 170","26-1":"L253 226 Q266 226 278 208 Q290 222 294 236 Q275 228 256 248 Q252 237 253 226","26-2":"L107 226 Q94 226 82 208 Q70 222 66 236 Q85 228 104 248 Q108 237 107 226","27-1":"L294 236 Q275 228 256 248 Q280 296 286 318 Q298 320 310 308 Q300 289 300 270 Q297 236 294 236","27-2":"L66 236 Q85 228 104 248 Q80 296 74 318 Q62 320 50 308 Q60 289 60 270 Q63 236 66 236","28-1":"L286 318 Q298 320 310 308 Q315 316 320 316 Q330 320 332 326 Q334 332 342 340 Q344 350 334 344 L324 336 Q333 349 338 362 Q341 372 332 368 Q326 361 322 354 Q327 364 328 375 Q325 386 319 375 Q315 366 312 356 Q314 367 314 378 Q312 386 306 378 Q306 368 302 358 Q302 366 298 374 Q295 378 292 372 Q291 345 286 318","28-2":"L74 318 Q62 320 50 308 Q45 316 40 316 Q30 320 28 326 Q26 332 18 340 Q16 350 26 344 L36 336 Q27 349 22 362 Q19 372 28 368 Q34 361 38 354 Q33 364 32 375 Q35 386 41 375 Q45 366 48 356 Q46 367 46 378 Q48 386 54 378 Q54 368 58 358 Q58 366 62 374 Q65 378 68 372 Q69 345 74 318","34-1":"L244 312 Q217 326 190 300 Q184 306 180 344 Q187 430 194 440 Q216 430 238 444 Q238 424 244 404 Q252 358 244 312","34-2":"L116 312 Q143 326 170 300 Q176 306 180 344 Q173 430 166 440 Q144 430 122 444 Q122 424 116 404 Q108 358 116 312","35-1":"L194 440 Q216 430 238 444 Q236 460 240 476 Q220 488 200 480 Q194 460 194 440","35-2":"L166 440 Q144 430 122 444 Q124 460 120 476 Q140 488 160 480 Q166 460 166 440","37-1":"L240 476 Q220 488 200 480 Q204 497 198 514 Q195 534 201 554 Q210 573 208 592 Q220 598 232 594 Q230 577 236 560 Q244 518 240 476","37-2":"L120 476 Q140 488 160 480 Q156 497 162 514 Q165 534 159 554 Q150 573 152 592 Q140 598 128 594 Q130 577 124 560 Q114 518 120 476","38-1":"L208 592 Q220 598 232 594 Q230 606 231 619 Q218 612 204 620 Q200 614 208 592","38-2":"L152 592 Q140 598 128 594 Q130 606 129 619 Q142 612 156 620 Q160 614 152 592","39-1":"L231 619 Q218 612 204 620 Q206 636 204 652 Q208 660 216 660 Q229 662 240 656 Q250 648 242 638 Q230 629 231 619","39-2":"L129 619 Q142 612 156 620 Q154 636 156 652 Q152 660 144 660 Q131 662 120 656 Q110 648 118 638 Q130 629 129 619","41-1":"L214 54 Q214 43 213 32 Q232 38 214 54","41-2":"L146 54 Q146 43 147 32 Q128 38 146 54"},L={2:"L163 4 Q180 -2 197 4 Q192 12 192 20 Q180 18 168 20 Q168 12 163 4","3-1":"L163 4 Q168 12 168 20 Q170 28 162 36 Q154 42 146 40 L146 30 Q144 17 163 4","3-2":"L197 4 Q192 12 192 20 Q190 28 198 36 Q206 42 214 40 L214 30 Q216 17 197 4",4:"L192 20 Q180 18 168 20 Q170 28 162 36 Q182 63 170 92 Q180 90 190 92 Q178 63 198 36 Q190 28 192 20","13-1":"L162 36 Q182 63 170 92 Q159 92 148 98 Q164 88 158 74 Q148 64 146 54 Q145 47 146 40 Q154 42 162 36","13-2":"L198 36 Q178 63 190 92 Q201 92 212 98 Q196 88 202 74 Q212 64 214 54 Q215 47 214 40 Q206 42 198 36","14-1":"L148 98 Q190 140 150 182 Q140 188 122 184 Q122 166 120 148 Q136 132 136 102 Q142 102 148 98","14-2":"L212 98 Q170 140 210 182 Q220 188 238 184 Q238 166 240 148 Q224 132 224 102 Q218 102 212 98",15:"L148 98 Q159 92 170 92 Q180 90 190 92 Q201 92 212 98 Q170 140 210 182 Q212 198 206 214 Q198 226 200 238 L160 238 Q162 226 154 214 Q148 198 150 182 Q190 140 148 98","16-1":"L124 258 Q140 238 160 238 L180 238 L180 300 Q162 286 146 290 Q130 288 114 306 L118 288 Q124 279 124 270 L124 258","16-2":"L236 258 Q210 238 200 238 L180 238 L180 300 Q198 286 214 290 Q230 288 246 306 L242 288 Q236 279 236 270 L236 258","17-1":"L146 290 Q130 288 114 306 L112 368 Q144 400 176 366 L178 342 Q150 326 146 290","17-2":"L214 290 Q230 288 246 306 L248 368 Q216 400 184 366 L182 342 Q210 326 214 290",18:"L180 300 Q162 286 146 290 Q150 326 178 342 L180 344 L182 342 Q210 326 214 290 Q198 286 180 300","23-1":"L150 182 Q140 188 122 184 Q122 204 130 224 Q126 242 124 258 Q140 238 160 238 Q160 226 156 216 Q149 199 150 182","23-2":"L210 182 Q220 188 238 184 Q238 204 230 224 Q234 242 236 258 Q210 238 200 238 Q200 226 204 216 Q211 199 210 182","24-1":"L136 102 Q136 132 120 148 Q106 166 88 166 Q80 100 136 102","24-2":"L224 102 Q224 132 240 148 Q254 166 272 166 Q280 100 224 102","25-1":"L120 148 Q106 166 88 166 Q82 186 82 206 Q95 200 108 224 L122 184 Q122 166 120 148","25-2":"L240 148 Q254 166 272 166 Q278 186 278 206 Q265 200 252 224 L238 184 Q238 166 240 148","26-1":"L82 206 Q95 200 108 224 Q108 229 106 234 Q85 240 68 224 Q70 215 82 206","26-2":"L278 206 Q265 200 252 224 Q252 229 254 234 Q275 240 292 224 Q290 215 278 206","27-1":"L106 234 Q85 240 68 224 Q62 275 50 308 Q62 306 74 318 Q76 300 106 234","27-2":"L254 234 Q275 240 292 224 Q298 275 310 308 Q298 306 286 318 Q284 300 254 234","30-1":"L74 318 Q62 306 50 308 Q45 316 40 316 Q30 320 28 326 Q26 332 18 340 Q16 350 26 344 L36 336 Q27 349 22 362 Q19 372 28 368 Q34 361 38 354 Q33 364 32 375 Q35 386 41 375 Q45 366 48 356 Q46 367 46 378 Q48 386 54 378 Q54 368 58 358 Q58 366 62 374 Q65 378 68 372 Q69 345 74 318","30-2":"L286 318 Q298 306 310 308 Q315 316 320 316 Q330 320 332 326 Q334 332 342 340 Q344 350 334 344 L324 336 Q333 349 338 362 Q341 372 332 368 Q326 361 322 354 Q327 364 328 375 Q325 386 319 375 Q315 366 312 356 Q314 367 314 378 Q312 386 306 378 Q306 368 302 358 Q302 366 298 374 Q295 378 292 372 Q291 345 286 318","34-1":"L112 368 Q144 400 176 366 Q166 417 160 470 Q146 454 120 464 Q124 432 114 400 Q112 380 112 368","34-2":"L248 368 Q216 400 184 366 Q194 417 200 470 Q214 454 240 464 Q236 432 246 400 Q248 380 248 368","35-1":"L160 470 Q146 454 120 464 Q122 478 120 492 Q140 478 160 492 Q158 481 160 470","35-2":"L200 470 Q214 454 240 464 Q238 478 240 492 Q220 478 200 492 Q202 481 200 470","36-1":"L120 492 Q140 478 160 492 Q159 511 162 530 Q164 551 156 572 Q139 578 122 564 Q116 526 120 492","36-2":"L240 492 Q220 478 200 492 Q201 511 198 530 Q196 551 204 572 Q221 578 238 564 Q244 526 240 492","38-1":"L156 572 Q139 578 122 564 L130 610 Q140 576 155 582 L156 572","38-2":"L204 572 Q221 578 238 564 L230 610 Q220 576 205 582 L204 572","39-1":"L130 610 Q140 576 155 582 Q166 580 162 602 Q152 618 166 634 Q168 641 168 648 Q146 654 124 644 Q122 627 130 610","39-2":"L230 610 Q220 576 205 582 Q194 580 198 602 Q208 618 194 634 Q192 641 192 648 Q214 654 236 644 Q238 627 230 610","40-1":"L168 648 Q146 654 124 644 Q126 660 154 660 Q164 664 168 648","40-2":"L192 648 Q214 654 236 644 Q234 660 206 660 Q196 664 192 648","41-1":"L146 54 Q146 43 146 30 Q128 38 146 54","41-2":"L214 54 Q214 43 214 30 Q232 38 214 54"},o={"29-1":"L31 64 Q36 62 42 62 Q47 60 55 60 Q62 60 69 62 Q74 62 79 66 L80 70 Q62 72 58 84 Q60 98 69 100 L69 110 L34 110 L34 100 Q46 100 46 84 Q44 70 28 66 L31 64","29-2":"L149 64 Q144 62 138 62 Q133 60 125 60 Q118 60 111 62 Q106 62 101 66 L100 70 Q118 72 122 84 Q120 98 111 100 L111 110 L146 110 L146 100 Q134 100 134 84 Q136 70 152 66 L149 64","31-1":"L80 70 Q62 72 58 84 Q60 98 69 100 Q82 85 80 70","31-2":"L100 70 Q118 72 122 84 Q120 98 111 100 Q98 85 100 70","32-1":"L29 52 Q31 58 31 64 L28 66 Q44 70 46 84 Q46 100 34 100 Q18 96 18 80 L16 54 Q2 40 20 44 Q24 44 29 52","32-2":"L151 52 Q149 58 149 64 L152 66 Q136 70 134 84 Q134 100 146 100 Q162 96 162 80 L164 54 Q178 40 160 44 Q156 44 151 52","33-1":"L79 66 L79 28 Q74 22 69 28 L69 62 L69 24 Q62 16 55 24 L55 60 L55 20 Q47 12 42 24 L42 62 L42 24 Q35 16 29 26 L29 52 Q31 58 31 64 Q36 62 42 62 Q47 60 55 60 Q62 60 69 62 Q74 62 79 66","33-2":"L101 66 L101 28 Q106 22 111 28 L111 62 L111 24 Q118 16 125 24 L125 60 L125 20 Q133 12 138 24 L138 62 L138 24 Q145 16 151 26 L151 52 Q149 58 149 64 Q144 62 138 62 Q133 60 125 60 Q118 60 111 62 Q106 62 101 66"};export{L as backCanvasParams,Q as frontCanvasParams,o as palmCanvasParams};
@@ -1,6 +1,6 @@
1
1
  import { fabric } from '../../../../../es/shared/utils/fabricjs';
2
2
  import { AnyObject } from '../../../../../es/shared/types';
3
- export default function renderCanvas(canvas: fabric.Canvas, renderSetting: AnyObject, scale: number): {
3
+ export default function renderCanvas(canvas: fabric.Canvas, renderSetting: AnyObject, scale: number, { props, emits }: any): {
4
4
  canvas: fabric.Canvas;
5
5
  data: any;
6
6
  } | null;
@@ -1 +1 @@
1
- import{ref as t}from"vue";import{fabric as e}from"../../../../shared/utils/fabricjs/index.js";function n(n,r,o){const a=t({});return function(){if(n){const t=[];Object.keys(r).forEach((n=>{!function(t,n,r){const o=new e.Path(n,{fill:"",stroke:"#333",strokeWidth:2,...r});a.value[t]=o}(n,r[n]),t.push(a.value[n])}));const i=new e.Group(t,{originX:"left",originY:"top",left:0,centeredScaling:!0,scaleX:o,scaleY:o});return n.add(i),{canvas:n,data:a.value}}return null}()}export{n as default};
1
+ import{ref as e}from"vue";import{fabric as t}from"../../../../shared/utils/fabricjs/index.js";function o(o,n,r,{props:l,emits:s}){const c=e({});return function(){if(o){const e=[];Object.keys(n).forEach((o=>{!function(e,o){const n=new t.Path(o,{fill:"",stroke:"#333",strokeWidth:2,hoverCursor:"default",evented:!0,selectable:!1,name:e});n.isSelectMode=!1,c.value[e]=n}(o,n[o]),e.push(c.value[o])}));const u=new t.Group(e,{originX:"left",originY:"top",left:0,scaleX:r,scaleY:r,evented:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0});return u.forEachObject((e=>{e.on("mouseover",(function(){e.set("fill",l.fillColor),o.renderAll()})),e.on("mouseout",(function(){e.isSelectMode||(e.set("fill",""),o.renderAll())})),e.on("mousedown",(function(){const t=!e.isSelectMode;s("select",e.name,t)}))})),o.add(u),o.centerObject(u),{canvas:o,data:c.value}}return null}()}export{o as default};
@@ -27,7 +27,10 @@ declare const _default: import("vue").DefineComponent<{
27
27
  type: NumberConstructor;
28
28
  default: number;
29
29
  };
30
- }>> & {}>>;
30
+ }>> & {
31
+ onSelect?: ((...args: any[]) => any) | undefined;
32
+ }>>;
33
+ emits: (event: "select", ...args: any[]) => void;
31
34
  canvasFrontRef: any;
32
35
  canvasFrontValue: import("vue").Ref<any>;
33
36
  canvasBackRef: any;
@@ -36,8 +39,8 @@ declare const _default: import("vue").DefineComponent<{
36
39
  canvasPalmsValue: import("vue").Ref<any>;
37
40
  moduleData: import("vue").Ref<any[]>;
38
41
  scaleNum: number;
39
- renderBodyModules: (settingObj: any) => void;
40
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
+ renderBodyModules: (settingObj: any, cb?: any) => void;
43
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
41
44
  setting: {
42
45
  type: PropType<AnyObject>;
43
46
  default: () => {};
@@ -50,7 +53,9 @@ declare const _default: import("vue").DefineComponent<{
50
53
  type: NumberConstructor;
51
54
  default: number;
52
55
  };
53
- }>>, {
56
+ }>> & {
57
+ onSelect?: ((...args: any[]) => any) | undefined;
58
+ }, {
54
59
  setting: AnyObject;
55
60
  fillColor: string;
56
61
  canvasWidth: number;
@@ -1 +1 @@
1
- import{defineComponent as a,ref as e,watch as l,onMounted as n,onBeforeUnmount as s,openBlock as t,createElementBlock as c,createElementVNode as o}from"vue";import{isObject as r}from"lodash-es";import{fabric as i}from"../../../shared/utils/fabricjs/index.js";import{frontCanvasParams as u,palmCanvasParams as f,backCanvasParams as v}from"./config/index.js";import d from"./hooks/renderCanvas.js";const m={class:"c-body-select"},h={class:"canvas-module"},p=o("span",null,"正面",-1),g={class:"canvas-module"},b=o("span",null,"手",-1),k={class:"canvas-module"},y=o("span",null,"背面",-1);var w=a({__name:"index",props:{setting:{type:Object,default:()=>({})},fillColor:{type:String,default:"#E5E5E5"},canvasWidth:{type:Number,default:860}},setup(a){const w=a,C=e(null),j=e(),x=e(null),E=e(),_=e(null),S=e(),O=e([]),R=Number((w.canvasWidth/860).toFixed(2));function F(a){O.value.forEach((e=>{const l=e.data,n=Object.keys(l),s=Object.keys(a);n.forEach((e=>{l[e].set("fill",""),s.includes(e)&&a[e]&&l[e].set("fill",w.fillColor)})),e.canvas.renderAll()}))}return l((()=>w.setting),(a=>{a&&r(a)&&F(a)}),{deep:!0}),n((async()=>{j.value=new i.StaticCanvas(C.value,{width:360*R,height:680*R,backgroundColor:"#fff",selection:!1}),S.value=new i.StaticCanvas(_.value,{width:170*R,height:130*R,backgroundColor:"#fff",selection:!1}),E.value=new i.StaticCanvas(x.value,{width:330*R,height:680*R,backgroundColor:"#fff",selection:!1});const a=await d(j.value,u,R),e=await d(S.value,f,R),l=await d(E.value,v,R);a&&l&&e&&(O.value=[a,e,l],F(w.setting))})),s((()=>{j.value.clear(),E.value.clear(),S.value.clear()})),(a,e)=>(t(),c("div",m,[o("div",h,[o("canvas",{ref_key:"canvasFrontRef",ref:C},null,512),p]),o("div",g,[o("canvas",{ref_key:"canvasPalmsRef",ref:_},null,512),b]),o("div",k,[o("canvas",{ref_key:"canvasBackRef",ref:x},null,512),y])]))}});export{w as default};
1
+ import{defineComponent as e,ref as a,watch as l,onMounted as s,onBeforeUnmount as t,openBlock as n,createElementBlock as c,createElementVNode as o}from"vue";import{isObject as r}from"lodash-es";import{fabric as i}from"../../../shared/utils/fabricjs/index.js";import{frontCanvasParams as u,palmCanvasParams as v,backCanvasParams as f}from"./config/index.js";import d from"./hooks/renderCanvas.js";const m={class:"c-body-select"},p={class:"canvas-module"},h=o("span",null,"正面",-1),g={class:"canvas-module"},b=o("span",null,"手",-1),k={class:"canvas-module"},j=o("span",null,"背面",-1);var y=e({__name:"index",props:{setting:{type:Object,default:()=>({})},fillColor:{type:String,default:"#E5E5E5"},canvasWidth:{type:Number,default:920}},emits:["select"],setup(e,{emit:y}){const w=e,C=a(null),O=a(),S=a(null),x=a(),E=a(null),_=a(),R=a([]),F=Number((w.canvasWidth/920).toFixed(2));function M(e,a){R.value.forEach((l=>{const s=l.data,t=Object.keys(s),n=Object.keys(e);t.forEach((l=>{a&&a(s,l),s[l].set("fill",""),s[l].set("isSelectMode",!1),n.includes(l)&&e[l]&&(s[l].set("fill",w.fillColor),s[l].set("isSelectMode",!0))})),l.canvas.renderAll()}))}return l((()=>w.setting),(e=>{e&&r(e)&&M(e)}),{deep:!0}),s((async()=>{const e={props:w,emits:y};O.value=new i.Canvas(C.value,{width:360*F,height:700*F,backgroundColor:"#fff",selection:!1,preserveObjectStacking:!0}),_.value=new i.Canvas(E.value,{width:200*F,height:150*F,backgroundColor:"#fff",selection:!1,preserveObjectStacking:!0}),x.value=new i.Canvas(S.value,{width:360*F,height:700*F,backgroundColor:"#fff",selection:!1,preserveObjectStacking:!0});const a=await d(O.value,u,F,e),l=await d(_.value,v,F,e),s=await d(x.value,f,F,e);a&&s&&l&&(R.value=[a,l,s],M(w.setting,((e,a)=>{["1","4","8","22","18"].includes(a)&&e[a].moveTo(100)})))})),t((()=>{O.value.clear(),x.value.clear(),_.value.clear()})),(e,a)=>(n(),c("div",m,[o("div",p,[o("canvas",{ref_key:"canvasFrontRef",ref:C},null,512),h]),o("div",g,[o("canvas",{ref_key:"canvasPalmsRef",ref:E},null,512),b]),o("div",k,[o("canvas",{ref_key:"canvasBackRef",ref:S},null,512),j])]))}});export{y as default};
@@ -115,6 +115,10 @@ export declare const CallbackMaps: Map<string, {
115
115
  lifeCycle: {
116
116
  type: import("vue").PropType<Partial<{
117
117
  onSetup(): void;
118
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
119
+ field: import("@formily/core").GeneralField;
120
+ oldValue: unknown;
121
+ }): any;
118
122
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
119
123
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
120
124
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
@@ -260,6 +264,10 @@ export declare const CallbackMaps: Map<string, {
260
264
  lifeCycle: {
261
265
  type: import("vue").PropType<Partial<{
262
266
  onSetup(): void;
267
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
268
+ field: import("@formily/core").GeneralField;
269
+ oldValue: unknown;
270
+ }): any;
263
271
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
264
272
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
265
273
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
@@ -329,13 +337,21 @@ export declare const CallbackMaps: Map<string, {
329
337
  title: string;
330
338
  }[]>;
331
339
  onScroll: (scrollEvent: Event) => void;
332
- callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
340
+ callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
333
341
  onSetup(): void;
342
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
343
+ field: import("@formily/core").GeneralField;
344
+ oldValue: unknown;
345
+ }): any;
334
346
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
335
347
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
336
348
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
337
349
  }>>[T]> | undefined) => import("../../../..").UndefinedAble<ReturnType<Required<Partial<{
338
350
  onSetup(): void;
351
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
352
+ field: import("@formily/core").GeneralField;
353
+ oldValue: unknown;
354
+ }): any;
339
355
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
340
356
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
341
357
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
@@ -428,6 +444,10 @@ export declare const CallbackMaps: Map<string, {
428
444
  uuid: string;
429
445
  lifeCycle: Partial<{
430
446
  onSetup(): void;
447
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
448
+ field: import("@formily/core").GeneralField;
449
+ oldValue: unknown;
450
+ }): any;
431
451
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
432
452
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
433
453
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
@@ -835,6 +855,10 @@ export declare const CallbackMaps: Map<string, {
835
855
  lifeCycle: {
836
856
  type: import("vue").PropType<Partial<{
837
857
  onSetup(): void;
858
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
859
+ field: import("@formily/core").GeneralField;
860
+ oldValue: unknown;
861
+ }): any;
838
862
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
839
863
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
840
864
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
@@ -1 +1 @@
1
- import{isFunction as a}from"lodash-es";import{TRANS_CMD as t}from"./constants/index.js";import e from"./insuranceSDK.js";import{ReadHealthCard as s}from"./utils/readHealthCard.js";let r=null;const n=class{constructor(a){if(this.options=a,this.loading=!1,this.readHealthCardDialog=new s,r)return r;r=this,this.insurance=new e}get basicParamsRes(){return a(this.options.basicParams)?this.options.basicParams():this.options.basicParams}static create(a={}){return new n(a)}static destroy(){null==r||r.destroy(),r=null}destroy(){this.insurance.destroy()}createParams(a,t){return{transcmd:a,...this.basicParamsRes,...t}}checkLoading(){if(this.loading)return Promise.reject("请勿重复操作")}async checkResCodeAndLoading(a){try{this.loading=!0;const t=await a;return 3===t.returncode||"3"===t.returncode?Promise.reject(`${t.returnmsg||"操作失败"}`):t.returndata}finally{this.loading=!1}}async readHealthCard(a,t){return await this.checkLoading(),this.readHealthCardDialog.show({instance:a,...t})}async readIdCard(a={}){await this.checkLoading();const e=this.createParams(t.ID_CARD_READ,{transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"2",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_READ,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async writeMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_WRITE,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readInsuranceCard(a={}){var e,s;await this.checkLoading();const r=this.createParams(t.NS_GETPERSONALINFO,{transchannel:"101",interfaceid:a.interfaceid,transtype:"YB0000",transdata:{...a.transdata,iar1:{acf01:"0",iak22:"0",...null==(e=a.transdata)?void 0:e.iar1},personinfo:{location:0,ownpay:"0",...null==(s=a.transdata)?void 0:s.iar1}}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(r))}async generalRequest(a={}){await this.checkLoading();const e=this.createParams(t.NS_GETPERSONALINFO,a);return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}};let i=n;i.version=1,i.TRANS_CMD=t;export{i as default};
1
+ import{isFunction as a}from"lodash-es";import{TRANS_CMD as t}from"./constants/index.js";import e from"./insuranceSDK.js";import{ReadHealthCard as s}from"./utils/readHealthCard.js";let r=null;const n=class{constructor(a){if(this.options=a,this.loading=!1,this.readHealthCardDialog=new s,r)return r;r=this,this.insurance=new e}get basicParamsRes(){return a(this.options.basicParams)?this.options.basicParams():this.options.basicParams}static create(a={}){return new n(a)}static destroy(){null==r||r.destroy(),r=null}destroy(){this.insurance.destroy()}createParams(a,t){return{transcmd:a,...this.basicParamsRes,...t}}checkLoading(){if(this.loading)return Promise.reject("请勿重复操作")}async checkResCodeAndLoading(a){try{this.loading=!0;const t=await a;return 3===t.returncode||"3"===t.returncode?Promise.reject(`${t.returnmsg||"操作失败"}`):t.returndata}finally{this.loading=!1}}async readHealthCard(a,t){return await this.checkLoading(),this.readHealthCardDialog.show({instance:a,...t})}async readIdCard(a={}){await this.checkLoading();const e=this.createParams(t.ID_CARD_READ,{transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"2",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_READ,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async writeMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_WRITE,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readInsuranceCard(a={}){var e,s;await this.checkLoading();const r=this.createParams(t.NS_GETPERSONALINFO,{transchannel:"101",interfaceid:a.interfaceid,transtype:"YB0000",transdata:{...a.transdata,iar1:{acf01:"0",iak22:"0",...null==(e=a.transdata)?void 0:e.iar1},personinfo:{location:0,ownpay:"0",...null==(s=a.transdata)?void 0:s.personinfo}}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(r))}async generalRequest(a={}){await this.checkLoading();const e=this.createParams(t.NS_GETPERSONALINFO,a);return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}};let i=n;i.version=1,i.TRANS_CMD=t;export{i as default};
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,ref as t,computed as l,watch as n,openBlock as u,createBlock as r,unref as o,isRef as d,createSlots as i,renderList as s,withCtx as p,renderSlot as f,nextTick as m}from"vue";import{NDatePicker as v}from"naive-ui";import"../../../shared/utils/index.js";import{isString as c,isArray as y}from"lodash-es";import{useDateTime as h}from"../../../shared/hooks/useDateTime.js";import"@vue/shared";import{format as g}from"date-fns";var V=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:V,emit:w}){const I=e,R=a(),D=t(null),M=t(null),k=t(),C=l({get:()=>j(I.formattedValue)?null:I.formattedValue,set(e){w("update:formatted-value",e,c(e)?Date.parse(e):y(e)?[Date.parse(e[0]),Date.parse(e[1])]:null)}}),E=l((()=>{const e=Reflect.get(R,"type")||"";return["datetime","datetimerange"].includes(e)})),P=l((()=>{if(Reflect.get(R,"format"))return R.format;const e=R.type||"";return E.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),S=l((()=>E.value?P.value.split(" "):"")),{focus:U,blur:$,handleConfirm:_}=h(D,{formatRef:P,attrs:R,emit:w,allowedInvalidValue:I.allowedInvalidValue});function b(e){e&&E.value&&m((()=>{var e;M.value=null==(e=D.value)?void 0:e.panelInstRef,h(M,{formatRef:S,attrs:R,isPanel:!0})}))}async function x(...e){var a,t,l,n,u,r;const o=Reflect.get(R,"type")||"",d=null==(n=null==(l=null==(t=null==(a=D.value)?void 0:a.inputInstRef)?void 0:t.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(o.includes("range")?null==(u=I.onConfirm)||u.call(I,...e):(await m(),d.focus(),_(d),d.blur(),null==(r=I.onConfirm)||r.call(I,Date.parse(d.value),d.value)),!(null==d?void 0:d.value)||!I.updateUnchangedValue||o.includes("range"))return;const i=d.value;d.value=g(new Date,P.value),d.dispatchEvent(new InputEvent("input")),d.value=i,d.dispatchEvent(new InputEvent("input"))}function j(e){return I.allowedInvalidValue&&I.allowedInvalidValue===e}return n((()=>I.formattedValue),(e=>{k.value=j(e)?e:I.placeholder?I.placeholder:"选择日期时间"}),{immediate:!0}),V({$datePicker:D,focus:U,blur:$}),(e,a)=>(u(),r(o(v),{ref_key:"datePickerRef",ref:D,"onUpdate:show":b,onConfirm:x,placeholder:k.value,"formatted-value":o(C),"onUpdate:formatted-value":a[0]||(a[0]=e=>d(C)?C.value=e:null)},i({_:2},[s(e.$slots,((a,t)=>({name:t,fn:p((()=>[f(e.$slots,t)]))})))]),1032,["placeholder","formatted-value"]))}});export{V as default};
1
+ import{defineComponent as e,useAttrs as t,ref as a,computed as l,watch as n,openBlock as o,createBlock as r,unref as u,isRef as i,createSlots as d,renderList as s,withCtx as p,renderSlot as m,nextTick as v}from"vue";import{NDatePicker as f}from"naive-ui";import"../../../shared/utils/index.js";import{isString as c,isArray as y}from"lodash-es";import{useDateTime as h}from"../../../shared/hooks/useDateTime.js";import"@vue/shared";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{format as g}from"date-fns";var V=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:V,emit:w}){const I=e,R=t(),k=a(null),D=a(null),C=a(),M=l({get:()=>x(I.formattedValue)?null:I.formattedValue,set(e){w("update:formatted-value",e,c(e)?Date.parse(e):y(e)?[Date.parse(e[0]),Date.parse(e[1])]:null)}}),S=l((()=>{const e=Reflect.get(R,"type")||"";return["datetime","datetimerange"].includes(e)})),E=l((()=>{if(Reflect.get(R,"format"))return R.format;const e=R.type||"";return S.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),P=l((()=>S.value?E.value.split(" "):"")),{focus:U,blur:$,handleConfirm:_}=h(k,{formatRef:E,attrs:R,emit:w,allowedInvalidValue:I.allowedInvalidValue});function b(e){e&&S.value&&v((()=>{var e;D.value=null==(e=k.value)?void 0:e.panelInstRef,h(D,{formatRef:P,attrs:R,isPanel:!0})}))}async function j(...e){var t,a,l,n,o,r;const u=Reflect.get(R,"type")||"",i=null==(n=null==(l=null==(a=null==(t=k.value)?void 0:t.inputInstRef)?void 0:a.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(u.includes("range")?null==(o=I.onConfirm)||o.call(I,...e):(await v(),i.focus(),_(i),i.blur(),null==(r=I.onConfirm)||r.call(I,Date.parse(i.value),i.value)),!(null==i?void 0:i.value)||!I.updateUnchangedValue||u.includes("range"))return;const d=i.value;i.value=g(new Date,E.value),i.dispatchEvent(new InputEvent("input")),i.value=d,i.dispatchEvent(new InputEvent("input"))}function x(e){return I.allowedInvalidValue&&I.allowedInvalidValue===e}return n((()=>I.formattedValue),(e=>{C.value=x(e)?e:I.placeholder?I.placeholder:"选择日期时间"}),{immediate:!0}),V({$datePicker:k,focus:U,blur:$}),(e,t)=>(o(),r(u(f),{ref_key:"datePickerRef",ref:k,"onUpdate:show":b,onConfirm:j,placeholder:C.value,"formatted-value":u(M),"onUpdate:formatted-value":t[0]||(t[0]=e=>i(M)?M.value=e:null)},d({_:2},[s(e.$slots,((t,a)=>({name:a,fn:p((()=>[m(e.$slots,a)]))})))]),1032,["placeholder","formatted-value"]))}});export{V as default};
@@ -91,6 +91,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
91
91
  uuid: string;
92
92
  lifeCycle: Partial<{
93
93
  onSetup(): void;
94
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
95
+ field: import("@formily/core").GeneralField;
96
+ oldValue: unknown;
97
+ }): any;
94
98
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
95
99
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
96
100
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -198,6 +202,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
198
202
  uuid: string;
199
203
  lifeCycle: Partial<{
200
204
  onSetup(): void;
205
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
206
+ field: import("@formily/core").GeneralField;
207
+ oldValue: unknown;
208
+ }): any;
201
209
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
202
210
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
203
211
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -7461,6 +7469,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7461
7469
  lifeCycle: {
7462
7470
  type: import("vue").PropType<Partial<{
7463
7471
  onSetup(): void;
7472
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
7473
+ field: import("@formily/core").GeneralField;
7474
+ oldValue: unknown;
7475
+ }): any;
7464
7476
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
7465
7477
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
7466
7478
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -7606,6 +7618,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7606
7618
  lifeCycle: {
7607
7619
  type: import("vue").PropType<Partial<{
7608
7620
  onSetup(): void;
7621
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
7622
+ field: import("@formily/core").GeneralField;
7623
+ oldValue: unknown;
7624
+ }): any;
7609
7625
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
7610
7626
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
7611
7627
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -7675,13 +7691,21 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7675
7691
  title: string;
7676
7692
  }[]>;
7677
7693
  onScroll: (scrollEvent: Event) => void;
7678
- callLifeCycle: <T_2 extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T_2, payload?: Parameters<Required<Partial<{
7694
+ callLifeCycle: <T_2 extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T_2, payload?: Parameters<Required<Partial<{
7679
7695
  onSetup(): void;
7696
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
7697
+ field: import("@formily/core").GeneralField;
7698
+ oldValue: unknown;
7699
+ }): any;
7680
7700
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
7681
7701
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
7682
7702
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
7683
7703
  }>>[T_2]> | undefined) => import("../../../es/shared/types").UndefinedAble<ReturnType<Required<Partial<{
7684
7704
  onSetup(): void;
7705
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
7706
+ field: import("@formily/core").GeneralField;
7707
+ oldValue: unknown;
7708
+ }): any;
7685
7709
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
7686
7710
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
7687
7711
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -7774,6 +7798,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7774
7798
  uuid: string;
7775
7799
  lifeCycle: Partial<{
7776
7800
  onSetup(): void;
7801
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
7802
+ field: import("@formily/core").GeneralField;
7803
+ oldValue: unknown;
7804
+ }): any;
7777
7805
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
7778
7806
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
7779
7807
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -8181,6 +8209,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8181
8209
  lifeCycle: {
8182
8210
  type: import("vue").PropType<Partial<{
8183
8211
  onSetup(): void;
8212
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
8213
+ field: import("@formily/core").GeneralField;
8214
+ oldValue: unknown;
8215
+ }): any;
8184
8216
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
8185
8217
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
8186
8218
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -8427,6 +8459,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8427
8459
  uuid: string;
8428
8460
  lifeCycle: Partial<{
8429
8461
  onSetup(): void;
8462
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
8463
+ field: import("@formily/core").GeneralField;
8464
+ oldValue: unknown;
8465
+ }): any;
8430
8466
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
8431
8467
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
8432
8468
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -8525,6 +8561,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8525
8561
  uuid: string;
8526
8562
  lifeCycle: Partial<{
8527
8563
  onSetup(): void;
8564
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
8565
+ field: import("@formily/core").GeneralField;
8566
+ oldValue: unknown;
8567
+ }): any;
8528
8568
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
8529
8569
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
8530
8570
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -13887,6 +13927,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
13887
13927
  lifeCycle: {
13888
13928
  type: import("vue").PropType<Partial<{
13889
13929
  onSetup(): void;
13930
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
13931
+ field: import("@formily/core").GeneralField;
13932
+ oldValue: unknown;
13933
+ }): any;
13890
13934
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
13891
13935
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
13892
13936
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -14032,6 +14076,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14032
14076
  lifeCycle: {
14033
14077
  type: import("vue").PropType<Partial<{
14034
14078
  onSetup(): void;
14079
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
14080
+ field: import("@formily/core").GeneralField;
14081
+ oldValue: unknown;
14082
+ }): any;
14035
14083
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
14036
14084
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
14037
14085
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -14101,13 +14149,21 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14101
14149
  title: string;
14102
14150
  }[]>;
14103
14151
  onScroll: (scrollEvent: Event) => void;
14104
- callLifeCycle: <T_2 extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T_2, payload?: Parameters<Required<Partial<{
14152
+ callLifeCycle: <T_2 extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T_2, payload?: Parameters<Required<Partial<{
14105
14153
  onSetup(): void;
14154
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
14155
+ field: import("@formily/core").GeneralField;
14156
+ oldValue: unknown;
14157
+ }): any;
14106
14158
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
14107
14159
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
14108
14160
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
14109
14161
  }>>[T_2]> | undefined) => import("../../../es/shared/types").UndefinedAble<ReturnType<Required<Partial<{
14110
14162
  onSetup(): void;
14163
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
14164
+ field: import("@formily/core").GeneralField;
14165
+ oldValue: unknown;
14166
+ }): any;
14111
14167
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
14112
14168
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
14113
14169
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -14200,6 +14256,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14200
14256
  uuid: string;
14201
14257
  lifeCycle: Partial<{
14202
14258
  onSetup(): void;
14259
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
14260
+ field: import("@formily/core").GeneralField;
14261
+ oldValue: unknown;
14262
+ }): any;
14203
14263
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
14204
14264
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
14205
14265
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -14607,6 +14667,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14607
14667
  lifeCycle: {
14608
14668
  type: import("vue").PropType<Partial<{
14609
14669
  onSetup(): void;
14670
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
14671
+ field: import("@formily/core").GeneralField;
14672
+ oldValue: unknown;
14673
+ }): any;
14610
14674
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
14611
14675
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
14612
14676
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -14743,6 +14807,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14743
14807
  uuid: string;
14744
14808
  lifeCycle: Partial<{
14745
14809
  onSetup(): void;
14810
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
14811
+ field: import("@formily/core").GeneralField;
14812
+ oldValue: unknown;
14813
+ }): any;
14746
14814
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
14747
14815
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
14748
14816
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
@@ -15012,6 +15080,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
15012
15080
  uuid: string;
15013
15081
  lifeCycle: Partial<{
15014
15082
  onSetup(): void;
15083
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
15084
+ field: import("@formily/core").GeneralField;
15085
+ oldValue: unknown;
15086
+ }): any;
15015
15087
  beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
15016
15088
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
15017
15089
  afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;