cnhis-design-vue 3.2.7-release.3 → 3.2.8-beta.0
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/README.md +87 -87
- package/es/components/button-print/index.d.ts +2 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +1 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +11 -0
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +11 -0
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +22 -0
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/components/{Row.vue.d.ts → table-row.vue.d.ts} +11 -0
- package/es/components/field-set/src/components/table-row.vue.js +1 -0
- package/es/components/field-set/src/components/table-row.vue2.js +1 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/iho-chat/index.d.ts +133 -21
- package/es/components/iho-chat/src/Index.vue.d.ts +133 -21
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/api/index.d.ts +1 -0
- package/es/components/iho-chat/src/api/index.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +2 -2
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +3 -7
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +126 -8
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +0 -3
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +125 -3
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +2 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +0 -3
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useSession.js +1 -1
- package/es/components/iho-chat/src/types/index.d.ts +5 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/field-set/src/components/Row.vue.js +0 -1
- package/es/components/field-set/src/components/Row.vue2.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,reactive as i,watch as l,openBlock as a,createElementBlock as d,createElementVNode as r,Fragment as c,renderList as o,normalizeStyle as s,unref as n,createBlock as u,withCtx as p,createTextVNode as m,toDisplayString as f,createCommentVNode as h,createVNode as v,mergeProps as k,renderSlot as b}from"vue";import{NCheckbox as x,NPopconfirm as y,NButton as g}from"naive-ui";import _ from"../../../shared/components/VueDraggable/src/vuedraggable.js";import w from"./components/
|
1
|
+
import{defineComponent as e,ref as t,reactive as i,watch as l,openBlock as a,createElementBlock as d,createElementVNode as r,Fragment as c,renderList as o,normalizeStyle as s,unref as n,createBlock as u,withCtx as p,createTextVNode as m,toDisplayString as f,createCommentVNode as h,createVNode as v,mergeProps as k,renderSlot as b}from"vue";import{NCheckbox as x,NPopconfirm as y,NButton as g}from"naive-ui";import _ from"../../../shared/components/VueDraggable/src/vuedraggable.js";import w from"./components/table-row.vue.js";import{cloneDeep as A}from"lodash-es";import{isShowExplicitRequired as F,setStyle as j}from"./utils/index.js";import{COLUMNLIST_MAP as C}from"./constants/filter.js";const R={class:"main-wrapper"},q={class:"main-wrapper__table-header"},V={class:"main-wrapper__table-body",ref:"tableBodyRef"},H=["tabindex"],S={key:0,class:"main-wrapper__table-footer"};var U=e({__name:"FieldFilter",props:{footerFlag:{type:Boolean,default:!0},defaultList:{type:Array,default:()=>[]}},emits:["save","close","reset"],setup(e,{expose:U,emit:E}){const L=e,B=t([]),O=t([]),T=i({columns:B,data:O,onUpdateChecked:function({checked:e,column:t}){const i=!e||z(t.field);t.checkedAll=!i}}),D=()=>{E("save")},N=()=>{E("close")};function P(){O.value=A(L.defaultList),$(),E("reset")}function $(){B.value=Object.entries(C).map((([e,t])=>{const i=function(e){return e?["isShowSearch","filterExplicit","explicitRequired"].includes(e)?"checkbox":["defaultValue"].includes(e)?"select":["customTitle"].includes(e)?"input":["width"].includes(e)?"inputNumber":"text":"text"}(e),l={isShow:!0,title:t,type:i,field:e};return"checkbox"===i&&Object.assign(l,{checkedAll:!z(e),disabledAll:!1,isHeadCheckHide:["filterExplicit","explicitRequired"].includes(e)}),l}))}function z(e){return O.value.some((t=>("explicitRequired"!==e||F(t))&&!t[e]))}return l((()=>L.defaultList),(e=>{e.length>0&&(O.value=A(e),$())}),{immediate:!0,deep:!0}),U({getTableFields:()=>O.value}),(t,i)=>(a(),d("div",R,[r("div",q,[(a(!0),d(c,null,o(B.value,((e,t)=>(a(),d(c,{key:t},[e.isShow?(a(),d("span",{key:0,class:"table-cell",style:s(n(j)(e,t))},["checkbox"!==e.type||e.isHeadCheckHide?(a(),d(c,{key:1},[m(f(e.title),1)],64)):(a(),u(n(x),{key:0,checked:e.checkedAll,"onUpdate:checked":[t=>e.checkedAll=t,t=>{return i=t,l=e.field,void O.value.forEach((e=>{("explicitRequired"!==l||"explicitRequired"===l&&F(e))&&(e[l]=i)}));var i,l}],disabled:e.disabledAll},{default:p((()=>[m(f(e.title),1)])),_:2},1032,["checked","onUpdate:checked","disabled"]))],4)):h("v-if",!0)],64)))),128))]),r("div",V,[v(n(_),{modelValue:O.value,"onUpdate:modelValue":i[0]||(i[0]=e=>O.value=e),animation:"150","item-key":"id",draggable:".item"},{item:p((({element:e,index:t})=>[e.hide?h("v-if",!0):(a(),d("div",{key:0,class:"item",tabindex:t},[v(w,k(T,{element:e,idx:t+1}),null,16,["element","idx"])],8,H))])),_:1},8,["modelValue"])],512),e.footerFlag?(a(),d("div",S,[h(" 底部按钮插槽 "),b(t.$slots,"fieldFilterFooter",{},(()=>[v(n(y),{onPositiveClick:P},{trigger:p((()=>[v(n(g),{style:{"margin-right":"8px"}},{default:p((()=>[m("恢复默认设置")])),_:1})])),default:p((()=>[m(" 确认要恢复系统默认设置吗? ")])),_:1}),v(n(g),{style:{"margin-right":"8px"},onClick:N},{default:p((()=>[m("取消")])),_:1}),v(n(g),{type:"primary",onClick:D},{default:p((()=>[m("保存")])),_:1})]))])):h("v-if",!0)]))}});export{U as default};
|
@@ -73,6 +73,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
73
73
|
type: PropType<"column" | "tooltip">;
|
74
74
|
default: string;
|
75
75
|
};
|
76
|
+
developMode: {
|
77
|
+
type: BooleanConstructor;
|
78
|
+
};
|
76
79
|
}, {
|
77
80
|
fieldsMapping: Record<string, string>;
|
78
81
|
attrs: {
|
@@ -149,6 +152,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
149
152
|
type: PropType<"column" | "tooltip">;
|
150
153
|
default: string;
|
151
154
|
};
|
155
|
+
developMode: {
|
156
|
+
type: BooleanConstructor;
|
157
|
+
};
|
152
158
|
}>> & {
|
153
159
|
onSave?: ((...args: any[]) => any) | undefined;
|
154
160
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -195,6 +201,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
195
201
|
draggable: boolean;
|
196
202
|
isFieldSet: boolean;
|
197
203
|
fieldDescribeMode: "column" | "tooltip";
|
204
|
+
developMode: boolean;
|
198
205
|
};
|
199
206
|
searchData: {
|
200
207
|
keyword: string;
|
@@ -371,6 +378,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
371
378
|
type: PropType<"column" | "tooltip">;
|
372
379
|
default: string;
|
373
380
|
};
|
381
|
+
developMode: {
|
382
|
+
type: BooleanConstructor;
|
383
|
+
};
|
374
384
|
}, {
|
375
385
|
fixedWayOptions: {
|
376
386
|
label: string;
|
@@ -459,6 +469,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
459
469
|
type: PropType<"column" | "tooltip">;
|
460
470
|
default: string;
|
461
471
|
};
|
472
|
+
developMode: {
|
473
|
+
type: BooleanConstructor;
|
474
|
+
};
|
462
475
|
}>> & {
|
463
476
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
464
477
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -467,6 +480,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
467
480
|
onRemove: () => void;
|
468
481
|
onEdit: () => void;
|
469
482
|
isRenderTooltip: (field: string) => any;
|
483
|
+
getTooltipContent: () => any;
|
470
484
|
getTextValue: (field: string) => any;
|
471
485
|
isMultiple: (field: string) => boolean;
|
472
486
|
isRender: (field: string) => boolean;
|
@@ -569,6 +583,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
569
583
|
type: PropType<"column" | "tooltip">;
|
570
584
|
default: string;
|
571
585
|
};
|
586
|
+
developMode: {
|
587
|
+
type: BooleanConstructor;
|
588
|
+
};
|
572
589
|
}>> & {
|
573
590
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
574
591
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -611,6 +628,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
611
628
|
requiredDisable: boolean;
|
612
629
|
hide: boolean;
|
613
630
|
}>;
|
631
|
+
developMode: boolean;
|
614
632
|
draggable: boolean;
|
615
633
|
isHighlightRow: boolean;
|
616
634
|
idx: number;
|
@@ -696,6 +714,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
696
714
|
type: PropType<"column" | "tooltip">;
|
697
715
|
default: string;
|
698
716
|
};
|
717
|
+
developMode: {
|
718
|
+
type: BooleanConstructor;
|
719
|
+
};
|
699
720
|
}>> & {
|
700
721
|
onSave?: ((...args: any[]) => any) | undefined;
|
701
722
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -723,6 +744,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
723
744
|
}>[];
|
724
745
|
rowDraggable: boolean;
|
725
746
|
showSeq: boolean;
|
747
|
+
developMode: boolean;
|
726
748
|
footerFlag: boolean;
|
727
749
|
fieldDescribeMode: "column" | "tooltip";
|
728
750
|
customColumns: FieldSetColumnItem[];
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as l,ref as t,computed as i,reactive as o,watch as d,openBlock as a,createElementBlock as r,createBlock as s,unref as n,withKeys as u,withModifiers as c,createCommentVNode as f,createElementVNode as h,Fragment as p,renderList as m,normalizeStyle as y,withCtx as v,createTextVNode as b,toDisplayString as g,createVNode as k,normalizeClass as x,mergeProps as w,renderSlot as S}from"vue";import{NInput as A,NCheckbox as _,NTooltip as C,NIcon as D,NPopconfirm as F,NButton as
|
1
|
+
import{defineComponent as e,useAttrs as l,ref as t,computed as i,reactive as o,watch as d,openBlock as a,createElementBlock as r,createBlock as s,unref as n,withKeys as u,withModifiers as c,createCommentVNode as f,createElementVNode as h,Fragment as p,renderList as m,normalizeStyle as y,withCtx as v,createTextVNode as b,toDisplayString as g,createVNode as k,normalizeClass as x,mergeProps as w,renderSlot as S}from"vue";import{NInput as A,NCheckbox as _,NTooltip as C,NIcon as D,NPopconfirm as F,NButton as M}from"naive-ui";import W from"../../../shared/components/VueDraggable/src/vuedraggable.js";import E from"./components/table-row.vue.js";import{isArray as B,cloneDeep as H,isString as N,omit as P}from"lodash-es";import{isDisable as q,setStyle as V,isDraggableItem as j,isDraggable as R,getGroupTree as I}from"./utils/index.js";import{uuidGenerator as U}from"../../../shared/utils/index.js";import{HelpCircleSharp as O}from"@vicons/ionicons5";const T={class:"main-wrapper"},K={class:"main-wrapper__table-header"},G=h("span",null,"数值越小,优先级越高",-1),L=["tabindex"],$={key:1,class:"main-wrapper__table-footer"};var z=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}},emits:["save","close","reset"],setup(e,{expose:z,emit:J}){const Q=e,X={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"};l();const Y=t(""),Z=t(),ee=t([]),le=t([{title:"所有字段",type:"text",field:"title"},{title:"显示",type:"checkbox",checkedAll:!1,disabledAll:!!Q.fieldShowMaxValue,field:"show",fieldShowMaxValue:Q.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"}]),te=i((()=>ee.value.flat())),ie=i((()=>te.value.some((e=>e.feildDescribe)))),oe=o({columns:le,data:te,onUpdateChecked:function({checked:e,column:l}){const t=!e||he(l.field);l.checkedAll=!t},draggable:Q.rowDraggable,isFieldSet:!0,fieldDescribeMode:Q.fieldDescribeMode,developMode:Q.developMode}),de={keyword:Y.value,idx:0,startIdx:0},ae=()=>{J("save")},re=()=>{J("close")};function se(){ee.value=ne(),fe(),J("reset")}function ne(){const e=H(Q.fields).map((e=>({...e,uuid:U()})));return Object.keys(X).forEach((l=>{e.forEach((e=>{"old"==Q.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[X[l]]=1==e[l]:e[X[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=!!R(e)}))})),function(e){if(Q.groupSetting){return I(Q.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 ue(){const e=de.keyword!==Y.value;let l=Y.value?te.value.findIndex(((l,t)=>{var i;if(null==(i=l.title)?void 0:i.includes(Y.value))return!!e||t>de.idx})):0;-1!==l||e||(l=de.startIdx),Z.value.scrollTop=52*l,Object.assign(de,{keyword:Y.value,idx:l},e?{startIdx:l}:{})}function ce(e){var l;return!!Y.value&&(null==(l=e.title)?void 0:l.includes(Y.value))}function fe(){var e,l;(null==(e=Q.showColumnNames)?void 0:e.length)&&(le.value=le.value.filter((e=>{var l,t;return"title"===e.field||(null==(t=null==(l=Q.showColumnNames)?void 0:l.includes)?void 0:t.call(l,e.field))}))),(null==(l=Q.customColumns)?void 0:l.length)&&le.value.push(...Q.customColumns),"column"===Q.fieldDescribeMode&&ie.value&&le.value.push({title:"字段描述",type:"text",field:"feildDescribe"}),Q.showSeq&&le.value.splice(1,0,{title:"排序",type:"text",field:"seq"}),le.value.forEach((e=>{if(e.isShow=function(e){return!(["editable","required"].includes(e.field)&&!Q.isEdit||"sortPriority"===e.field&&!Q.showSortPriority||"isShowHeaderFilter"===e.field&&!Q.showHeadFilter)}(e),"checkbox"===e.type){const l=ee.value.flat().every((l=>!Reflect.has(l,e.field)));e.checkedAll=!he(e.field)&&!l}}))}function he(e){return ee.value.flat().some((l=>!q(l,e)&&!l[e]&&"0001"!=l.id))}function pe(e){return!!j(e.relatedContext.element)}return d([()=>Q.fields,()=>{var e;return null==(e=Q.showColumnNames)?void 0:e.length}],(([e,l])=>{e.length>0&&(ee.value=ne(),fe())}),{immediate:!0,deep:!0}),z({getTableFields:function(){let e=[];return e="old"==Q.type?te.value.map(((e,l)=>({id:e.id,field:e.name,visible:e.show,sequence:l,sortable:e.sort,title:e.alias,fixed:e.fixedWay,minWidth:e.columnWidth,bold:e.bold,sortDirection:e.sortDirection,sortPriority:e.sortPriority,...Q.isEdit?{required:e.required,editable:e.editable}:{}}))):te.value,e.map((e=>P(e,["uuid"])))}}),(l,t)=>(a(),r("div",T,[e.showSearch?(a(),s(n(A),{key:0,class:"main-wrapper__search-wrapper",value:Y.value,"onUpdate:value":t[0]||(t[0]=e=>Y.value=e),valueModifiers:{trim:!0},placeholder:"请输入字段标题",onKeydown:u(c(ue,["prevent"]),["enter"])},null,8,["value","onKeydown"])):f("v-if",!0),h("div",K,[(a(!0),r(p,null,m(le.value,((e,l)=>(a(),r(p,{key:l},[e.isShow?(a(),r("span",{key:0,class:"table-cell",style:y(n(V)(e,l))},["checkbox"!==e.type||e.isHeadCheckHide?(a(),r(p,{key:1},[b(g(e.title),1)],64)):(a(),s(n(_),{key:0,checked:e.checkedAll,"onUpdate:checked":[l=>e.checkedAll=l,l=>{return t=l,i=e.field,void te.value.forEach((e=>{q(e,i)||(e[i]=t)}));var t,i}],disabled:e.disabledAll},{default:v((()=>[b(g(e.title),1)])),_:2},1032,["checked","onUpdate:checked","disabled"])),"sortPriority"===e.field?(a(),s(n(C),{key:2,trigger:"hover"},{trigger:v((()=>[k(n(D),{component:n(O),style:{top:"2px"}},null,8,["component"])])),default:v((()=>[G])),_:1})):f("v-if",!0)],4)):f("v-if",!0)],64)))),128))]),h("div",{class:"main-wrapper__table-body",ref_key:"tableBodyRef",ref:Z},[k(n(W),{modelValue:ee.value,"onUpdate:modelValue":t[1]||(t[1]=e=>ee.value=e),animation:"150","item-key":"id",filter:".disabled",draggable:".item",move:pe,disabled:!e.rowDraggable},{item:v((({element:e,index:l})=>[e.hide?f("v-if",!0):(a(),r("div",{key:0,class:x(["item",n(j)(e)?"":"disabled"]),tabindex:l},[n(B)(e)?(a(!0),r(p,{key:0},m(e,((e,t)=>(a(),s(E,w(oe,{key:t,element:e,idx:l+1,"is-highlight":ce(e)}),null,16,["element","idx","is-highlight"])))),128)):(a(),s(E,w({key:1},oe,{element:e,idx:l+1,"is-highlight":ce(e)}),null,16,["element","idx","is-highlight"]))],10,L))])),_:1},8,["modelValue","disabled"])],512),e.footerFlag?(a(),r("div",$,[f(" 底部按钮插槽 "),S(l.$slots,"footer",{},(()=>[k(n(F),{onPositiveClick:se},{trigger:v((()=>[k(n(M),{style:{"margin-right":"8px"}},{default:v((()=>[b("恢复默认设置")])),_:1})])),default:v((()=>[b(" 确认要恢复系统默认设置吗? ")])),_:1}),k(n(M),{style:{"margin-right":"8px"},onClick:re},{default:v((()=>[b("取消")])),_:1}),k(n(M),{type:"primary",onClick:ae},{default:v((()=>[b("保存")])),_:1})]))])):f("v-if",!0)]))}});export{z as default};
|
@@ -76,6 +76,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
76
|
type: PropType<"column" | "tooltip">;
|
77
77
|
default: string;
|
78
78
|
};
|
79
|
+
developMode: {
|
80
|
+
type: BooleanConstructor;
|
81
|
+
};
|
79
82
|
}, {
|
80
83
|
fixedWayOptions: {
|
81
84
|
label: string;
|
@@ -164,6 +167,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
164
167
|
type: PropType<"column" | "tooltip">;
|
165
168
|
default: string;
|
166
169
|
};
|
170
|
+
developMode: {
|
171
|
+
type: BooleanConstructor;
|
172
|
+
};
|
167
173
|
}>> & {
|
168
174
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
169
175
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -172,6 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
172
178
|
onRemove: () => void;
|
173
179
|
onEdit: () => void;
|
174
180
|
isRenderTooltip: (field: string) => any;
|
181
|
+
getTooltipContent: () => any;
|
175
182
|
getTextValue: (field: string) => any;
|
176
183
|
isMultiple: (field: string) => boolean;
|
177
184
|
isRender: (field: string) => boolean;
|
@@ -274,6 +281,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
274
281
|
type: PropType<"column" | "tooltip">;
|
275
282
|
default: string;
|
276
283
|
};
|
284
|
+
developMode: {
|
285
|
+
type: BooleanConstructor;
|
286
|
+
};
|
277
287
|
}>> & {
|
278
288
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
279
289
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -316,6 +326,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
316
326
|
requiredDisable: boolean;
|
317
327
|
hide: boolean;
|
318
328
|
}>;
|
329
|
+
developMode: boolean;
|
319
330
|
draggable: boolean;
|
320
331
|
isHighlightRow: boolean;
|
321
332
|
idx: number;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./table-row.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","table-row.vue"]]);export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,openBlock as t,createElementBlock as l,Fragment as i,renderList as n,normalizeStyle as o,unref as a,createBlock as r,withCtx as d,createVNode as u,createCommentVNode as s,createElementVNode as c,toDisplayString as f,normalizeClass as p,withDirectives as m,vShow as v,resolveDynamicComponent as y,createTextVNode as g}from"vue";import{NTooltip as b,NIcon as h,NCheckbox as k,NSelect as x,NColorPicker as E,NInput as S,NInputNumber as D,NPopconfirm as T}from"naive-ui";import{setStyle as w,setColorInfo as C,isShowExplicitRequired as M,isDisable as N}from"../utils/index.js";import{ReorderTwoOutline as O,HelpCircleOutline as U,CreateOutline as j,TrashOutline as _}from"@vicons/ionicons5";import{isFunction as A,isArray as H,range as L}from"lodash-es";import{COLOR_MAP as P}from"../constants/index.js";import{WIDGET_TYPE as R,SELECT_MAP as F,WIDGET_MAP as V,SELECT_TYPE as B,SELECT_DEFAULT_MAP as I,DATE_MAP as q,DATETIME_MAP as W}from"../constants/filter.js";const G={class:"row"},z=["title"],J=c("span",null,"拖拽调整顺序",-1);var K=e({__name:"table-row",props:{element:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},idx:{type:Number,default:1},data:{type:Array,default:()=>[]},isHighlight:{type:Boolean},index:{type:Number,default:0},isHighlightRow:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},isFieldSet:{type:Boolean,default:!1},fieldDescribeMode:{type:String,default:"tooltip"},developMode:{type:Boolean}},emits:["updateChecked","edit"],setup(e,{emit:K}){const Q=e,X=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],Y=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],Z=[{label:"字体",value:"font"},{label:"背景",value:"background"}],$=Object.entries(P).map((([e])=>e));function ee(){Q.data.splice(Q.index,1)}function te(){K("edit",Q.element)}function le(){var e;return Q.element.feildDescribe||(null==(e=Q.element.settingObj)?void 0:e.fieldDescDev)}function ie(e){return"seq"===e?Q.idx:"optionType"===e?Q.element[e]&&Q.element.type===R.SELECT?F[Q.element[e]]:"":"type"===e?V[Q.element[e]]:Q.element[e]}function ne(e){if("defaultValue"===e){const{optionType:e}=Q.element;return e===B.SELECT_MULTIPLE}return!1}function oe(e){if("0001"==Q.element.id&&"fixedWay"!=e)return!1;const{isConfiguredHeaderFilter:t}=Q.element;return"isShowHeaderFilter"===e?!!t:!(["explicitRequired","defaultValue"].includes(e)&&![R.DATE,R.DATETIME,R.SELECT].includes(Q.element.type))}function ae(e){return!["explicitRequired","defaultValue"].includes(e)||M(Q.element)}function re(e){switch(e.field){case"fixedWay":return X;case"sortDirection":return Y;case"sortPriority":return function(){const e=L(1,Q.data.length+1).map((e=>({label:e.toString(),value:e}))),t=Q.data.filter((e=>!!e.sortPriority&&e.uuid!==Q.element.uuid)).map((e=>e.sortPriority));return e.filter((e=>!t.includes(e.value)))}();case"colorScope":return Z;case"defaultValue":{const{type:e,optionInfo:t}=Q.element;return e===R.SELECT?H(null==t?void 0:t.list)&&t.list.length>0?t.list.map((e=>({...e,label:e.name}))):Object.entries(I).map((([e,t])=>({value:e,label:t}))):e===R.DATE?Object.entries(q).map((([e,t])=>({value:e,label:t}))):e===R.DATETIME?Object.entries(W).map((([e,t])=>({value:e,label:t}))):[]}default:return[]}}function de(e){var t;if(1==Q.element.defaultMark||"color"===e.type&&Q.isHighlightRow)return!0;if("checkbox"===e.type)return"show"===e.field&&e.fieldShowMaxValue?!Q.element[e.field]&&(null==(t=Q.data.filter((t=>t[e.field])))?void 0:t.length)===e.fieldShowMaxValue:N(Q.element,e.field);if("sortPriority"!==e.field)return!1;const{sortDirection:l}=Q.element;return!l||"NONE"===l}function ue(e){return["title","result"].includes(e.field)&&Q.element.style||{}}return(M,N)=>(t(),l("div",G,[(t(!0),l(i,null,n(e.columns,((n,M)=>{return t(),l(i,{key:M},[n.isShow?(t(),l("span",{key:0,class:"table-cell",title:e.element[n.field],style:o(a(w)(n,M))},["text"===n.type?(t(),l(i,{key:0},[0===M?(t(),l(i,{key:0},[!e.isFieldSet||e.draggable&&e.isFieldSet?(t(),r(a(b),{key:0,trigger:"hover"},{trigger:d((()=>[u(a(h),{style:{"margin-right":"5px",top:"2px"},component:a(O)},null,8,["component"])])),default:d((()=>[J])),_:1})):s("v-if",!0),(H=n.field,"title"===H&&("tooltip"===Q.fieldDescribeMode&&Q.element.feildDescribe||Q.developMode&&(null==(L=Q.element.settingObj)?void 0:L.fieldDescDev))?(t(),r(a(b),{key:1,trigger:"hover"},{trigger:d((()=>[u(a(h),{style:{"margin-right":"5px",top:"2px"},component:a(U)},null,8,["component"])])),default:d((()=>[c("span",null,f(le()),1)])),_:1})):s("v-if",!0))],64)):s("v-if",!0),c("span",{class:p([e.isHighlight&&"title"===n.field?"highlight":""]),style:o(ue(n))},f(ie(n.field)),7)],64)):s("v-if",!0),"checkbox"===n.type&&oe(n.field)?m((t(),r(a(k),{key:1,disabled:de(n),checked:e.element[n.field],"onUpdate:checked":[t=>e.element[n.field]=t,e=>function(e,t){K("updateChecked",{checked:e,column:t})}(e,n)]},null,8,["disabled","checked","onUpdate:checked"])),[[v,ae(n.field)]]):s("v-if",!0),"select"===n.type&&oe(n.field)?m((t(),r(a(x),{key:2,clearable:"",multiple:ne(n.field),disabled:de(n),value:e.element[n.field],"onUpdate:value":[t=>e.element[n.field]=t,e=>function(e,t){"sortDirection"===t.field&&"NONE"===e&&(Q.element.sortPriority=null),"colorScope"===t.field&&C(Q.element)}(e,n)],options:re(n)},null,8,["multiple","disabled","value","onUpdate:value","options"])),[[v,ae(n.field)]]):s("v-if",!0),"color"===n.type?(t(),r(a(E),{key:3,class:"c-field-set__color-picker",clearable:"",disabled:de(n),value:e.element[n.field],"onUpdate:value":[t=>e.element[n.field]=t,N[0]||(N[0]=t=>a(C)(e.element))],"show-preview":"",modes:["hex"],swatches:a($)},null,8,["disabled","value","onUpdate:value","swatches"])):s("v-if",!0),"input"===n.type?m((t(),r(a(S),{key:4,value:e.element[n.field],"onUpdate:value":t=>e.element[n.field]=t,clearable:""},null,8,["value","onUpdate:value"])),[[v,"0001"!=e.element.id]]):s("v-if",!0),"inputNumber"===n.type?(t(),r(a(D),{key:5,value:e.element[n.field],"onUpdate:value":t=>e.element[n.field]=t},null,8,["value","onUpdate:value"])):s("v-if",!0),"custom"===n.type&&a(A)(n.contentRender)?(t(),r(y((()=>n.contentRender(n,e.element))),{key:6})):s("v-if",!0),"custom"===n.type&&"opt"===n.field&&1!=e.element.defaultMark?(t(),l(i,{key:7},[u(a(b),{trigger:"hover"},{trigger:d((()=>[u(a(h),{component:a(j),onClick:te},null,8,["component"])])),default:d((()=>[g(" 编辑 ")])),_:1}),u(a(T),{onPositiveClick:ee},{trigger:d((()=>[u(a(b),{trigger:"hover"},{trigger:d((()=>[u(a(h),{component:a(_)},null,8,["component"])])),default:d((()=>[g(" 删除 ")])),_:1})])),default:d((()=>[g(" 是否确认删除? ")])),_:1})],64)):s("v-if",!0)],12,z)):s("v-if",!0)],64);var H,L})),128))]))}});export{K as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,computed as a,inject as l,watch as
|
1
|
+
import{defineComponent as e,ref as t,computed as a,inject as l,watch as r,createVNode as o,nextTick as n}from"vue";import{connect as u,mapProps as i}from"@formily/vue";import{isEqual as s,toString as c,isArray as p,isString as d}from"lodash-es";import{NCascader as v}from"naive-ui";import"../../../index.js";import{useCommonInjection as m}from"../../hooks/useCommonInjection.js";import{InjectionChangeContextCollector as f,InjectionAsyncQueue as h,InjectionFormUUID as y}from"../../constants/index.js";import"@formily/path";import"@vueuse/core";import"../../../../../shared/utils/index.js";import"@formily/core";import"@vicons/ionicons5";import"@vue/shared";import"date-fns";import{assignUpdateValue as k,createVisitedSetter as j,traverseDependKey as g}from"../../utils/schema.js";import"../../hooks/useComplexOptions.js";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"@vueuse/shared";import"../../../../../shared/hooks/selectHooks/useSearchContent.js";import"./index.js";import{useFormField as b}from"../../hooks/useFormField.js";import"@formily/reactive";import"../../hooks/useFormValidator.js";const C=u(e({name:"FormCascader",props:{options:{type:Array,default:()=>[]},depth:{type:[Number,String]},urlConfig:{type:Object},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},onFocus:{type:Function},filterable:{type:Boolean,default:!1},checkStrategy:{type:String,default:"child"},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},onChange:{},value:{}},emits:["update:value"],setup(e,{slots:u,emit:i}){const k=t(),{field:C,title:S,fieldKey:F}=b(),w=t(1),A=t(!0);const H=a((()=>{var t,a,l;return null!=(l=null!=(a=null==(t=e.urlConfig)?void 0:t.nameKey)?a:e.labelField)?l:"text"})),x=a((()=>{var t,a,l;return null!=(l=null!=(a=null==(t=e.urlConfig)?void 0:t.valueKey)?a:e.valueField)?l:"value"}));l(f).setContext(F.value,(()=>({labelField:H.value,valueField:x.value})));const q=a((()=>{try{const t=Array.isArray(e.value)?e.value:JSON.parse(e.value||"");if(!Array.isArray(t)||!t.length)return null;const a=t.map((e=>e[x.value])).slice(-1).join(""),l=t.map((e=>e[H.value])).join(" / ");return a||l}catch(e){return null}}));function K(e,t,a){i("update:value",p(a)?a.map((function(e){return{...e,label:e[H.value],children:void 0,parent:void 0,mergeItemValue:void 0}})):null)}const V=l(h);async function B(t){e.filterable?await async function(){if(!e.urlConfig||k.value&&e.requestCache)return;const t=await V.addAsync({...e.urlConfig,params:{lvlnr:"1"},key:S.value,cache:e.requestCache,payload:{field:C.value,labelKey:H.value,valueKey:x.value}});function a(e,t,r){const o=[...r,...l(e)],n={[H.value]:e[H.value],[x.value]:e[x.value],depth:t+1,isLeaf:!0,keyword:e.keyword,mergeItemValue:o};return p(e.children)&&(n.children=e.children.map((e=>a(e,t+1,o))),n.isLeaf=!e.children.length),w.value=Math.max(w.value,t+1),n}function l(e){let t=[];if(d(e[H.value])&&(t=[...t,e[H.value]]),d(e.keyword)&&e.keyword.length>0){const a=e.keyword.split(",");t=[...t,...a]}return t}k.value=t.map((e=>a(e,0,[])))}():await async function(t){if(r(e,t))return;const a=await V.addAsync(o(s(t),i(e),S.value,t));if(!a.length&&t)return t.isLeaf=!0,K(0,0,n(t)),void(N.value=!1);const l=a.map((e=>u(e,s(t))));function r(e,t){return!i(e)||!t&&k.value&&e.requestCache||s(t)>=s(e)-1}function o(t,a,l,r){const o={lvlnr:t+1+""};return r&&a.dependKey&&g(a.dependKey,((e,t)=>{o[t]=r[e]})),{params:o,...a,key:l,cache:e.requestCache}}function n(e){let t=e;const a=[e];for(;t.parent;)a.unshift(t.parent),t=t.parent;return a}function u(a,l){return{[H.value]:a[H.value],[x.value]:a[x.value],depth:l+1,parent:t,isLeaf:l+2>=s(e)}}function i(e){return e.urlConfig}function s(e){var t;return null!=(t=null==e?void 0:e.depth)?t:-1}t?t.children=l:k.value=l}(t),await I()}const L=`form-render__cascade--menu-${l(y)}`;async function I(){await n();const e=document.querySelector(`.${L} .v-vl`);e&&e.dispatchEvent(new CustomEvent("scroll"))}function E(t,a){if(!t||!a)return!1;const{mergeItemValue:l}=a;return!(e.checkStrategy.includes("child")&&a.depth<w.value)&&(l.length>0&&l.some((e=>e.includes(t.trim()))))}const{injectValueValidate:O,injectValueWatchFromEmpty:W,injectValueBindKey:z}=m();W((()=>e.value),B),O((()=>e.value)),r((()=>e.urlConfig),(async(t,a)=>{s(t,a)||(k.value=null,A.value?e.lazyRequest||(B(),A.value=!A.value):await B())}),{immediate:!0});const N=t(!1);function P(e){N.value=!!e,e&&B()}const R=a((()=>U(k.value||e.options||[])));function U(e){return e.map((e=>{const t={...e};return t[x.value]=c(t[x.value]),p(e.children)&&(t.children=U(e.children)),t}))}const $=a((()=>!e.filterable)),_=z(q);return()=>o(v,{key:_.value,remote:$.value,filterable:e.filterable,"menu-props":{class:L,onClick:I},"check-strategy":e.checkStrategy,show:!!N.value,"onUpdate:show":P,value:q.value,filter:E,"onUpdate:value":K,labelField:H.value,valueField:x.value,options:R.value,onLoad:B,onFocus:j(C)},u)}}),i({dataSource:"options"},k));export{C as SEARCH_CASCADER};
|
@@ -202,11 +202,8 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
202
202
|
NPopover: any;
|
203
203
|
NButton: any;
|
204
204
|
NIcon: any;
|
205
|
-
NUpload: any;
|
206
|
-
NUploadTrigger: any;
|
207
205
|
ChatbubbleEllipses: 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<{}>>, {}>;
|
208
206
|
Close: 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<{}>>, {}>;
|
209
|
-
Camera: 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<{}>>, {}>;
|
210
207
|
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<{}>>, {}>;
|
211
208
|
EyeOffOutline: 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<{}>>, {}>;
|
212
209
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -230,14 +227,30 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
230
227
|
state: import("./src/types").IState;
|
231
228
|
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
232
229
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
230
|
+
inputRef: import("vue").Ref<any>;
|
231
|
+
groupNameEditing: import("vue").Ref<boolean>;
|
232
|
+
groupName: import("vue").Ref<string>;
|
233
|
+
currentGroupUserIds: import("vue").ComputedRef<any[]>;
|
233
234
|
handleTopping: (value: boolean) => Promise<void>;
|
235
|
+
handleToEdit: () => Promise<void>;
|
236
|
+
submitFormData: (o: import("../../shared/types").AnyObject) => Promise<void>;
|
237
|
+
handleGroupName: () => Promise<void>;
|
238
|
+
handleAvatar: (options: import("./src/types").FileOptions) => Promise<void>;
|
234
239
|
closeUserDetail: () => void;
|
235
240
|
NDrawer: any;
|
236
241
|
NDrawerContent: any;
|
237
242
|
NAvatar: any;
|
238
243
|
NIcon: any;
|
239
244
|
NSwitch: any;
|
245
|
+
NInput: any;
|
246
|
+
NSpace: any;
|
247
|
+
NButton: any;
|
248
|
+
NUploadTrigger: any;
|
249
|
+
NUpload: any;
|
240
250
|
ChevronForwardOutline: 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<{}>>, {}>;
|
251
|
+
Pencil: 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<{}>>, {}>;
|
252
|
+
AddOutline: 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<{}>>, {}>;
|
253
|
+
RemoveOutline: 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<{}>>, {}>;
|
241
254
|
PersonProfile: import("vue").DefineComponent<{
|
242
255
|
userId: {
|
243
256
|
type: StringConstructor;
|
@@ -287,11 +300,8 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
287
300
|
NPopover: any;
|
288
301
|
NButton: any;
|
289
302
|
NIcon: any;
|
290
|
-
NUpload: any;
|
291
|
-
NUploadTrigger: any;
|
292
303
|
ChatbubbleEllipses: 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<{}>>, {}>;
|
293
304
|
Close: 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<{}>>, {}>;
|
294
|
-
Camera: 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<{}>>, {}>;
|
295
305
|
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<{}>>, {}>;
|
296
306
|
EyeOffOutline: 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<{}>>, {}>;
|
297
307
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -308,6 +318,114 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
308
318
|
}, {
|
309
319
|
disabled: boolean;
|
310
320
|
}>;
|
321
|
+
ChatAdd: import("vue").DefineComponent<{
|
322
|
+
title: {
|
323
|
+
type: StringConstructor;
|
324
|
+
default: string;
|
325
|
+
};
|
326
|
+
mode: {
|
327
|
+
type: StringConstructor;
|
328
|
+
default: string;
|
329
|
+
};
|
330
|
+
options: {
|
331
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
|
332
|
+
};
|
333
|
+
disabledIds: {
|
334
|
+
type: import("vue").PropType<string[]>;
|
335
|
+
default: () => never[];
|
336
|
+
};
|
337
|
+
defaultValue: {
|
338
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
|
339
|
+
};
|
340
|
+
}, {
|
341
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
342
|
+
title: {
|
343
|
+
type: StringConstructor;
|
344
|
+
default: string;
|
345
|
+
};
|
346
|
+
mode: {
|
347
|
+
type: StringConstructor;
|
348
|
+
default: string;
|
349
|
+
};
|
350
|
+
options: {
|
351
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
|
352
|
+
};
|
353
|
+
disabledIds: {
|
354
|
+
type: import("vue").PropType<string[]>;
|
355
|
+
default: () => never[];
|
356
|
+
};
|
357
|
+
defaultValue: {
|
358
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
|
359
|
+
};
|
360
|
+
}>> & {
|
361
|
+
onComfirm?: ((...args: any[]) => any) | undefined;
|
362
|
+
}>>;
|
363
|
+
emit: (event: "comfirm", ...args: any[]) => void;
|
364
|
+
state: import("./src/types").IState;
|
365
|
+
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
366
|
+
listRef: import("vue").Ref<any>;
|
367
|
+
keyword: import("vue").Ref<string>;
|
368
|
+
showModal: import("vue").Ref<boolean>;
|
369
|
+
checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
370
|
+
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
371
|
+
groupName: import("vue").Ref<string>;
|
372
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
373
|
+
userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
374
|
+
handleInput: () => void;
|
375
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
376
|
+
defaultOptions: import("vue").ComputedRef<{
|
377
|
+
id: any;
|
378
|
+
name: any;
|
379
|
+
avatar: any;
|
380
|
+
}[]>;
|
381
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
382
|
+
btnDisabled: import("vue").ComputedRef<boolean>;
|
383
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
384
|
+
handlePositiveClick: () => Promise<void>;
|
385
|
+
updateCheckedSourceIds: () => void;
|
386
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
387
|
+
actionType: "check" | "uncheck";
|
388
|
+
value: string | number;
|
389
|
+
}) => void;
|
390
|
+
closeTag: (id: string) => void;
|
391
|
+
NModal: any;
|
392
|
+
NButton: any;
|
393
|
+
NSpace: any;
|
394
|
+
NAvatar: any;
|
395
|
+
NIcon: any;
|
396
|
+
NTag: any;
|
397
|
+
NInput: any;
|
398
|
+
NCheckbox: any;
|
399
|
+
NCheckboxGroup: any;
|
400
|
+
NTooltip: any;
|
401
|
+
SearchOutline: 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<{}>>, {}>;
|
402
|
+
AddOutline: 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<{}>>, {}>;
|
403
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
404
|
+
title: {
|
405
|
+
type: StringConstructor;
|
406
|
+
default: string;
|
407
|
+
};
|
408
|
+
mode: {
|
409
|
+
type: StringConstructor;
|
410
|
+
default: string;
|
411
|
+
};
|
412
|
+
options: {
|
413
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
|
414
|
+
};
|
415
|
+
disabledIds: {
|
416
|
+
type: import("vue").PropType<string[]>;
|
417
|
+
default: () => never[];
|
418
|
+
};
|
419
|
+
defaultValue: {
|
420
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
|
421
|
+
};
|
422
|
+
}>> & {
|
423
|
+
onComfirm?: ((...args: any[]) => any) | undefined;
|
424
|
+
}, {
|
425
|
+
mode: string;
|
426
|
+
title: string;
|
427
|
+
disabledIds: string[];
|
428
|
+
}>;
|
311
429
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
312
430
|
ChatFile: import("vue").DefineComponent<{
|
313
431
|
type: {
|
@@ -559,8 +677,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
559
677
|
}>>;
|
560
678
|
emit: (event: "comfirm", ...args: any[]) => void;
|
561
679
|
state: import("./src/types").IState;
|
680
|
+
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
562
681
|
listRef: import("vue").Ref<any>;
|
563
|
-
keyword: import("vue").Ref<
|
682
|
+
keyword: import("vue").Ref<string>;
|
564
683
|
showModal: import("vue").Ref<boolean>;
|
565
684
|
checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
566
685
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
@@ -584,7 +703,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
584
703
|
value: string | number;
|
585
704
|
}) => void;
|
586
705
|
closeTag: (id: string) => void;
|
587
|
-
renderTargetList: () => JSX.Element[] | null;
|
588
706
|
NModal: any;
|
589
707
|
NButton: any;
|
590
708
|
NSpace: any;
|
@@ -711,11 +829,8 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
711
829
|
NPopover: any;
|
712
830
|
NButton: any;
|
713
831
|
NIcon: any;
|
714
|
-
NUpload: any;
|
715
|
-
NUploadTrigger: any;
|
716
832
|
ChatbubbleEllipses: 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<{}>>, {}>;
|
717
833
|
Close: 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<{}>>, {}>;
|
718
|
-
Camera: 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<{}>>, {}>;
|
719
834
|
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<{}>>, {}>;
|
720
835
|
EyeOffOutline: 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<{}>>, {}>;
|
721
836
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -873,10 +988,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
873
988
|
isWrap: (event: KeyboardEvent) => boolean;
|
874
989
|
handleInput: () => void;
|
875
990
|
selectEmoji: (name: string) => void;
|
876
|
-
fileChange: (options:
|
877
|
-
file: import("naive-ui").UploadFileInfo;
|
878
|
-
fileList: import("naive-ui").UploadFileInfo[];
|
879
|
-
}, chatMessageType: import("./src/constants").MESSAGE_TYPE) => Promise<void>;
|
991
|
+
fileChange: (options: import("./src/types").FileOptions, chatMessageType: import("./src/constants").MESSAGE_TYPE) => Promise<void>;
|
880
992
|
handleMsgSend: () => void;
|
881
993
|
doSendMessage: (contentInfo: import("../../shared/types").AnyObject) => Promise<void>;
|
882
994
|
NButton: any;
|
@@ -929,8 +1041,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
929
1041
|
}>>;
|
930
1042
|
emit: (event: "comfirm", ...args: any[]) => void;
|
931
1043
|
state: import("./src/types").IState;
|
1044
|
+
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
932
1045
|
listRef: import("vue").Ref<any>;
|
933
|
-
keyword: import("vue").Ref<
|
1046
|
+
keyword: import("vue").Ref<string>;
|
934
1047
|
showModal: import("vue").Ref<boolean>;
|
935
1048
|
checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
936
1049
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
@@ -954,7 +1067,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
954
1067
|
value: string | number;
|
955
1068
|
}) => void;
|
956
1069
|
closeTag: (id: string) => void;
|
957
|
-
renderTargetList: () => JSX.Element[] | null;
|
958
1070
|
NModal: any;
|
959
1071
|
NButton: any;
|
960
1072
|
NSpace: any;
|
@@ -1121,8 +1233,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1121
1233
|
}>>;
|
1122
1234
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1123
1235
|
state: import("./src/types").IState;
|
1236
|
+
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
1124
1237
|
listRef: import("vue").Ref<any>;
|
1125
|
-
keyword: import("vue").Ref<
|
1238
|
+
keyword: import("vue").Ref<string>;
|
1126
1239
|
showModal: import("vue").Ref<boolean>;
|
1127
1240
|
checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1128
1241
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
@@ -1146,7 +1259,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1146
1259
|
value: string | number;
|
1147
1260
|
}) => void;
|
1148
1261
|
closeTag: (id: string) => void;
|
1149
|
-
renderTargetList: () => JSX.Element[] | null;
|
1150
1262
|
NModal: any;
|
1151
1263
|
NButton: any;
|
1152
1264
|
NSpace: any;
|
@@ -1344,8 +1456,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1344
1456
|
}>>;
|
1345
1457
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1346
1458
|
state: import("./src/types").IState;
|
1459
|
+
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
1347
1460
|
listRef: import("vue").Ref<any>;
|
1348
|
-
keyword: import("vue").Ref<
|
1461
|
+
keyword: import("vue").Ref<string>;
|
1349
1462
|
showModal: import("vue").Ref<boolean>;
|
1350
1463
|
checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1351
1464
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
@@ -1369,7 +1482,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1369
1482
|
value: string | number;
|
1370
1483
|
}) => void;
|
1371
1484
|
closeTag: (id: string) => void;
|
1372
|
-
renderTargetList: () => JSX.Element[] | null;
|
1373
1485
|
NModal: any;
|
1374
1486
|
NButton: any;
|
1375
1487
|
NSpace: any;
|