cnhis-design-vue 3.2.9-beta.19 → 3.2.9-beta.22

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.
Files changed (36) hide show
  1. package/es/components/base-search/index.d.ts +2 -0
  2. package/es/components/base-search/src/index.vue.d.ts +2 -0
  3. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  4. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  5. package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
  6. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  7. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  8. package/es/components/iho-chat/index.d.ts +245 -1
  9. package/es/components/iho-chat/src/Index.vue.d.ts +245 -1
  10. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  11. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -0
  12. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  13. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +121 -1
  14. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  15. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +1 -0
  16. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +122 -1
  17. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +120 -0
  18. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  19. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +1 -0
  20. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  21. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +1 -0
  22. package/es/components/iho-chat/src/hooks/useSession.js +1 -1
  23. package/es/components/iho-chat/src/hooks/useState.d.ts +5 -0
  24. package/es/components/iho-chat/src/hooks/useState.js +1 -1
  25. package/es/components/iho-chat/src/utils/chatSock.js +1 -1
  26. package/es/components/iho-chat/style/index.css +1 -1
  27. package/es/components/index.css +1 -1
  28. package/es/components/quick-search/index.d.ts +3 -0
  29. package/es/components/quick-search/src/index.vue.d.ts +3 -0
  30. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
  31. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  32. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  33. package/es/components/table-filter/src/types/index.d.ts +2 -0
  34. package/es/shared/package.json.js +1 -1
  35. package/es/shared/utils/index.js +1 -1
  36. package/package.json +2 -2
@@ -74,6 +74,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
74
74
  placeholder: string | undefined;
75
75
  advanceColWidth: number | null | undefined;
76
76
  accurateSearch: any;
77
+ extendKey: string;
77
78
  }[];
78
79
  transformParams: (paramsList: any[]) => any;
79
80
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -150,6 +151,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
150
151
  alias?: string | undefined;
151
152
  accurateSearch?: any;
152
153
  isAccurateSearchVal?: boolean | undefined;
154
+ extendKey?: string | undefined;
153
155
  }[]>;
154
156
  filterChangeFnList: import("vue").Ref<any[]>;
155
157
  showQuickSearch: import("vue").ComputedRef<boolean>;
@@ -75,6 +75,7 @@ declare const _default: import("vue").DefineComponent<{
75
75
  placeholder: string | undefined;
76
76
  advanceColWidth: number | null | undefined;
77
77
  accurateSearch: any;
78
+ extendKey: string;
78
79
  }[];
79
80
  transformParams: (paramsList: any[]) => any;
80
81
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -151,6 +152,7 @@ declare const _default: import("vue").DefineComponent<{
151
152
  alias?: string | undefined;
152
153
  accurateSearch?: any;
153
154
  isAccurateSearchVal?: boolean | undefined;
155
+ extendKey?: string | undefined;
154
156
  }[]>;
155
157
  filterChangeFnList: import("vue").Ref<any[]>;
156
158
  showQuickSearch: import("vue").ComputedRef<boolean>;
@@ -525,9 +525,9 @@ declare const _default: import("vue").DefineComponent<{
525
525
  }>;
526
526
  developMode: boolean;
527
527
  draggable: boolean;
528
+ isHighlightRow: boolean;
528
529
  idx: number;
529
530
  isHighlight: boolean;
530
- isHighlightRow: boolean;
531
531
  isFieldSet: boolean;
532
532
  fieldDescribeMode: "column" | "tooltip";
533
533
  hideExpressionOption: AnyObject[];
@@ -547,9 +547,9 @@ declare const _default: import("vue").DefineComponent<{
547
547
  }>;
548
548
  developMode: boolean;
549
549
  draggable: boolean;
550
+ isHighlightRow: boolean;
550
551
  idx: number;
551
552
  isHighlight: boolean;
552
- isHighlightRow: boolean;
553
553
  isFieldSet: boolean;
554
554
  fieldDescribeMode: "column" | "tooltip";
555
555
  hideExpressionOption: AnyObject[];
@@ -714,9 +714,9 @@ declare const _default: import("vue").DefineComponent<{
714
714
  }>;
715
715
  developMode: boolean;
716
716
  draggable: boolean;
717
+ isHighlightRow: boolean;
717
718
  idx: number;
718
719
  isHighlight: boolean;
719
- isHighlightRow: boolean;
720
720
  isFieldSet: boolean;
721
721
  fieldDescribeMode: "column" | "tooltip";
722
722
  hideExpressionOption: AnyObject[];
@@ -849,8 +849,8 @@ declare const _default: import("vue").DefineComponent<{
849
849
  developMode: boolean;
850
850
  footerFlag: boolean;
851
851
  fieldDescribeMode: "column" | "tooltip";
852
- customColumns: FieldSetColumnItem[];
853
852
  showSearch: boolean;
853
+ customColumns: FieldSetColumnItem[];
854
854
  showSortPriority: boolean;
855
855
  showHeadFilter: boolean;
856
856
  }>;
