cnhis-design-vue 3.3.2-beta.12 → 3.3.2-beta.6
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/audio-sdk/src/Index.vue2.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/src/index.vue2.js +15 -27
- package/es/components/big-table/src/BigTable.vue2.js +131 -189
- package/es/components/big-table/src/components/NoData.vue2.js +4 -16
- package/es/components/big-table/src/components/edit-form/edit-date.js +6 -12
- package/es/components/big-table/src/components/edit-form/edit-input.js +2 -8
- package/es/components/big-table/src/components/edit-form/edit-select.js +17 -21
- package/es/components/big-table/src/components/edit-form/edit-time.js +4 -11
- package/es/components/big-table/src/components/input-button.vue2.js +3 -7
- package/es/components/big-table/src/hooks/useNestTable.js +4 -18
- package/es/components/big-table/src/hooks/useTableParse.js +3 -16
- package/es/components/body-select/src/index.vue2.js +4 -24
- package/es/components/button-print/index.d.ts +0 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +0 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +11 -52
- package/es/components/button-print/src/components/EditFormat.vue2.js +6 -14
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +43 -94
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +94 -229
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +0 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +32 -92
- package/es/components/button-print/src/components/Preview.vue2.js +2 -8
- package/es/components/button-print/src/utils/dialog.js +6 -24
- package/es/components/button-print/src/utils/print.d.ts +5 -5
- package/es/components/button-print/src/utils/print.js +21 -108
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +2 -8
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +4 -16
- package/es/components/card-reader-sdk-cn/src/henan/index.js +11 -38
- package/es/components/classification/src/components/search-filter/index.vue2.js +10 -24
- package/es/components/classification/src/components/set-classification/index.vue2.js +6 -23
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/components/table-modal/index.vue2.js +165 -324
- package/es/components/classification/src/index.vue2.js +69 -261
- package/es/components/default-page/src/constants/index.js +19 -144
- package/es/components/default-page/src/index.vue2.js +2 -8
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +51 -75
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +38 -46
- package/es/components/expand-field/src/components/PersonModal.vue2.js +50 -62
- package/es/components/expand-field/src/components/form.vue2.js +412 -783
- package/es/components/expand-field/src/index.vue2.js +22 -88
- package/es/components/expand-field/src/utils/constant.js +12 -88
- package/es/components/fabric-chart/src/components/PopupMenu.js +15 -32
- package/es/components/fabric-chart/src/constants/index.js +10 -72
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -16
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +2 -8
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +5 -32
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +2 -8
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +41 -63
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -5
- package/es/components/fabric-chart/src/hooks/useCommon.js +4 -24
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -2
- package/es/components/field-editor/src/fields.js +30 -232
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldColor.vue2.js +21 -88
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +12 -28
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +57 -210
- package/es/components/field-set/src/Index.vue2.js +6 -40
- package/es/components/field-set/src/TableStyle.vue2.js +13 -48
- package/es/components/field-set/src/components/condition.vue2.js +11 -27
- package/es/components/field-set/src/components/edit-dialog.vue2.js +69 -149
- package/es/components/field-set/src/components/edit-filter.vue2.js +4 -24
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue2.js +42 -123
- package/es/components/field-set/src/constants/filter.js +42 -328
- package/es/components/field-set/src/constants/index.js +64 -504
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +46 -91
- package/es/components/form-config/src/constants/index.js +11 -80
- package/es/components/form-config/src/hooks/useLocale.js +31 -240
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +3 -7
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +3 -7
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +2 -8
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +3 -7
- package/es/components/form-render/src/components/renderer/remoteSearch.js +2 -8
- package/es/components/form-render/src/components/renderer/switch.js +4 -24
- package/es/components/form-render/src/utils/schema.js +6 -26
- package/es/components/iho-chat/src/Index.vue2.js +38 -42
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +33 -108
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +90 -132
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +48 -110
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +15 -35
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +22 -54
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +45 -77
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +208 -256
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +211 -309
- package/es/components/iho-chat/src/components/ContextMenu.js +9 -50
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +4 -16
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +2 -8
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +18 -104
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +12 -67
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +43 -47
- package/es/components/iho-chat/src/components/SiderList.vue2.js +40 -70
- package/es/components/iho-chat/src/components/Video.vue2.js +11 -38
- package/es/components/iho-chat/src/hooks/useVideo.js +4 -15
- package/es/components/iho-chat/src/utils/index.js +14 -79
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +2 -8
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +15 -40
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +15 -40
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +20 -50
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +6 -14
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +3 -10
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +18 -45
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +14 -20
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +23 -142
- package/es/components/keyboard/src/Keyboard.vue2.js +9 -21
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +35 -49
- package/es/components/map/src/Map.vue2.js +3 -7
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +6 -14
- package/es/components/quick-search/src/index.vue2.js +132 -177
- package/es/components/recommend-search/src/components/BaseSearch.js +8 -14
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +8 -28
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +5 -18
- package/es/components/scale-view/src/ScaleView.vue2.js +7 -15
- package/es/components/scale-view/src/components/NoData.vue2.js +4 -16
- package/es/components/scale-view/src/components/formitem/r-cascader.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +6 -24
- package/es/components/scale-view/src/components/formitem/r-input.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-map.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-radio.js +6 -24
- package/es/components/scale-view/src/components/formitem/r-select.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-sign.js +9 -30
- package/es/components/scale-view/src/components/formitem/standard-modal.js +3 -16
- package/es/components/scale-view/src/hooks/scaleview-computed.js +5 -24
- package/es/components/scale-view/src/hooks/scaleview-methods.js +4 -16
- package/es/components/scale-view/src/hooks/scaleview-submit.js +3 -16
- package/es/components/scale-view/src/hooks/scaleview-validate.js +9 -40
- package/es/components/search-cascader/src/SearchCascader.vue2.js +14 -20
- package/es/components/select-label/src/LabelFormContent.vue2.js +21 -53
- package/es/components/select-label/src/SelectLabel.vue2.js +55 -85
- package/es/components/select-label/src/components/label-classify.vue2.js +11 -28
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +5 -18
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +8 -34
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +5 -18
- package/es/components/select-person/src/SelectPerson.vue2.js +141 -214
- package/es/components/select-person/src/SelectPersonType.vue2.js +105 -130
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +2 -9
- package/es/components/select-person/src/index.vue2.js +7 -20
- package/es/components/slider-tree/src/index.vue2.js +3 -16
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +112 -186
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +88 -147
- package/es/components/table-export-field/src/index.vue2.js +12 -28
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +5 -32
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +34 -264
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +135 -214
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +3 -16
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +2 -9
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +6 -39
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +5 -18
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +18 -29
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +3 -16
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +2 -8
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +130 -195
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +7 -26
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +7 -13
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +8 -34
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +8 -21
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +3 -7
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +6 -19
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +3 -16
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +10 -24
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +207 -1648
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +2 -8
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +3 -16
- package/es/components/table-filter/src/tool/baseOptions.js +19 -144
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +12 -28
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +2 -22
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +3 -7
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +6 -14
- package/es/env.d.ts +25 -25
- package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -10,6 +10,7 @@ import { trim, isFunction } from 'lodash-es';
|
|
10
10
|
import 'trtc-sdk-v5';
|
11
11
|
import ChatAdd from './ChatAdd.vue.js';
|
12
12
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
13
14
|
const _hoisted_1 = {
|
14
15
|
key: 0,
|
15
16
|
class: "chat-set-wrapper"
|
@@ -36,14 +37,7 @@ const _hoisted_7 = {
|
|
36
37
|
};
|
37
38
|
const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", {
|
38
39
|
class: "label"
|
39
|
-
},
|
40
|
-
var _a, _b, _c;
|
41
|
-
try {
|
42
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.85")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.85")) || "\u7FA4\u6210\u5458";
|
43
|
-
} catch (e) {
|
44
|
-
return "\u7FA4\u6210\u5458";
|
45
|
-
}
|
46
|
-
}(), -1);
|
40
|
+
}, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.85")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.85")) || "\u7FA4\u6210\u5458", -1);
|
47
41
|
const _hoisted_9 = {
|
48
42
|
class: "group-box"
|
49
43
|
};
|
@@ -56,51 +50,23 @@ const _hoisted_12 = {
|
|
56
50
|
};
|
57
51
|
const _hoisted_13 = /* @__PURE__ */ createElementVNode("span", {
|
58
52
|
class: "name"
|
59
|
-
},
|
60
|
-
var _a, _b, _c;
|
61
|
-
try {
|
62
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.86")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.86")) || "\u6DFB\u52A0";
|
63
|
-
} catch (e) {
|
64
|
-
return "\u6DFB\u52A0";
|
65
|
-
}
|
66
|
-
}(), -1);
|
53
|
+
}, ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.86")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.86")) || "\u6DFB\u52A0", -1);
|
67
54
|
const _hoisted_14 = {
|
68
55
|
class: "group-box__item"
|
69
56
|
};
|
70
57
|
const _hoisted_15 = /* @__PURE__ */ createElementVNode("span", {
|
71
58
|
class: "name"
|
72
|
-
},
|
73
|
-
var _a, _b, _c;
|
74
|
-
try {
|
75
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.88")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.88")) || "\u79FB\u9664";
|
76
|
-
} catch (e) {
|
77
|
-
return "\u79FB\u9664";
|
78
|
-
}
|
79
|
-
}(), -1);
|
59
|
+
}, ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.88")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "10010.1.88")) || "\u79FB\u9664", -1);
|
80
60
|
const _hoisted_16 = ["onClick"];
|
81
61
|
const _hoisted_17 = /* @__PURE__ */ createElementVNode("span", {
|
82
62
|
class: "label"
|
83
|
-
},
|
84
|
-
var _a, _b, _c;
|
85
|
-
try {
|
86
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.90")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.90")) || "\u7FA4\u5934\u50CF";
|
87
|
-
} catch (e) {
|
88
|
-
return "\u7FA4\u5934\u50CF";
|
89
|
-
}
|
90
|
-
}(), -1);
|
63
|
+
}, ((_j = window.getLanguageByCode) == null ? void 0 : _j.call(window, "10010.1.90")) || ((_l = (_k = window.top) == null ? void 0 : _k.getLanguageByCode) == null ? void 0 : _l.call(_k, "10010.1.90")) || "\u7FA4\u5934\u50CF", -1);
|
91
64
|
const _hoisted_18 = {
|
92
65
|
class: "item"
|
93
66
|
};
|
94
67
|
const _hoisted_19 = /* @__PURE__ */ createElementVNode("span", {
|
95
68
|
class: "label"
|
96
|
-
},
|
97
|
-
var _a, _b, _c;
|
98
|
-
try {
|
99
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.91")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.91")) || "\u7FA4\u540D\u79F0";
|
100
|
-
} catch (e) {
|
101
|
-
return "\u7FA4\u540D\u79F0";
|
102
|
-
}
|
103
|
-
}(), -1);
|
69
|
+
}, ((_m = window.getLanguageByCode) == null ? void 0 : _m.call(window, "10010.1.91")) || ((_o = (_n = window.top) == null ? void 0 : _n.getLanguageByCode) == null ? void 0 : _o.call(_n, "10010.1.91")) || "\u7FA4\u540D\u79F0", -1);
|
104
70
|
const _hoisted_20 = {
|
105
71
|
class: "item__right"
|
106
72
|
};
|
@@ -112,64 +78,29 @@ const _hoisted_22 = {
|
|
112
78
|
};
|
113
79
|
const _hoisted_23 = /* @__PURE__ */ createElementVNode("span", {
|
114
80
|
class: "label"
|
115
|
-
},
|
116
|
-
var _a, _b, _c;
|
117
|
-
try {
|
118
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.92")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.92")) || "\u7F6E\u9876\u804A\u5929";
|
119
|
-
} catch (e) {
|
120
|
-
return "\u7F6E\u9876\u804A\u5929";
|
121
|
-
}
|
122
|
-
}(), -1);
|
81
|
+
}, ((_p = window.getLanguageByCode) == null ? void 0 : _p.call(window, "10010.1.92")) || ((_r = (_q = window.top) == null ? void 0 : _q.getLanguageByCode) == null ? void 0 : _r.call(_q, "10010.1.92")) || "\u7F6E\u9876\u804A\u5929", -1);
|
123
82
|
const _hoisted_24 = {
|
124
83
|
class: "item item--red"
|
125
84
|
};
|
126
85
|
const _hoisted_25 = /* @__PURE__ */ createElementVNode("span", {
|
127
86
|
class: "label"
|
128
|
-
},
|
129
|
-
var _a, _b, _c;
|
130
|
-
try {
|
131
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.93")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.93")) || "\u9000\u51FA\u7FA4\u804A";
|
132
|
-
} catch (e) {
|
133
|
-
return "\u9000\u51FA\u7FA4\u804A";
|
134
|
-
}
|
135
|
-
}(), -1);
|
87
|
+
}, ((_s = window.getLanguageByCode) == null ? void 0 : _s.call(window, "10010.1.93")) || ((_u = (_t = window.top) == null ? void 0 : _t.getLanguageByCode) == null ? void 0 : _u.call(_t, "10010.1.93")) || "\u9000\u51FA\u7FA4\u804A", -1);
|
136
88
|
const _hoisted_26 = /* @__PURE__ */ createElementVNode("p", {
|
137
89
|
style: {
|
138
90
|
"width": "230px"
|
139
91
|
}
|
140
|
-
},
|
141
|
-
var _a, _b, _c;
|
142
|
-
try {
|
143
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.94")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.94")) || "\u662F\u5426\u786E\u8BA4\u9000\u51FA\u7FA4\u804A\uFF1F";
|
144
|
-
} catch (e) {
|
145
|
-
return "\u662F\u5426\u786E\u8BA4\u9000\u51FA\u7FA4\u804A\uFF1F";
|
146
|
-
}
|
147
|
-
}(), -1);
|
92
|
+
}, ((_v = window.getLanguageByCode) == null ? void 0 : _v.call(window, "10010.1.94")) || ((_x = (_w = window.top) == null ? void 0 : _w.getLanguageByCode) == null ? void 0 : _x.call(_w, "10010.1.94")) || "\u662F\u5426\u786E\u8BA4\u9000\u51FA\u7FA4\u804A\uFF1F", -1);
|
148
93
|
const _hoisted_27 = {
|
149
94
|
class: "item item--red"
|
150
95
|
};
|
151
96
|
const _hoisted_28 = /* @__PURE__ */ createElementVNode("span", {
|
152
97
|
class: "label"
|
153
|
-
},
|
154
|
-
var _a, _b, _c;
|
155
|
-
try {
|
156
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.95")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.95")) || "\u89E3\u6563\u8BE5\u7FA4";
|
157
|
-
} catch (e) {
|
158
|
-
return "\u89E3\u6563\u8BE5\u7FA4";
|
159
|
-
}
|
160
|
-
}(), -1);
|
98
|
+
}, ((_y = window.getLanguageByCode) == null ? void 0 : _y.call(window, "10010.1.95")) || ((_A = (_z = window.top) == null ? void 0 : _z.getLanguageByCode) == null ? void 0 : _A.call(_z, "10010.1.95")) || "\u89E3\u6563\u8BE5\u7FA4", -1);
|
161
99
|
const _hoisted_29 = /* @__PURE__ */ createElementVNode("p", {
|
162
100
|
style: {
|
163
101
|
"width": "230px"
|
164
102
|
}
|
165
|
-
},
|
166
|
-
var _a, _b, _c;
|
167
|
-
try {
|
168
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.96")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.96")) || "\u662F\u5426\u786E\u8BA4\u89E3\u6563\u7FA4\u804A\uFF1F";
|
169
|
-
} catch (e) {
|
170
|
-
return "\u662F\u5426\u786E\u8BA4\u89E3\u6563\u7FA4\u804A\uFF1F";
|
171
|
-
}
|
172
|
-
}(), -1);
|
103
|
+
}, ((_B = window.getLanguageByCode) == null ? void 0 : _B.call(window, "10010.1.96")) || ((_D = (_C = window.top) == null ? void 0 : _C.getLanguageByCode) == null ? void 0 : _D.call(_C, "10010.1.96")) || "\u662F\u5426\u786E\u8BA4\u89E3\u6563\u7FA4\u804A\uFF1F", -1);
|
173
104
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
174
105
|
__name: "ChatSet",
|
175
106
|
setup(__props) {
|
@@ -215,19 +146,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
215
146
|
});
|
216
147
|
}
|
217
148
|
async function handleToEdit() {
|
218
|
-
var
|
149
|
+
var _a2;
|
219
150
|
groupName.value = state.currentSessionItem.name;
|
220
151
|
groupNameEditing.value = true;
|
221
152
|
await nextTick();
|
222
|
-
(
|
153
|
+
(_a2 = inputRef.value) == null ? void 0 : _a2.select();
|
223
154
|
}
|
224
155
|
async function submitFormData(o) {
|
225
156
|
const formData = new FormData();
|
226
|
-
const
|
157
|
+
const _o2 = Object.assign({
|
227
158
|
id: state.currentSessionItem.receiver
|
228
159
|
}, o);
|
229
|
-
for (const k in
|
230
|
-
formData.append(k,
|
160
|
+
for (const k in _o2) {
|
161
|
+
formData.append(k, _o2[k]);
|
231
162
|
}
|
232
163
|
await groupUpdateApi(formData);
|
233
164
|
}
|
@@ -250,8 +181,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
250
181
|
} = options.file;
|
251
182
|
const reader = new FileReader();
|
252
183
|
reader.onload = function(event) {
|
253
|
-
var
|
254
|
-
if (!((
|
184
|
+
var _a2;
|
185
|
+
if (!((_a2 = event.target) == null ? void 0 : _a2.result))
|
255
186
|
return;
|
256
187
|
setCurrentSessionItem({
|
257
188
|
avatar: event.target.result
|
@@ -279,247 +210,218 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
279
210
|
onAfterLeave: _cache[8] || (_cache[8] = ($event) => showGroupDetail.value = false)
|
280
211
|
}, {
|
281
212
|
default: withCtx(() => [createVNode(unref(NDrawerContent), null, {
|
282
|
-
header: withCtx(() =>
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
}
|
290
|
-
}, {
|
291
|
-
icon: withCtx(() => [createVNode(unref(NIcon), {
|
292
|
-
size: 20,
|
293
|
-
component: unref(ChevronBackOutline)
|
294
|
-
}, null, 8, ["component"])]),
|
295
|
-
default: withCtx(() => [createTextVNode(function() {
|
296
|
-
var _a, _b, _c;
|
297
|
-
try {
|
298
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.82")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.82")) || "\u8FD4\u56DE";
|
299
|
-
} catch (e) {
|
300
|
-
return "\u8FD4\u56DE";
|
301
|
-
}
|
302
|
-
}())]),
|
303
|
-
_: 1
|
304
|
-
})) : unref(isGroupChat) ? (openBlock(), createElementBlock(Fragment, {
|
305
|
-
key: 1
|
306
|
-
}, [createTextVNode(function() {
|
307
|
-
var _a, _b, _c;
|
308
|
-
try {
|
309
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.83")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.83")) || "\u7FA4\u8BBE\u7F6E";
|
310
|
-
} catch (e) {
|
311
|
-
return "\u7FA4\u8BBE\u7F6E";
|
312
|
-
}
|
313
|
-
}())], 64)) : (openBlock(), createElementBlock(Fragment, {
|
314
|
-
key: 2
|
315
|
-
}, [createTextVNode(function() {
|
316
|
-
var _a, _b, _c;
|
317
|
-
try {
|
318
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.66")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.66")) || "\u804A\u5929\u8BBE\u7F6E";
|
319
|
-
} catch (e) {
|
320
|
-
return "\u804A\u5929\u8BBE\u7F6E";
|
321
|
-
}
|
322
|
-
}())], 64))]),
|
323
|
-
default: withCtx(() => [unref(state).id ? (openBlock(), createElementBlock("div", _hoisted_1, [unref(isGroupChat) && showGroupDetail.value ? (openBlock(true), createElementBlock(Fragment, {
|
324
|
-
key: 0
|
325
|
-
}, renderList(unref(state).currentGroupUser, (user, index) => {
|
326
|
-
return openBlock(), createElementBlock("div", {
|
327
|
-
key: user.id,
|
328
|
-
class: "item",
|
329
|
-
onClick: (event) => unref(setUserDetail)(event, {
|
330
|
-
show: true,
|
331
|
-
userId: user.id
|
332
|
-
})
|
333
|
-
}, [createVNode(unref(NAvatar), {
|
334
|
-
round: "",
|
335
|
-
size: 40,
|
336
|
-
src: user.avatar
|
337
|
-
}, null, 8, ["src"]), createElementVNode("div", _hoisted_3, [createElementVNode("span", _hoisted_4, toDisplayString(user.name), 1), withDirectives(createElementVNode("label", {
|
338
|
-
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(user.roleInfo) ? "isDoctor" : ""]),
|
213
|
+
header: withCtx(() => {
|
214
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
215
|
+
return [unref(isGroupChat) && showGroupDetail.value ? (openBlock(), createBlock(unref(NButton), {
|
216
|
+
key: 0,
|
217
|
+
text: "",
|
218
|
+
color: "#666",
|
219
|
+
onClick: _cache[0] || (_cache[0] = ($event) => showGroupDetail.value = false),
|
339
220
|
style: {
|
340
|
-
"
|
341
|
-
}
|
342
|
-
}, toDisplayString(unref(getRoleName)(user.roleInfo)), 3), [[vShow, unref(getRoleName)(user.roleInfo)]])]), index === 0 ? (openBlock(), createElementBlock("span", _hoisted_5, function() {
|
343
|
-
var _a, _b, _c;
|
344
|
-
try {
|
345
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.84")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.84")) || "\u7FA4\u4E3B";
|
346
|
-
} catch (e) {
|
347
|
-
return "\u7FA4\u4E3B";
|
221
|
+
"font-size": "var(--n-title-font-size)"
|
348
222
|
}
|
349
|
-
}
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
}
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
223
|
+
}, {
|
224
|
+
icon: withCtx(() => [createVNode(unref(NIcon), {
|
225
|
+
size: 20,
|
226
|
+
component: unref(ChevronBackOutline)
|
227
|
+
}, null, 8, ["component"])]),
|
228
|
+
default: withCtx(() => {
|
229
|
+
var _a3, _b3, _c3;
|
230
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.82")) || ((_c3 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c3.call(_b3, "10010.1.82")) || "\u8FD4\u56DE")];
|
231
|
+
}),
|
232
|
+
_: 1
|
233
|
+
})) : unref(isGroupChat) ? (openBlock(), createElementBlock(Fragment, {
|
234
|
+
key: 1
|
235
|
+
}, [createTextVNode(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.83")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.83")) || "\u7FA4\u8BBE\u7F6E")], 64)) : (openBlock(), createElementBlock(Fragment, {
|
236
|
+
key: 2
|
237
|
+
}, [createTextVNode(((_d2 = window.getLanguageByCode) == null ? void 0 : _d2.call(window, "10010.1.66")) || ((_f2 = (_e2 = window.top) == null ? void 0 : _e2.getLanguageByCode) == null ? void 0 : _f2.call(_e2, "10010.1.66")) || "\u804A\u5929\u8BBE\u7F6E")], 64))];
|
238
|
+
}),
|
239
|
+
default: withCtx(() => {
|
240
|
+
var _a2, _b2, _c2;
|
241
|
+
return [unref(state).id ? (openBlock(), createElementBlock("div", _hoisted_1, [unref(isGroupChat) && showGroupDetail.value ? (openBlock(true), createElementBlock(Fragment, {
|
242
|
+
key: 0
|
243
|
+
}, renderList(unref(state).currentGroupUser, (user, index) => {
|
244
|
+
var _a3, _b3, _c3;
|
245
|
+
return openBlock(), createElementBlock("div", {
|
246
|
+
key: user.id,
|
247
|
+
class: "item",
|
248
|
+
onClick: (event) => unref(setUserDetail)(event, {
|
249
|
+
show: true,
|
250
|
+
userId: user.id
|
251
|
+
})
|
252
|
+
}, [createVNode(unref(NAvatar), {
|
253
|
+
round: "",
|
254
|
+
size: 40,
|
255
|
+
src: user.avatar
|
256
|
+
}, null, 8, ["src"]), createElementVNode("div", _hoisted_3, [createElementVNode("span", _hoisted_4, toDisplayString(user.name), 1), withDirectives(createElementVNode("label", {
|
257
|
+
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(user.roleInfo) ? "isDoctor" : ""]),
|
258
|
+
style: {
|
259
|
+
"margin-right": "6px"
|
260
|
+
}
|
261
|
+
}, toDisplayString(unref(getRoleName)(user.roleInfo)), 3), [[vShow, unref(getRoleName)(user.roleInfo)]])]), index === 0 ? (openBlock(), createElementBlock("span", _hoisted_5, ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.84")) || ((_c3 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c3.call(_b3, "10010.1.84")) || "\u7FA4\u4E3B")) : createCommentVNode("v-if", true)], 8, _hoisted_2);
|
262
|
+
}), 128)) : (openBlock(), createElementBlock(Fragment, {
|
263
|
+
key: 1
|
264
|
+
}, [createElementVNode("div", {
|
265
|
+
class: "item user-info",
|
266
|
+
onClick: _cache[1] || (_cache[1] = (event) => !unref(isGroupChat) && unref(setUserDetail)(event, {
|
376
267
|
show: true,
|
377
|
-
userId:
|
378
|
-
})
|
268
|
+
userId: unref(state).currentSessionItem.receiver
|
269
|
+
}))
|
379
270
|
}, [createVNode(unref(NAvatar), {
|
380
271
|
round: "",
|
381
272
|
size: 40,
|
382
|
-
src:
|
383
|
-
}, null, 8, ["src"]), createElementVNode("span",
|
384
|
-
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
273
|
+
src: unref(state).currentSessionItem.avatar
|
274
|
+
}, null, 8, ["src"]), createElementVNode("span", _hoisted_6, toDisplayString(unref(state).currentSessionItem.name), 1), withDirectives(createElementVNode("label", {
|
275
|
+
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(unref(state).currentSessionItem.roleInfo) ? "isDoctor" : ""])
|
276
|
+
}, toDisplayString(unref(getRoleName)(unref(state).currentSessionItem.roleInfo)), 3), [[vShow, unref(getRoleName)(unref(state).currentSessionItem.roleInfo)]]), !unref(isGroupChat) ? (openBlock(), createBlock(unref(NIcon), {
|
277
|
+
key: 0,
|
278
|
+
size: 24,
|
279
|
+
component: unref(ChevronForwardOutline),
|
280
|
+
class: "item__right"
|
281
|
+
}, null, 8, ["component"])) : createCommentVNode("v-if", true)]), !!unref(isGroupChat) ? (openBlock(), createElementBlock(Fragment, {
|
282
|
+
key: 0
|
283
|
+
}, [createElementVNode("div", _hoisted_7, [_hoisted_8, createElementVNode("div", _hoisted_9, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(currentGroupUser), (user) => {
|
284
|
+
return openBlock(), createElementBlock("div", {
|
285
|
+
key: user.id,
|
286
|
+
class: "group-box__item",
|
287
|
+
onClick: (event) => unref(setUserDetail)(event, {
|
288
|
+
show: true,
|
289
|
+
userId: user.id
|
290
|
+
})
|
291
|
+
}, [createVNode(unref(NAvatar), {
|
292
|
+
round: "",
|
293
|
+
size: 40,
|
294
|
+
src: user.avatar
|
295
|
+
}, null, 8, ["src"]), createElementVNode("span", _hoisted_11, toDisplayString(user.name), 1), withDirectives(createElementVNode("label", {
|
296
|
+
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(user.roleInfo) ? "isDoctor" : ""]),
|
297
|
+
style: {
|
298
|
+
"margin-left": "0"
|
299
|
+
}
|
300
|
+
}, toDisplayString(unref(getRoleName)(user.roleInfo)), 3), [[vShow, unref(getRoleName)(user.roleInfo)]])], 8, _hoisted_10);
|
301
|
+
}), 128)), createVNode(ChatAdd, {
|
302
|
+
mode: "join",
|
303
|
+
disabledIds: unref(currentGroupUserIds)
|
397
304
|
}, {
|
398
|
-
|
399
|
-
|
400
|
-
|
305
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_12, [createVNode(unref(NButton), {
|
306
|
+
strong: "",
|
307
|
+
secondary: "",
|
308
|
+
circle: ""
|
309
|
+
}, {
|
310
|
+
icon: withCtx(() => [createVNode(unref(NIcon), {
|
311
|
+
component: unref(AddOutline)
|
312
|
+
}, null, 8, ["component"])]),
|
313
|
+
_: 1
|
314
|
+
}), _hoisted_13])]),
|
401
315
|
_: 1
|
402
|
-
}
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
}
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
316
|
+
}, 8, ["disabledIds"]), unref(isGroupLeader) ? (openBlock(), createBlock(ChatAdd, {
|
317
|
+
key: 0,
|
318
|
+
title: ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.87")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.87")) || "\u79FB\u9664\u6210\u5458",
|
319
|
+
mode: "remove",
|
320
|
+
options: unref(state).currentGroupUser
|
321
|
+
}, {
|
322
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_14, [createVNode(unref(NButton), {
|
323
|
+
strong: "",
|
324
|
+
secondary: "",
|
325
|
+
circle: ""
|
326
|
+
}, {
|
327
|
+
icon: withCtx(() => [createVNode(unref(NIcon), {
|
328
|
+
component: unref(RemoveOutline)
|
329
|
+
}, null, 8, ["component"])]),
|
330
|
+
_: 1
|
331
|
+
}), _hoisted_15])]),
|
332
|
+
_: 1
|
333
|
+
}, 8, ["options"])) : createCommentVNode("v-if", true)]), createVNode(unref(NButton), {
|
334
|
+
text: "",
|
335
|
+
"icon-placement": "right",
|
336
|
+
color: "#999",
|
337
|
+
onClick: _cache[2] || (_cache[2] = ($event) => showGroupDetail.value = true)
|
421
338
|
}, {
|
422
339
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
423
|
-
component: unref(
|
340
|
+
component: unref(ChevronForwardOutline)
|
424
341
|
}, null, 8, ["component"])]),
|
342
|
+
default: withCtx(() => {
|
343
|
+
var _a3, _b3, _c3;
|
344
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.89")) || ((_c3 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c3.call(_b3, "10010.1.89")) || "\u67E5\u770B\u5168\u90E8\u7FA4\u6210\u5458")];
|
345
|
+
}),
|
425
346
|
_: 1
|
426
|
-
}),
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
color: "#999",
|
432
|
-
onClick: _cache[2] || (_cache[2] = ($event) => showGroupDetail.value = true)
|
433
|
-
}, {
|
434
|
-
icon: withCtx(() => [createVNode(unref(NIcon), {
|
435
|
-
component: unref(ChevronForwardOutline)
|
436
|
-
}, null, 8, ["component"])]),
|
437
|
-
default: withCtx(() => [createTextVNode(function() {
|
438
|
-
var _a, _b, _c;
|
439
|
-
try {
|
440
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.89")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.89")) || "\u67E5\u770B\u5168\u90E8\u7FA4\u6210\u5458";
|
441
|
-
} catch (e) {
|
442
|
-
return "\u67E5\u770B\u5168\u90E8\u7FA4\u6210\u5458";
|
443
|
-
}
|
444
|
-
}())]),
|
445
|
-
_: 1
|
446
|
-
})]), createVNode(unref(NUpload), {
|
447
|
-
abstract: "",
|
448
|
-
multiple: "",
|
449
|
-
accept: "image/*",
|
450
|
-
onChange: handleAvatar
|
451
|
-
}, {
|
452
|
-
default: withCtx(() => [createVNode(unref(NUploadTrigger), {
|
453
|
-
abstract: ""
|
347
|
+
})]), createVNode(unref(NUpload), {
|
348
|
+
abstract: "",
|
349
|
+
multiple: "",
|
350
|
+
accept: "image/*",
|
351
|
+
onChange: handleAvatar
|
454
352
|
}, {
|
455
|
-
default: withCtx(({
|
456
|
-
|
457
|
-
}
|
458
|
-
|
459
|
-
|
460
|
-
|
353
|
+
default: withCtx(() => [createVNode(unref(NUploadTrigger), {
|
354
|
+
abstract: ""
|
355
|
+
}, {
|
356
|
+
default: withCtx(({
|
357
|
+
handleClick
|
358
|
+
}) => [createElementVNode("div", {
|
359
|
+
class: "item",
|
360
|
+
onClick: handleClick
|
361
|
+
}, [_hoisted_17, createVNode(unref(NIcon), {
|
362
|
+
size: 20,
|
363
|
+
component: unref(ChevronForwardOutline),
|
364
|
+
class: "item__right"
|
365
|
+
}, null, 8, ["component"])], 8, _hoisted_16)]),
|
366
|
+
_: 1
|
367
|
+
})]),
|
368
|
+
_: 1
|
369
|
+
}), createElementVNode("div", _hoisted_18, [_hoisted_19, createElementVNode("div", _hoisted_20, [groupNameEditing.value ? (openBlock(), createBlock(unref(NInput), {
|
370
|
+
key: 0,
|
371
|
+
ref_key: "inputRef",
|
372
|
+
ref: inputRef,
|
373
|
+
value: groupName.value,
|
374
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => groupName.value = $event),
|
375
|
+
onBlur: handleGroupName,
|
376
|
+
onKeydown: _cache[4] || (_cache[4] = withKeys((e) => e.target.blur(), ["enter"]))
|
377
|
+
}, null, 8, ["value"])) : (openBlock(), createBlock(unref(NSpace), {
|
378
|
+
key: 1,
|
379
|
+
"wrap-item": false,
|
380
|
+
onClick: handleToEdit,
|
381
|
+
align: "center"
|
382
|
+
}, {
|
383
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_21, toDisplayString(unref(state).currentSessionItem.name), 1), createVNode(unref(NButton), {
|
384
|
+
text: "",
|
385
|
+
style: {
|
386
|
+
"font-size": "14px",
|
387
|
+
"--n-text-color": "#999"
|
388
|
+
}
|
389
|
+
}, {
|
390
|
+
default: withCtx(() => [createVNode(unref(NIcon), {
|
391
|
+
component: unref(Pencil)
|
392
|
+
}, null, 8, ["component"])]),
|
393
|
+
_: 1
|
394
|
+
})]),
|
395
|
+
_: 1
|
396
|
+
}))])])], 64)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_22, [_hoisted_23, createVNode(unref(NSwitch), {
|
397
|
+
value: unref(state).currentSessionItem.topping,
|
398
|
+
"onUpdate:value": [_cache[5] || (_cache[5] = ($event) => unref(state).currentSessionItem.topping = $event), handleTopping],
|
399
|
+
class: "item__right"
|
400
|
+
}, null, 8, ["value"])]), !!unref(isGroupChat) ? (openBlock(), createElementBlock(Fragment, {
|
401
|
+
key: 1
|
402
|
+
}, [createVNode(unref(NPopconfirm), {
|
403
|
+
onPositiveClick: _cache[6] || (_cache[6] = () => handleLeaveGroup(false))
|
404
|
+
}, {
|
405
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_24, [_hoisted_25, createVNode(unref(NIcon), {
|
461
406
|
size: 20,
|
462
407
|
component: unref(ChevronForwardOutline),
|
463
408
|
class: "item__right"
|
464
|
-
}, null, 8, ["component"])]
|
409
|
+
}, null, 8, ["component"])])]),
|
410
|
+
default: withCtx(() => [_hoisted_26]),
|
465
411
|
_: 1
|
466
|
-
})
|
467
|
-
|
468
|
-
|
469
|
-
key: 0,
|
470
|
-
ref_key: "inputRef",
|
471
|
-
ref: inputRef,
|
472
|
-
value: groupName.value,
|
473
|
-
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => groupName.value = $event),
|
474
|
-
onBlur: handleGroupName,
|
475
|
-
onKeydown: _cache[4] || (_cache[4] = withKeys((e) => e.target.blur(), ["enter"]))
|
476
|
-
}, null, 8, ["value"])) : (openBlock(), createBlock(unref(NSpace), {
|
477
|
-
key: 1,
|
478
|
-
"wrap-item": false,
|
479
|
-
onClick: handleToEdit,
|
480
|
-
align: "center"
|
481
|
-
}, {
|
482
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_21, toDisplayString(unref(state).currentSessionItem.name), 1), createVNode(unref(NButton), {
|
483
|
-
text: "",
|
484
|
-
style: {
|
485
|
-
"font-size": "14px",
|
486
|
-
"--n-text-color": "#999"
|
487
|
-
}
|
412
|
+
}), unref(isGroupLeader) ? (openBlock(), createBlock(unref(NPopconfirm), {
|
413
|
+
key: 0,
|
414
|
+
onPositiveClick: _cache[7] || (_cache[7] = () => handleLeaveGroup(true))
|
488
415
|
}, {
|
489
|
-
|
490
|
-
|
491
|
-
|
416
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_27, [_hoisted_28, createVNode(unref(NIcon), {
|
417
|
+
size: 20,
|
418
|
+
component: unref(ChevronForwardOutline),
|
419
|
+
class: "item__right"
|
420
|
+
}, null, 8, ["component"])])]),
|
421
|
+
default: withCtx(() => [_hoisted_29]),
|
492
422
|
_: 1
|
493
|
-
})]),
|
494
|
-
|
495
|
-
}))])])], 64)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_22, [_hoisted_23, createVNode(unref(NSwitch), {
|
496
|
-
value: unref(state).currentSessionItem.topping,
|
497
|
-
"onUpdate:value": [_cache[5] || (_cache[5] = ($event) => unref(state).currentSessionItem.topping = $event), handleTopping],
|
498
|
-
class: "item__right"
|
499
|
-
}, null, 8, ["value"])]), !!unref(isGroupChat) ? (openBlock(), createElementBlock(Fragment, {
|
500
|
-
key: 1
|
501
|
-
}, [createVNode(unref(NPopconfirm), {
|
502
|
-
onPositiveClick: _cache[6] || (_cache[6] = () => handleLeaveGroup(false))
|
503
|
-
}, {
|
504
|
-
trigger: withCtx(() => [createElementVNode("div", _hoisted_24, [_hoisted_25, createVNode(unref(NIcon), {
|
505
|
-
size: 20,
|
506
|
-
component: unref(ChevronForwardOutline),
|
507
|
-
class: "item__right"
|
508
|
-
}, null, 8, ["component"])])]),
|
509
|
-
default: withCtx(() => [_hoisted_26]),
|
510
|
-
_: 1
|
511
|
-
}), unref(isGroupLeader) ? (openBlock(), createBlock(unref(NPopconfirm), {
|
512
|
-
key: 0,
|
513
|
-
onPositiveClick: _cache[7] || (_cache[7] = () => handleLeaveGroup(true))
|
514
|
-
}, {
|
515
|
-
trigger: withCtx(() => [createElementVNode("div", _hoisted_27, [_hoisted_28, createVNode(unref(NIcon), {
|
516
|
-
size: 20,
|
517
|
-
component: unref(ChevronForwardOutline),
|
518
|
-
class: "item__right"
|
519
|
-
}, null, 8, ["component"])])]),
|
520
|
-
default: withCtx(() => [_hoisted_29]),
|
521
|
-
_: 1
|
522
|
-
})) : createCommentVNode("v-if", true)], 64)) : createCommentVNode("v-if", true)], 64))])) : createCommentVNode("v-if", true)]),
|
423
|
+
})) : createCommentVNode("v-if", true)], 64)) : createCommentVNode("v-if", true)], 64))])) : createCommentVNode("v-if", true)];
|
424
|
+
}),
|
523
425
|
_: 1
|
524
426
|
})]),
|
525
427
|
_: 1
|