cnhis-design-vue 3.1.41-beta.32 → 3.1.41-beta.34

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 (68) hide show
  1. package/es/components/big-table/index.d.ts +1 -0
  2. package/es/components/big-table/src/BigTable.vue.d.ts +1 -0
  3. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  4. package/es/components/big-table/style/index.css +1 -1
  5. package/es/components/config-provider/index.d.ts +14 -0
  6. package/es/components/config-provider/index.js +1 -0
  7. package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
  8. package/es/components/config-provider/src/ConfigProvider.js +1 -0
  9. package/es/components/config-provider/src/interface.d.ts +18 -0
  10. package/es/components/config-provider/src/interface.js +1 -0
  11. package/es/components/config-provider/src/utils/index.d.ts +2 -0
  12. package/es/components/config-provider/src/utils/index.js +1 -0
  13. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  14. package/es/components/form-config/index.d.ts +27 -27
  15. package/es/components/form-config/src/FormConfig.vue.d.ts +27 -27
  16. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +11 -11
  17. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +14 -14
  18. package/es/components/form-render/index.d.ts +11 -11
  19. package/es/components/form-render/src/FormRender.vue.d.ts +11 -11
  20. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +11 -11
  21. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  22. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  23. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  24. package/es/components/form-render/src/components/renderer/select.js +1 -1
  25. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  26. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  27. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
  28. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  29. package/es/components/index.css +1 -1
  30. package/es/components/index.d.ts +3 -1
  31. package/es/components/index.js +1 -1
  32. package/es/components/info-header/index.d.ts +421 -141
  33. package/es/components/info-header/src/InfoHeader.vue.d.ts +422 -141
  34. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  35. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +320 -0
  36. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
  37. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +447 -0
  38. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
  39. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  40. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  41. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +412 -139
  42. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  43. package/es/components/info-header/src/constants/index.d.ts +4 -0
  44. package/es/components/info-header/src/constants/index.js +1 -0
  45. package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
  46. package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
  47. package/es/components/info-header/src/types/index.d.ts +12 -3
  48. package/es/components/info-header/style/index.css +1 -1
  49. package/es/components/keyboard/index.d.ts +3 -1
  50. package/es/components/keyboard/src/Keyboard.vue.d.ts +3 -1
  51. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  52. package/es/components/keyboard/src/constants/index.d.ts +2 -0
  53. package/es/components/keyboard/src/constants/index.js +1 -0
  54. package/es/components/keyboard/style/index.css +1 -1
  55. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
  56. package/es/components/shortcut-setter/index.d.ts +12 -12
  57. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  58. package/es/components/steps-wheel/index.d.ts +1 -0
  59. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
  60. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  61. package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
  62. package/es/components/steps-wheel/src/constants/index.js +1 -0
  63. package/es/components/steps-wheel/style/index.css +1 -1
  64. package/es/shared/mixins/index.d.ts +1 -0
  65. package/es/shared/mixins/index.js +1 -0
  66. package/es/shared/mixins/useTheme.d.ts +3 -0
  67. package/es/shared/mixins/useTheme.js +1 -0
  68. package/package.json +2 -2
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as n,openBlock as o,createElementBlock as i,normalizeClass as a,createElementVNode as s,createCommentVNode as r,renderSlot as l,createVNode as c,unref as f,withCtx as p,mergeProps as d,Fragment as u,renderList as m,createBlock as v,resolveDynamicComponent as h,h as g,nextTick as y}from"vue";import{isString as _}from"lodash-es";import I from"./components/infoDescription/index.vue.js";import $ from"./components/patientInfo/index.vue.js";import b from"../../../_virtual/plugin-vue_export-helper.js";const x={class:"c-info-header__operation"},S={key:0,class:"c-info-header__divider"},z={class:"c-info-header__setting"},j=["onClick"];var k=b(e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},separator:{type:String,default:":"},patientInfo:{type:Object,default:()=>({})},infoList:{type:Array,required:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:32},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]}},emits:["openPatientInfo","fieldSet","update:compact"],setup(e,{expose:b,emit:k}){const C=e,w=t();function H(){var e;return null==(e=w.value)?void 0:e.updateColumn()}const M={patientInfo:{event:function(){k("openPatientInfo")},render:()=>[g("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){k("fieldSet")},render:()=>[g("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){k("update:compact",!C.compact),await y(),await H()},render:()=>[g("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},q=n((()=>C.settingIcons.map((e=>(_(e)?M[e]:e)||{}))));return b({update:H}),(t,n)=>(o(),i("div",{class:a(["c-info-header",{"is-compact":e.compact}])},[s("section",x,[r(" 操作区插槽 "),l(t.$slots,"operation")]),t.$slots.operation?(o(),i("div",S)):r("v-if",!0),r(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),l(t.$slots,"patientModule",{},(()=>[c(f($),{"patient-info":e.patientInfo},{avatarInfo:p((()=>[r(" 头像区补充内容插槽 (会插入头像下方) "),l(t.$slots,"avatarInfo")])),avatar:p((()=>[r(" 头像插槽 "),l(t.$slots,"avatar")])),tags:p((()=>[r(" 标签插槽 "),l(t.$slots,"tags")])),avatarModule:p((()=>[r(" 头像信息区插槽 (包含头像, 文本, 标签) "),l(t.$slots,"avatarModule")])),_:3},8,["patient-info"])])),c(f(I),d({ref_key:"infoDescriptionRef",ref:w,"root-slot":t.$slots},t.$props),{info:p((()=>[r(" 信息描述区插槽 "),l(t.$slots,"info")])),_:3},16,["root-slot"]),s("section",z,[r(" 设置区插槽 "),l(t.$slots,"setting",{},(()=>[(o(!0),i(u,null,m(f(q),(e=>(o(),i("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(o(),v(h(e.render)))],8,j)))),128))]))])],2))}}),[["__file","InfoHeader.vue"]]);export{k as default};
1
+ import{defineComponent as e,provide as t,ref as o,computed as n,openBlock as i,createElementBlock as a,normalizeClass as r,normalizeStyle as s,createElementVNode as c,createCommentVNode as l,renderSlot as f,createVNode as p,unref as d,withCtx as u,mergeProps as m,Fragment as h,renderList as v,createBlock as g,resolveDynamicComponent as y,h as _,nextTick as I}from"vue";import{isString as $}from"lodash-es";import x from"./components/infoDescription/index.vue.js";import b 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 M=z(e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},separator:{type:String,default:":"},patientInfo:{type:Object,default:()=>({})},infoList:{type:Array,required:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:32},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]}},emits:["openPatientInfo","fieldSet","update:compact","formChange"],setup(e,{expose:z,emit:M}){const q=e;t(S,M);const A=o();function D(){var e;return null==(e=A.value)?void 0:e.updateColumn()}const F={patientInfo:{event:function(){M("openPatientInfo")},render:()=>[_("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){M("fieldSet")},render:()=>[_("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){M("update:compact",!q.compact),await I(),await D()},render:()=>[_("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},N=n((()=>q.settingIcons.map((e=>($(e)?F[e]:e)||{})))),P=o();return t(j,P),z({update:D,$formRender:P}),(t,o)=>(i(),a("div",{class:r(["c-info-header",{"is-compact":e.compact}]),style:s({"--row-height":e.rowHeight,"--row-num":e.compact?1:2})},[c("section",w,[l(" 操作区插槽 "),f(t.$slots,"operation")]),t.$slots.operation?(i(),a("div",k)):l("v-if",!0),l(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),f(t.$slots,"patientModule",{},(()=>[p(d(b),{"patient-info":e.patientInfo},{avatarInfo:u((()=>[l(" 头像区补充内容插槽 (会插入头像下方) "),f(t.$slots,"avatarInfo")])),avatar:u((()=>[l(" 头像插槽 "),f(t.$slots,"avatar")])),tags:u((()=>[l(" 标签插槽 "),f(t.$slots,"tags")])),avatarModule:u((()=>[l(" 头像信息区插槽 (包含头像, 文本, 标签) "),f(t.$slots,"avatarModule")])),_:3},8,["patient-info"])])),p(d(x),m({ref_key:"infoDescriptionRef",ref:A,"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(d(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{M as default};
@@ -0,0 +1,320 @@
1
+ import { CSSProperties } from 'vue';
2
+ import { FieldItem } from '../../../../../../es/components/form-render';
3
+ import { InfoHeaderTypes } from '../../../../../../es/components/info-header/src/types';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ infoItem: {
6
+ type: null;
7
+ required: true;
8
+ default: () => {};
9
+ };
10
+ labelField: {
11
+ type: StringConstructor;
12
+ required: false;
13
+ default: string;
14
+ };
15
+ valueField: {
16
+ type: StringConstructor;
17
+ required: false;
18
+ default: string;
19
+ };
20
+ width: {
21
+ type: NumberConstructor;
22
+ required: false;
23
+ };
24
+ rootSlot: {
25
+ type: ObjectConstructor;
26
+ required: true;
27
+ };
28
+ }, {
29
+ props: {
30
+ infoItem: InfoHeaderTypes.InfoItem;
31
+ labelField: string;
32
+ valueField: string;
33
+ width?: number | undefined;
34
+ rootSlot: Record<string, any>;
35
+ };
36
+ SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
37
+ formRenderRef: import("vue").Ref<import("../../../../../../es/components/form-render").FormRenderExpose | undefined>;
38
+ onItemDblclick: (item: InfoHeaderTypes.InfoItem) => Promise<void>;
39
+ onItemClick: (item: InfoHeaderTypes.InfoItem) => Promise<void>;
40
+ collector: import("../../../../../../es/components/form-render").BusinessCollector | undefined;
41
+ schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/vue").Stringify<{
42
+ [key: symbol]: any;
43
+ [key: `x-${string}`]: any;
44
+ [key: `x-${number}`]: any;
45
+ version?: string | undefined;
46
+ name?: import("@formily/vue").SchemaKey | undefined;
47
+ title?: any;
48
+ description?: any;
49
+ default?: any;
50
+ readOnly?: boolean | undefined;
51
+ writeOnly?: boolean | undefined;
52
+ type?: import("@formily/vue").SchemaTypes | undefined;
53
+ enum?: import("@formily/vue").SchemaEnum<any> | undefined;
54
+ const?: any;
55
+ multipleOf?: number | undefined;
56
+ maximum?: number | undefined;
57
+ exclusiveMaximum?: number | undefined;
58
+ minimum?: number | undefined;
59
+ exclusiveMinimum?: number | undefined;
60
+ maxLength?: number | undefined;
61
+ minLength?: number | undefined;
62
+ pattern?: string | RegExp | undefined;
63
+ maxItems?: number | undefined;
64
+ minItems?: number | undefined;
65
+ uniqueItems?: boolean | undefined;
66
+ maxProperties?: number | undefined;
67
+ minProperties?: number | undefined;
68
+ required?: string | boolean | string[] | undefined;
69
+ format?: string | undefined;
70
+ $ref?: string | undefined;
71
+ $namespace?: string | undefined;
72
+ definitions?: import("@formily/vue").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
73
+ properties?: import("@formily/vue").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
74
+ items?: import("@formily/vue").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
75
+ additionalItems?: import("@formily/vue").Stringify<any> | undefined;
76
+ patternProperties?: import("@formily/vue").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
77
+ additionalProperties?: import("@formily/vue").Stringify<any> | undefined;
78
+ "x-value"?: any;
79
+ "x-index"?: number | undefined;
80
+ "x-pattern"?: any;
81
+ "x-display"?: any;
82
+ "x-validator"?: any;
83
+ "x-decorator"?: any;
84
+ "x-decorator-props"?: any;
85
+ "x-component"?: any;
86
+ "x-component-props"?: any;
87
+ "x-reactions"?: import("@formily/vue").SchemaReactions<any> | undefined;
88
+ "x-content"?: any;
89
+ "x-data"?: any;
90
+ "x-visible"?: boolean | undefined;
91
+ "x-hidden"?: boolean | undefined;
92
+ "x-disabled"?: boolean | undefined;
93
+ "x-editable"?: boolean | undefined;
94
+ "x-read-only"?: boolean | undefined;
95
+ "x-read-pretty"?: boolean | undefined;
96
+ "x-compile-omitted"?: string[] | undefined;
97
+ }>>;
98
+ formModel: import("vue").Ref<import("@formily/core").Form<any>>;
99
+ schema: import("vue").ComputedRef<import("@formily/vue").Stringify<{
100
+ [key: symbol]: any;
101
+ [key: `x-${string}`]: any;
102
+ [key: `x-${number}`]: any;
103
+ version?: string | undefined;
104
+ name?: import("@formily/vue").SchemaKey | undefined;
105
+ title?: any;
106
+ description?: any;
107
+ default?: any;
108
+ readOnly?: boolean | undefined;
109
+ writeOnly?: boolean | undefined;
110
+ type?: import("@formily/vue").SchemaTypes | undefined;
111
+ enum?: import("@formily/vue").SchemaEnum<any> | undefined;
112
+ const?: any;
113
+ multipleOf?: number | undefined;
114
+ maximum?: number | undefined;
115
+ exclusiveMaximum?: number | undefined;
116
+ minimum?: number | undefined;
117
+ exclusiveMinimum?: number | undefined;
118
+ maxLength?: number | undefined;
119
+ minLength?: number | undefined;
120
+ pattern?: string | RegExp | undefined;
121
+ maxItems?: number | undefined;
122
+ minItems?: number | undefined;
123
+ uniqueItems?: boolean | undefined;
124
+ maxProperties?: number | undefined;
125
+ minProperties?: number | undefined;
126
+ required?: string | boolean | string[] | undefined;
127
+ format?: string | undefined;
128
+ $ref?: string | undefined;
129
+ $namespace?: string | undefined;
130
+ definitions?: import("@formily/vue").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
131
+ properties?: import("@formily/vue").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
132
+ items?: import("@formily/vue").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
133
+ additionalItems?: import("@formily/vue").Stringify<any> | undefined;
134
+ patternProperties?: import("@formily/vue").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
135
+ additionalProperties?: import("@formily/vue").Stringify<any> | undefined;
136
+ "x-value"?: any;
137
+ "x-index"?: number | undefined;
138
+ "x-pattern"?: any;
139
+ "x-display"?: any;
140
+ "x-validator"?: any;
141
+ "x-decorator"?: any;
142
+ "x-decorator-props"?: any;
143
+ "x-component"?: any;
144
+ "x-component-props"?: any;
145
+ "x-reactions"?: import("@formily/vue").SchemaReactions<any> | undefined;
146
+ "x-content"?: any;
147
+ "x-data"?: any;
148
+ "x-visible"?: boolean | undefined;
149
+ "x-hidden"?: boolean | undefined;
150
+ "x-disabled"?: boolean | undefined;
151
+ "x-editable"?: boolean | undefined;
152
+ "x-read-only"?: boolean | undefined;
153
+ "x-read-pretty"?: boolean | undefined;
154
+ "x-compile-omitted"?: string[] | undefined;
155
+ }>>;
156
+ itemStyle: import("vue").ComputedRef<any>;
157
+ ellipsisStyle: import("vue").ComputedRef<CSSProperties>;
158
+ isHiddenContent: import("vue").ComputedRef<boolean>;
159
+ HiddenContent: import("vue").DefineComponent<{
160
+ content: {
161
+ type: StringConstructor;
162
+ default: string;
163
+ };
164
+ tip: StringConstructor;
165
+ width: {
166
+ type: NumberConstructor;
167
+ };
168
+ contentStyle: {
169
+ type: import("vue").PropType<CSSProperties>;
170
+ default: () => {};
171
+ };
172
+ }, {
173
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
174
+ content: {
175
+ type: StringConstructor;
176
+ default: string;
177
+ };
178
+ tip: StringConstructor;
179
+ width: {
180
+ type: NumberConstructor;
181
+ };
182
+ contentStyle: {
183
+ type: import("vue").PropType<CSSProperties>;
184
+ default: () => {};
185
+ };
186
+ }>> & {}>>;
187
+ hidden: import("vue").Ref<boolean>;
188
+ toggleHidden: () => void;
189
+ wrapperStyle: import("vue").ComputedRef<{
190
+ maxWidth: string;
191
+ width: string;
192
+ }>;
193
+ parsedContentStyle: import("vue").ComputedRef<{}>;
194
+ displayContent: import("vue").ComputedRef<string>;
195
+ InfoEllipsis: import("vue").DefineComponent<{
196
+ content: {
197
+ type: StringConstructor;
198
+ default: string;
199
+ };
200
+ tip: {
201
+ type: StringConstructor;
202
+ };
203
+ contentStyle: {
204
+ type: import("vue").PropType<CSSProperties>;
205
+ default: () => {};
206
+ };
207
+ }, {
208
+ NEllipsis: any;
209
+ NTooltip: any;
210
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
211
+ content: {
212
+ type: StringConstructor;
213
+ default: string;
214
+ };
215
+ tip: {
216
+ type: StringConstructor;
217
+ };
218
+ contentStyle: {
219
+ type: import("vue").PropType<CSSProperties>;
220
+ default: () => {};
221
+ };
222
+ }>>, {
223
+ content: string;
224
+ contentStyle: CSSProperties;
225
+ }>;
226
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
227
+ content: {
228
+ type: StringConstructor;
229
+ default: string;
230
+ };
231
+ tip: StringConstructor;
232
+ width: {
233
+ type: NumberConstructor;
234
+ };
235
+ contentStyle: {
236
+ type: import("vue").PropType<CSSProperties>;
237
+ default: () => {};
238
+ };
239
+ }>>, {
240
+ content: string;
241
+ contentStyle: CSSProperties;
242
+ }>;
243
+ InfoEllipsis: import("vue").DefineComponent<{
244
+ content: {
245
+ type: StringConstructor;
246
+ default: string;
247
+ };
248
+ tip: {
249
+ type: StringConstructor;
250
+ };
251
+ contentStyle: {
252
+ type: import("vue").PropType<CSSProperties>;
253
+ default: () => {};
254
+ };
255
+ }, {
256
+ NEllipsis: any;
257
+ NTooltip: any;
258
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
259
+ content: {
260
+ type: StringConstructor;
261
+ default: string;
262
+ };
263
+ tip: {
264
+ type: StringConstructor;
265
+ };
266
+ contentStyle: {
267
+ type: import("vue").PropType<CSSProperties>;
268
+ default: () => {};
269
+ };
270
+ }>>, {
271
+ content: string;
272
+ contentStyle: CSSProperties;
273
+ }>;
274
+ SlotRender: import("vue").DefineComponent<{
275
+ renderer: {
276
+ type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../shared/types").Func<any[], any>>;
277
+ required: true;
278
+ };
279
+ rootSlots: {
280
+ type: import("vue").PropType<Record<string, import("../../../../../shared/types").Func<any[], any>>>;
281
+ };
282
+ }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
283
+ renderer: {
284
+ type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../shared/types").Func<any[], any>>;
285
+ required: true;
286
+ };
287
+ rootSlots: {
288
+ type: import("vue").PropType<Record<string, import("../../../../../shared/types").Func<any[], any>>>;
289
+ };
290
+ }>>, {}>;
291
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
292
+ infoItem: {
293
+ type: null;
294
+ required: true;
295
+ default: () => {};
296
+ };
297
+ labelField: {
298
+ type: StringConstructor;
299
+ required: false;
300
+ default: string;
301
+ };
302
+ valueField: {
303
+ type: StringConstructor;
304
+ required: false;
305
+ default: string;
306
+ };
307
+ width: {
308
+ type: NumberConstructor;
309
+ required: false;
310
+ };
311
+ rootSlot: {
312
+ type: ObjectConstructor;
313
+ required: true;
314
+ };
315
+ }>>, {
316
+ labelField: string;
317
+ valueField: string;
318
+ infoItem: any;
319
+ }>;
320
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as t,computed as o,openBlock as n,createElementBlock as i,createBlock as l,unref as r,normalizeStyle as m,Fragment as s,withDirectives as d,createElementVNode as f,vShow as a,createCommentVNode as c}from"vue";import{isField as u}from"@formily/core";import{useForm as p}from"@formily/vue";import{isFunction as v}from"lodash-es";import{pauseTracking as y,enableTracking as I}from"@vue/reactivity";import"../../../../form-render/index.js";import{InjectionSchemaField as h,InjectionBusinessCollector as F}from"../../../../form-render/src/constants/index.js";import{InjectionInfoHeaderFormRef as w}from"../../constants/index.js";import b from"./HiddenContent.vue.js";import k from"./InfoEllipsis.vue.js";import _ from"../../../../../shared/components/SlotRender/SlotRender.js";import g from"../../../../../_virtual/plugin-vue_export-helper.js";import{useFieldListAdaptor as j}from"../../../../form-render/src/hooks/useFieldListAdaptor.js";import{createObjSchema as x}from"../../../../form-render/src/utils/schema.js";const P={key:0};var S=g(e({__name:"DescriptionItem",props:{infoItem:{default:()=>({})},labelField:{default:"label"},valueField:{default:"value"},width:null,rootSlot:null},setup(e){const g=e,S=t(h,{render:()=>null}),W=t(w);async function B(e){var t,o,n;if(!e.formField||e.edit)return;e.edit=!0;const i=await(null==(t=W.value)?void 0:t.queryWidget(e[g.labelField]));i&&(null==(o=i.widgetElement)||o.focus(),null==(n=i.widgetElement)||n.click())}const D=t(F,void 0),{schemaAdaptor:E}=j(D),q=p(),A=o((()=>{var e,t,o;const n=g.infoItem.formField;if(!n)return{};const i=g.infoItem[g.labelField],l={...n,html_type:null!=(e=n.html_type)?e:"INPUT",val_key:i,decoratorProps:{showLabel:!1,...n.decoratorProps,style:{marginBottom:"-12px"}},componentProps:{size:"tiny",clearable:!0,...n.componentProps,style:{marginTop:"4px",fontWeight:(null==(t=g.infoItem)?void 0:t.bold)?700:500,...null==(o=n.componentProps)?void 0:o.style},async onBlur(e){var t;if(q&&q.value)try{const o=q.value.query(i).take();await(o&&u(o)&&o.validate()),g.infoItem.edit=!1,v(null==(t=n.componentProps)?void 0:t.onBlur)&&n.componentProps.onBlur(e)}catch(e){}}}};y(),l.default_val=g.infoItem[g.valueField],I();const r=E([l]);return x(r)})),C=o((()=>({fontWeight:g.infoItem.bold?700:500,...g.infoItem.contentStyle}))),L=o((()=>{const{bold:e,contentStyle:t}=g.infoItem,o=g.width+"px";return{width:o,maxWidth:o,fontWeight:e?700:500,...t}})),R=o((()=>["电话","身份证"].some((e=>{var t,o;return null==(o=null==(t=g.infoItem[g.labelField])?void 0:t.includes)?void 0:o.call(t,e)}))));return(t,o)=>(n(),i("section",{onDblclick:o[0]||(o[0]=t=>B(e.infoItem)),onClick:o[1]||(o[1]=t=>async function(e){e.formField&&!e[g.valueField]&&0!==e[g.valueField]&&B(e)}(e.infoItem))},[e.infoItem.slot?(n(),l(r(_),{key:0,renderer:e.infoItem.slot,"root-slots":e.rootSlot,item:e.infoItem,style:m(r(C)),width:e.width},null,8,["renderer","root-slots","item","style","width"])):(n(),i(s,{key:1},[d(f("section",null,[r(R)?(n(),l(b,{key:0,content:e.infoItem[e.valueField],tip:e.infoItem.tip,"content-style":r(C),width:e.width},null,8,["content","tip","content-style","width"])):(n(),l(k,{key:1,"content-style":r(L),content:e.infoItem[e.valueField],tip:e.infoItem.tip},null,8,["content-style","content","tip"]))],512),[[a,!e.infoItem.edit||!e.infoItem.formField]]),e.infoItem.formField?d((n(),i("section",P,[(n(),l(r(S),{schema:r(A),key:e.infoItem[e.labelField]},null,8,["schema"]))],512)),[[a,e.infoItem.edit]]):c("v-if",!0)],64))],32))}}),[["__file","DescriptionItem.vue"]]);export{S as default};