@qqt-product/ui 14.0.0 → 14.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -980,10 +980,27 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
980
980
  }, 8, ["dot"]);
981
981
  };
982
982
  }
983
- }), customMessage_vue_vue_type_style_index_0_scoped_9b4f668c_lang = "", message = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-9b4f668c"]]), _hoisted_1$O = { class: "right-tool" }, _hoisted_2$G = { class: "header-notice msg" }, _hoisted_3$A = ["title", "onClick"], _hoisted_4$t = { class: "header-notice top-icon theme-switch" }, _sfc_main$16 = /* @__PURE__ */ defineComponent({
983
+ }), customMessage_vue_vue_type_style_index_0_scoped_9b4f668c_lang = "", message = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-9b4f668c"]]), _hoisted_1$O = { class: "right-tool" }, _hoisted_2$G = {
984
+ key: 0,
985
+ class: "header-notice msg"
986
+ }, _hoisted_3$A = ["title", "onClick"], _hoisted_4$t = {
987
+ key: 2,
988
+ class: "header-notice top-icon theme-switch"
989
+ }, _sfc_main$16 = /* @__PURE__ */ defineComponent({
984
990
  __name: "rightTool",
985
991
  setup(r) {
986
- const n = ref("light"), o = ref("dark"), s = inject("q-layout-header-layout-config", { showTanentPageHome: !0, showShoppingMall: !0, showWebProcurement: !0, showI18n: !0, showChatBi: !0 }), l = inject("Q_APPLICATION_CONFIG", { updateTheme: () => {
992
+ const n = ref("light"), o = ref("dark"), s = inject("q-layout-header-layout-config", {
993
+ showTanentPageHome: !0,
994
+ showShoppingMall: !0,
995
+ showWebProcurement: !0,
996
+ showI18n: !0,
997
+ showChatBi: !0,
998
+ showThemeColorSwitch: !0,
999
+ showSmartAssistant: !0,
1000
+ showChat: !0,
1001
+ showMessage: !0,
1002
+ showOnlinePerson: !0
1003
+ }), l = inject("Q_APPLICATION_CONFIG", { updateTheme: () => {
987
1004
  }, theme: "light" }), c = inject("q-layout-header-chat", () => {
988
1005
  }), p = inject(Q_SRM_I18N, Q_SRM_I18N_DEFAULT_VALUE), b = inject("q-layout-header-kefu", () => {
989
1006
  }), y = inject("q-layout-header-chat-bi", () => {
@@ -991,12 +1008,14 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
991
1008
  {
992
1009
  icon: "icon-Q-chat",
993
1010
  type: "icon-Q-chat",
994
- title: p("i18n_dict_LS_fe21f", "\u804A\u5929")
1011
+ title: p("i18n_dict_LS_fe21f", "\u804A\u5929"),
1012
+ show: s.showChat
995
1013
  },
996
1014
  {
997
1015
  icon: "icon-Q-customer-service",
998
1016
  type: "icon-Q-customer-service",
999
- title: p("i18n_field_ROdl_3083e9c5", "\u667A\u80FD\u52A9\u624B")
1017
+ title: p("i18n_field_ROdl_3083e9c5", "\u667A\u80FD\u52A9\u624B"),
1018
+ show: s.showSmartAssistant
1000
1019
  }
1001
1020
  ]), P = (ae) => {
1002
1021
  switch (ae) {
@@ -1016,10 +1035,10 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
1016
1035
  const se = resolveComponent("a-tooltip");
1017
1036
  return openBlock(), createElementBlock("div", _hoisted_1$O, [
1018
1037
  renderSlot(ae.$slots, "extraRightTool", {}, void 0, !0),
1019
- createElementVNode("span", _hoisted_2$G, [
1038
+ unref(s).showMessage ? (openBlock(), createElementBlock("span", _hoisted_2$G, [
1020
1039
  createVNode$1(message)
1021
- ]),
1022
- (openBlock(!0), createElementBlock(Fragment, null, renderList(D.value, (ce, we) => (openBlock(), createElementBlock("span", {
1040
+ ])) : createCommentVNode("", !0),
1041
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(D.value, (ce, we) => withDirectives((openBlock(), createElementBlock("span", {
1023
1042
  key: we,
1024
1043
  title: ce.title,
1025
1044
  class: "header-notice top-icon",
@@ -1038,9 +1057,11 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
1038
1057
  ]),
1039
1058
  _: 2
1040
1059
  }, 1024)
1041
- ], 8, _hoisted_3$A))), 128)),
1060
+ ], 8, _hoisted_3$A)), [
1061
+ [vShow, ce.show]
1062
+ ])), 128)),
1042
1063
  unref(s).showChatBi ? (openBlock(), createElementBlock("span", {
1043
- key: 0,
1064
+ key: 1,
1044
1065
  class: "header-notice top-icon",
1045
1066
  onClick: Y[0] || (Y[0] = (...ce) => unref(y) && unref(y)(...ce))
1046
1067
  }, [
@@ -1059,7 +1080,7 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
1059
1080
  _: 1
1060
1081
  })
1061
1082
  ])) : createCommentVNode("", !0),
1062
- createElementVNode("span", _hoisted_4$t, [
1083
+ unref(s).showThemeColorSwitch ? (openBlock(), createElementBlock("span", _hoisted_4$t, [
1063
1084
  createVNode$1(se, null, {
1064
1085
  title: withCtx(() => [
1065
1086
  createTextVNode(toDisplayString(unref(O) == n.value ? unref(p)("i18n_field_Ry_a0984", "\u4EAE\u8272") : unref(p)("i18n_btn_py_ceebb", "\u6697\u8272")), 1)
@@ -1081,11 +1102,11 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
1081
1102
  ]),
1082
1103
  _: 1
1083
1104
  })
1084
- ])
1105
+ ])) : createCommentVNode("", !0)
1085
1106
  ]);
