@qqt-product/ui 7.0.0 → 7.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
@@ -398,13 +398,13 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _s
398
398
  onSelect: ae
399
399
  };
400
400
  }
401
- }), menu_vue_vue_type_style_index_0_scoped_0434f190_lang = "", _hoisted_1$R = {
401
+ }), menu_vue_vue_type_style_index_0_scoped_791d6703_lang = "", _hoisted_1$R = {
402
402
  class: "menu-wrapper",
403
403
  id: "secondMenuArea"
404
404
  }, _hoisted_2$I = {
405
405
  key: 0,
406
406
  class: "search-records"
407
- }, _hoisted_3$D = { key: 0 }, _hoisted_4$w = { style: { color: "#f50" } }, _hoisted_5$n = { key: 1 }, _hoisted_6$h = { key: 1 }, _hoisted_7$e = ["onClick"], _hoisted_8$b = { class: "left" }, _hoisted_9$8 = {
407
+ }, _hoisted_3$D = { key: 0 }, _hoisted_4$w = { style: { color: "#f50" } }, _hoisted_5$n = { key: 1 }, _hoisted_6$i = { key: 1 }, _hoisted_7$e = ["onClick"], _hoisted_8$b = { class: "left" }, _hoisted_9$8 = {
408
408
  key: 0,
409
409
  class: "title"
410
410
  }, _hoisted_10$7 = { class: "right" };
@@ -431,7 +431,7 @@ function _sfc_render$Z(r, n, o, s, l, c) {
431
431
  ]),
432
432
  _: 1
433
433
  }, 8, ["auto-expand-parent", "tree-data", "onSelect"])
434
- ])) : (openBlock(), createElementBlock("div", _hoisted_6$h, [
434
+ ])) : (openBlock(), createElementBlock("div", _hoisted_6$i, [
435
435
  (openBlock(!0), createElementBlock(Fragment, null, renderList(r.firstLevelMenus, (D, R) => (openBlock(), createElementBlock("div", {
436
436
  class: normalizeClass(["first-level", [{ "level-active": r.currentActive === R }, r.theme, { collapsed: r.collapsed }]]),
437
437
  key: D.id,
@@ -507,7 +507,7 @@ function _sfc_render$Z(r, n, o, s, l, c) {
507
507
  })
508
508
  ]);
509
509
  }
510
- const QMenu$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$Z], ["__scopeId", "data-v-0434f190"]]), _hoisted_1$Q = {
510
+ const QMenu$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$Z], ["__scopeId", "data-v-791d6703"]]), _hoisted_1$Q = {
511
511
  key: 2,
512
512
  class: "history"
513
513
  }, _hoisted_2$H = { style: { "padding-top": "6px" } }, _hoisted_3$C = ["onClick"], _hoisted_4$v = ["onClick"], _sfc_main$1a = /* @__PURE__ */ defineComponent({
@@ -720,7 +720,7 @@ const QMenu$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_rende
720
720
  }), index_vue_vue_type_style_index_0_scoped_61751fe9_lang = "", _withScopeId$5 = (r) => (pushScopeId("data-v-61751fe9"), r = r(), popScopeId(), r), _hoisted_1$P = {
721
721
  key: 0,
722
722
  class: "footer-modules"
723
- }, _hoisted_2$G = ["src"], _hoisted_3$B = { key: 0 }, _hoisted_4$u = { class: "title" }, _hoisted_5$m = ["src"], _hoisted_6$g = { key: 0 }, _hoisted_7$d = {
723
+ }, _hoisted_2$G = ["src"], _hoisted_3$B = { key: 0 }, _hoisted_4$u = { class: "title" }, _hoisted_5$m = ["src"], _hoisted_6$h = { key: 0 }, _hoisted_7$d = {
724
724
  key: 0,
725
725
  class: "desc"
726
726
  }, _hoisted_8$a = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("span", { class: "arrow" }, null, -1)), _hoisted_9$7 = { class: "version" }, _hoisted_10$6 = ["src"], _hoisted_11$3 = { key: 0 }, _hoisted_12$2 = {
@@ -825,7 +825,7 @@ function _sfc_render$Y(r, n, o, s, l, c) {
825
825
  }, null, 8, _hoisted_5$m),
826
826
  createVNode$1(Transition, { name: "services" }, {
827
827
  default: withCtx(() => [
828
- r.collapsed ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_6$g, toDisplayString(r.srmI18n("i18n__aRBS_29827912", "\u589E\u503C\u670D\u52A1")), 1))
828
+ r.collapsed ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_6$h, toDisplayString(r.srmI18n("i18n__aRBS_29827912", "\u589E\u503C\u670D\u52A1")), 1))
829
829
  ]),
830
830
  _: 1
831
831
  })
@@ -1228,30 +1228,36 @@ const QLayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_
1228
1228
  }, null, 8, ["visible"])) : createCommentVNode("", !0)
1229
1229
  ]));
1230
1230
  }
