cnhis-design-vue 3.1.43-beta.15 → 3.1.43-beta.16
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as t}from"./enums.js";import{NInputNumber as l,NInput as a}from"naive-ui";import r from"./components/CheckboxGroup.vue.js";import o from"./components/InputNumberGroup.vue.js";import n from"./components/Date.vue.js";import p from"./components/DateRange.vue.js";import s from"./components/Select.vue.js";import{presetValToTimestamp as m}from"./helpers/presetValToTimestamp.js";const i=e=>null==e?null:e,u=new Map([[e.INPUT_NUMBER,{component:l,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,placeholder:`输入${t}`}),setDefaultValue:i}],[e.INPUTNUMBER_RANGE,{component:o,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,startPlaceholder
|
|
1
|
+
import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as t}from"./enums.js";import{NInputNumber as l,NInput as a}from"naive-ui";import r from"./components/CheckboxGroup.vue.js";import o from"./components/InputNumberGroup.vue.js";import n from"./components/Date.vue.js";import p from"./components/DateRange.vue.js";import s from"./components/Select.vue.js";import{presetValToTimestamp as m}from"./helpers/presetValToTimestamp.js";const i=e=>null==e?null:e,u=new Map([[e.INPUT_NUMBER,{component:l,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,placeholder:`输入${t}`}),setDefaultValue:i}],[e.INPUTNUMBER_RANGE,{component:o,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t,filterExplicit:l}={})=>({...e,startPlaceholder:1===l?`起始${t}`:"最小值",endPlaceholder:1===l?`截止${t}`:"最大值"}),setDefaultValue:i}],[e.INPUT,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,placeholder:`搜索${t}`}),setDefaultValue:i}],[e.SELECT,{component:s,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,t,l){const{multiple:a}=l;a&&t()}}],handlerProps(e,t={}){const{valueList:l,multiple:a,title:r,manualMapping:o,dynamicOptionInfo:n,defaultValue:p,defValueUnit:s,_frontId:m,isInit:i}=t,u={...e,placeholder:`请选择${r}`,manualMapping:o,dynamicOptionInfo:n,valueList:l,defValue:p,defValueUnit:s,_frontId:m,isInit:i};return a&&(u.multiple=!0),u},setDefaultValue:i}],[e.DATE,{component:n,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l,rangeFilter:a}=t,r={...e,placeholder:`请选择${l}`};return a&&(r.type="daterange",r.startPlaceholder=`起始${l}`,r.endPlaceholder=`截止${l}`),r},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?m(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATE_RANGE,{component:p,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l,filterExplicit:a}=t;return{...e,filterExplicit:a,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:i}],[e.DATE_TIME,{component:n,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l,rangeFilter:a}=t,r={...e,placeholder:`请选择${l}`};return a&&(r.type="datetimerange",r.startPlaceholder=`起始${l}`,r.endPlaceholder=`截止${l}`),r},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?m(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE,{component:p,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l,filterExplicit:a}=t;return{...e,filterExplicit:a,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:i}],[e.CHECKBOX_GROUP,{component:r,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:t,multiple:l}={}){const a={...e,multiple:l};return Array.isArray(t)&&(a.options=t.map((({value:e,label:t})=>({value:e,label:t})))),a},setDefaultValue:i}]]);export{u as WidgetCfgMaps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.43-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.43-beta.16",s="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.1.43-beta.16",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.43-beta.
|
|
3
|
+
"version": "3.1.43-beta.16",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "570e806a2f209e346785c6a4069d04dc6e475e8a"
|
|
65
65
|
}
|