@@ -380,9 +380,9 @@ declare const _default: import("vue").DefineComponent<{
380
380
  }>;
381
381
  developMode: boolean;
382
382
  draggable: boolean;
383
+ isHighlightRow: boolean;
383
384
  idx: number;
384
385
  isHighlight: boolean;
385
- isHighlightRow: boolean;
386
386
  isFieldSet: boolean;
387
387
  fieldDescribeMode: "column" | "tooltip";
388
388
  hideExpressionOption: AnyObject[];
@@ -1 +1 @@
1
- import{defineComponent as e,openBlock as t,createElementBlock as l,Fragment as i,renderList as n,normalizeStyle as r,unref as a,createBlock as o,withCtx as d,createVNode as u,createCommentVNode as s,createElementVNode as c,toDisplayString as f,resolveDynamicComponent as p,normalizeClass as m,withDirectives as v,vShow as y,mergeProps as h,createTextVNode as g}from"vue";import{NTooltip as b,NIcon as k,NCheckbox as x,NPopover as E,NSpace as S,NSelect as D,NColorPicker as w,NInput as T,NInputNumber as O,NPopconfirm as R}from"naive-ui";import{setStyle as M,setColorInfo as N,isShowExplicitRequired as U,isDisable as P}from"../utils/index.js";import{ReorderTwoOutline as _,HelpCircleOutline as j,CaretDownOutline as A,CreateOutline as C,TrashOutline as F}from"@vicons/ionicons5";import{isFunction as L,isArray as I,range as H}from"lodash-es";import{COLOR_MAP as B}from"../constants/index.js";import{WIDGET_TYPE as V,SELECT_MAP as W,WIDGET_MAP as q,SELECT_TYPE as K,SELECT_DEFAULT_MAP as $,DATE_MAP as z,DATETIME_MAP as G}from"../constants/filter.js";const J={class:"row"},Q=["title"],X=c("span",null,"拖拽调整顺序",-1),Y={key:0};var Z=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},columnWidthProps:{type:Object},hideExpressionOption:{type:Array,default:()=>[]},primaryKey:{type:String,default:"id"},titleRender:{type:Function}},emits:["updateChecked","edit"],setup(e,{emit:Z}){const ee=e,te=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],le=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],ie=[{label:"字体",value:"font"},{label:"背景",value:"background"}],ne=Object.entries(B).map((([e])=>e));function re(){ee.data.splice(ee.index,1)}function ae(){Z("edit",ee.element)}function oe(){var e;return ee.element.feildDescribe||(null==(e=ee.element.settingObj)?void 0:e.fieldDescDev)}function de(e){return"seq"===e?ee.idx:"optionType"===e?ee.element[e]&&ee.element.type===V.SELECT?W[ee.element[e]]:"":"type"===e?q[ee.element[e]]:ee.element[e]}function ue(e){if("defaultValue"===e){const{optionType:e}=ee.element;return e===K.SELECT_MULTIPLE}return!1}function se(e){if("0001"==ee.element.id&&"fixedWay"!=e)return!1;const{isConfiguredHeaderFilter:t}=ee.element;return"isShowHeaderFilter"===e?!!t:!(["explicitRequired","defaultValue"].includes(e)&&![V.DATE,V.DATETIME,V.SELECT].includes(ee.element.type))}function ce(e){return["explicitRequired","defaultValue"].includes(e)?U(ee.element):!["isSum","isAvg"].includes(e)||"NUMBER"===ee.element.fieldType}function fe(e){const{relation:t}=ee.element;return"isSearch"===e&&I(null==t?void 0:t.fieldList)&&t.fieldList.length>0}function pe(e){if("hideExpression"===e)return"PASSWORD"===ee.element.attrType?"密码无需设置":ee.element.name===ee.primaryKey||ee.element.columnName===ee.primaryKey?"主键不可设置":ee.element.disableDesensitization||ee.element[`${e}Disabled`]?"不支持脱敏设置":void 0}function me(e){const t={valueField:"value",labelField:"label"};return"hideExpression"===e&&(t.valueField="ruleId",t.labelField="name"),t}function ve(e){var t;switch(e.field){case"fixedWay":return te;case"sortDirection":return le;case"sortPriority":return function(){const e=H(1,ee.data.length+1).map((e=>({label:e.toString(),value:e}))),t=ee.data.filter((e=>!!e.sortPriority&&e.uuid!==ee.element.uuid)).map((e=>e.sortPriority));return e.filter((e=>!t.includes(e.value)))}();case"colorScope":return ie;case"hideExpression":return null==(t=ee.hideExpressionOption)?void 0:t.map((e=>({...e,ruleId:`ruleId#${e.code}`})));case"defaultValue":{const{type:e,optionInfo:t}=ee.element;return e===V.SELECT?I(null==t?void 0:t.list)&&t.list.length>0?t.list.map((e=>({...e,label:e.name}))):Object.entries($).map((([e,t])=>({value:e,label:t}))):e===V.DATE?Object.entries(z).map((([e,t])=>({value:e,label:t}))):e===V.DATETIME?Object.entries(G).map((([e,t])=>({value:e,label:t}))):[]}default:return[]}}function ye(e){var t;if(1==ee.element.defaultMark||"color"===e.type&&ee.isHighlightRow)return!0;if("checkbox"===e.type){if("show"===e.field&&e.fieldShowMaxValue)return!ee.element[e.field]&&(null==(t=ee.data.filter((t=>t[e.field])))?void 0:t.length)===e.fieldShowMaxValue;if(["isSearch","isSum","isAvg"].includes(e.field)){if(Reflect.has(ee.element,"isMerge"))return 1==ee.element.isMerge;if("isSearch"===e.field&&Reflect.has(ee.element,"notParticipatingSearch"))return 1==ee.element.notParticipatingSearch}return P(ee.element,e.field)}if("sortPriority"===e.field){const{sortDirection:e}=ee.element;return!e||"NONE"===e}return P(ee.element,e.field)}function he(e){return["title","result"].includes(e.field)&&ee.element.style||{}}return(U,P)=>(t(),l("div",J,[(t(!0),l(i,null,n(e.columns,((U,I)=>{return t(),l(i,{key:I},[U.isShow?(t(),l("span",{key:0,class:"table-cell",title:e.element[U.field],style:r(a(M)(U,I,e.columnWidthProps))},["text"===U.type?(t(),l(i,{key:0},[0===I?(t(),l(i,{key:0},[!e.isFieldSet||e.draggable&&e.isFieldSet?(t(),o(a(b),{key:0,trigger:"hover"},{trigger:d((()=>[u(a(k),{style:{"margin-right":"5px",top:"2px"},component:a(_)},null,8,["component"])])),default:d((()=>[X])),_:1})):s("v-if",!0),(H=U.field,"title"===H&&("tooltip"===ee.fieldDescribeMode&&ee.element.feildDescribe||ee.developMode&&(null==(B=ee.element.settingObj)?void 0:B.fieldDescDev))?(t(),o(a(b),{key:1,trigger:"hover"},{trigger:d((()=>[u(a(k),{style:{"margin-right":"5px",top:"2px"},component:a(j)},null,8,["component"])])),default:d((()=>[c("span",null,f(oe()),1)])),_:1})):s("v-if",!0)),a(L)(e.titleRender)?(t(),o(p((()=>e.titleRender(e.element))),{key:2})):s("v-if",!0)],64)):s("v-if",!0),0===I&&a(L)(e.titleRender)?s("v-if",!0):(t(),l("span",{key:1,class:m([e.isHighlight&&"title"===U.field?"highlight":""]),style:r(he(U))},f(de(U.field)),7))],64)):s("v-if",!0),"checkbox"===U.type&&se(U.field)?(t(),l(i,{key:1},[v(u(a(x),{disabled:ye(U),checked:e.element[U.field],"onUpdate:checked":[t=>e.element[U.field]=t,e=>function(e,t){Z("updateChecked",{checked:e,column:t})}(e,U)]},null,8,["disabled","checked","onUpdate:checked"]),[[y,ce(U.field)]]),fe(U.field)?(t(),o(a(E),{key:0,placement:"right-start","show-arrow":!1},{trigger:d((()=>[u(a(k),{style:{"margin-left":"5px",top:"2px"},component:a(A)},null,8,["component"])])),default:d((()=>[c("div",null,[c("span",null,f(e.element.relation.tableName),1),u(a(S),{"wrap-item":!1,vertical:""},{default:d((()=>[(t(!0),l(i,null,n(e.element.relation.fieldList,(e=>v((t(),o(a(x),{key:e.id,checked:e.checked,"onUpdate:checked":t=>e.checked=t,label:e.title},null,8,["checked","onUpdate:checked","label"])),[[y,"0001"!==e.sid]]))),128))])),_:1})])])),_:1})):s("v-if",!0)],64)):s("v-if",!0),"select"===U.type&&se(U.field)?(t(),l(i,{key:2},[pe(U.field)?(t(),l("span",Y,f(pe(U.field)),1)):v((t(),o(a(D),h({key:1},me(U.field),{clearable:"",multiple:ue(U.field),disabled:ye(U),value:e.element[U.field],"onUpdate:value":[t=>e.element[U.field]=t,e=>function(e,t){"sortDirection"!==t.field||"NONE"!==e&&e||(ee.element.sortPriority=null),"colorScope"===t.field&&N(ee.element)}(e,U)],options:ve(U)}),null,16,["multiple","disabled","value","onUpdate:value","options"])),[[y,ce(U.field)]])],64)):s("v-if",!0),"color"===U.type?(t(),o(a(w),{key:3,class:"c-field-set__color-picker",clearable:"",disabled:ye(U),value:e.element[U.field],"onUpdate:value":[t=>e.element[U.field]=t,P[0]||(P[0]=t=>a(N)(e.element))],"show-preview":"",modes:["hex"],swatches:a(ne)},null,8,["disabled","value","onUpdate:value","swatches"])):s("v-if",!0),"input"===U.type?v((t(),o(a(T),{key:4,value:e.element[U.field],"onUpdate:value":t=>e.element[U.field]=t,clearable:""},null,8,["value","onUpdate:value"])),[[y,"0001"!=e.element.id]]):s("v-if",!0),"inputNumber"===U.type?(t(),o(a(O),{key:5,value:e.element[U.field],"onUpdate:value":t=>e.element[U.field]=t},null,8,["value","onUpdate:value"])):s("v-if",!0),"custom"===U.type&&a(L)(U.contentRender)?(t(),o(p((()=>U.contentRender(U,e.element))),{key:6})):s("v-if",!0),"custom"===U.type&&"opt"===U.field&&1!=e.element.defaultMark?(t(),l(i,{key:7},[u(a(b),{trigger:"hover"},{trigger:d((()=>[u(a(k),{component:a(C),onClick:ae},null,8,["component"])])),default:d((()=>[g(" 编辑 ")])),_:1}),u(a(R),{onPositiveClick:re},{trigger:d((()=>[u(a(b),{trigger:"hover"},{trigger:d((()=>[u(a(k),{component:a(F)},null,8,["component"])])),default:d((()=>[g(" 删除 ")])),_:1})])),default:d((()=>[g(" 是否确认删除? ")])),_:1})],64)):s("v-if",!0)],12,Q)):s("v-if",!0)],64);var H,B})),128))]))}});export{Z as default};
1
+ import{defineComponent as e,openBlock as t,createElementBlock as l,Fragment as i,renderList as n,normalizeStyle as r,unref as a,createBlock as o,withCtx as d,createVNode as u,createCommentVNode as s,createElementVNode as c,toDisplayString as f,resolveDynamicComponent as p,normalizeClass as m,withDirectives as v,vShow as y,mergeProps as h,createTextVNode as g}from"vue";import{NTooltip as b,NIcon as k,NCheckbox as x,NPopover as E,NSpace as S,NSelect as D,NColorPicker as w,NInput as T,NInputNumber as O,NPopconfirm as R}from"naive-ui";import{setStyle as M,setColorInfo as N,isShowExplicitRequired as U,isDisable as P}from"../utils/index.js";import{ReorderTwoOutline as _,HelpCircleOutline as j,CaretDownOutline as A,CreateOutline as C,TrashOutline as F}from"@vicons/ionicons5";import{isFunction as L,isArray as H,range as I}from"lodash-es";import{COLOR_MAP as B}from"../constants/index.js";import{WIDGET_TYPE as V,SELECT_MAP as W,WIDGET_MAP as q,SELECT_TYPE as K,SELECT_DEFAULT_MAP as $,DATE_MAP as z,DATETIME_MAP as G}from"../constants/filter.js";const J={class:"row"},Q=["title"],X=c("span",null,"拖拽调整顺序",-1),Y={key:0};var Z=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},columnWidthProps:{type:Object},hideExpressionOption:{type:Array,default:()=>[]},primaryKey:{type:String,default:"id"},titleRender:{type:Function}},emits:["updateChecked","edit"],setup(e,{emit:Z}){const ee=e,te=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],le=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],ie=[{label:"字体",value:"font"},{label:"背景",value:"background"}],ne=Object.entries(B).map((([e])=>e));function re(){ee.data.splice(ee.index,1)}function ae(){Z("edit",ee.element)}function oe(){var e;return ee.element.feildDescribe||(null==(e=ee.element.settingObj)?void 0:e.fieldDescDev)}function de(e){return"seq"===e?ee.idx:"optionType"===e?ee.element[e]&&ee.element.type===V.SELECT?W[ee.element[e]]:"":"type"===e?q[ee.element[e]]:ee.element[e]}function ue(e){if("defaultValue"===e){const{optionType:e}=ee.element;return e===K.SELECT_MULTIPLE}return!1}function se(e){if("0001"==ee.element.id&&"fixedWay"!=e)return!1;const{isConfiguredHeaderFilter:t}=ee.element;return"isShowHeaderFilter"===e?!!t:!(["explicitRequired","defaultValue"].includes(e)&&![V.DATE,V.DATETIME,V.SELECT].includes(ee.element.type)||["editable"].includes(e)&&ee.element[`${e}Hide`])}function ce(e){return["explicitRequired","defaultValue"].includes(e)?U(ee.element):!["isSum","isAvg"].includes(e)||"NUMBER"===ee.element.fieldType}function fe(e){const{relation:t}=ee.element;return"isSearch"===e&&H(null==t?void 0:t.fieldList)&&t.fieldList.length>0}function pe(e){if("hideExpression"===e)return"PASSWORD"===ee.element.attrType?"密码无需设置":ee.element.name===ee.primaryKey||ee.element.columnName===ee.primaryKey?"主键不可设置":ee.element.disableDesensitization||ee.element[`${e}Disabled`]?"不支持脱敏设置":void 0}function me(e){const t={valueField:"value",labelField:"label"};return"hideExpression"===e&&(t.valueField="ruleId",t.labelField="name"),t}function ve(e){var t;switch(e.field){case"fixedWay":return te;case"sortDirection":return le;case"sortPriority":return function(){const e=I(1,ee.data.length+1).map((e=>({label:e.toString(),value:e}))),t=ee.data.filter((e=>!!e.sortPriority&&e.uuid!==ee.element.uuid)).map((e=>e.sortPriority));return e.filter((e=>!t.includes(e.value)))}();case"colorScope":return ie;case"hideExpression":return null==(t=ee.hideExpressionOption)?void 0:t.map((e=>({...e,ruleId:`ruleId#${e.code}`})));case"defaultValue":{const{type:e,optionInfo:t}=ee.element;return e===V.SELECT?H(null==t?void 0:t.list)&&t.list.length>0?t.list.map((e=>({...e,label:e.name}))):Object.entries($).map((([e,t])=>({value:e,label:t}))):e===V.DATE?Object.entries(z).map((([e,t])=>({value:e,label:t}))):e===V.DATETIME?Object.entries(G).map((([e,t])=>({value:e,label:t}))):[]}default:return[]}}function ye(e){var t;if(1==ee.element.defaultMark||"color"===e.type&&ee.isHighlightRow)return!0;if("checkbox"===e.type){if("show"===e.field&&e.fieldShowMaxValue)return!ee.element[e.field]&&(null==(t=ee.data.filter((t=>t[e.field])))?void 0:t.length)===e.fieldShowMaxValue;if(["isSearch","isSum","isAvg"].includes(e.field)){if(Reflect.has(ee.element,"isMerge"))return 1==ee.element.isMerge;if("isSearch"===e.field&&Reflect.has(ee.element,"notParticipatingSearch"))return 1==ee.element.notParticipatingSearch}return P(ee.element,e.field)}if("sortPriority"===e.field){const{sortDirection:e}=ee.element;return!e||"NONE"===e}return P(ee.element,e.field)}function he(e){return["title","result"].includes(e.field)&&ee.element.style||{}}return(U,P)=>(t(),l("div",J,[(t(!0),l(i,null,n(e.columns,((U,H)=>{return t(),l(i,{key:H},[U.isShow?(t(),l("span",{key:0,class:"table-cell",title:e.element[U.field],style:r(a(M)(U,H,e.columnWidthProps))},["text"===U.type?(t(),l(i,{key:0},[0===H?(t(),l(i,{key:0},[!e.isFieldSet||e.draggable&&e.isFieldSet?(t(),o(a(b),{key:0,trigger:"hover"},{trigger:d((()=>[u(a(k),{style:{"margin-right":"5px",top:"2px"},component:a(_)},null,8,["component"])])),default:d((()=>[X])),_:1})):s("v-if",!0),(I=U.field,"title"===I&&("tooltip"===ee.fieldDescribeMode&&ee.element.feildDescribe||ee.developMode&&(null==(B=ee.element.settingObj)?void 0:B.fieldDescDev))?(t(),o(a(b),{key:1,trigger:"hover"},{trigger:d((()=>[u(a(k),{style:{"margin-right":"5px",top:"2px"},component:a(j)},null,8,["component"])])),default:d((()=>[c("span",null,f(oe()),1)])),_:1})):s("v-if",!0)),a(L)(e.titleRender)?(t(),o(p((()=>e.titleRender(e.element))),{key:2})):s("v-if",!0)],64)):s("v-if",!0),0===H&&a(L)(e.titleRender)?s("v-if",!0):(t(),l("span",{key:1,class:m([e.isHighlight&&"title"===U.field?"highlight":""]),style:r(he(U))},f(de(U.field)),7))],64)):s("v-if",!0),"checkbox"===U.type&&se(U.field)?(t(),l(i,{key:1},[v(u(a(x),{disabled:ye(U),checked:e.element[U.field],"onUpdate:checked":[t=>e.element[U.field]=t,e=>function(e,t){Z("updateChecked",{checked:e,column:t})}(e,U)]},null,8,["disabled","checked","onUpdate:checked"]),[[y,ce(U.field)]]),fe(U.field)?(t(),o(a(E),{key:0,placement:"right-start","show-arrow":!1},{trigger:d((()=>[u(a(k),{style:{"margin-left":"5px",top:"2px"},component:a(A)},null,8,["component"])])),default:d((()=>[c("div",null,[c("span",null,f(e.element.relation.tableName),1),u(a(S),{"wrap-item":!1,vertical:""},{default:d((()=>[(t(!0),l(i,null,n(e.element.relation.fieldList,(e=>v((t(),o(a(x),{key:e.id,checked:e.checked,"onUpdate:checked":t=>e.checked=t,label:e.title},null,8,["checked","onUpdate:checked","label"])),[[y,"0001"!==e.sid]]))),128))])),_:1})])])),_:1})):s("v-if",!0)],64)):s("v-if",!0),"select"===U.type&&se(U.field)?(t(),l(i,{key:2},[pe(U.field)?(t(),l("span",Y,f(pe(U.field)),1)):v((t(),o(a(D),h({key:1},me(U.field),{clearable:"",multiple:ue(U.field),disabled:ye(U),value:e.element[U.field],"onUpdate:value":[t=>e.element[U.field]=t,e=>function(e,t){"sortDirection"!==t.field||"NONE"!==e&&e||(ee.element.sortPriority=null),"colorScope"===t.field&&N(ee.element)}(e,U)],options:ve(U)}),null,16,["multiple","disabled","value","onUpdate:value","options"])),[[y,ce(U.field)]])],64)):s("v-if",!0),"color"===U.type?(t(),o(a(w),{key:3,class:"c-field-set__color-picker",clearable:"",disabled:ye(U),value:e.element[U.field],"onUpdate:value":[t=>e.element[U.field]=t,P[0]||(P[0]=t=>a(N)(e.element))],"show-preview":"",modes:["hex"],swatches:a(ne)},null,8,["disabled","value","onUpdate:value","swatches"])):s("v-if",!0),"input"===U.type?v((t(),o(a(T),{key:4,value:e.element[U.field],"onUpdate:value":t=>e.element[U.field]=t,clearable:""},null,8,["value","onUpdate:value"])),[[y,"0001"!=e.element.id]]):s("v-if",!0),"inputNumber"===U.type?(t(),o(a(O),{key:5,value:e.element[U.field],"onUpdate:value":t=>e.element[U.field]=t},null,8,["value","onUpdate:value"])):s("v-if",!0),"custom"===U.type&&a(L)(U.contentRender)?(t(),o(p((()=>U.contentRender(U,e.element))),{key:6})):s("v-if",!0),"custom"===U.type&&"opt"===U.field&&1!=e.element.defaultMark?(t(),l(i,{key:7},[u(a(b),{trigger:"hover"},{trigger:d((()=>[u(a(k),{component:a(C),onClick:ae},null,8,["component"])])),default:d((()=>[g(" 编辑 ")])),_:1}),u(a(R),{onPositiveClick:re},{trigger:d((()=>[u(a(b),{trigger:"hover"},{trigger:d((()=>[u(a(k),{component:a(F)},null,8,["component"])])),default:d((()=>[g(" 删除 ")])),_:1})])),default:d((()=>[g(" 是否确认删除? ")])),_:1})],64)):s("v-if",!0)],12,Q)):s("v-if",!0)],64);var I,B})),128))]))}});export{Z as default};
@@ -379,6 +379,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
379
379
  options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
