cnhis-design-vue 3.2.5-release.0 → 3.2.5-release.2
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.
- package/es/components/button-print/index.d.ts +2 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +2 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/form-config/index.d.ts +2 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +2 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -0
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.d.ts +1 -0
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +2 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
- package/es/components/scale-view/index.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +8 -8
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
|
@@ -3104,6 +3104,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3104
3104
|
anchorIdList: import("vue").Ref<{
|
|
3105
3105
|
name: string;
|
|
3106
3106
|
title: string;
|
|
3107
|
+
index: number;
|
|
3107
3108
|
}[]>;
|
|
3108
3109
|
onScroll: (scrollEvent: Event) => void;
|
|
3109
3110
|
callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
@@ -4185,6 +4186,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4185
4186
|
anchorIdList: import("vue").Ref<{
|
|
4186
4187
|
name: string;
|
|
4187
4188
|
title: string;
|
|
4189
|
+
index: number;
|
|
4188
4190
|
}[]>;
|
|
4189
4191
|
onScroll: (scrollEvent: Event) => void;
|
|
4190
4192
|
callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
@@ -3099,6 +3099,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3099
3099
|
anchorIdList: import("vue").Ref<{
|
|
3100
3100
|
name: string;
|
|
3101
3101
|
title: string;
|
|
3102
|
+
index: number;
|
|
3102
3103
|
}[]>;
|
|
3103
3104
|
onScroll: (scrollEvent: Event) => void;
|
|
3104
3105
|
callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
@@ -4180,6 +4181,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4180
4181
|
anchorIdList: import("vue").Ref<{
|
|
4181
4182
|
name: string;
|
|
4182
4183
|
title: string;
|
|
4184
|
+
index: number;
|
|
4183
4185
|
}[]>;
|
|
4184
4186
|
onScroll: (scrollEvent: Event) => void;
|
|
4185
4187
|
callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
@@ -2597,6 +2597,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2597
2597
|
anchorIdList: import("vue").Ref<{
|
|
2598
2598
|
name: string;
|
|
2599
2599
|
title: string;
|
|
2600
|
+
index: number;
|
|
2600
2601
|
}[]>;
|
|
2601
2602
|
onScroll: (scrollEvent: Event) => void;
|
|
2602
2603
|
callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
@@ -471,6 +471,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
471
471
|
anchorIdList: import("vue").Ref<{
|
|
472
472
|
name: string;
|
|
473
473
|
title: string;
|
|
474
|
+
index: number;
|
|
474
475
|
}[]>;
|
|
475
476
|
onScroll: (scrollEvent: Event) => void;
|
|
476
477
|
callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
@@ -1228,11 +1228,11 @@ declare const CCheckbox: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1228
1228
|
declare const CSelect: SFCWithInstall<import("vue").DefineComponent<{
|
|
1229
1229
|
form: {
|
|
1230
1230
|
type: ObjectConstructor;
|
|
1231
|
-
default: () =>
|
|
1231
|
+
default: () => {};
|
|
1232
1232
|
};
|
|
1233
1233
|
item: {
|
|
1234
1234
|
type: ObjectConstructor;
|
|
1235
|
-
default: () =>
|
|
1235
|
+
default: () => {};
|
|
1236
1236
|
};
|
|
1237
1237
|
isLock: {
|
|
1238
1238
|
type: BooleanConstructor;
|
|
@@ -1253,11 +1253,11 @@ declare const CSelect: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1253
1253
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1254
1254
|
form: {
|
|
1255
1255
|
type: ObjectConstructor;
|
|
1256
|
-
default: () =>
|
|
1256
|
+
default: () => {};
|
|
1257
1257
|
};
|
|
1258
1258
|
item: {
|
|
1259
1259
|
type: ObjectConstructor;
|
|
1260
|
-
default: () =>
|
|
1260
|
+
default: () => {};
|
|
1261
1261
|
};
|
|
1262
1262
|
isLock: {
|
|
1263
1263
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as l,computed as a,createVNode as s,resolveComponent as i}from"vue";import{NSelect as t,NInput as r}from"naive-ui";import u from"./address.js";import"xe-utils";import"moment";import d from"../../../../../shared/utils/vexutilsExpand.js";var n=e({name:"RAddress",components:{NSelect:t,NInput:r},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,t){const r=l({provinceValue:-1,cityValue:-1,areaValue:-1,province:[{value:-1,label:"省/自治区/直辖市"}],city:[{value:-1,label:"市"}],area:[{value:-1,label:"区/县"}],addressValue:"",allValue:{}}),n=e.item.setting||{addressType:"province-city-district-address"},o=a((()=>{let e={addressType:"province-city-district-address"};return e=d.isJSON(n)?JSON.parse(n):n,e.addressType})),c=a((()=>o.value.includes("province"))),p=a((()=>o.value.includes("city"))),v=a((()=>o.value.includes("district"))),y=a((()=>o.value.includes("address"))),m=e=>e?Object.keys(e).map((l=>({value:l,label:e[l]}))):[],V=()=>{r.area=[{value:-1,label:"区/县"}],r.areaValue=-1;r.allValue.area={key:-1,label:"区/县"}},b=(l,a,s)=>{r.provinceValue=l,r.city=[{value:-1,label:"市"}],r.cityValue=-1,r.allValue.city={key:-1,label:"市"},V(),-1!=l&&1===r.city.length&&r.city.push(...m(u[l]));const i=r.allValue;i.province={key:l,label:null==a?void 0:a.label},i.address=r.addressValue,"no"!=s&&t.emit("scaleChange",i,e.item)},f=(l,a,s)=>{r.cityValue=l,V(),-1!=l&&1===r.area.length&&r.area.push(...m(u[l]));const i=r.allValue;i.city={key:l,label:null==a?void 0:a.label},i.address=r.addressValue,"no"!=s&&t.emit("scaleChange",i,e.item)},h=(l,a,s)=>{r.areaValue=l;r.allValue.area={key:l,label:null==a?void 0:a.label},"no"!=s&&t.emit("scaleChange",r.allValue,e.item)},k=(l,a)=>{r.addressValue=l;r.allValue.address=l,"no"!=a&&t.emit("scaleChange",r.allValue,e.item)};return(()=>{var l,a,s;r.province.push(...m(u[86]));const i=e.form[e.item.val_key];if(d.isEmpty(i))return;const t=(null==(l=i.province)?void 0:l.key)||-1,n=(null==(a=i.city)?void 0:a.key)||-1,o=(null==(s=i.area)?void 0:s.key)||-1;r.addressValue=i.address,r.allValue=JSON.parse(JSON.stringify(i)),b(t,i.province,"no"),f(n,i.city,"no"),h(o,i.area,"no")})(),()=>s("div",{class:"c-scale-address"},[s("div",{class:"field-row"},[c.value&&s(i("n-select"),{value:r.provinceValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.province,"onUpdate:value":b},null),p.value&&s(i("n-select"),{value:r.cityValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.city,"onUpdate:value":f},null),v.value&&s(i("n-select"),{value:r.areaValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.area,"onUpdate:value":h},null)]),y.value&&s(i("n-input"),{value:r.addressValue,placeholder:"请输入",disabled:e.isLock,"onUpdate:value":k},null)])}});export{n as default};
|
|
1
|
+
import{defineComponent as e,reactive as l,computed as a,createVNode as s,resolveComponent as i}from"vue";import{NSelect as t,NInput as r}from"naive-ui";import u from"./address.js";import"xe-utils";import"moment";import d from"../../../../../shared/utils/vexutilsExpand.js";var n=e({name:"RAddress",components:{NSelect:t,NInput:r},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,t){const r=l({provinceValue:-1,cityValue:-1,areaValue:-1,province:[{value:-1,label:"省/自治区/直辖市"}],city:[{value:-1,label:"市"}],area:[{value:-1,label:"区/县"}],addressValue:"",allValue:{}}),n=e.item.setting||{addressType:"province-city-district-address"},o=a((()=>{let e={addressType:"province-city-district-address"};return e=d.isJSON(n)?JSON.parse(n):n,e.addressType})),c=a((()=>o.value.includes("province"))),p=a((()=>o.value.includes("city"))),v=a((()=>o.value.includes("district"))),y=a((()=>o.value.includes("address"))),m=e=>e?Object.keys(e).map((l=>({value:l,label:e[l]}))):[],V=()=>{r.area=[{value:-1,label:"区/县"}],r.areaValue=-1;r.allValue.area={key:-1,label:"区/县"}},b=(l,a,s)=>{r.provinceValue=l,r.city=[{value:-1,label:"市"}],r.cityValue=-1,r.allValue.city={key:-1,label:"市"},V(),-1!=l&&1===r.city.length&&r.city.push(...m(u[l]));const i=r.allValue;i.province={key:l,label:null==a?void 0:a.label},i.address=r.addressValue,"no"!=s&&t.emit("scaleChange",i,e.item)},f=(l,a,s)=>{r.cityValue=l,V(),-1!=l&&1===r.area.length&&r.area.push(...m(u[l]));const i=r.allValue;i.city={key:l,label:null==a?void 0:a.label},i.address=r.addressValue,"no"!=s&&t.emit("scaleChange",i,e.item)},h=(l,a,s)=>{r.areaValue=l;r.allValue.area={key:l,label:null==a?void 0:a.label},"no"!=s&&t.emit("scaleChange",r.allValue,e.item)},k=(l,a)=>{r.addressValue=l;r.allValue.address=l,"no"!=a&&t.emit("scaleChange",r.allValue,e.item)};return(()=>{var l,a,s;r.province.push(...m(u[86]));const i=e.form[e.item.val_key];if(d.isEmpty(i))return;const t=(null==(l=i.province)?void 0:l.key)||-1,n=(null==(a=i.city)?void 0:a.key)||-1,o=(null==(s=i.area)?void 0:s.key)||-1;r.addressValue=i.address,r.allValue=JSON.parse(JSON.stringify(i)),b(t,i.province,"no"),f(n,i.city,"no"),h(o,i.area,"no")})(),()=>s("div",{class:"c-scale-address"},[s("div",{class:"field-row"},[c.value&&s(i("n-select"),{value:r.provinceValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.province,"onUpdate:value":b},null),p.value&&s(i("n-select"),{value:r.cityValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.city,"onUpdate:value":f},null),v.value&&s(i("n-select"),{value:r.areaValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.area,"onUpdate:value":h},null)]),y.value&&s(i("n-input"),{value:r.addressValue,clearable:!0,placeholder:"请输入",disabled:e.isLock,"onUpdate:value":k},null)])}});export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,ref as l,watch as a,createVNode as o}from"vue";import{NInput as u}from"naive-ui";var i=e({name:"RInput",components:{NInput:u},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,{emit:i}){var n,m,r,v,d
|
|
1
|
+
import{defineComponent as e,computed as t,ref as l,watch as a,createVNode as o}from"vue";import{NInput as u}from"naive-ui";var i=e({name:"RInput",components:{NInput:u},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,{emit:i}){var n,m,r,s,v,d;const p=null==(n=e.item)?void 0:n.valueType,c=(null==(m=e.item)?void 0:m.type)||"INPUT",f="INPUT"==c||"EVALUATE_INPUT"==c,y=(null==(s=null==(r=e.item)?void 0:r.setting)?void 0:s.inputRow)||1,b=null==(d=null==(v=e.item)?void 0:v.setting)?void 0:d.defaultPlaceHolder,g=t((()=>y&&"auto"!=y?{minRows:y||1,maxRows:y||1}:{minRows:1})),k=e=>{if(!f)return;const t=e.key;e.returnValue="e"!==t&&"E"!==t&&"+"!==t&&"-"!==t},w=l(e.form[e.item.val_key]);a((()=>e.form[e.item.val_key]),(e=>{w.value=e}),{immediate:!0});const I=t=>{w.value=f&&t&&"number"===p?t.replace(/[^\d.]/gi,""):t,i("scaleChange",w.value,e.item)};return()=>(()=>{const t=f?"textarea":p||"text";return o(u,{value:w.value,clearable:!0,type:t,autosize:g.value,placeholder:b,disabled:e.isLock,onKeydown:k,"onUpdate:value":I},null)})()}});export{i as default};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
form: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
|
-
default: () =>
|
|
4
|
+
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
item: {
|
|
7
7
|
type: ObjectConstructor;
|
|
8
|
-
default: () =>
|
|
8
|
+
default: () => {};
|
|
9
9
|
};
|
|
10
10
|
isLock: {
|
|
11
11
|
type: BooleanConstructor;
|
|
@@ -26,11 +26,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
form: {
|
|
28
28
|
type: ObjectConstructor;
|
|
29
|
-
default: () =>
|
|
29
|
+
default: () => {};
|
|
30
30
|
};
|
|
31
31
|
item: {
|
|
32
32
|
type: ObjectConstructor;
|
|
33
|
-
default: () =>
|
|
33
|
+
default: () => {};
|
|
34
34
|
};
|
|
35
35
|
isLock: {
|
|
36
36
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,computed as l,watch as i,createVNode as a,resolveComponent as o}from"vue";import{NSelect as n,NEmpty as u}from"naive-ui";import s from"../LoadingCom.vue.js";var r=e({name:"RSelect",components:{NSelect:n,NEmpty:u,LoadingCom:s},props:{form:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},isLock:{type:Boolean,default:!1},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},openType:{type:String,default:""}},emits:["scaleChange"],setup(e,n){const r=t({choiceValue:[],selectParams:{tableType:"TABLE_LIST",pageSize:20,page:1},cloneItem:{},columnName:"",showField:"",curOptions:[],fieldList:[],buttonList:[],fetching:!1});e.openType;const c=l((()=>{var t,l;return!!(null==(l=null==(t=e.item)?void 0:t.setting)?void 0:l.isMultiple)})),p=l((()=>{
|
|
1
|
+
import{defineComponent as e,reactive as t,computed as l,watch as i,createVNode as a,resolveComponent as o}from"vue";import{NSelect as n,NEmpty as u}from"naive-ui";import s from"../LoadingCom.vue.js";var r=e({name:"RSelect",components:{NSelect:n,NEmpty:u,LoadingCom:s},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},openType:{type:String,default:""}},emits:["scaleChange"],setup(e,n){const r=t({choiceValue:[],selectParams:{tableType:"TABLE_LIST",pageSize:20,page:1},cloneItem:{},columnName:"",showField:"",curOptions:[],fieldList:[],buttonList:[],fetching:!1});e.openType;const c=l((()=>{var t,l;return!!(null==(l=null==(t=e.item)?void 0:t.setting)?void 0:l.isMultiple)})),p=l((()=>{const{targetSource:t={},options:l=[],optionType:i}=e.item||{};return!(!t.target_id||!l.length&&3!=i)})),m=l((()=>{var t;const{target_id:l,values:i}=(null==(t=e.item)?void 0:t.targetSource)||{};return l&&i?p.value?i||"value":i:"value"})),v=l((()=>{var t;const{target_id:l,showField:i}=(null==(t=e.item)?void 0:t.targetSource)||{};return l&&i?p.value?i||"label":i:"label"})),d=async()=>{const{targetSource:t,type:l,options:i=[],optionType:a=1}=r.cloneItem;if(r.showField="label",null==t?void 0:t.target_id)if(p.value)r.curOptions=(e=>e&&e.length?e.map((e=>("cascadeData"in e&&Object.assign(e,{...e.cascadeData}),m.value in e||(e[m.value]=e.value||e.label),v.value in e||(e[v.value]=e.label),e))):[])(i);else try{r.fetching=!0,r.curOptions=await e.getSelectOptions(r.cloneItem),r.fetching=!1,r.columnName=null==t?void 0:t.values,r.showField=(null==t?void 0:t.showField)||(null==t?void 0:t.values)}catch(e){r.fetching=!1}},g=t=>{const l={value:"",list:[]};let i;return t&&Array.isArray(t)?(l.value=t,t.length?(t.forEach((e=>{i=f(e),i&&l.list.push(i)})),void n.emit("scaleChange",l,e.item,l)):(l.list=[],void n.emit("scaleChange",l,e.item,l))):(l.value=t,i=f(t),i&&l.list.push(i),void n.emit("scaleChange",l,e.item,l))},f=e=>r.curOptions.find((t=>t.value===e));return i((()=>e.item),(e=>{e&&Object.keys(e).length&&(e=>{var t;r.cloneItem=JSON.parse(JSON.stringify(e));let l=r.cloneItem.options||[];"EVALUATE_SELECT"===e.type&&(l=(null==(t=r.cloneItem.scoreConfigs)?void 0:t.scoreRules)||[]),r.curOptions=l,d()})(e)}),{immediate:!0}),()=>a(o("n-select"),{value:e.form[e.item.val_key],"onUpdate:value":[t=>e.form[e.item.val_key]=t,g],filterable:!0,clearable:!0,placeholder:"请选择","value-field":m.value,"label-field":v.value,multiple:c.value,disabled:e.isLock,loading:r.fetching,options:r.curOptions},{empty:()=>r.fetching?a(s,null,null):a(u,null,null)})}});export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{handleQueryParams as e,getQueryVariable as t,formatMap as a}from"../utils/judge-types.js";import i from"./use-noData.js";import"xe-utils";import n from"moment";import s from"../../../../shared/utils/vexutilsExpand.js";import{componentMap as
|
|
1
|
+
import{handleQueryParams as e,getQueryVariable as t,formatMap as a}from"../utils/judge-types.js";import i from"./use-noData.js";import"xe-utils";import n from"moment";import s from"../../../../shared/utils/vexutilsExpand.js";import{componentMap as l}from"./use-component.js";import{useEvent as r}from"./use-event.js";import{ScaleViewComputed as o}from"./scaleview-computed.js";import{ScaleViewValidate as u}from"./scaleview-validate.js";import{useDialog as v}from"naive-ui";const c=(c,f,d,p)=>{const m=n(),g=v(),{setNoData:S}=i(),{hasEvaluateResultSetting:E,hasparamsEvaluate:O,hasDefault:y,formKey:C,isImportScale:A}=o(c,f,p),{formatRules:h}=u(c,f,p),{nextLogicEvent:R}=r(c,f),T=e=>{const t=null==e?void 0:e.evaluateStartTime;t&&!s.isValidDate(new Date(t))&&s.isValidDate(new Date(Number(t)))&&(e.evaluateStartTime=Number(t))},L=()=>{var t;if(!E.value)return!!y.value&&("evaluateResultSetting"in f.config||(f.config.evaluateResultSetting={}),(t=>{let a=e();if(O.value&&(a=f.paramsEvaluate),a.evaname&&(t.evaluateName=a.evaname),a.evadesc&&(t.evaluateExplain=a.evadesc),a.evast&&(t.evaluateStartTime=a.evast),a.evadur&&(t.evaluateTime=a.evadur),a.evaan){const e="true"===a.evaan||1==a.evaan;t.evaluateAnswer=e}if(a.evasit&&(t.evaluetaResSituation=!!a.evasit),a.evaztip){const e=1==a.evaan;t.evaluateZeroTip=e}T(t)})(f.config.evaluateResultSetting),f.showEvaluatePage=!0,void(f.showEvaluateCountdownWrap=!0));const{evaluateResultSetting:a={}}=f.config;if(!a||!Object.keys(a).length)return;f.showEvaluateCountdownWrap=!0;const{evaluateStartTime:i}=a,{evaluateName:n}=(null==(t=f.originConfig)?void 0:t.evaluateResultSetting)||{};if(i)return!(!s.isValidDate(new Date(i))&&!n)&&void(f.showEvaluatePage=!0);f.showEvaluatePage=!0},N=(e,t)=>{const a=e.find((e=>t===e.value));return a?a.key:t},b=(e,t)=>{if(["RADIO_BLOCK","CHECKBOX_BLOCK"].includes(t)&&e&&(e&&s.isJSON(e)&&(e=JSON.parse(e)),e.length))return!0},D=t=>{var a,i;if(!t||!t.length)return;const n=e();if((null==c?void 0:c.noBtn)||(null==n?void 0:n.noBtn))return;const l=t.find((e=>"FRONT_ADDRESS"===e.type));if(!l||!Object.keys(l).length)return;let r;if(l.setting&&s.isJSON(l.setting)&&(r=JSON.parse(l.setting)),!r||!Object.keys(r).length)return;if(1==(null==n?void 0:n.redirect)||1==(null==(a=c.params)?void 0:a.redirect)||3==n.isEdit||3==(null==(i=c.params)?void 0:i.isEdit))return;const{frontAddress:o}=r;if(o){const e=window.location.href;let t="?";o.includes("?")&&(t="&");return`${o}${t}redirect_url=${encodeURIComponent(e)}`}},w=e=>{const t=["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"],a={};for(const i in e){const n=e[i];t.includes(i)&&n&&(a[i]=n)}return a},k=t=>{if(!t||!Object.keys(t).length)return;let a=e()||{};O.value&&(a=f.paramsEvaluate);const i={evaluateName:"evaname",evaluateExplain:"evadesc",evaluateStartTime:"evast",evaluateTime:"evadur",evaluateAnswer:"evaan",evaluetaResSituation:"evasit",evaluateZeroTip:"evaztip"},n=["evaluateAnswer","evaluetaResSituation","evaluateZeroTip"];for(const e in t){const s=t[e];if(s&&"evaluateAnswer"!=e&&"string"==typeof s&&s.includes("${")&&"string"==typeof s){const i=s.replace(/\$\{([^}]+)\}/g,((e,t)=>{let i;return t.startsWith("form.")&&(i=a[t.split(".")[1]]),i||""}));t[e]=i}else{let s=a[i[e]];n.includes(e)&&(s="true"===s||1==s),a[i[e]]&&(t[e]=s)}}if(y.value){const e={evaname:"evaluateName",evadesc:"evaluateExplain",evast:"evaluateStartTime",evadur:"evaluateTime",evaan:"evaluateAnswer",evasit:"evaluetaResSituation",evaztip:"evaluateZeroTip"},i=["evaan","evasit","evaztip"];["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"].forEach((n=>{const s=e[n];if(!t[s]){let e=a[n];i.includes(n)&&(e="true"===e||1==e),a[n]&&(t[s]=e)}}))}T(t)},J=e=>{let t=1;return e.map((a=>{const i=C(a);(i||"").replace(/\n/g,""),a.showTitle=a.title,a.val_key=i,a.renderCom=l[a.type],a.isShow=!0,Object.keys(a).forEach((e=>{s.isJSON(a[e])&&"LOCATION"!=a.type&&(a[e]=JSON.parse(a[e]))}));var n;return["LINEBAR","TITLE","PROMPT","IMGCARD","RICH_TEXT"].indexOf(a.type)<0&&!a.hide&&(a.softcode=t++),("SELECT"==(n=a.type)||"RADIO_BLOCK"==n||"CHECKBOX_BLOCK"==n||"SEARCH_CASCADE"==n||"EVALUATE_RADIO_BLOCK"==n||"EVALUATE_CHECKBOX_BLOCK"==n||"EVALUATE_SELECT"==n)&&(((e,t)=>{b(e,t)&&e.forEach(((e,t)=>{"other"!==e.key&&(e.key=t+1),(e.prefix||e.suffix)&&(e.value=e.prefix||e.suffix)}))})(a.options,a.type),"SEARCH_CASCADE"!=a.type&&(a.dbValue?R(a.dbValue,a,e):a.setting.defaultValue&&R(a.setting.defaultValue,a,e))),a})).map((t=>(((e,t)=>{const a=s.isString(t.relationLogic)?JSON.parse(t.relationLogic):t.relationLogic,{condition:i}=a||{};i&&i.length&&(i.forEach((t=>{const a=e.find((e=>e.seq==t.subject_seq));if(!a)return;if(!b(a.options,a.type))return;let i=t.value;Array.isArray(i)?(i=i.map((e=>N(a.options,e))),t.value=i):t.value=N(a.options,i)})),t.relationLogic=a)})(e,t),(e=>{const{nextLogic:t,options:a,type:i}=e||{};if(!t||!b(a,i))return;const{condition:n}=t||{};n&&n.length&&n.forEach((e=>{let t=e.value;Array.isArray(t)?(t=t.map((e=>N(a,e))),e.value=t):e.value=N(a,t)}))})(t),"CHECKBOX_BLOCK"===t.type&&t.dbValue&&!Array.isArray(t.dbValue)&&"customList"===c.type&&(t.dbValue=t.dbValue.split(",").filter((e=>!!e))),t)))},_=e=>{const i={};let l;return e.forEach((e=>{var r;const o=e.val_key,{type:u}=e;let v;switch(v=e.dbValue?e.dbValue:((e,i)=>{var s,l,r,o;if(A.value)return;let u;const{defValType:v,dateType:d}=e.setting||{};if(3==v){const a=null==(l=null==(s=e.setting)?void 0:s.outDefaultValue)?void 0:l.urlKey;if(a){const i=a.split(",");if(i.length>1){const e=i.map((e=>{const a=t(e,f,c.params);return a?decodeURIComponent(a):null})).filter(Boolean);e.length&&(u=e)}else{let a=t(i[0],f,c.params);a&&(a=decodeURIComponent(a),u="CHECKBOX_BLOCK"==e.type?a.split():a)}}}if("DATETIME"===i&&4==v){const t=(null==(r=a[d])?void 0:r.replace("-dd","-DD"))||"yyyy-MM-DD HH:mm:ss",i=m.format(t);u=1==(null==(o=e.setting)?void 0:o.startToStop)?[i,n().endOf("day").format(t)]:i}return u})(e,u),u){case"LOCATION":i[o]=v||"";break;case"SEARCH_CASCADE":case"UPFILE":case"UPPICTURE":i[o]=v||[];break;case"ADDRESS":i[o]=v||"",f.defaultAddress=v||{};break;case"LABEL":{i[o]=v||{};let e=[];s.isObject(v)?e=(null==v?void 0:v.labels)||[]:Array.isArray(v)&&(e=v),f.labelSelectedList=e,f.labelSelectedListObj[o]=e;break}case"TITLE":i[o]=e.title;break;case"IMGCARD":i[o]=(null==(r=e.setting)?void 0:r.imgUrl)||"";break;case"CHECKBOX_BLOCK":v&&!Array.isArray(v)&&"customList"===c.type?i[o]=v.split(",").filter((e=>!!e)):(l=v||e.setting.defaultValue,s.isJSON(l)&&(l=JSON.parse(l)),i[o]=l);break;default:l=v||e.setting.defaultValue,s.isJSON(l)&&(l=JSON.parse(l)),u.includes("SELECT")&&!l&&(l=null),i[o]=l}})),i};return{initForm:e=>{var t;let{list:a=[],map:i={},isFinished:n=!1}=e;const l=D(a);if(l)return void(window.location.href=l);if(i.maxScore&&(f.maxScore=i.maxScore),f.isFinished=n,e.isNotFilled)return f.spinning=!1,f.hasFrontAddress=!1,void S(!0,"未查询到量表填写记录");if(e.isLackCustomer&&g.info({title:"已设置填写次数限制",content:"请在包含用户信息的环境中打开此量表",maskClosable:!1,onPositiveClick(){d("onCloseSetting")}}),f.config=i,"evaluateResultConfig"in i&&s.isJSON(i.evaluateResultConfig)&&(f.config.evaluateResultConfig=JSON.parse(i.evaluateResultConfig)),"evaluateResultSetting"in i&&s.isJSON(i.evaluateResultSetting)&&(f.config.evaluateResultSetting=JSON.parse(i.evaluateResultSetting),(null==(t=f.config)?void 0:t.randomId)&&f.config.evaluateResultSetting&&(f.config.evaluateResultSetting.evaluateName=f.config.name,f.config.evaluateResultSetting.evaluateExplain=f.config.remark)),"otherSetting"in i&&s.isJSON(i.otherSetting)&&(f.config.otherSetting=JSON.parse(i.otherSetting)),f.originConfig=JSON.parse(JSON.stringify(f.config)),c.params&&Object.keys(c.params).length){const e=w(c.params);e&&Object.keys(e).length&&(f.paramsEvaluate=e)}k(f.config.evaluateResultSetting),L(),f.defaultFormArray=JSON.parse(JSON.stringify(a));const r=f.filterArr;a=a.filter((e=>!r.includes(e.type))),f.formArray=J(a||[]),f.form=_(f.formArray),f.rules=h(f.formArray),f.fontSize=e.fontSize,f.spinning=!1,f.hasFrontAddress=!1}}};export{c as ScaleViewInit};
|
|
@@ -148,11 +148,11 @@ export declare const componentMap: {
|
|
|
148
148
|
SELECT: import("vue").ShallowRef<import("vue").DefineComponent<{
|
|
149
149
|
form: {
|
|
150
150
|
type: ObjectConstructor;
|
|
151
|
-
default: () =>
|
|
151
|
+
default: () => {};
|
|
152
152
|
};
|
|
153
153
|
item: {
|
|
154
154
|
type: ObjectConstructor;
|
|
155
|
-
default: () =>
|
|
155
|
+
default: () => {};
|
|
156
156
|
};
|
|
157
157
|
isLock: {
|
|
158
158
|
type: BooleanConstructor;
|
|
@@ -173,11 +173,11 @@ export declare const componentMap: {
|
|
|
173
173
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
174
174
|
form: {
|
|
175
175
|
type: ObjectConstructor;
|
|
176
|
-
default: () =>
|
|
176
|
+
default: () => {};
|
|
177
177
|
};
|
|
178
178
|
item: {
|
|
179
179
|
type: ObjectConstructor;
|
|
180
|
-
default: () =>
|
|
180
|
+
default: () => {};
|
|
181
181
|
};
|
|
182
182
|
isLock: {
|
|
183
183
|
type: BooleanConstructor;
|
|
@@ -1913,11 +1913,11 @@ export declare const componentMap: {
|
|
|
1913
1913
|
EVALUATE_SELECT: import("vue").ShallowRef<import("vue").DefineComponent<{
|
|
1914
1914
|
form: {
|
|
1915
1915
|
type: ObjectConstructor;
|
|
1916
|
-
default: () =>
|
|
1916
|
+
default: () => {};
|
|
1917
1917
|
};
|
|
1918
1918
|
item: {
|
|
1919
1919
|
type: ObjectConstructor;
|
|
1920
|
-
default: () =>
|
|
1920
|
+
default: () => {};
|
|
1921
1921
|
};
|
|
1922
1922
|
isLock: {
|
|
1923
1923
|
type: BooleanConstructor;
|
|
@@ -1938,11 +1938,11 @@ export declare const componentMap: {
|
|
|
1938
1938
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1939
1939
|
form: {
|
|
1940
1940
|
type: ObjectConstructor;
|
|
1941
|
-
default: () =>
|
|
1941
|
+
default: () => {};
|
|
1942
1942
|
};
|
|
1943
1943
|
item: {
|
|
1944
1944
|
type: ObjectConstructor;
|
|
1945
|
-
default: () =>
|
|
1945
|
+
default: () => {};
|
|
1946
1946
|
};
|
|
1947
1947
|
isLock: {
|
|
1948
1948
|
type: BooleanConstructor;
|
|
@@ -2205,6 +2205,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2205
2205
|
anchorIdList: import("vue").Ref<{
|
|
2206
2206
|
name: string;
|
|
2207
2207
|
title: string;
|
|
2208
|
+
index: number;
|
|
2208
2209
|
}[]>;
|
|
2209
2210
|
onScroll: (scrollEvent: Event) => void;
|
|
2210
2211
|
callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
@@ -2208,6 +2208,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2208
2208
|
anchorIdList: import("vue").Ref<{
|
|
2209
2209
|
name: string;
|
|
2210
2210
|
title: string;
|
|
2211
|
+
index: number;
|
|
2211
2212
|
}[]>;
|
|
2212
2213
|
onScroll: (scrollEvent: Event) => void;
|
|
2213
2214
|
callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",s="3.2.5-release.
|
|
1
|
+
var e="@cnhis-design-vue/shared",s="3.2.5-release.2",i="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.2.5-release.2",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{isObject as o}from"@vue/shared";import{useMemoize as i}from"@vueuse/core";import{isString as u,isNumber as c,isArray as s,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isConditionsMatchSqlExpression,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression,isMatchNewLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u,c=0){r=h(r),e=h(e);for(let s=0;s<e.length;s++){if(n(e[s],i,u,c),o)return;for(let i=0;i<r.length;i++){const u=e[s][r[i]];if(Array.isArray(u)&&t(u,n,r,e[s],c+1),o)return}}}(t,e,n,r,0)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:i={}}=t._context;i[n]||(!Reflect.get(t,"__cnhis_version")&&o(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!u(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function h(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const x={a:7.7,b:8.6,c:7.7,d:8.6,e:7.7,f:5,g:8.6,h:8.2,i:3.3,j:3.3,k:7.6,l:3.5,m:12.1,n:8.2,o:8.2,p:8.6,q:8.6,r:5.4,s:7.1,t:5,u:8.2,v:7.6,w:10.9,x:7.3,y:7.6,z:7.6,A:9.43,B:9.33,C:9.93,D:10,E:8.27,F:8.1,G:10.4,H:10.4,I:3.7,J:7.5,K:9.2,L:7.9,M:12.4,N:10.4,O:10.8,P:8.9,Q:10.8,R:9.1,S:8.8,T:8.9,U:10.4,V:9.4,W:13.5,X:9.4,Y:9.1,Z:9.1,".":4.03,",":4.03,"(":5.17,")":5.17,"-":7.51,"+":7.51,"/":4.11,"\\":4.11,"%":12.68,"‰":17.75},g=/\d/,v=/[\u4e00-\u9fa5():,。]/;function y(t){return x[t]?x[t]:g.test(t)?8.9:v.test(t)?13.95:void 0}const w=i((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n," "===n?" "===r?t:t+4:t+(y(n)||6)}),0)})),E=Object.seal(Object.create(null));function O(t,e){return function t(e,n){return o(e)?s(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,i])=>(n.includes(r)||(o(i)&&!f(i)?e[r]=t(i,n):e[r]=i),e)),{}):e}(t,e)}function b(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function j(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function C(t,e="px"){if(c(t))return`${t}${e}`;if(!t)return"";if(u(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function S(t,e){return t.some((t=>e.includes(t)))}const M=i((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function $(t,e){if(!o(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function _(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function I(t,e=1){const[n,r,o,i,u]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const s=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(c(s)?s.toFixed(2):e)]}function A(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([t,e])=>{u.includes(t)||(u.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const H=i((function(t,e){return!(!u(e)||!u(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});function L(t){try{return t instanceof HTMLElement}catch(e){return o(t)&&1===t.nodeType&&o(t.style)&&o(t.ownerDocument)}}function R(t){let e=0;return function t(n,r=0){n.forEach((n=>{n.children?t(n.children,r+1):e=Math.max(e,r)}))}(t),e}export{E as DMZ,h as arrayed,_ as checkInSetupEnv,A as createProviderWrapper,O as deepOmit,j as findAncestor,p as generateTimeFormat,R as getArrDepth,y as getCharWidth,w as getStringWidth,I as hex2rgba,L as isHTMLElement,M as jsonParse,H as keywordMatcher,d as safeComponentRegister,b as separateMetaModule,$ as shallowOmit,S as targetStringIncludes,l as traverse,m as uuidGenerator,C as widthAppend};
|
|
1
|
+
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{isObject as o}from"@vue/shared";import{useMemoize as i}from"@vueuse/core";import{isString as u,isNumber as c,isArray as s,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isConditionsMatchSqlExpression,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression,isMatchNewLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u,c=0){r=h(r),e=h(e);for(let s=0;s<e.length;s++){if(n(e[s],i,u,c),o)return;for(let i=0;i<r.length;i++){const u=e[s][r[i]];if(Array.isArray(u)&&t(u,n,r,e[s],c+1),o)return}}}(t,e,n,r,0)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:i={}}=t._context;i[n]||(!Reflect.get(t,"__cnhis_version")&&o(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!u(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function h(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const x={a:7.7,b:8.6,c:7.7,d:8.6,e:7.7,f:5,g:8.6,h:8.2,i:3.3,j:3.3,k:7.6,l:3.5,m:12.1,n:8.2,o:8.2,p:8.6,q:8.6,r:5.4,s:7.1,t:5,u:8.2,v:7.6,w:10.9,x:7.3,y:7.6,z:7.6,A:9.43,B:9.33,C:9.93,D:10,E:8.27,F:8.1,G:10.4,H:10.4,I:3.7,J:7.5,K:9.2,L:7.9,M:12.4,N:10.4,O:10.8,P:8.9,Q:10.8,R:9.1,S:8.8,T:8.9,U:10.4,V:9.4,W:13.5,X:9.4,Y:9.1,Z:9.1,".":4.03,",":4.03,"(":5.17,")":5.17,"-":7.51,"+":7.51,"/":4.11,"\\":4.11,"%":12.68,"‰":17.75,";":13.95,"、":13.95,",":13.95,"。":13.95},g=/\d/,v=/[\u4e00-\u9fa5():,。]/;function y(t){return x[t]?x[t]:g.test(t)?8.9:v.test(t)?13.95:void 0}const w=i((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n," "===n?" "===r?t:t+4:t+(y(n)||6)}),0)})),E=Object.seal(Object.create(null));function O(t,e){return function t(e,n){return o(e)?s(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,i])=>(n.includes(r)||(o(i)&&!f(i)?e[r]=t(i,n):e[r]=i),e)),{}):e}(t,e)}function b(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function j(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function C(t,e="px"){if(c(t))return`${t}${e}`;if(!t)return"";if(u(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function S(t,e){return t.some((t=>e.includes(t)))}const M=i((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function $(t,e){if(!o(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function _(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function I(t,e=1){const[n,r,o,i,u]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const s=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(c(s)?s.toFixed(2):e)]}function A(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([t,e])=>{u.includes(t)||(u.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const H=i((function(t,e){return!(!u(e)||!u(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});function L(t){try{return t instanceof HTMLElement}catch(e){return o(t)&&1===t.nodeType&&o(t.style)&&o(t.ownerDocument)}}function R(t){let e=0;return function t(n,r=0){n.forEach((n=>{n.children?t(n.children,r+1):e=Math.max(e,r)}))}(t),e}export{E as DMZ,h as arrayed,_ as checkInSetupEnv,A as createProviderWrapper,O as deepOmit,j as findAncestor,p as generateTimeFormat,R as getArrDepth,y as getCharWidth,w as getStringWidth,I as hex2rgba,L as isHTMLElement,M as jsonParse,H as keywordMatcher,d as safeComponentRegister,b as separateMetaModule,$ as shallowOmit,S as targetStringIncludes,l as traverse,m as uuidGenerator,C as widthAppend};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.2.5-release.
|
|
3
|
+
"version": "3.2.5-release.2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"iOS 7",
|
|
72
72
|
"last 3 iOS versions"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "3d03d301e1ee111bd436d14c99c5d2924ad826f4"
|
|
75
75
|
}
|