1231
- }), index_vue_vue_type_style_index_0_scoped_5951f698_lang = "", navRight = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-5951f698"]]), _hoisted_1$I = { class: "header" }, _hoisted_2$B = { class: "header-left" }, _hoisted_3$x = ["onClick"], _hoisted_4$q = { class: "title" }, _hoisted_5$k = { class: "header-right" }, _sfc_main$12 = /* @__PURE__ */ defineComponent({
1231
+ }), index_vue_vue_type_style_index_0_scoped_5951f698_lang = "", navRight = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-5951f698"]]), _hoisted_1$I = { class: "header" }, _hoisted_2$B = { class: "header-left" }, _hoisted_3$x = {
1232
+ key: 0,
1233
+ class: "btn-list"
1234
+ }, _hoisted_4$q = ["onClick"], _hoisted_5$k = { class: "title" }, _hoisted_6$g = { class: "header-right" }, _sfc_main$12 = /* @__PURE__ */ defineComponent({
1232
1235
  __name: "index",
1233
1236
  setup(r) {
1234
- const n = inject(Q_SRM_I18N, Q_SRM_I18N_DEFAULT_VALUE), o = inject("q-layout-header-tanent-page-home", () => console.log("tanentPageHome")), s = inject("q-layout-header-shopping-mall", () => console.log("shoppingMall")), l = inject("q-layout-header-web-financial-cloud", () => console.log("webFinancialCloud")), c = inject("q-layout-header-web-procurement", () => console.log("webProcurement")), p = ref([
1237
+ const n = inject(Q_SRM_I18N, Q_SRM_I18N_DEFAULT_VALUE), o = inject("q-layout-header-tanent-page-home", () => console.log("tanentPageHome")), s = inject("q-layout-header-shopping-mall", () => console.log("shoppingMall")), l = inject("q-layout-header-web-financial-cloud", () => console.log("webFinancialCloud")), c = inject("q-layout-header-web-procurement", () => console.log("webProcurement")), p = inject("q-layout-header-layout-config", { showTanentPageHome: !0, showShoppingMall: !0, showWebProcurement: !0 }), b = ref([
1235
1238
  {
1236
1239
  title: n("i18n_btn_AEdE_25190693", "\u4F01\u4E1A\u4E3B\u9875"),
1237
1240
  icon: "icon-Q-Company-Pages",
1238
1241
  type: "icon-Q-Company-Pages",
1239
- color: "#5570F1"
1242
+ color: "#5570F1",
1243
+ show: p.showTanentPageHome
1240
1244
  },
1241
1245
  {
1242
1246
  title: n("i18n_btn_CnXL_273c6baa", "\u5185\u91C7\u5546\u57CE"),
1243
1247
  icon: "icon-Q-Internal-shopping-mall",
1244
1248
  type: "icon-Q-Internal-shopping-mall",
1245
- color: "#E73152"
1249
+ color: "#E73152",
1250
+ show: p.showShoppingMall
1246
1251
  },
1247
1252
  {
1248
1253
  title: n("i18n_btn_nRT_234d3cb", "\u91C7\u8D2D\u7F51"),
1249
1254
  icon: "icon-Q-Procurement-website",
1250
1255
  type: "icon-Q-Procurement-website",
1251
- color: "#EF9144"
1256
+ color: "#EF9144",
1257
+ show: p.showWebProcurement
1252
1258
  }
1253
- ]), b = (y) => {
1254
- switch (y) {
1259
+ ]), y = (O) => {
1260
+ switch (O) {
1255
1261
  case "icon-Q-Company-Pages":
1256
1262
  o();
1257
1263
  break;
@@ -1266,33 +1272,35 @@ const QLayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_
1266
1272
  break;
1267
1273
  }
1268
1274
  };
1269
- return (y, O) => (openBlock(), createElementBlock("div", _hoisted_1$I, [
1275
+ return (O, x) => (openBlock(), createElementBlock("div", _hoisted_1$I, [
1270
1276
  createElementVNode("div", _hoisted_2$B, [
1271
- (openBlock(!0), createElementBlock(Fragment, null, renderList(p.value, (x, D) => (openBlock(), createElementBlock("div", {
1272
- key: D,
1273
- class: "btn-list",
1274
- onClick: (R) => b(x.type)
1275
- }, [
1276
- createVNode$1(unref(QIcon), {
1277
- class: "icon",
1278
- type: x.type,
1279
- size: "16",
1280
- color: x.color
1281
- }, null, 8, ["type", "color"]),
1282
- createElementVNode("span", _hoisted_4$q, toDisplayString(x.title), 1)
1283
- ], 8, _hoisted_3$x))), 128))
1277
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(b.value, (D, R) => (openBlock(), createElementBlock(Fragment, { key: R }, [
1278
+ D.show ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
1279
+ createElementVNode("span", {
1280
+ onClick: (P) => y(D.type)
1281
+ }, [
1282
+ createVNode$1(unref(QIcon), {
1283
+ class: "icon",
1284
+ type: D.type,
1285
+ size: "16",
1286
+ color: D.color
1287
+ }, null, 8, ["type", "color"]),
1288
+ createElementVNode("span", _hoisted_5$k, toDisplayString(D.title), 1)
1289
+ ], 8, _hoisted_4$q)
1290
+ ])) : createCommentVNode("", !0)
1291
+ ], 64))), 128))
1284
1292
  ]),
1285
- createElementVNode("div", _hoisted_5$k, [
1293
+ createElementVNode("div", _hoisted_6$g, [
1286
1294
  createVNode$1(navRight, null, {
1287
1295
  extraRightTool: withCtx(() => [
1288
- renderSlot(y.$slots, "extraRightTool", {}, void 0, !0)
1296
+ renderSlot(O.$slots, "extraRightTool", {}, void 0, !0)
1289
1297
  ]),
1290
1298
  _: 3
1291
1299
  })
1292
1300
  ])
1293
1301
  ]));
1294
1302
  }
1295
- }), index_vue_vue_type_style_index_0_scoped_ce64af09_lang = "", QLayoutHeader = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-ce64af09"]]), _sfc_main$11 = defineComponent({
1303
+ }), index_vue_vue_type_style_index_0_scoped_94b34b5b_lang = "", QLayoutHeader = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-94b34b5b"]]), _sfc_main$11 = defineComponent({
1296
1304
  name: "QLayout",