380
380
  groupName: import("vue").Ref<string>;
381
381
  checkedSourceIds: import("vue").Ref<(string | number)[]>;
382
+ remark: import("vue").Ref<string>;
382
383
  userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
383
384
  handleInput: () => void;
384
385
  _disabledIds: import("vue").ComputedRef<any[]>;
@@ -458,6 +459,11 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
458
459
  };
459
460
  }>> & {}>>;
460
461
  state: import("./src/types").IState;
462
+ relayMessage: (param: {
463
+ checkedIds: string[];
464
+ remark: string;
465
+ content: import("../../shared/types").AnyObject;
466
+ }) => Promise<void>;
461
467
  imageList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
462
468
  fileList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
463
469
  imageRef: import("vue").Ref<any>;
@@ -472,7 +478,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
472
478
  handleSearch: () => Promise<void>;
473
479
  formatImageList: (data: import("../../shared/types").AnyObject[]) => {
474
480
  label: string;
475
- list: unknown;
481
+ list: any;
476
482
  }[];
477
483
  resetAndSearch: () => void;
478
484
  title: import("vue").ComputedRef<"聊天图片" | "聊天文件">;
@@ -485,8 +491,122 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
485
491
  NIcon: any;
486
492
  NTooltip: any;
487
493
  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<{}>>, {}>;