1086
1107
  };
1087
1108
  }
1088
- }), rightTool_vue_vue_type_style_index_0_scoped_f4832e22_lang = "", rightTool = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-f4832e22"]]), _hoisted_1$N = { class: "lang-wrap" }, _sfc_main$15 = /* @__PURE__ */ defineComponent({
1109
+ }), rightTool_vue_vue_type_style_index_0_scoped_916da550_lang = "", rightTool = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-916da550"]]), _hoisted_1$N = { class: "lang-wrap" }, _sfc_main$15 = /* @__PURE__ */ defineComponent({
1089
1110
  __name: "langSwitch",
1090
1111
  setup(r) {
1091
1112
  const n = qqtApi.useHttp(), o = inject("q-layout-header-default-language", "zh"), s = inject("q-layout-header-switch-language", (O) => {
@@ -1334,7 +1355,18 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
1334
1355
  }, _sfc_main$12 = /* @__PURE__ */ defineComponent({
1335
1356
  __name: "index",
1336
1357
  setup(r) {
1337
- const n = inject("q-layout-header-layout-config", { showTanentPageHome: !0, showShoppingMall: !0, showWebProcurement: !0, showI18n: !0, showChatBi: !0 }), o = ref(!1), s = () => {
1358
+ const n = inject("q-layout-header-layout-config", {
1359
+ showTanentPageHome: !0,
1360
+ showShoppingMall: !0,
1361
+ showWebProcurement: !0,
1362
+ showI18n: !0,
1363
+ showChatBi: !0,
1364
+ showThemeColorSwitch: !0,
1365
+ showSmartAssistant: !0,
1366
+ showChat: !0,
1367
+ showMessage: !0,
1368
+ showOnlinePerson: !0
1369
+ }), o = ref(!1), s = () => {
1338
1370
  o.value = !0;
1339
1371
  }, l = () => {
1340
1372
  o.value = !1;
@@ -1357,7 +1389,7 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
1357
1389
  }, null, 8, ["visible"])) : createCommentVNode("", !0)
1358
1390
  ]));
1359
1391
  }
1360
- }), index_vue_vue_type_style_index_0_scoped_337e1c87_lang = "", navRight = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-337e1c87"]]), _hoisted_1$J = { class: "header" }, _hoisted_2$C = { class: "header-left" }, _hoisted_3$x = {
1392
+ }), index_vue_vue_type_style_index_0_scoped_969e2208_lang = "", navRight = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-969e2208"]]), _hoisted_1$J = { class: "header" }, _hoisted_2$C = { class: "header-left" }, _hoisted_3$x = {
1361
1393
  key: 0,
1362
1394
  class: "btn-list"
1363
1395
  }, _hoisted_4$q = ["onClick"], _hoisted_5$m = { class: "title" }, _hoisted_6$f = { class: "header-right" }, _sfc_main$11 = /* @__PURE__ */ defineComponent({
@@ -1367,7 +1399,18 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
1367
1399
  }), s = inject("q-layout-header-shopping-mall", () => {
1368
1400
  }), l = inject("q-layout-header-web-financial-cloud", () => {
1369
1401
  }), c = inject("q-layout-header-web-procurement", () => {
1370
- }), p = inject("q-layout-header-layout-config", { showTanentPageHome: !0, showShoppingMall: !0, showWebProcurement: !0, showI18n: !0, showChatBi: !0 }), b = ref([
1402
+ }), p = inject("q-layout-header-layout-config", {
1403
+ showTanentPageHome: !0,
1404
+ showShoppingMall: !0,
1405
+ showWebProcurement: !0,
1406
+ showI18n: !0,
1407
+ showChatBi: !0,
1408
+ showThemeColorSwitch: !0,
1409
+ showSmartAssistant: !0,
1410
+ showChat: !0,
1411
+ showMessage: !0,
1412
+ showOnlinePerson: !0
1413
+ }), b = ref([
1371
1414
  {
1372
1415
  title: n("i18n_btn_AEdE_25190693", "\u4F01\u4E1A\u4E3B\u9875"),
1373
1416
  icon: "icon-Q-Company-Pages",
@@ -1426,7 +1469,7 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _s
1426
1469
  ])
1427
1470
  ]));
1428
1471
  }
1429
- }), index_vue_vue_type_style_index_0_scoped_afc4da0a_lang = "", QLayoutHeader = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-afc4da0a"]]), _withScopeId$3 = (r) => (pushScopeId("data-v-719d8ca7"), r = r(), popScopeId(), r), _hoisted_1$I = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "drag-line" }, "|||", -1)), _hoisted_2$B = [
1472
+ }), index_vue_vue_type_style_index_0_scoped_3223be41_lang = "", QLayoutHeader = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-3223be41"]]), _withScopeId$3 = (r) => (pushScopeId("data-v-719d8ca7"), r = r(), popScopeId(), r), _hoisted_1$I = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "drag-line" }, "|||", -1)), _hoisted_2$B = [
1430
1473
  _hoisted_1$I
1431
1474
  ], _sfc_main$10 = /* @__PURE__ */ defineComponent({
1432
1475
  name: "QLayout",