cnhis-design-vue 3.2.10-beta.8 → 3.2.10-release.1
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 +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/card-reader-sdk/src/utils/index.js +1 -1
- package/es/components/classification/index.d.ts +1 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/index.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/field-set/index.d.ts +13 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +72 -26
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +19 -4
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -2
- package/es/components/field-set/src/Index.vue.d.ts +13 -0
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +18 -4
- package/es/components/field-set/src/components/condition.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +63 -22
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +44 -44
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +5 -2
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +3 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/text.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
- package/es/components/form-render/src/types/index.d.ts +4 -3
- package/es/components/form-render/src/utils/index.d.ts +2 -0
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-chat/index.d.ts +8 -8
- package/es/components/iho-chat/src/Index.vue.d.ts +8 -8
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +3 -3
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +2 -2
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +1 -1
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +30 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.d.ts +3 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/quick-search/index.d.ts +18 -0
- package/es/components/quick-search/src/index.vue.d.ts +18 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +1 -7
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +3 -49
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +1 -18
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +3 -0
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as l,ref as n,unref as o,openBlock as
|
1
|
+
import{defineComponent as e,inject as l,ref as n,unref as o,openBlock as a,createElementBlock as i,normalizeStyle as t,createVNode as d,withCtx as u,createTextVNode as s,createElementVNode as c,Fragment as p,renderList as r,toDisplayString as m,createCommentVNode as f,withDirectives as v,vShow as _}from"vue";import{NButton as T,NIcon as E,NSelect as N,NInput as y,NInputNumber as O}from"naive-ui";import{AddCircleSharp as b,RemoveCircle as U}from"@vicons/ionicons5";import{CUSTOM_INPUT_OPTIONS as h,InjectionFieldList as I,InjectionQueryWordbookData as k,BOOLEAN_OPTIONS as Q,UNIT_OPTIONS as S,FIELD_TYPE_LIST as g,SHOWSETTING_OPTIONS as L,WORDBOOK_OPTIONS as V}from"../constants/index.js";import x from"../../../date-picker/index.js";import{useTheme as A}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{cloneDeep as D,isArray as F,isFunction as j}from"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"../../../../shared/hooks/useScrollLoading.js";const w={class:"condition-wrapper"},R={class:"item-index"},H={class:"sql-expression-wrapper"},B=c("span",null,"筛选器逻辑编辑,不设置默认为AND",-1),C=c("br",null,null,-1),M=c("span",null,"例子 (1 AND 2) OR 3",-1);var G=e({__name:"condition",props:{model:{type:Object,default:null},readonly:{type:Boolean,default:!1}},setup(e,{expose:G}){const J=e,P=h[0].columnName,q=A(),z=D(l(I)),W=l(k),X=n([]),K=n("");function Y(e,l=!1){var n,o;l||(e.compareFieldOptions=[],e.con="",$(e));const{field_key:a}=e,i=z.find((e=>e.columnName===a));if(!i)return void(e.conOptions=[]);const{fieldType:t,settingObj:d={}}=i;e.fieldType=t;const u=D((null==(n=g.find((e=>e.name===t)))?void 0:n.conList)||[]),{showSetting:s,wordbook:c}=d;(null==s?void 0:s.length)&&u.unshift(...L),(null==(o=Object.keys(c||{}))?void 0:o.length)&&u.unshift(...V),e.conOptions=u}async function Z(e,l=!1){e.compareFieldOptions=[],l||$(e);const{field_key:n,fieldType:o,con:a}=e,i=z.find((e=>e.columnName===n));if(!i)return void(e.conOptions=[]);const{settingObj:t={}}=i||{},{showSetting:d,wordbook:u}=t,s=[];if(["IN","NEQ","BIG","LESS","BIGEQ","LESSEQ","EQ"].includes(a)){s.push(...h),l||(e.compare_field=P);const a=z.filter((e=>e.fieldType===o&&e.columnName!==n));s.push(...a)}if(V.map((e=>e.name)).includes(a)&&j(W)){const l=await W(u);s.push(...(c=l,p="label",r="value",c.map((e=>({...e,title:e[p],columnName:e[r]}))))),e.multiple=!0}var c,p,r;if(L.map((e=>e.name)).includes(a)&&(null==d?void 0:d.length)){const l=d.map((e=>({...e,title:e.change_text,columnName:JSON.stringify(e.filter||[])})));s.push(...l),e.multiple=!0}e.compareFieldOptions=s}function $(e){e.multiple=!1,e.compare_field=null,e.value="",e.numberValue=null,e.dateValue=null,e.unit=null}function ee(e){const{con:l,fieldType:n}=e;return"BOOLEAN"===n&&l&&["EQ","NEQ"].includes(l)}function le(e){const{compare_field:l,con:n,fieldType:o}=e;return!(!n||["CONVERT","QUOTE","QUOTE_NOT"].includes(n))&&(!(!["TEXT","JSONB"].includes(o)||["NULL","NOT_NULL"].includes(n))&&(!["EQ","NEQ"].includes(n)||l===P))}function ne(e){if(le(e))return!1;const{compare_field:l,con:n,field_key:o,fieldType:a}=e;return!(!n||["CONVERT","QUOTE","QUOTE_NOT"].includes(n))&&("NUMBER"===a?!["NULL","NOT_NULL"].includes(n)&&l===P:!!["DATE","DATETIME","TIME"].includes(a)&&["L_","N_","IN_THE_PAST","IN_THE_FUTURE","IN_THE_PAST_DI","IN_THE_FUTURE_DI"].includes(n))}function oe(e){const{compare_field:l,con:n,field_key:o,fieldType:a}=e;return!!n&&(!!["DATE","DATETIME","TIME"].includes(a)&&["L_","N_","IN_THE_PAST","IN_THE_FUTURE","IN_THE_PAST_DI","IN_THE_FUTURE_DI"].includes(n))}function ae(e){const{compare_field:l,con:n,field_key:o,fieldType:a}=e;return!!n&&(!!["DATE","DATETIME","TIME"].includes(a)&&(["IN","NEQ","BIG","LESS","BIGEQ","LESSEQ"].includes(n)&&l===P))}function ie(e){return["IN","NEQ"].includes(e.con)?"datetimerange":"datetime"}function te(){const e={field_key:z[0].columnName,fieldType:"",con:"",conOptions:[],compare_field:"",compareFieldOptions:[],unit:"",numberValue:null,dateValue:null,multiple:!1};Y(e),e.con="",X.value.push(e)}return function(){const{condition:e=[],sqlExpression:l=""}=J.model||{};e.length&&(X.value=e);l&&(K.value=l);X.value.forEach((e=>{Y(e,!0),Z(e,!0);const{con:l,value:n,start_val:o,end_val:a}=e;"CONVERT"===l&&(e.compare_field=F(n)?n.map((e=>JSON.stringify(e))):n),"QUOTE"!==l&&"QUOTE_NOT"!==l||(e.compare_field=n.split("|#|")),ne(e)&&(e.numberValue=+n),ae(e)&&(ie(e).endsWith("range")?e.dateValue=o&&a?[o,a]:null:e.dateValue=n)}))}(),G({getData:()=>({condition:X.value.map((e=>{const{field_key:l,con:n,value:o,compare_field:a,numberValue:i,dateValue:t,unit:d,fieldType:u,compareFieldOptions:s}=e;let c,p,r,m,f=o,v=a;return"CONVERT"===n&&(f=F(a)?a.map((e=>JSON.parse(e))):a,v=""),"QUOTE"!==n&&"QUOTE_NOT"!==n||(f=F(a)?a.join("|#|"):a,c=s.filter((e=>a.includes(e.columnName))),v=""),ne(e)&&(f=i,v=P),ae(e)&&(ie(e).endsWith("range")?(f="",r=F(t)?t[0]:"",m=F(t)?t[1]:""):f=t),oe(e)&&(p=d),le(e)&&e.compareFieldOptions.length>0&&(v=P),{field_key:l,fieldType:u,con:n,value:f,compare_field:v,is_compare_field:!!v,start_val:r,end_val:m,wordbookValueList:c,unit:p}})),sqlExpression:o(K)})}),(l,n)=>(a(),i("div",{class:"c-field-set__condition",style:t(o(q))},[d(o(T),{text:"",disabled:e.readonly,onClick:te},{icon:u((()=>[d(o(E),{component:o(b),style:{color:"var(--c-primary-color)"},size:"20"},null,8,["component"])])),default:u((()=>[s(" 添加操作 ")])),_:1},8,["disabled"]),c("section",w,[(a(!0),i(p,null,r(X.value,((l,n)=>(a(),i("div",{class:"condition-wrapper__item",key:n},[c("span",R,m(n+1),1),f(" 选择 field_key "),d(o(N),{disabled:e.readonly,value:l.field_key,"onUpdate:value":[e=>l.field_key=e,()=>Y(l)],placeholder:"请选择字段名","label-field":"title","value-field":"columnName",clearable:"",options:o(z)},null,8,["disabled","value","onUpdate:value","options"]),f(" 选择 关系 "),d(o(N),{disabled:e.readonly,value:l.con,"onUpdate:value":[e=>l.con=e,()=>Z(l)],"label-field":"text","value-field":"name",options:l.conOptions},null,8,["disabled","value","onUpdate:value","options"]),f(" 下拉框展示本列表相同数据类型 "),v(d(o(N),{disabled:e.readonly,value:l.compare_field,"onUpdate:value":e=>l.compare_field=e,"label-field":"title","value-field":"columnName",clearable:"",multiple:l.multiple,options:l.compareFieldOptions},null,8,["disabled","value","onUpdate:value","multiple","options"]),[[_,l.compareFieldOptions.length>0]]),f(" 布尔值类型字段选择是否相等的值 "),v(d(o(N),{disabled:e.readonly,value:l.value,"onUpdate:value":e=>l.value=e,options:o(Q)},null,8,["disabled","value","onUpdate:value","options"]),[[_,ee(l)]]),f(" 自定义内容 "),v(d(o(y),{disabled:e.readonly,value:l.value,"onUpdate:value":e=>l.value=e},null,8,["disabled","value","onUpdate:value"]),[[_,le(l)]]),f(" 自定义内容/数字框/日期 "),v(d(o(O),{value:l.numberValue,"onUpdate:value":e=>l.numberValue=e},null,8,["value","onUpdate:value"]),[[_,ne(l)]]),f(" 自定义日期的单位 "),v(d(o(N),{disabled:e.readonly,style:{width:"80px"},value:l.unit,"onUpdate:value":e=>l.unit=e,options:o(S)},null,8,["disabled","value","onUpdate:value","options"]),[[_,oe(l)]]),v(d(o(x),{disabled:e.readonly,type:ie(l),"formatted-value":l.dateValue,"onUpdate:formatted-value":e=>l.dateValue=e},null,8,["disabled","type","formatted-value","onUpdate:formatted-value"]),[[_,ae(l)]]),d(o(T),{text:"",disabled:e.readonly,onClick:()=>function(e){X.value.splice(e,1)}(n)},{default:u((()=>[d(o(E),{component:o(U),size:"20",color:"red"},null,8,["component"])])),_:2},1032,["disabled","onClick"])])))),128))]),v(c("section",H,[B,C,M,d(o(y),{type:"textarea",value:K.value,"onUpdate:value":n[0]||(n[0]=e=>K.value=e)},null,8,["value"])],512),[[_,X.value.length>1]])],4))}});export{G as default};
|
@@ -14,6 +14,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
14
14
|
type: PropType<AnyObject | null>;
|
15
15
|
default: null;
|
16
16
|
};
|
17
|
+
readonly: {
|
18
|
+
type: BooleanConstructor;
|
19
|
+
default: boolean;
|
20
|
+
};
|
21
|
+
isAdd: {
|
22
|
+
type: BooleanConstructor;
|
23
|
+
default: boolean;
|
24
|
+
};
|
17
25
|
}, {
|
18
26
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
19
27
|
message: import("naive-ui").MessageApi;
|
@@ -36,6 +44,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
36
44
|
type: PropType<AnyObject | null>;
|
37
45
|
default: null;
|
38
46
|
};
|
47
|
+
readonly: {
|
48
|
+
type: BooleanConstructor;
|
49
|
+
default: boolean;
|
50
|
+
};
|
51
|
+
isAdd: {
|
52
|
+
type: BooleanConstructor;
|
53
|
+
default: boolean;
|
54
|
+
};
|
39
55
|
}>> & {
|
40
56
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
41
57
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
@@ -44,7 +60,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
60
|
formRef: import("vue").Ref<any>;
|
45
61
|
conditionRef: import("vue").Ref<any>;
|
46
62
|
filterVisible: import("vue").Ref<boolean>;
|
47
|
-
title: import("vue").ComputedRef<"新增" | "修改" | "过滤条件">;
|
63
|
+
title: import("vue").ComputedRef<"复制" | "新增" | "修改" | "过滤条件">;
|
48
64
|
model: {
|
49
65
|
name: string;
|
50
66
|
color: string;
|
@@ -71,18 +87,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
71
87
|
NRadio: any;
|
72
88
|
NSpace: any;
|
73
89
|
Condition: import("vue").DefineComponent<{
|
74
|
-
|
90
|
+
model: {
|
75
91
|
type: PropType<AnyObject>;
|
76
92
|
default: null;
|
77
93
|
};
|
94
|
+
readonly: {
|
95
|
+
type: BooleanConstructor;
|
96
|
+
default: boolean;
|
97
|
+
};
|
78
98
|
}, {
|
79
99
|
customValue: string;
|
80
100
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
81
101
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
82
|
-
|
102
|
+
model: {
|
83
103
|
type: PropType<AnyObject>;
|
84
104
|
default: null;
|
85
105
|
};
|
106
|
+
readonly: {
|
107
|
+
type: BooleanConstructor;
|
108
|
+
default: boolean;
|
109
|
+
};
|
86
110
|
}>> & {}>>;
|
87
111
|
fieldList: AnyObject[];
|
88
112
|
queryWordbookData: ((params: import("../types").ColorSetWordbook) => Promise<{
|
@@ -216,6 +240,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
216
240
|
NInputNumber: any;
|
217
241
|
NSelect: any;
|
218
242
|
NIcon: any;
|
243
|
+
NButton: any;
|
219
244
|
AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
220
245
|
RemoveCircle: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
221
246
|
UNIT_OPTIONS: {
|
@@ -346,32 +371,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
346
371
|
holidays: Date[];
|
347
372
|
}>>;
|
348
373
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
349
|
-
|
374
|
+
model: {
|
350
375
|
type: PropType<AnyObject>;
|
351
376
|
default: null;
|
352
377
|
};
|
378
|
+
readonly: {
|
379
|
+
type: BooleanConstructor;
|
380
|
+
default: boolean;
|
381
|
+
};
|
353
382
|
}>>, {
|
354
|
-
|
383
|
+
model: AnyObject;
|
384
|
+
readonly: boolean;
|
355
385
|
}>;
|
356
386
|
EditFilter: import("vue").DefineComponent<{
|
357
387
|
visible: {
|
358
388
|
type: BooleanConstructor;
|
359
389
|
default: boolean;
|
360
390
|
};
|
361
|
-
model: {
|
362
|
-
type: PropType<AnyObject>;
|
363
|
-
default: null;
|
364
|
-
};
|
365
391
|
}, {
|
366
392
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
367
393
|
visible: {
|
368
394
|
type: BooleanConstructor;
|
369
395
|
default: boolean;
|
370
396
|
};
|
371
|
-
model: {
|
372
|
-
type: PropType<AnyObject>;
|
373
|
-
default: null;
|
374
|
-
};
|
375
397
|
}>> & {
|
376
398
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
377
399
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
@@ -382,18 +404,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
382
404
|
onClose: () => void;
|
383
405
|
NModal: any;
|
384
406
|
Condition: import("vue").DefineComponent<{
|
385
|
-
|
407
|
+
model: {
|
386
408
|
type: PropType<AnyObject>;
|
387
409
|
default: null;
|
388
410
|
};
|
411
|
+
readonly: {
|
412
|
+
type: BooleanConstructor;
|
413
|
+
default: boolean;
|
414
|
+
};
|
389
415
|
}, {
|
390
416
|
customValue: string;
|
391
417
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
392
418
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
393
|
-
|
419
|
+
model: {
|
394
420
|
type: PropType<AnyObject>;
|
395
421
|
default: null;
|
396
422
|
};
|
423
|
+
readonly: {
|
424
|
+
type: BooleanConstructor;
|
425
|
+
default: boolean;
|
426
|
+
};
|
397
427
|
}>> & {}>>;
|
398
428
|
fieldList: AnyObject[];
|
399
429
|
queryWordbookData: ((params: import("../types").ColorSetWordbook) => Promise<{
|
@@ -527,6 +557,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
527
557
|
NInputNumber: any;
|
528
558
|
NSelect: any;
|
529
559
|
NIcon: any;
|
560
|
+
NButton: any;
|
530
561
|
AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
531
562
|
RemoveCircle: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
532
563
|
UNIT_OPTIONS: {
|
@@ -657,28 +688,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
657
688
|
holidays: Date[];
|
658
689
|
}>>;
|
659
690
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
660
|
-
|
691
|
+
model: {
|
661
692
|
type: PropType<AnyObject>;
|
662
693
|
default: null;
|
663
694
|
};
|
695
|
+
readonly: {
|
696
|
+
type: BooleanConstructor;
|
697
|
+
default: boolean;
|
698
|
+
};
|
664
699
|
}>>, {
|
665
|
-
|
700
|
+
model: AnyObject;
|
701
|
+
readonly: boolean;
|
666
702
|
}>;
|
667
703
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "update:visible")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
668
704
|
visible: {
|
669
705
|
type: BooleanConstructor;
|
670
706
|
default: boolean;
|
671
707
|
};
|
672
|
-
model: {
|
673
|
-
type: PropType<AnyObject>;
|
674
|
-
default: null;
|
675
|
-
};
|
676
708
|
}>> & {
|
677
709
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
678
710
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
679
711
|
}, {
|
680
712
|
visible: boolean;
|
681
|
-
model: AnyObject;
|
682
713
|
}>;
|
683
714
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "update:visible")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
684
715
|
visible: {
|
@@ -693,12 +724,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
693
724
|
type: PropType<AnyObject | null>;
|
694
725
|
default: null;
|
695
726
|
};
|
727
|
+
readonly: {
|
728
|
+
type: BooleanConstructor;
|
729
|
+
default: boolean;
|
730
|
+
};
|
731
|
+
isAdd: {
|
732
|
+
type: BooleanConstructor;
|
733
|
+
default: boolean;
|
734
|
+
};
|
696
735
|
}>> & {
|
697
736
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
698
737
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
699
738
|
}, {
|
700
739
|
row: AnyObject | null;
|
701
740
|
visible: boolean;
|
741
|
+
isAdd: boolean;
|
742
|
+
readonly: boolean;
|
702
743
|
isFieldColor: boolean;
|
703
744
|
}>;
|
704
745
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as l,ref as o,computed as a,reactive as t,openBlock as i,createBlock as r,unref as s,withCtx as n,createVNode as
|
1
|
+
import{defineComponent as e,inject as l,ref as o,computed as a,reactive as t,openBlock as i,createBlock as r,unref as s,withCtx as n,createVNode as d,normalizeStyle as u,createElementVNode as c,createCommentVNode as m}from"vue";import{useMessage as p,NModal as f,NForm as v,NFormItem as b,NInput as h,NColorPicker as y,NSelect as g,NCheckbox as k,NRadioGroup as _,NSpace as w,NRadio as C}from"naive-ui";import{useTheme as j}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../../shared/hooks/useScrollLoading.js";import x from"./condition.vue.js";import F from"./edit-filter.vue.js";import{COLOR_MAP as N,InjectionFieldList as U}from"../constants/index.js";var O=e({__name:"edit-dialog",props:{visible:{type:Boolean,default:!1},isFieldColor:{type:Boolean,default:!0},row:{type:Object,default:null},readonly:{type:Boolean,default:!1},isAdd:{type:Boolean,default:!1}},emits:["update:visible","confirm"],setup(e,{emit:O}){const S=e,q=j(),B=p(),A=Object.entries(N).map((([e,l])=>({label:l,value:e}))),E=Object.entries(N).map((([e])=>e)),R=l(U),D=o(),H=o(),L=o(!1),P=a((()=>S.isAdd?S.row?"复制":"新增":S.isFieldColor?"修改":"过滤条件")),T=t({name:"",color:"",status:!0,columnName:"",colorScope:S.isFieldColor?"font":"background",condition:[],sqlExpression:""}),W=t({name:[{required:!0,message:"请输入名称",trigger:["blur"]}],color:[{required:!0,message:"请选择颜色",trigger:["blur"]}],columnName:[{required:!0,validator:(e,l)=>!(!l&&S.isFieldColor)||new Error("请选择字段"),trigger:["blur"]}]});function z(e){return d("span",{style:{"--color":e.value},class:"c-field-set__color-block"},[e.label])}function G(){var e;null==(e=D.value)||e.validate((async e=>{var l,o;if(e){const l=await e;B.warning(l[0][0].message)}else{if(S.isFieldColor||Object.assign(T,H.value.getData()),!(null==(l=T.condition)?void 0:l.length))return void B.warning("请配置过滤条件");const e=S.isFieldColor?{title:null==(o=R.find((e=>e.columnName===T.columnName)))?void 0:o.title}:{};O("confirm",{...T,...e}),I()}}))}function I(){O("update:visible",!1)}function J(e){Object.assign(T,e)}return function(){if(!S.row)return;Object.assign(T,S.row)}(),(l,o)=>(i(),r(s(f),{preset:"dialog",style:{width:"860px"},title:s(P),"close-on-esc":!1,"show-icon":!1,"mask-closable":!1,"positive-text":"确定","negative-text":"取消","trap-focus":!1,show:e.visible,onPositiveClick:G,onNegativeClick:I,onClose:I},{default:n((()=>[d(s(v),{ref_key:"formRef",ref:D,disabled:e.readonly,model:T,rules:W,"label-placement":"left","label-width":"auto","show-feedback":!1,"show-require-mark":!1,style:u({maxWidth:"500px",...s(q)})},{default:n((()=>[d(s(b),{label:"名称:",path:"name",style:{"margin-bottom":"10px"}},{default:n((()=>[d(s(h),{value:T.name,"onUpdate:value":o[0]||(o[0]=e=>T.name=e),placeholder:"请填写名称",clearable:""},null,8,["value"])])),_:1}),e.isFieldColor?(i(),r(s(b),{key:0,label:"颜色:",path:"color"},{default:n((()=>[d(s(y),{clearable:"",placeholder:"请选择颜色",value:T.color,"onUpdate:value":o[1]||(o[1]=e=>T.color=e),swatches:s(E),modes:["hex"],class:"c-field-set__color-picker"},null,8,["value","swatches"])])),_:1})):(i(),r(s(b),{key:1,label:"颜色:",path:"color"},{default:n((()=>[d(s(g),{value:T.color,"onUpdate:value":o[2]||(o[2]=e=>T.color=e),placeholder:"请选择颜色","render-label":z,options:s(A)},null,8,["value","options"])])),_:1})),d(s(b),{label:"显示:",path:"status"},{default:n((()=>[d(s(k),{checked:T.status,"onUpdate:checked":o[3]||(o[3]=e=>T.status=e)},null,8,["checked"])])),_:1}),d(s(b),{label:"颜色应用于:",path:"colorScope"},{default:n((()=>[d(s(_),{value:T.colorScope,"onUpdate:value":o[4]||(o[4]=e=>T.colorScope=e)},{default:n((()=>[d(s(w),null,{default:n((()=>[d(s(C),{label:"字体",value:"font"}),d(s(C),{label:"背景",value:"background"})])),_:1})])),_:1},8,["value"])])),_:1}),e.isFieldColor?(i(),r(s(b),{key:2,label:"字段:",path:"columnName",style:{"margin-bottom":"10px"}},{default:n((()=>[d(s(w),{class:"c-field-set__space",align:"center"},{default:n((()=>[d(s(g),{value:T.columnName,"onUpdate:value":o[5]||(o[5]=e=>T.columnName=e),placeholder:"请选择字段名","label-field":"title","value-field":"columnName",options:s(R)},null,8,["value","options"]),c("span",{class:"filter-btn",onClick:o[6]||(o[6]=()=>L.value=!0)},"筛选")])),_:1})])),_:1})):m("v-if",!0)])),_:1},8,["disabled","model","rules","style"]),e.isFieldColor?(i(),r(F,{key:1,visible:L.value,"onUpdate:visible":o[7]||(o[7]=e=>L.value=e),model:T,readonly:e.readonly,onConfirm:J},null,8,["visible","model","readonly"])):(i(),r(x,{key:0,ref_key:"conditionRef",ref:H,model:T,readonly:e.readonly},null,8,["model","readonly"]))])),_:1},8,["title","show"]))}});export{O as default};
|
@@ -1,24 +1,15 @@
|
|
1
|
-
import { AnyObject } from '../../../../shared/types';
|
2
1
|
import { PropType } from 'vue';
|
3
2
|
declare const _default: import("vue").DefineComponent<{
|
4
3
|
visible: {
|
5
4
|
type: BooleanConstructor;
|
6
5
|
default: boolean;
|
7
6
|
};
|
8
|
-
model: {
|
9
|
-
type: PropType<AnyObject>;
|
10
|
-
default: null;
|
11
|
-
};
|
12
7
|
}, {
|
13
8
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
14
9
|
visible: {
|
15
10
|
type: BooleanConstructor;
|
16
11
|
default: boolean;
|
17
12
|
};
|
18
|
-
model: {
|
19
|
-
type: PropType<AnyObject>;
|
20
|
-
default: null;
|
21
|
-
};
|
22
13
|
}>> & {
|
23
14
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
24
15
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
@@ -29,20 +20,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
20
|
onClose: () => void;
|
30
21
|
NModal: any;
|
31
22
|
Condition: import("vue").DefineComponent<{
|
32
|
-
|
33
|
-
type: PropType<AnyObject>;
|
23
|
+
model: {
|
24
|
+
type: PropType<import("../../../../shared/types").AnyObject>;
|
34
25
|
default: null;
|
35
26
|
};
|
27
|
+
readonly: {
|
28
|
+
type: BooleanConstructor;
|
29
|
+
default: boolean;
|
30
|
+
};
|
36
31
|
}, {
|
37
32
|
customValue: string;
|
38
|
-
cssVars: import("vue").ComputedRef<AnyObject>;
|
33
|
+
cssVars: import("vue").ComputedRef<import("../../../../shared/types").AnyObject>;
|
39
34
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
40
|
-
|
41
|
-
type: PropType<AnyObject>;
|
35
|
+
model: {
|
36
|
+
type: PropType<import("../../../../shared/types").AnyObject>;
|
42
37
|
default: null;
|
43
38
|
};
|
39
|
+
readonly: {
|
40
|
+
type: BooleanConstructor;
|
41
|
+
default: boolean;
|
42
|
+
};
|
44
43
|
}>> & {}>>;
|
45
|
-
fieldList: AnyObject[];
|
44
|
+
fieldList: import("../../../../shared/types").AnyObject[];
|
46
45
|
queryWordbookData: ((params: import("../types").ColorSetWordbook) => Promise<{
|
47
46
|
[key: string]: any;
|
48
47
|
label: string;
|
@@ -59,8 +58,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
59
58
|
numberValue: number | null;
|
60
59
|
dateValue: string | [string, string] | null;
|
61
60
|
fieldType: string;
|
62
|
-
conOptions: AnyObject[];
|
63
|
-
compareFieldOptions: AnyObject[];
|
61
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
62
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
64
63
|
unit: string | null;
|
65
64
|
multiple: boolean;
|
66
65
|
}[]>;
|
@@ -69,9 +68,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
69
68
|
numberValue: number | null;
|
70
69
|
dateValue: string | [string, string] | null;
|
71
70
|
fieldType: string;
|
72
|
-
conOptions: AnyObject[];
|
71
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
73
72
|
compare_field: any;
|
74
|
-
compareFieldOptions: AnyObject[];
|
73
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
75
74
|
unit: string | null;
|
76
75
|
multiple: boolean;
|
77
76
|
}, isInit?: boolean) => void;
|
@@ -79,9 +78,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
79
78
|
numberValue: number | null;
|
80
79
|
dateValue: string | [string, string] | null;
|
81
80
|
fieldType: string;
|
82
|
-
conOptions: AnyObject[];
|
81
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
83
82
|
compare_field: any;
|
84
|
-
compareFieldOptions: AnyObject[];
|
83
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
85
84
|
unit: string | null;
|
86
85
|
multiple: boolean;
|
87
86
|
}, isInit?: boolean) => Promise<void>;
|
@@ -89,9 +88,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
88
|
numberValue: number | null;
|
90
89
|
dateValue: string | [string, string] | null;
|
91
90
|
fieldType: string;
|
92
|
-
conOptions: AnyObject[];
|
91
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
93
92
|
compare_field: any;
|
94
|
-
compareFieldOptions: AnyObject[];
|
93
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
95
94
|
unit: string | null;
|
96
95
|
multiple: boolean;
|
97
96
|
}) => void;
|
@@ -99,9 +98,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
98
|
numberValue: number | null;
|
100
99
|
dateValue: string | [string, string] | null;
|
101
100
|
fieldType: string;
|
102
|
-
conOptions: AnyObject[];
|
101
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
103
102
|
compare_field: any;
|
104
|
-
compareFieldOptions: AnyObject[];
|
103
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
105
104
|
unit: string | null;
|
106
105
|
multiple: boolean;
|
107
106
|
}) => boolean | "";
|
@@ -109,9 +108,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
109
108
|
numberValue: number | null;
|
110
109
|
dateValue: string | [string, string] | null;
|
111
110
|
fieldType: string;
|
112
|
-
conOptions: AnyObject[];
|
111
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
113
112
|
compare_field: any;
|
114
|
-
compareFieldOptions: AnyObject[];
|
113
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
115
114
|
unit: string | null;
|
116
115
|
multiple: boolean;
|
117
116
|
}) => boolean;
|
@@ -119,9 +118,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
118
|
numberValue: number | null;
|
120
119
|
dateValue: string | [string, string] | null;
|
121
120
|
fieldType: string;
|
122
|
-
conOptions: AnyObject[];
|
121
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
123
122
|
compare_field: any;
|
124
|
-
compareFieldOptions: AnyObject[];
|
123
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
125
124
|
unit: string | null;
|
126
125
|
multiple: boolean;
|
127
126
|
}) => boolean;
|
@@ -129,9 +128,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
129
128
|
numberValue: number | null;
|
130
129
|
dateValue: string | [string, string] | null;
|
131
130
|
fieldType: string;
|
132
|
-
conOptions: AnyObject[];
|
131
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
133
132
|
compare_field: any;
|
134
|
-
compareFieldOptions: AnyObject[];
|
133
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
135
134
|
unit: string | null;
|
136
135
|
multiple: boolean;
|
137
136
|
}) => boolean;
|
@@ -139,9 +138,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
139
138
|
numberValue: number | null;
|
140
139
|
dateValue: string | [string, string] | null;
|
141
140
|
fieldType: string;
|
142
|
-
conOptions: AnyObject[];
|
141
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
143
142
|
compare_field: any;
|
144
|
-
compareFieldOptions: AnyObject[];
|
143
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
145
144
|
unit: string | null;
|
146
145
|
multiple: boolean;
|
147
146
|
}) => boolean;
|
@@ -149,9 +148,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
149
148
|
numberValue: number | null;
|
150
149
|
dateValue: string | [string, string] | null;
|
151
150
|
fieldType: string;
|
152
|
-
conOptions: AnyObject[];
|
151
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
153
152
|
compare_field: any;
|
154
|
-
compareFieldOptions: AnyObject[];
|
153
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
155
154
|
unit: string | null;
|
156
155
|
multiple: boolean;
|
157
156
|
}) => "datetime" | "datetimerange";
|
@@ -174,6 +173,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
174
173
|
NInputNumber: any;
|
175
174
|
NSelect: any;
|
176
175
|
NIcon: any;
|
176
|
+
NButton: any;
|
177
177
|
AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
178
178
|
RemoveCircle: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
179
179
|
UNIT_OPTIONS: {
|
@@ -248,7 +248,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
248
248
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
249
249
|
}>>;
|
250
250
|
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
251
|
-
datePickerRef: import("vue").Ref<AnyObject | null>;
|
251
|
+
datePickerRef: import("vue").Ref<import("../../../../shared/types").AnyObject | null>;
|
252
252
|
panelInstRef: import("vue").Ref<null>;
|
253
253
|
placeholderRef: import("vue").Ref<any>;
|
254
254
|
oldValue: string;
|
@@ -304,27 +304,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
304
304
|
holidays: Date[];
|
305
305
|
}>>;
|
306
306
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
307
|
-
|
308
|
-
type: PropType<AnyObject>;
|
307
|
+
model: {
|
308
|
+
type: PropType<import("../../../../shared/types").AnyObject>;
|
309
309
|
default: null;
|
310
310
|
};
|
311
|
+
readonly: {
|
312
|
+
type: BooleanConstructor;
|
313
|
+
default: boolean;
|
314
|
+
};
|
311
315
|
}>>, {
|
312
|
-
|
316
|
+
model: import("../../../../shared/types").AnyObject;
|
317
|
+
readonly: boolean;
|
313
318
|
}>;
|
314
319
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "update:visible")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
315
320
|
visible: {
|
316
321
|
type: BooleanConstructor;
|
317
322
|
default: boolean;
|
318
323
|
};
|
319
|
-
model: {
|
320
|
-
type: PropType<AnyObject>;
|
321
|
-
default: null;
|
322
|
-
};
|
323
324
|
}>> & {
|
324
325
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
325
326
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
326
327
|
}, {
|
327
328
|
visible: boolean;
|
328
|
-
model: AnyObject;
|
329
329
|
}>;
|
330
330
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,openBlock as i,createBlock as o,unref as
|
1
|
+
import{defineComponent as e,ref as t,openBlock as i,createBlock as o,unref as s,withCtx as l,createVNode as n,mergeProps as a}from"vue";import{NModal as r}from"naive-ui";import u from"./condition.vue.js";var f=e({__name:"edit-filter",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","confirm"],setup(e,{emit:f}){const v=t();function c(){var e;f("confirm",null==(e=v.value)?void 0:e.getData()),p()}function p(){f("update:visible",!1)}return(t,f)=>(i(),o(s(r),{preset:"dialog",style:{width:"860px"},title:"设置分类","close-on-esc":!1,"show-icon":!1,"mask-closable":!1,"positive-text":"确定","negative-text":"取消","trap-focus":!1,show:e.visible,onPositiveClick:c,onNegativeClick:p,onClose:p},{default:l((()=>[n(u,a({ref_key:"conditionRef",ref:v},t.$attrs),null,16)])),_:1},8,["show"]))}});export{f as default};
|
@@ -204,7 +204,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
204
204
|
}>>;
|
205
205
|
emit: (event: "edit" | "updateChecked", ...args: any[]) => void;
|
206
206
|
onRemove: () => void;
|
207
|
-
onEdit: () => void;
|
207
|
+
onEdit: (param?: AnyObject) => void;
|
208
208
|
isRenderTooltip: (field: string) => any;
|
209
209
|
getTooltipContent: () => any;
|
210
210
|
getTextValue: (field: string) => any;
|
@@ -216,7 +216,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
216
216
|
label: string;
|
217
217
|
value: number;
|
218
218
|
}[];
|
219
|
-
getSelectText: (field: string) =>
|
219
|
+
getSelectText: (field: string) => any;
|
220
220
|
selectProps: (field: string) => {
|
221
221
|
valueField: string;
|
222
222
|
labelField: string;
|
@@ -236,6 +236,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
236
236
|
NPopconfirm: any;
|
237
237
|
NPopover: any;
|
238
238
|
NSpace: any;
|
239
|
+
NButton: any;
|
239
240
|
setStyle: typeof setStyle;
|
240
241
|
setColorInfo: typeof setColorInfo;
|
241
242
|
ReorderTwoOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -243,6 +244,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
243
244
|
CreateOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
244
245
|
HelpCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
245
246
|
CaretDownOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
247
|
+
EyeOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
248
|
+
CopyOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
246
249
|
isFunction: (value: any) => value is (...args: any[]) => any;
|
247
250
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "updateChecked")[], "edit" | "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
248
251
|
element: {
|