494
+ OpenOutline: 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<{}>>, {}>;
488
495
  DownloadOutline: 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<{}>>, {}>;
489
496
  downloadFile: typeof import("./src/utils").downloadFile;
497
+ ChatAdd: import("vue").DefineComponent<{
498
+ title: {
499
+ type: StringConstructor;
500
+ default: string;
501
+ };
502
+ mode: {
503
+ type: StringConstructor;
504
+ default: string;
505
+ };
506
+ options: {
507
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
508
+ };
509
+ disabledIds: {
510
+ type: import("vue").PropType<string[]>;
511
+ default: () => never[];
512
+ };
513
+ defaultValue: {
514
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
515
+ default: () => never[];
516
+ };
517
+ }, {
518
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
519
+ title: {
520
+ type: StringConstructor;
521
+ default: string;
522
+ };
523
+ mode: {
524
+ type: StringConstructor;
525
+ default: string;
526
+ };
527
+ options: {
528
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
529
+ };
530
+ disabledIds: {
531
+ type: import("vue").PropType<string[]>;
532
+ default: () => never[];
533
+ };
534
+ defaultValue: {
535
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
536
+ default: () => never[];
537
+ };
538
+ }>> & {
539
+ onComfirm?: ((...args: any[]) => any) | undefined;
540
+ }>>;
541
+ emit: (event: "comfirm", ...args: any[]) => void;
542
+ state: import("./src/types").IState;
543
+ setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
544
+ listRef: import("vue").Ref<any>;
545
+ keyword: import("vue").Ref<string>;
546
+ showModal: import("vue").Ref<boolean>;
547
+ checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
548
+ options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
549
+ groupName: import("vue").Ref<string>;
550
+ checkedSourceIds: import("vue").Ref<(string | number)[]>;
551
+ remark: import("vue").Ref<string>;
552
+ userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
553
+ handleInput: () => void;
554
+ _disabledIds: import("vue").ComputedRef<any[]>;
555
+ defaultOptions: import("vue").ComputedRef<{
556
+ id: any;
557
+ name: any;
558
+ avatar: any;
559
+ }[]>;
560
+ checkedIds: import("vue").ComputedRef<any[]>;
561
+ btnDisabled: import("vue").ComputedRef<boolean>;
562
+ allChecked: import("vue").WritableComputedRef<boolean>;
563
+ handlePositiveClick: () => Promise<void>;
564
+ updateCheckedSourceIds: () => void;
565
+ handleSourceIdsUpdate: (value: (string | number)[], meta: {
566
+ actionType: "check" | "uncheck";
567
+ value: string | number;
568
+ }) => void;
569
+ closeTag: (id: string) => void;
570
+ NModal: any;
571
+ NButton: any;
572
+ NSpace: any;
573
+ NAvatar: any;
574
+ NIcon: any;
575
+ NTag: any;
576
+ NInput: any;
577
+ NCheckbox: any;
578
+ NCheckboxGroup: any;
579
+ NTooltip: any;
580
+ 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<{}>>, {}>;
581
+ 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<{}>>, {}>;
582
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
583
+ title: {
584
+ type: StringConstructor;
585
+ default: string;
586
+ };
587
+ mode: {
588
+ type: StringConstructor;
589
+ default: string;
590
+ };
591
+ options: {
592
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
593
+ };
594
+ disabledIds: {
595
+ type: import("vue").PropType<string[]>;
596
+ default: () => never[];
597
+ };
598
+ defaultValue: {
599
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
600
+ default: () => never[];
601
+ };
602
+ }>> & {
603
+ onComfirm?: ((...args: any[]) => any) | undefined;
604
+ }, {
605
+ defaultValue: import("../../shared/types").AnyObject[];
606
+ mode: string;
607
+ title: string;
608
+ disabledIds: string[];
609
+ }>;
490
610
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
491
611
  type: {
492
612
  type: StringConstructor;
@@ -699,6 +819,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
699
819
  options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
700
820
  groupName: import("vue").Ref<string>;
701
821
  checkedSourceIds: import("vue").Ref<(string | number)[]>;
822
+ remark: import("vue").Ref<string>;
702
823
  userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
703
824
  handleInput: () => void;
704
825
  _disabledIds: import("vue").ComputedRef<any[]>;
@@ -763,12 +884,18 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
763
884
  chatMainRef: import("vue").Ref<HTMLElement | undefined>;
764
885
  state: import("./src/types").IState;
765
886
  setMsgList: (list?: import("../../shared/types").AnyObject[]) => void;
887
+ relayMessage: (param: {
888
+ checkedIds: string[];
889
+ remark: string;
890
+ content: import("../../shared/types").AnyObject;
891
+ }) => Promise<void>;
766
892
  setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
767
893
  isGroupChat: import("vue").ComputedRef<boolean>;
768
894
  contextmenuRef: import("vue").Ref<any>;
769
895
  showMenu: import("vue").Ref<boolean>;
770
896
  menuPosition: any;
771
897
  menuMsgId: import("vue").Ref<any>;
898
+ relayTriggerRef: import("vue").Ref<any>;
772
899
  pageInfo: {
773
900
  page: number;
774
901
  hasMore: boolean;
@@ -795,6 +922,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
795
922
  resetInfo: () => void;
796
923
  setReferenceMsg: (msgItem: import("../../shared/types").AnyObject) => void;
797
924
  handleSelect: (key: string, msgItem: import("../../shared/types").AnyObject) => void;
925
+ handleRelay: (checkedIds: string[], remark: string) => void;
798
926
  reEdit: (item: import("../../shared/types").AnyObject) => void;
799
927
  NAvatar: any;
800
928
  NImageGroup: any;
@@ -980,6 +1108,119 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
980
1108
  }, {
981
1109
  show: boolean;
982
1110
  }>;
1111
+ ChatAdd: import("vue").DefineComponent<{
1112
+ title: {
1113
+ type: StringConstructor;
1114
+ default: string;
1115
+ };
1116
+ mode: {
1117
+ type: StringConstructor;
1118
+ default: string;
1119
+ };
1120
+ options: {
1121
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1122
+ };
1123
+ disabledIds: {
1124
+ type: import("vue").PropType<string[]>;
1125
+ default: () => never[];
1126
+ };
1127
+ defaultValue: {
1128
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1129
+ default: () => never[];
1130
+ };
1131
+ }, {
1132
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1133
+ title: {
1134
+ type: StringConstructor;
1135
+ default: string;
1136
+ };
1137
+ mode: {
1138
+ type: StringConstructor;
1139
+ default: string;
1140
+ };
1141
+ options: {
1142
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1143
+ };
1144
+ disabledIds: {
1145
+ type: import("vue").PropType<string[]>;
1146
+ default: () => never[];
1147
+ };
1148
+ defaultValue: {
1149
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1150
+ default: () => never[];
1151
+ };
1152
+ }>> & {
1153
+ onComfirm?: ((...args: any[]) => any) | undefined;
1154
+ }>>;
1155
+ emit: (event: "comfirm", ...args: any[]) => void;
1156
+ state: import("./src/types").IState;
1157
+ setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
1158
+ listRef: import("vue").Ref<any>;
1159
+ keyword: import("vue").Ref<string>;
1160
+ showModal: import("vue").Ref<boolean>;
1161
+ checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1162
+ options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1163
+ groupName: import("vue").Ref<string>;
1164
+ checkedSourceIds: import("vue").Ref<(string | number)[]>;
1165
+ remark: import("vue").Ref<string>;
1166
+ userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1167
+ handleInput: () => void;
1168
+ _disabledIds: import("vue").ComputedRef<any[]>;
1169
+ defaultOptions: import("vue").ComputedRef<{
1170
+ id: any;
1171
+ name: any;
1172
+ avatar: any;
1173
+ }[]>;
1174
+ checkedIds: import("vue").ComputedRef<any[]>;
1175
+ btnDisabled: import("vue").ComputedRef<boolean>;
1176
+ allChecked: import("vue").WritableComputedRef<boolean>;
1177
+ handlePositiveClick: () => Promise<void>;
1178
+ updateCheckedSourceIds: () => void;
1179
+ handleSourceIdsUpdate: (value: (string | number)[], meta: {
1180
+ actionType: "check" | "uncheck";
1181
+ value: string | number;
1182
+ }) => void;
1183
+ closeTag: (id: string) => void;
1184
+ NModal: any;
1185
+ NButton: any;
1186
+ NSpace: any;
1187
+ NAvatar: any;
1188
+ NIcon: any;
1189
+ NTag: any;
1190
+ NInput: any;
1191
+ NCheckbox: any;
1192
+ NCheckboxGroup: any;
1193
+ NTooltip: any;
1194
+ 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<{}>>, {}>;
1195
+ 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<{}>>, {}>;
1196
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1197
+ title: {
1198
+ type: StringConstructor;
1199
+ default: string;
1200
+ };
1201
+ mode: {
1202
+ type: StringConstructor;
1203
+ default: string;
1204
+ };
1205
+ options: {
1206
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1207
+ };
1208
+ disabledIds: {
1209
+ type: import("vue").PropType<string[]>;
1210
+ default: () => never[];
1211
+ };
1212
+ defaultValue: {
1213
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1214
+ default: () => never[];
1215
+ };
1216
+ }>> & {
1217
+ onComfirm?: ((...args: any[]) => any) | undefined;
1218
+ }, {
1219
+ defaultValue: import("../../shared/types").AnyObject[];
1220
+ mode: string;
1221
+ title: string;
1222
+ disabledIds: string[];
1223
+ }>;
983
1224
  simplifyMessage: typeof import("./src/utils").simplifyMessage;
