cnhis-design-vue 3.2.9-beta.1 → 3.2.9-beta.3
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/base-search/index.d.ts +6 -2
- package/es/components/base-search/src/index.vue.d.ts +6 -2
- package/es/components/classification/index.d.ts +3 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +2 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +2 -0
- package/es/components/classification/src/index.vue.d.ts +3 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
- package/es/components/quick-search/index.d.ts +6 -2
- package/es/components/quick-search/src/index.vue.d.ts +6 -2
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue.d.ts +51 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +49 -1
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +65 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -44,6 +44,9 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
44
44
|
widgetType: string | null;
|
45
45
|
originType: string | null;
|
46
46
|
valueList: {
|
47
|
+
name: string;
|
48
|
+
value: any;
|
49
|
+
}[] | {
|
47
50
|
value: any;
|
48
51
|
label: any;
|
49
52
|
}[] | undefined;
|
@@ -58,6 +61,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
58
61
|
linkageFieldKeys: string[];
|
59
62
|
};
|
60
63
|
rangeFilter: boolean | undefined;
|
64
|
+
componentProps: any;
|
61
65
|
unit: any;
|
62
66
|
isAccurateSearchVal: boolean;
|
63
67
|
_extendData: import("..").IExtendConfigurationType;
|
@@ -71,7 +75,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
71
75
|
advanceColWidth: number | null | undefined;
|
72
76
|
accurateSearch: any;
|
73
77
|
}[];
|
74
|
-
transformParams: (paramsList: any[]) =>
|
78
|
+
transformParams: (paramsList: any[]) => any;
|
75
79
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
76
80
|
showSettings: {
|
77
81
|
type: import("vue").PropType<import("..").IsettingsType>;
|
@@ -160,7 +164,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
160
164
|
onFilterSearch: (obj: import("..").ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
|
161
165
|
handleReset: () => void;
|
162
166
|
resetFunc: (arr: import("..").ISearchType[]) => void;
|
163
|
-
getFilterParams: () =>
|
167
|
+
getFilterParams: () => any;
|
164
168
|
setFilterParams: (params?: any) => void;
|
165
169
|
getOriginalConfig: () => import("..").IApiServerType[];
|
166
170
|
onFilterChange: (fn: any) => void;
|
@@ -45,6 +45,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
widgetType: string | null;
|
46
46
|
originType: string | null;
|
47
47
|
valueList: {
|
48
|
+
name: string;
|
49
|
+
value: any;
|
50
|
+
}[] | {
|
48
51
|
value: any;
|
49
52
|
label: any;
|
50
53
|
}[] | undefined;
|
@@ -59,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
59
62
|
linkageFieldKeys: string[];
|
60
63
|
};
|
61
64
|
rangeFilter: boolean | undefined;
|
65
|
+
componentProps: any;
|
62
66
|
unit: any;
|
63
67
|
isAccurateSearchVal: boolean;
|
64
68
|
_extendData: import("../../../components/table-filter/src/types").IExtendConfigurationType;
|
@@ -72,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
72
76
|
advanceColWidth: number | null | undefined;
|
73
77
|
accurateSearch: any;
|
74
78
|
}[];
|
75
|
-
transformParams: (paramsList: any[]) =>
|
79
|
+
transformParams: (paramsList: any[]) => any;
|
76
80
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
77
81
|
showSettings: {
|
78
82
|
type: PropType<IsettingsType>;
|
@@ -161,7 +165,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
161
165
|
onFilterSearch: (obj: ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
|
162
166
|
handleReset: () => void;
|
163
167
|
resetFunc: (arr: ISearchType[]) => void;
|
164
|
-
getFilterParams: () =>
|
168
|
+
getFilterParams: () => any;
|
165
169
|
setFilterParams: (params?: any) => void;
|
166
170
|
getOriginalConfig: () => IApiServerType[];
|
167
171
|
onFilterChange: (fn: any) => void;
|
@@ -57,7 +57,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
57
57
|
};
|
58
58
|
}, {
|
59
59
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
60
|
-
transformClassifyChild: (conObjList: any, searchFieldList: any[]) =>
|
60
|
+
transformClassifyChild: (conObjList: any, searchFieldList: any[]) => any;
|
61
61
|
attrs: any;
|
62
62
|
$message: import("naive-ui").MessageApi;
|
63
63
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -1680,6 +1680,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1680
1680
|
LABEL: string;
|
1681
1681
|
SELECTLABEL: string;
|
1682
1682
|
SELECTDYNAMIC: string;
|
1683
|
+
SELECTTREE: string;
|
1683
1684
|
};
|
1684
1685
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1685
1686
|
paramCfg: {
|
@@ -2179,6 +2180,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
2179
2180
|
LABEL: string;
|
2180
2181
|
SELECTLABEL: string;
|
2181
2182
|
SELECTDYNAMIC: string;
|
2183
|
+
SELECTTREE: string;
|
2182
2184
|
};
|
2183
2185
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
2184
2186
|
paramCfg: {
|
@@ -1144,6 +1144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1144
1144
|
LABEL: string;
|
1145
1145
|
SELECTLABEL: string;
|
1146
1146
|
SELECTDYNAMIC: string;
|
1147
|
+
SELECTTREE: string;
|
1147
1148
|
};
|
1148
1149
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1149
1150
|
paramCfg: {
|
@@ -1643,6 +1644,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1643
1644
|
LABEL: string;
|
1644
1645
|
SELECTLABEL: string;
|
1645
1646
|
SELECTDYNAMIC: string;
|
1647
|
+
SELECTTREE: string;
|
1646
1648
|
};
|
1647
1649
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1648
1650
|
paramCfg: {
|
@@ -1438,6 +1438,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1438
1438
|
LABEL: string;
|
1439
1439
|
SELECTLABEL: string;
|
1440
1440
|
SELECTDYNAMIC: string;
|
1441
|
+
SELECTTREE: string;
|
1441
1442
|
};
|
1442
1443
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1443
1444
|
paramCfg: {
|
@@ -1937,6 +1938,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1937
1938
|
LABEL: string;
|
1938
1939
|
SELECTLABEL: string;
|
1939
1940
|
SELECTDYNAMIC: string;
|
1941
|
+
SELECTTREE: string;
|
1940
1942
|
};
|
1941
1943
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1942
1944
|
paramCfg: {
|
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
59
59
|
};
|
60
60
|
}, {
|
61
61
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
62
|
-
transformClassifyChild: (conObjList: any, searchFieldList: any[]) =>
|
62
|
+
transformClassifyChild: (conObjList: any, searchFieldList: any[]) => any;
|
63
63
|
attrs: any;
|
64
64
|
$message: import("naive-ui").MessageApi;
|
65
65
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -1682,6 +1682,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1682
1682
|
LABEL: string;
|
1683
1683
|
SELECTLABEL: string;
|
1684
1684
|
SELECTDYNAMIC: string;
|
1685
|
+
SELECTTREE: string;
|
1685
1686
|
};
|
1686
1687
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1687
1688
|
paramCfg: {
|
@@ -2181,6 +2182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2181
2182
|
LABEL: string;
|
2182
2183
|
SELECTLABEL: string;
|
2183
2184
|
SELECTDYNAMIC: string;
|
2185
|
+
SELECTTREE: string;
|
2184
2186
|
};
|
2185
2187
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
2186
2188
|
paramCfg: {
|
@@ -552,7 +552,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
552
552
|
formRef: import("vue").Ref<any>;
|
553
553
|
conditionRef: import("vue").Ref<any>;
|
554
554
|
filterVisible: import("vue").Ref<boolean>;
|
555
|
-
title: import("vue").ComputedRef<"
|
555
|
+
title: import("vue").ComputedRef<"新增" | "修改" | "过滤条件">;
|
556
556
|
model: {
|
557
557
|
name: string;
|
558
558
|
color: string;
|
@@ -808,8 +808,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
808
808
|
footerFlag: boolean;
|
809
809
|
fieldDescribeMode: "column" | "tooltip";
|
810
810
|
hideExpressionOption: AnyObject[];
|
811
|
-
showSearch: boolean;
|
812
811
|
customColumns: FieldSetColumnItem[];
|
812
|
+
showSearch: boolean;
|
813
813
|
showSortPriority: boolean;
|
814
814
|
showHeadFilter: boolean;
|
815
815
|
showHideExpression: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as l,ref as t,computed as i,reactive as o,toRef as d,watch as a,openBlock as r,createElementBlock as s,createBlock as n,unref as u,withKeys as c,withModifiers as f,createCommentVNode as p,createElementVNode as h,Fragment as m,renderList as y,normalizeStyle as v,withCtx as b,createTextVNode as x,toDisplayString as g,createVNode as k,normalizeClass as w,mergeProps as S,renderSlot as A}from"vue";import{NInput as _,NCheckbox as
|
1
|
+
import{defineComponent as e,useAttrs as l,ref as t,computed as i,reactive as o,toRef as d,watch as a,openBlock as r,createElementBlock as s,createBlock as n,unref as u,withKeys as c,withModifiers as f,createCommentVNode as p,createElementVNode as h,Fragment as m,renderList as y,normalizeStyle as v,withCtx as b,createTextVNode as x,toDisplayString as g,createVNode as k,normalizeClass as w,mergeProps as S,renderSlot as A}from"vue";import{NInput as _,NCheckbox as W,NTooltip as E,NIcon as C,NPopconfirm as D,NButton as F}from"naive-ui";import M from"../../../shared/components/VueDraggable/src/vuedraggable.js";import H from"./components/table-row.vue.js";import{isArray as P,cloneDeep as B,isString as N,omit as j}from"lodash-es";import{isDisable as O,setStyle as V,isDraggableItem as R,isDraggable as q,getGroupTree as I}from"./utils/index.js";import{uuidGenerator as U}from"../../../shared/utils/index.js";import{HelpCircleSharp as T}from"@vicons/ionicons5";const K={class:"main-wrapper"},G={class:"main-wrapper__table-header"},L=h("span",null,"数值越小,优先级越高",-1),$=["tabindex"],z={key:1,class:"main-wrapper__table-footer"};var J=e({__name:"FieldSet",props:{fields:{type:Array,default:()=>[]},footerFlag:{type:Boolean,default:!0},type:{type:String,default:"old"},isEdit:{type:Boolean,default:!1},showColumnNames:{type:Array},groupSetting:{type:Object},customColumns:{type:Array,default:()=>[]},showSeq:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!1},showSortPriority:{type:Boolean,default:!1},showHeadFilter:{type:Boolean,default:!1},fieldShowMaxValue:{type:Number},rowDraggable:{type:Boolean,default:!0},fieldDescribeMode:{type:String,default:"tooltip"},developMode:{type:Boolean},columnWidthProps:{type:Object},showHideExpression:{type:Boolean},hideExpressionOption:{type:Array,default:()=>[]}},emits:["save","close","reset"],setup(e,{expose:J,emit:Q}){const X=e,Y={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"};l();const Z=t(Date.now()),ee=t(""),le=t(),te=t([]),ie=[{title:"所有字段",type:"text",field:"title"},{title:"显示",type:"checkbox",checkedAll:!1,disabledAll:!!X.fieldShowMaxValue,field:"show",fieldShowMaxValue:X.fieldShowMaxValue},{title:"编辑",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"editable"},{title:"必填",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"required"},{title:"排序",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"sort"},{title:"加粗",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"bold"},{title:"默认排序",type:"select",field:"sortDirection"},{title:"排序优先级",type:"select",field:"sortPriority"},{title:"固定",type:"select",field:"fixedWay"},{title:"自定义标题",type:"input",field:"alias"},{title:"列宽",type:"inputNumber",field:"columnWidth"},{title:"表头筛选",type:"checkbox",isHeadCheckHide:!0,field:"isShowHeaderFilter"},{title:"脱敏配置",type:"select",field:"hideExpression"}],oe=t([]),de=i((()=>te.value.flat())),ae=i((()=>de.value.some((e=>e.feildDescribe)))),re=o({columns:oe,data:de,onUpdateChecked:function({checked:e,column:l}){const t=!e||ye(l.field);l.checkedAll=!t},draggable:X.rowDraggable,isFieldSet:!0,fieldDescribeMode:X.fieldDescribeMode,developMode:X.developMode,columnWidthProps:X.columnWidthProps,hideExpressionOption:d(X,"hideExpressionOption")}),se={keyword:ee.value,idx:0,startIdx:0},ne=()=>{Q("save")},ue=()=>{Q("close")};function ce(){te.value=fe(),me(),Z.value=Date.now(),Q("reset")}function fe(){const e=B(X.fields).map((e=>({...e,uuid:U()})));return Object.keys(Y).forEach((l=>{e.forEach((e=>{"old"==X.type&&Reflect.has(e,l)&&("isFixed"==l?e.fixedWay=1==e[l]?"LEFT":2==e[l]?"RIGHT":"NONE":["isShow","isSort"].includes(l)&&"boolean"!=typeof l?e[Y[l]]=1==e[l]:e[Y[l]]=e[l],Reflect.deleteProperty(e,l)),e.columnWidth=+e.columnWidth||null,Reflect.has(e,"alias")||(e.alias=""),Reflect.has(e,"bold")||(e.bold=!1),e.draggable=!!q(e)}))})),function(e){if(X.groupSetting){return I(X.groupSetting,e).reduce(((t,i)=>{const o=N(i)?e.find((e=>e.name===i)):l(i.children);return o&&t.push(o),t}),[])}return e;function l(t){const i=[];return t.forEach((t=>{if(t.children)i.push(...l(t.children));else{const l=e.find((e=>e.name===t));l&&i.push(l)}})),i}}(e)}function pe(){const e=se.keyword!==ee.value;let l=ee.value?de.value.findIndex(((l,t)=>{var i;if(null==(i=l.title)?void 0:i.includes(ee.value))return!!e||t>se.idx})):0;-1!==l||e||(l=se.startIdx),le.value.scrollTop=52*l,Object.assign(se,{keyword:ee.value,idx:l},e?{startIdx:l}:{})}function he(e){var l;return!!ee.value&&(null==(l=e.title)?void 0:l.includes(ee.value))}function me(){var e,l;oe.value=B(ie),(null==(e=X.showColumnNames)?void 0:e.length)&&(oe.value=ie.filter((e=>{var l,t;return"title"===e.field||(null==(t=null==(l=X.showColumnNames)?void 0:l.includes)?void 0:t.call(l,e.field))}))),(null==(l=X.customColumns)?void 0:l.length)&&oe.value.push(...X.customColumns),"column"===X.fieldDescribeMode&&ae.value&&oe.value.push({title:"字段描述",type:"text",field:"feildDescribe"}),X.showSeq&&oe.value.splice(1,0,{title:"排序",type:"text",field:"seq"}),oe.value.forEach((e=>{if(e.isShow=function(e){return!(["editable","required"].includes(e.field)&&!X.isEdit||"sortPriority"===e.field&&!X.showSortPriority||"isShowHeaderFilter"===e.field&&!X.showHeadFilter||"hideExpression"===e.field&&!X.showHideExpression)}(e),"checkbox"===e.type){const l=te.value.flat().every((l=>!Reflect.has(l,e.field)));e.checkedAll=!ye(e.field)&&!l}}))}function ye(e){return te.value.flat().some((l=>!O(l,e)&&!l[e]&&"0001"!=l.id))}function ve(e){return!!R(e.relatedContext.element)}return a([()=>X.fields,()=>{var e;return null==(e=X.showColumnNames)?void 0:e.length}],(([e,l])=>{e.length>0&&(te.value=fe(),me())}),{immediate:!0,deep:!0}),J({getTableFields:function(){let e=[];return e="old"==X.type?de.value.map(((e,l)=>j({...e,field:e.name,visible:e.show,sequence:l,sortable:e.sort,title:e.alias,fixed:e.fixedWay,minWidth:e.columnWidth},["name","show","sort","alias","fixedWay","columnWidth"]))):de.value,e.map((e=>j(e,["uuid"])))}}),(l,t)=>(r(),s("div",K,[e.showSearch?(r(),n(u(_),{key:0,class:"main-wrapper__search-wrapper",value:ee.value,"onUpdate:value":t[0]||(t[0]=e=>ee.value=e),valueModifiers:{trim:!0},placeholder:"请输入字段标题",onKeydown:c(f(pe,["prevent"]),["enter"])},null,8,["value","onKeydown"])):p("v-if",!0),h("div",G,[(r(!0),s(m,null,y(oe.value,((l,t)=>(r(),s(m,{key:t},[l.isShow?(r(),s("span",{key:0,class:"table-cell",style:v(u(V)(l,t,e.columnWidthProps))},["checkbox"!==l.type||l.isHeadCheckHide?(r(),s(m,{key:1},[x(g(l.title),1)],64)):(r(),n(u(W),{key:0,checked:l.checkedAll,"onUpdate:checked":[e=>l.checkedAll=e,e=>{return t=e,i=l.field,void de.value.forEach((e=>{O(e,i)||(e[i]=t)}));var t,i}],disabled:l.disabledAll},{default:b((()=>[x(g(l.title),1)])),_:2},1032,["checked","onUpdate:checked","disabled"])),"sortPriority"===l.field?(r(),n(u(E),{key:2,trigger:"hover"},{trigger:b((()=>[k(u(C),{component:u(T),style:{top:"2px"}},null,8,["component"])])),default:b((()=>[L])),_:1})):p("v-if",!0)],4)):p("v-if",!0)],64)))),128))]),h("div",{class:"main-wrapper__table-body",ref_key:"tableBodyRef",ref:le},[(r(),n(u(M),{modelValue:te.value,"onUpdate:modelValue":t[1]||(t[1]=e=>te.value=e),animation:"150","item-key":"id",filter:".disabled",draggable:".item",move:ve,disabled:!e.rowDraggable,key:Z.value},{item:b((({element:e,index:l})=>[e.hide?p("v-if",!0):(r(),s("div",{key:0,class:w(["item",u(R)(e)?"":"disabled"]),tabindex:l},[u(P)(e)?(r(!0),s(m,{key:0},y(e,((e,t)=>(r(),n(H,S(re,{key:t,element:e,idx:l+1,"is-highlight":he(e)}),null,16,["element","idx","is-highlight"])))),128)):(r(),n(H,S({key:1},re,{element:e,idx:l+1,"is-highlight":he(e)}),null,16,["element","idx","is-highlight"]))],10,$))])),_:1},8,["modelValue","disabled"]))],512),e.footerFlag?(r(),s("div",z,[p(" 底部按钮插槽 "),A(l.$slots,"footer",{},(()=>[k(u(D),{onPositiveClick:ce},{trigger:b((()=>[k(u(F),{style:{"margin-right":"8px"}},{default:b((()=>[x("恢复默认设置")])),_:1})])),default:b((()=>[x(" 确认要恢复系统默认设置吗? ")])),_:1}),k(u(F),{style:{"margin-right":"8px"},onClick:ue},{default:b((()=>[x("取消")])),_:1}),k(u(F),{type:"primary",onClick:ne},{default:b((()=>[x("保存")])),_:1})]))])):p("v-if",!0)]))}});export{J as default};
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
44
|
formRef: import("vue").Ref<any>;
|
45
45
|
conditionRef: import("vue").Ref<any>;
|
46
46
|
filterVisible: import("vue").Ref<boolean>;
|
47
|
-
title: import("vue").ComputedRef<"
|
47
|
+
title: import("vue").ComputedRef<"新增" | "修改" | "过滤条件">;
|
48
48
|
model: {
|
49
49
|
name: string;
|
50
50
|
color: string;
|
@@ -41,6 +41,9 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
41
41
|
widgetType: string | null;
|
42
42
|
originType: string | null;
|
43
43
|
valueList: {
|
44
|
+
name: string;
|
45
|
+
value: any;
|
46
|
+
}[] | {
|
44
47
|
value: any;
|
45
48
|
label: any;
|
46
49
|
}[] | undefined;
|
@@ -55,6 +58,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
55
58
|
linkageFieldKeys: string[];
|
56
59
|
};
|
57
60
|
rangeFilter: boolean | undefined;
|
61
|
+
componentProps: any;
|
58
62
|
unit: any;
|
59
63
|
isAccurateSearchVal: boolean;
|
60
64
|
_extendData: import("..").IExtendConfigurationType;
|
@@ -69,7 +73,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
69
73
|
accurateSearch: any;
|
70
74
|
}[];
|
71
75
|
getCacheDef: (item: import("..").ISearchType, cacheList: string[]) => string | string[];
|
72
|
-
transformParams: (paramsList: any[]) =>
|
76
|
+
transformParams: (paramsList: any[]) => any;
|
73
77
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
74
78
|
searchFieldList: {
|
75
79
|
type: import("vue").PropType<import("..").IApiServerType[]>;
|
@@ -187,7 +191,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
187
191
|
clearData: () => void;
|
188
192
|
handlerReset: (arr: import("..").ISearchType[]) => void;
|
189
193
|
setDefaultCon: (widgetArr: import("..").ISearchParamsType[]) => void;
|
190
|
-
getFilterParams: () =>
|
194
|
+
getFilterParams: () => any;
|
191
195
|
setFilterParams: (params?: any) => void;
|
192
196
|
getOriginalConfig: () => import("..").IApiServerType[];
|
193
197
|
onFilterChange: (fn: any) => void;
|
@@ -43,6 +43,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
43
43
|
widgetType: string | null;
|
44
44
|
originType: string | null;
|
45
45
|
valueList: {
|
46
|
+
name: string;
|
47
|
+
value: any;
|
48
|
+
}[] | {
|
46
49
|
value: any;
|
47
50
|
label: any;
|
48
51
|
}[] | undefined;
|
@@ -57,6 +60,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
57
60
|
linkageFieldKeys: string[];
|
58
61
|
};
|
59
62
|
rangeFilter: boolean | undefined;
|
63
|
+
componentProps: any;
|
60
64
|
unit: any;
|
61
65
|
isAccurateSearchVal: boolean;
|
62
66
|
_extendData: import("../../../components/table-filter/src/types").IExtendConfigurationType;
|
@@ -71,7 +75,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
71
75
|
accurateSearch: any;
|
72
76
|
}[];
|
73
77
|
getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
|
74
|
-
transformParams: (paramsList: any[]) =>
|
78
|
+
transformParams: (paramsList: any[]) => any;
|
75
79
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
76
80
|
searchFieldList: {
|
77
81
|
type: PropType<IApiServerType[]>;
|
@@ -189,7 +193,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
189
193
|
clearData: () => void;
|
190
194
|
handlerReset: (arr: ISearchType[]) => void;
|
191
195
|
setDefaultCon: (widgetArr: ISearchParamsType[]) => void;
|
192
|
-
getFilterParams: () =>
|
196
|
+
getFilterParams: () => any;
|
193
197
|
setFilterParams: (params?: any) => void;
|
194
198
|
getOriginalConfig: () => IApiServerType[];
|
195
199
|
onFilterChange: (fn: any) => void;
|
@@ -310,6 +310,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
310
310
|
LABEL: string;
|
311
311
|
SELECTLABEL: string;
|
312
312
|
SELECTDYNAMIC: string;
|
313
|
+
SELECTTREE: string;
|
313
314
|
};
|
314
315
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
315
316
|
paramCfg: {
|
@@ -428,6 +428,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
428
428
|
LABEL: string;
|
429
429
|
SELECTLABEL: string;
|
430
430
|
SELECTDYNAMIC: string;
|
431
|
+
SELECTTREE: string;
|
431
432
|
};
|
432
433
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
433
434
|
paramCfg: {
|
@@ -962,6 +962,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
962
962
|
LABEL: string;
|
963
963
|
SELECTLABEL: string;
|
964
964
|
SELECTDYNAMIC: string;
|
965
|
+
SELECTTREE: string;
|
965
966
|
};
|
966
967
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
967
968
|
paramCfg: {
|
@@ -1086,6 +1086,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1086
1086
|
LABEL: string;
|
1087
1087
|
SELECTLABEL: string;
|
1088
1088
|
SELECTDYNAMIC: string;
|
1089
|
+
SELECTTREE: string;
|
1089
1090
|
};
|
1090
1091
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1091
1092
|
paramCfg: {
|
package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue.d.ts
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
componentCfg: {
|
5
|
+
type: PropType<AnyObject>;
|
6
|
+
};
|
7
|
+
value: {
|
8
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
9
|
+
};
|
10
|
+
isAccurateSearchVal: {
|
11
|
+
type: BooleanConstructor;
|
12
|
+
default: boolean;
|
13
|
+
};
|
14
|
+
}, {
|
15
|
+
$attrs: any;
|
16
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
17
|
+
componentCfg: {
|
18
|
+
type: PropType<AnyObject>;
|
19
|
+
};
|
20
|
+
value: {
|
21
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
22
|
+
};
|
23
|
+
isAccurateSearchVal: {
|
24
|
+
type: BooleanConstructor;
|
25
|
+
default: boolean;
|
26
|
+
};
|
27
|
+
}>> & {
|
28
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
29
|
+
}>>;
|
30
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
31
|
+
isMultiple: import("vue").ComputedRef<any>;
|
32
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
33
|
+
options: import("vue").ComputedRef<any>;
|
34
|
+
NTreeSelect: any;
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
|
+
componentCfg: {
|
37
|
+
type: PropType<AnyObject>;
|
38
|
+
};
|
39
|
+
value: {
|
40
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
41
|
+
};
|
42
|
+
isAccurateSearchVal: {
|
43
|
+
type: BooleanConstructor;
|
44
|
+
default: boolean;
|
45
|
+
};
|
46
|
+
}>> & {
|
47
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
48
|
+
}, {
|
49
|
+
isAccurateSearchVal: boolean;
|
50
|
+
}>;
|
51
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./SelectTree.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","SelectTree.vue"]]);export{t as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,useAttrs as t,computed as a,openBlock as u,createBlock as l,unref as o,mergeProps as n,isRef as r}from"vue";import{NTreeSelect as p}from"naive-ui";var i=e({__name:"SelectTree",props:{componentCfg:{type:Object},value:{type:[Array,String,Number]},isAccurateSearchVal:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:i}){const s=e,v=t();a((()=>v.multiple));const m=a({set(e){i("update:value",e)},get:()=>s.value}),c=a((()=>{const{widgetCfg:e}=s.componentCfg,{valueList:t=[]}=e;return t}));return(e,t)=>(u(),l(o(p),n(o(v),{options:o(c),value:o(m),"onUpdate:value":t[0]||(t[0]=e=>r(m)?m.value=e:null)}),null,16,["options","value"]))}});export{i as default};
|
@@ -1523,4 +1523,52 @@ declare const InputCustom: import("vue").DefineComponent<{
|
|
1523
1523
|
value: string;
|
1524
1524
|
isAccurateSearchVal: boolean;
|
1525
1525
|
}>;
|
1526
|
-
|
1526
|
+
declare const SelectTree: import("vue").DefineComponent<{
|
1527
|
+
componentCfg: {
|
1528
|
+
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
|
1529
|
+
};
|
1530
|
+
value: {
|
1531
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1532
|
+
};
|
1533
|
+
isAccurateSearchVal: {
|
1534
|
+
type: BooleanConstructor;
|
1535
|
+
default: boolean;
|
1536
|
+
};
|
1537
|
+
}, {
|
1538
|
+
$attrs: any;
|
1539
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1540
|
+
componentCfg: {
|
1541
|
+
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
|
1542
|
+
};
|
1543
|
+
value: {
|
1544
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1545
|
+
};
|
1546
|
+
isAccurateSearchVal: {
|
1547
|
+
type: BooleanConstructor;
|
1548
|
+
default: boolean;
|
1549
|
+
};
|
1550
|
+
}>> & {
|
1551
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
1552
|
+
}>>;
|
1553
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
1554
|
+
isMultiple: import("vue").ComputedRef<any>;
|
1555
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
1556
|
+
options: import("vue").ComputedRef<any>;
|
1557
|
+
NTreeSelect: any;
|
1558
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1559
|
+
componentCfg: {
|
1560
|
+
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
|
1561
|
+
};
|
1562
|
+
value: {
|
1563
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1564
|
+
};
|
1565
|
+
isAccurateSearchVal: {
|
1566
|
+
type: BooleanConstructor;
|
1567
|
+
default: boolean;
|
1568
|
+
};
|
1569
|
+
}>> & {
|
1570
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
1571
|
+
}, {
|
1572
|
+
isAccurateSearchVal: boolean;
|
1573
|
+
}>;
|
1574
|
+
export { CheckboxGroup, InputNumberGroup, DateInner, DateOut, DateRangeInner, DateRangeOut, LabelInner, LabelOut, Select, SelectDynamic, InputCustom, SelectTree };
|
@@ -1 +1 @@
|
|
1
|
-
import{defineAsyncComponent as e}from"vue";const t=e((()=>import("./CheckboxGroup.vue.js"))),
|
1
|
+
import{defineAsyncComponent as e}from"vue";const t=e((()=>import("./CheckboxGroup.vue.js"))),r=e((()=>import("./InputNumberGroup.vue.js"))),u=e((()=>import("./DateInner.vue.js"))),o=e((()=>import("./DateOut.vue.js"))),p=e((()=>import("./DateRangeInner.vue.js"))),m=e((()=>import("./DateRangeOut.vue.js"))),i=e((()=>import("./LabelInner.vue.js"))),s=e((()=>import("./LabelOut.vue.js"))),v=e((()=>import("./Select.vue.js"))),j=e((()=>import("./SelectDynamic.vue.js"))),n=e((()=>import("./InputCustom.vue.js"))),a=e((()=>import("./SelectTree.vue.js")));export{t as CheckboxGroup,u as DateInner,o as DateOut,p as DateRangeInner,m as DateRangeOut,n as InputCustom,r as InputNumberGroup,i as LabelInner,s as LabelOut,v as Select,j as SelectDynamic,a as SelectTree};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as a}from"./widgetCfgMaps.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";const
|
1
|
+
import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as a}from"./widgetCfgMaps.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";const n=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var s=r(e({props:{cfg:{type:Object,required:!0},modelValue:{type:[Array,String,Number]}},emits:["update:modelValue","update:unit","update:isAccurate","outFilterChange"],computed:{valueCp(){return this.cfg.widgetType==i.INPUT_NUMBER&&this.cfg.value?Number(this.cfg.value):this.cfg.value},unit(){return this.cfg.unit},isAccurateSearchVal(){return this.cfg.isAccurateSearchVal}},data:()=>({initialProps:{}}),methods:{search(){this.$emit("outFilterChange")},getEleWidth(e){const{widgetType:t,widgetCfg:a,filterExplicit:r}=e;if(n.includes(t))return;const s=i.SELECT!==t&&i.SELECTLABEL!==t&&i.SELECTDYNAMIC!==t&&i.SELECTTREE!==t||!a.multiple?"100%":"200px";return{width:0===r?"100%":e.advanceColWidth?`${e.advanceColWidth}px`:s}},initComponentProps(e){const{widgetType:t,alias:i,title:r,placeholder:n,widgetCfg:s,accurateSearch:l,filterExplicit:c,componentProps:u={}}=e,{props:p,handlerProps:h}=a.get(t);let d={...p,accurateSearch:l,filterExplicit:c,...u};h&&(d=h(d,{...s,title:i||r})),n&&(d.placeholder=n),this.initialProps=d,d.value&&(this.valueCp=d.value)},generateWidget(e){const{widgetType:i}=e;if(!a.has(i))return null;const{value:r}=e,{component:n,style:s,eventsBySearch:l=[]}=a.get(i),c={...this.initialProps,value:r,componentCfg:e},u=l.reduce(((e,t)=>{const{name:i,handler:a}=t;let r=this.search;return a&&(r=e=>{a(e,this.search,c)}),{...e,[`on${i}`]:r}}),{});return t(n,{...s,...c,style:this.getEleWidth(e),value:this.valueCp,unit:this.unit,isAccurateSearchVal:this.isAccurateSearchVal,"onUpdate:value":e=>this.handleUpdate(e),"onUpdate:unit":e=>this.handleUpdateUnit(e),"onUpdate:isAccurate":e=>this.handleUpdateAccurateSearch(e),...u})},handleUpdate(e){this.$emit("update:modelValue",e)},handleUpdateUnit(e){this.$emit("update:unit",e)},handleUpdateAccurateSearch(e){this.$emit("update:isAccurate",e)}},created(){this.initComponentProps(this.cfg)},render(){return this.generateWidget(this.cfg)}}),[["__file","index.vue"]]);export{s as default};
|
@@ -1637,4 +1637,69 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1637
1637
|
setDefaultValue(defaultValue: any): any;
|
1638
1638
|
eventsBySearch?: undefined;
|
1639
1639
|
style?: undefined;
|
1640
|
+
} | {
|
1641
|
+
component: import("vue").DefineComponent<{
|
1642
|
+
componentCfg: {
|
1643
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
1644
|
+
};
|
1645
|
+
value: {
|
1646
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1647
|
+
};
|
1648
|
+
isAccurateSearchVal: {
|
1649
|
+
type: BooleanConstructor;
|
1650
|
+
default: boolean;
|
1651
|
+
};
|
1652
|
+
}, {
|
1653
|
+
$attrs: any;
|
1654
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1655
|
+
componentCfg: {
|
1656
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
1657
|
+
};
|
1658
|
+
value: {
|
1659
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1660
|
+
};
|
1661
|
+
isAccurateSearchVal: {
|
1662
|
+
type: BooleanConstructor;
|
1663
|
+
default: boolean;
|
1664
|
+
};
|
1665
|
+
}>> & {
|
1666
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
1667
|
+
}>>;
|
1668
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
1669
|
+
isMultiple: import("vue").ComputedRef<any>;
|
1670
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
1671
|
+
options: import("vue").ComputedRef<any>;
|
1672
|
+
NTreeSelect: any;
|
1673
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1674
|
+
componentCfg: {
|
1675
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
1676
|
+
};
|
1677
|
+
value: {
|
1678
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1679
|
+
};
|
1680
|
+
isAccurateSearchVal: {
|
1681
|
+
type: BooleanConstructor;
|
1682
|
+
default: boolean;
|
1683
|
+
};
|
1684
|
+
}>> & {
|
1685
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
1686
|
+
}, {
|
1687
|
+
isAccurateSearchVal: boolean;
|
1688
|
+
}>;
|
1689
|
+
props: {
|
1690
|
+
clearable: boolean;
|
1691
|
+
filterable: boolean;
|
1692
|
+
multiple: boolean;
|
1693
|
+
maxTagCount: string;
|
1694
|
+
allowInput?: undefined;
|
1695
|
+
type?: undefined;
|
1696
|
+
valueFormat?: undefined;
|
1697
|
+
};
|
1698
|
+
eventsBySearch: {
|
1699
|
+
name: string;
|
1700
|
+
handler(e: KeyboardEvent, search: funcVoid, props: any): void;
|
1701
|
+
}[];
|
1702
|
+
handlerProps(props: any, { multiple, title }?: any): any;
|
1703
|
+
setDefaultValue(defaultValue: any): any;
|
1704
|
+
style?: undefined;
|
1640
1705
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{WidgetTypeEnums as e,WidgetValEnums as l}from"../../types/enums.js";import{DatePresetValEnums as t,DateRangeOutDefEnums as
|
1
|
+
import{WidgetTypeEnums as e,WidgetValEnums as l}from"../../types/enums.js";import{DatePresetValEnums as t,DateRangeOutDefEnums as a}from"./enums.js";import{NInputNumber as r}from"naive-ui";import{InputNumberGroup as o,InputCustom as n,Select as p,SelectDynamic as s,DateInner as i,DateOut as u,DateRangeInner as c,DateRangeOut as m,CheckboxGroup as d,LabelInner as y,LabelOut as h,SelectTree as E}from"./components/index.js";import{presetValToTimestamp as f,formatDateRangeInfo as M}from"./helpers/presetValToTimestamp.js";import{setSelectDynamicValue as D}from"./helpers/setDefaultValue.js";const T=e=>null==e?null:e,P=new Map([[e.INPUT_NUMBER,{component:r,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:T}],[e.INPUTNUMBER_RANGE,{component:o,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l,filterExplicit:t}={})=>({...e,startPlaceholder:1===t?`起始${l}`:"最小值",endPlaceholder:1===t?`截止${l}`:"最大值"}),setDefaultValue:T}],[e.INPUT,{component:n,props:{clearable:!0,allowInput:e=>!e.startsWith(" ")&&!e.endsWith(" ")},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:T}],[e.SELECT,{component:p,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const a={...e,placeholder:`请选择${t}`};return l&&(a.multiple=!0),a},setDefaultValue:(e,t,a)=>t&&"boolean"==typeof(null==a?void 0:a.multiple)?a.multiple?[l.WHOLE]:l.WHOLE:e}],[e.SELECTDYNAMIC,{component:s,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,l={}){const{multiple:t,title:a}=l,r={...e,placeholder:`请选择${a}`};return t&&(r.multiple=!0),r},setDefaultValue:async(e,l,t)=>l&&(null==t?void 0:t._cfg)?await D(null==t?void 0:t._cfg):e}],[e.DATE,{component:i,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:T}],[e.DATE_OUT,{component:u,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?f(l,"YYYY-MM-DD"):e}],[e.DATE_RANGE_INNER,{component:c,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:T}],[e.DATE_RANGE_OUT,{component:m,props:{type:"daterange",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,t)=>l&&l!==a.CUSTOM&&(null==t?void 0:t.optSetting)?M(l,"YYYY-MM-DD",t.optSetting):e}],[e.DATE_TIME,{component:i,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:T}],[e.DATETIME_OUT,{component:u,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?f(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE_INNER,{component:c,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:T}],[e.DATETIME_RANGE_OUT,{component:m,props:{type:"datetimerange",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,a)=>l&&l!==t.CUSTOM&&(null==a?void 0:a.optSetting)?M(l,"YYYY-MM-DD HH:mm:ss",a.optSetting):e}],[e.CHECKBOX_GROUP,{component:d,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const a={...e,multiple:t};return Array.isArray(l)&&(a.options=l.map((({value:e,label:l})=>({value:e,label:l})))),a},setDefaultValue:T}],[e.LABEL,{component:y,props:{},handlerProps:e=>({...e}),setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTLABEL,{component:h,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},handlerProps(e,l={}){const{multiple:t,title:a}=l,r={...e,placeholder:`请选择${a}`};return t&&(r.multiple=!0),r},setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTTREE,{component:E,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const a={...e,placeholder:`请选择${t}`};return l&&(a.multiple=!0),a},setDefaultValue:e=>e}]]);export{P as WidgetCfgMaps};
|
@@ -10,6 +10,9 @@ export default function useAdvanced(): {
|
|
10
10
|
widgetType: string | null;
|
11
11
|
originType: string | null;
|
12
12
|
valueList: {
|
13
|
+
name: string;
|
14
|
+
value: any;
|
15
|
+
}[] | {
|
13
16
|
value: any;
|
14
17
|
label: any;
|
15
18
|
}[] | undefined;
|
@@ -24,6 +27,7 @@ export default function useAdvanced(): {
|
|
24
27
|
linkageFieldKeys: string[];
|
25
28
|
};
|
26
29
|
rangeFilter: boolean | undefined;
|
30
|
+
componentProps: any;
|
27
31
|
unit: any;
|
28
32
|
isAccurateSearchVal: boolean;
|
29
33
|
_extendData: IExtendConfigurationType;
|
@@ -38,6 +42,6 @@ export default function useAdvanced(): {
|
|
38
42
|
accurateSearch: any;
|
39
43
|
}[];
|
40
44
|
getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
|
41
|
-
transformClassifyChild: (conObjList: any, searchFieldList: any[]) =>
|
42
|
-
transformParams: (paramsList: any[]) =>
|
45
|
+
transformClassifyChild: (conObjList: any, searchFieldList: any[]) => any;
|
46
|
+
transformParams: (paramsList: any[]) => any;
|
43
47
|
};
|
@@ -1 +1 @@
|
|
1
|
-
import{WidgetOptionEnums as e,WidgetTypeEnums as i,selectModeEnums as t,WidgetValEnums as n}from"../types/enums.js";import{isString as l}from"lodash-es";import{formatDateRangeInfo as a,presetValToTimestamp as o}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as r}from"../components/render-widget/enums.js";const u={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function E(){return{transformData:function(n,l){return n.map((n=>{var a,o,r;const{optionInfo:E={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1,showMode:"DROPDOWN"},type:s,defaultValue:
|
1
|
+
import{WidgetOptionEnums as e,WidgetTypeEnums as i,selectModeEnums as t,WidgetValEnums as n}from"../types/enums.js";import{isString as l}from"lodash-es";import{formatDateRangeInfo as a,presetValToTimestamp as o}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as r}from"../components/render-widget/enums.js";const u={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function E(){return{transformData:function(n,l){return n.map((n=>{var a,o,r;const{optionInfo:E={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1,showMode:"DROPDOWN"},type:s,defaultValue:T,optionType:c,filterExplicit:p,rangeFilter:d,componentProps:m}=n,f={},v={title:(L=n).title,alias:L.customTitle,isShowSearch:L.isShowSearch?1:0,filterExplicit:L.filterExplicit?1:0,explicitRequired:L.explicitRequired?1:0,advanceOptionSetting:L.optionType?u[L.optionType]:"",placeholder:L.remark,advanceColWidth:L.width,accurateSearch:L.accurateSearch?L.accurateSearch:{}};var L;let S,g,C=s;p?(S=s!==i.SELECT&&s!==i.SELECTTREE||c!==e.MULTIPLE?null==(a=null==T?void 0:T.valueList)?void 0:a[0]:null==T?void 0:T.valueList,g=null==T?void 0:T.unit,s===i.LABEL&&(C="SELECTLABEL",S=null==T?void 0:T.valueList),s===i.DATE&&(C="DATE_OUT"),s===i.DATE_TIME&&(C="DATETIME_OUT"),s===i.SELECT&&(null==E?void 0:E.manualMapping)&&(null==E?void 0:E.showMode)==t.TILE&&(C="CHECKBOX_GROUP")):s===i.SELECT&&(null==E?void 0:E.list)&&(null==E?void 0:E.list.length)<10&&(C="CHECKBOX_GROUP"),d&&(s===i.INPUT_NUMBER&&(C="INPUTNUMBER_RANGE"),s===i.DATE&&(C=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===i.DATE_TIME&&(C=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===i.SELECT&&!1===(null==E?void 0:E.manualMapping)&&(C=i.SELECTDYNAMIC);const h={isRender:!0,widgetType:C,originType:s,valueList:s===i.SELECTTREE?null==E?void 0:E.list:null==(o=null==E?void 0:E.list)?void 0:o.map((({name:e,value:i})=>({value:i,label:e}))),defaultValue:S,defValueUnit:g,optionSetting:c,multiple:c===e.MULTIPLE||C===i.SELECTLABEL,manualMapping:null==E?void 0:E.manualMapping,showWholeOption:null==E?void 0:E.showWholeOption,dynamicOptionInfo:null==E?void 0:E.dynamicOptionInfo,classifyStr:null==T?void 0:T.classifyStr,linkageFieldKeys:null!=(r=null==T?void 0:T.linkageFieldKeys)?r:[]};return{...v,fieldType:n.dataType,columnName:n.name,settingObj:f,setting:JSON.stringify(f),widgetCfg:h,rangeFilter:d,componentProps:m,unit:null!=g?g:"",isAccurateSearchVal:!1,_extendData:null!=l?l:{}}}))},getCacheDef:function(e,t){const{widgetType:n,widgetCfg:l}=e;return[i.SELECT,i.CHECKBOX_GROUP,i.SELECTDYNAMIC].includes(n)&&l.multiple?t:t[0]},transformClassifyChild:function(e,t){const n={};return e&&e.length>0&&e.forEach((e=>{const l=e.field_key;n[l]="";const u=t.find((e=>e.name===l));if(u){if(e.value){const t=Array.isArray(e.value)&&u.type===i.SELECT?e.value:e.value.toString();n[l]=t}if(e.unit&&e.unit!==r.CUSTOM){let t="";u.type===i.DATE&&(t=u.rangeFilter?a(e.unit,"YYYY-MM-DD",u.optionType):o(e.unit,"YYYY-MM-DD")),u.type===i.DATE_TIME&&(t=u.rangeFilter?a(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):o(e.unit,"YYYY-MM-DD HH:mm:ss")),n[l]=t}}})),n},transformParams:function(e){const t={},a=[i.SELECT,i.SELECTDYNAMIC,i.CHECKBOX_GROUP,i.SELECTTREE];return e&&e.length>0&&e.forEach((e=>{let i="";const o=e.field_key;e.value&&(i=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>l(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(i)&&i.length>0&&i.includes(n.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(t[e.accurateSearchKey]=e.isAccurateSearch?1:0),t[o]=i)})),t}}}export{E as default};
|
@@ -1 +1 @@
|
|
1
|
-
const E={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},T={SQL:"SQL",API:"API"},A={DROPDOWN:"DROPDOWN",TILE:"TILE"},_={MANUAL:"manual",DICT:"dict"},R={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",DATE_OUT:"DATE_OUT",DATE_TIME:"DATETIME",DATETIME_OUT:"DATETIME_OUT",CHECKBOX_GROUP:"CHECKBOX_GROUP",INPUTNUMBER_RANGE:"INPUTNUMBER_RANGE",DATE_RANGE_OUT:"DATE_RANGE_OUT",DATE_RANGE_INNER:"DATE_RANGE_INNER",DATETIME_RANGE_OUT:"DATETIME_RANGE_OUT",DATETIME_RANGE_INNER:"DATETIME_RANGE_INNER",LABEL:"LABEL",SELECTLABEL:"SELECTLABEL",SELECTDYNAMIC:"SELECTDYNAMIC"},N={RADIO:"SELECT_SINGLE",MULTIPLE:"SELECT_MULTIPLE",ALL:"DATETIME_WHOLE",SELECT_TIME:"DATETIME_SELECT",PAST_TIME:"DATETIME_PAST",FUTURE_TIME:"DATETIME_FUTURE"},O={CUSTOM:"CUSTOM",FIRST_VAL:"FIRST",WHOLE:"WHOLE",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",THIS_WEEK:"THIS_WEEK",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",NEXT_WEEK:"NEXT_WEEK",LAST_WEEK:"LAST_WEEK",THIS_MONTH:"THIS_MONTH",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END",NEXT_MONTH:"NEXT_MONTH",LAST_MONTH:"LAST_MONTH",THIS_QUARTER:"THIS_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",LAST_QUARTER:"LAST_QUARTER",THIS_YEAR:"THIS_YEAR",NEXT_YEAR:"NEXT_YEAR",LAST_YEAR:"LAST_YEAR"},S={NULL:"NULL",EQUAL:"EQ"};export{S as ConditionEnums,T as DataTypeEnums,E as FieldTypeEnums,_ as MappingMethodEnums,N as WidgetOptionEnums,R as WidgetTypeEnums,O as WidgetValEnums,A as selectModeEnums};
|
1
|
+
const E={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},T={SQL:"SQL",API:"API"},A={DROPDOWN:"DROPDOWN",TILE:"TILE"},_={MANUAL:"manual",DICT:"dict"},R={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",DATE_OUT:"DATE_OUT",DATE_TIME:"DATETIME",DATETIME_OUT:"DATETIME_OUT",CHECKBOX_GROUP:"CHECKBOX_GROUP",INPUTNUMBER_RANGE:"INPUTNUMBER_RANGE",DATE_RANGE_OUT:"DATE_RANGE_OUT",DATE_RANGE_INNER:"DATE_RANGE_INNER",DATETIME_RANGE_OUT:"DATETIME_RANGE_OUT",DATETIME_RANGE_INNER:"DATETIME_RANGE_INNER",LABEL:"LABEL",SELECTLABEL:"SELECTLABEL",SELECTDYNAMIC:"SELECTDYNAMIC",SELECTTREE:"SELECTTREE"},N={RADIO:"SELECT_SINGLE",MULTIPLE:"SELECT_MULTIPLE",ALL:"DATETIME_WHOLE",SELECT_TIME:"DATETIME_SELECT",PAST_TIME:"DATETIME_PAST",FUTURE_TIME:"DATETIME_FUTURE"},O={CUSTOM:"CUSTOM",FIRST_VAL:"FIRST",WHOLE:"WHOLE",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",THIS_WEEK:"THIS_WEEK",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",NEXT_WEEK:"NEXT_WEEK",LAST_WEEK:"LAST_WEEK",THIS_MONTH:"THIS_MONTH",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END",NEXT_MONTH:"NEXT_MONTH",LAST_MONTH:"LAST_MONTH",THIS_QUARTER:"THIS_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",LAST_QUARTER:"LAST_QUARTER",THIS_YEAR:"THIS_YEAR",NEXT_YEAR:"NEXT_YEAR",LAST_YEAR:"LAST_YEAR"},S={NULL:"NULL",EQUAL:"EQ"};export{S as ConditionEnums,T as DataTypeEnums,E as FieldTypeEnums,_ as MappingMethodEnums,N as WidgetOptionEnums,R as WidgetTypeEnums,O as WidgetValEnums,A as selectModeEnums};
|
@@ -1 +1 @@
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.2.9-beta.
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.2.9-beta.3",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.2.9-beta.3",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.2.9-beta.
|
3
|
+
"version": "3.2.9-beta.3",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"iOS 7",
|
73
73
|
"last 3 iOS versions"
|
74
74
|
],
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "5824973cbb57323757cddbc7e75b27e6a448ccf0"
|
76
76
|
}
|