1297
1305
  components: {
1298
1306
  QLayoutSider,
@@ -1367,11 +1375,14 @@ const QLayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_
1367
1375
  },
1368
1376
  kefu: {
1369
1377
  type: Function
1378
+ },
1379
+ layoutConfig: {
1380
+ type: Object
1370
1381
  }
1371
1382
  },
1372
1383
  emits: ["menuSelect", "schedule-click", "services-click"],
1373
1384
  setup(r, { emit: n }) {
1374
- provide("q-layout-header-logout", r.logoutEvent), provide("q-layout-header-default-language", r.defaultLanguage), provide("q-layout-header-switch-language", r.switchLanguageEvent), provide("q-layout-user-info", r.userInfo), provide("q-layout-header-msg-record", r.msgRecord), provide("q-layout-header-chat", r.chat), provide("q-layout-header-personal-setting", r.personalSetting), provide("q-layout-header-tanent-page-home", r.tanentPageHome), provide("q-layout-header-shopping-mall", r.shoppingMall), provide("q-layout-header-web-financial-cloud", r.webFinancialCloud), provide("q-layout-header-web-procurement", r.webProcurement), provide("q-layout-header-kefu", r.kefu);
1385
+ provide("q-layout-header-logout", r.logoutEvent), provide("q-layout-header-default-language", r.defaultLanguage), provide("q-layout-header-switch-language", r.switchLanguageEvent), provide("q-layout-user-info", r.userInfo), provide("q-layout-header-msg-record", r.msgRecord), provide("q-layout-header-chat", r.chat), provide("q-layout-header-personal-setting", r.personalSetting), provide("q-layout-header-tanent-page-home", r.tanentPageHome), provide("q-layout-header-shopping-mall", r.shoppingMall), provide("q-layout-header-web-financial-cloud", r.webFinancialCloud), provide("q-layout-header-web-procurement", r.webProcurement), provide("q-layout-header-kefu", r.kefu), provide("q-layout-header-layout-config", r.layoutConfig);
1375
1386
  const o = ref(!0), s = ref();
1376
1387
  return {
1377
1388
  menuSelect: (O) => {
@@ -1394,7 +1405,7 @@ const QLayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_
1394
1405
  siderRef: s
1395
1406
  };
1396
1407
  }
1397
- }), index_vue_vue_type_style_index_0_scoped_2378c503_lang = "";
1408
+ }), index_vue_vue_type_style_index_0_scoped_36d511ca_lang = "";
1398
1409
  function _sfc_render$X(r, n, o, s, l, c) {
1399
1410
  const p = resolveComponent("q-layout-sider"), b = resolveComponent("q-layout-header"), y = resolveComponent("a-layout-header"), O = resolveComponent("a-layout-content"), x = resolveComponent("a-layout");
1400
1411
  return openBlock(), createBlock(x, {
@@ -1452,7 +1463,7 @@ function _sfc_render$X(r, n, o, s, l, c) {
1452
1463
  _: 3
1453
1464
  }, 8, ["onClick"]);
1454
1465
  }
1455
- const QQTLayout = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$X], ["__scopeId", "data-v-2378c503"]]), index$1m = qqtUtils.withInstall(QQTLayout), index$1n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1466
+ const QQTLayout = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$X], ["__scopeId", "data-v-36d511ca"]]), index$1m = qqtUtils.withInstall(QQTLayout), index$1n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1456
1467
  __proto__: null,
1457
1468
  QQTLayout,
1458
1469
  default: index$1m