984
1225
  isAudioOrVideoMessage: typeof import("./src/utils").isAudioOrVideoMessage;
985
1226
  getAVTime: typeof import("./src/utils").getAVTime;
@@ -1077,6 +1318,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1077
1318
  options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1078
1319
  groupName: import("vue").Ref<string>;
1079
1320
  checkedSourceIds: import("vue").Ref<(string | number)[]>;
1321
+ remark: import("vue").Ref<string>;
1080
1322
  userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1081
1323
  handleInput: () => void;
1082
1324
  _disabledIds: import("vue").ComputedRef<any[]>;
@@ -1273,6 +1515,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1273
1515
  options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1274
1516
  groupName: import("vue").Ref<string>;
1275
1517
  checkedSourceIds: import("vue").Ref<(string | number)[]>;
1518
+ remark: import("vue").Ref<string>;
1276
1519
  userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1277
1520
  handleInput: () => void;
1278
1521
  _disabledIds: import("vue").ComputedRef<any[]>;
@@ -1500,6 +1743,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1500
1743
  options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1501
1744
  groupName: import("vue").Ref<string>;
1502
1745
  checkedSourceIds: import("vue").Ref<(string | number)[]>;
1746
+ remark: import("vue").Ref<string>;
1503
1747
  userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1504
1748
  handleInput: () => void;
1505
1749
  _disabledIds: import("vue").ComputedRef<any[]>;