@qqt-product/ui 7.0.2 → 7.0.3
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 +76 -61
- package/dist/index.umd.js +56 -56
- package/dist/lib/components/layout/index.d.ts +7 -1
- package/dist/lib/components/layout/src/header/index.vue.d.ts +14 -0
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +8 -0
- package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +8 -0
- package/dist/lib/components/layout/src/index.vue.d.ts +7 -1
- package/dist/lib/components/layout/src/types.d.ts +9 -0
- package/dist/style.css +1 -1
- package/package.json +8 -8
package/dist/index.es.js
CHANGED
|
@@ -404,7 +404,7 @@ const secondLevelMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _s
|
|
|
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$
|
|
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$
|
|
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,
|
|
@@ -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$
|
|
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$
|
|
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
|
})
|
|
@@ -893,71 +893,75 @@ const QLayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_
|
|
|
893
893
|
}), customMessage_vue_vue_type_style_index_0_scoped_51ece441_lang = "", message = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-51ece441"]]), _hoisted_1$N = { class: "right-tool" }, _hoisted_2$F = { class: "header-notice msg" }, _hoisted_3$A = ["title", "onClick"], _hoisted_4$t = ["title"], _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
894
894
|
__name: "rightTool",
|
|
895
895
|
setup(r) {
|
|
896
|
-
const n = ref("light"),
|
|
896
|
+
const n = inject("q-layout-header-layout-config", { showTanentPageHome: !0, showShoppingMall: !0, showWebProcurement: !0, showChat: !0, showCustomService: !0 }), o = ref("light"), s = ref("dark"), l = inject("Q_APPLICATION_CONFIG", { updateTheme: () => console.log("update theme"), theme: "light" }), c = inject("q-layout-header-chat", () => console.log("open chat")), p = inject(Q_SRM_I18N, Q_SRM_I18N_DEFAULT_VALUE), b = inject("q-layout-header-kefu", () => {
|
|
897
897
|
console.log("open kefu");
|
|
898
|
-
}),
|
|
898
|
+
}), y = l.theme, O = l.updateTheme, x = ref([
|
|
899
899
|
{
|
|
900
900
|
icon: "icon-Q-chat",
|
|
901
901
|
type: "icon-Q-chat",
|
|
902
|
-
title:
|
|
902
|
+
title: p("i18n_dict_LS_fe21f", "\u804A\u5929"),
|
|
903
|
+
show: n.showChat
|
|
903
904
|
},
|
|
904
905
|
{
|
|
905
906
|
icon: "icon-Q-customer-service",
|
|
906
907
|
type: "icon-Q-customer-service",
|
|
907
|
-
title:
|
|
908
|
+
title: p("i18n_dict_qB_b7fab", "\u5BA2\u670D"),
|
|
909
|
+
show: n.showCustomService
|
|
908
910
|
}
|
|
909
|
-
]),
|
|
910
|
-
switch (
|
|
911
|
+
]), D = (G) => {
|
|
912
|
+
switch (G) {
|
|
911
913
|
case "icon-Q-chat":
|
|
912
|
-
|
|
914
|
+
R();
|
|
913
915
|
break;
|
|
914
916
|
case "icon-Q-customer-service":
|
|
915
|
-
|
|
917
|
+
P();
|
|
916
918
|
break;
|
|
917
919
|
}
|
|
918
|
-
}, D = () => {
|
|
919
|
-
l();
|
|
920
920
|
}, R = () => {
|
|
921
|
-
|
|
921
|
+
c();
|
|
922
|
+
}, P = () => {
|
|
923
|
+
b();
|
|
922
924
|
};
|
|
923
|
-
return (
|
|
924
|
-
renderSlot(
|
|
925
|
+
return (G, re) => (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
926
|
+
renderSlot(G.$slots, "extraRightTool", {}, void 0, !0),
|
|
925
927
|
createElementVNode("span", _hoisted_2$F, [
|
|
926
928
|
createVNode$1(message)
|
|
927
929
|
]),
|
|
928
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
930
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(x.value, (ae, se) => (openBlock(), createElementBlock(Fragment, { key: se }, [
|
|
931
|
+
ae.show ? (openBlock(), createElementBlock("span", {
|
|
932
|
+
key: 0,
|
|
933
|
+
title: ae.title,
|
|
934
|
+
class: "header-notice top-icon",
|
|
935
|
+
onClick: (ge) => D(ae.type)
|
|
936
|
+
}, [
|
|
937
|
+
createVNode$1(unref(QSymbolIcon), {
|
|
938
|
+
class: "icon",
|
|
939
|
+
type: ae.type,
|
|
940
|
+
size: "30"
|
|
941
|
+
}, null, 8, ["type"])
|
|
942
|
+
], 8, _hoisted_3$A)) : createCommentVNode("", !0)
|
|
943
|
+
], 64))), 128)),
|
|
940
944
|
createElementVNode("span", {
|
|
941
|
-
title: unref(
|
|
945
|
+
title: unref(y) == o.value ? unref(p)("i18n_btn_Ry_a0984", "\u4EAE\u8272") : unref(p)("i18n_btn_py_ceebb", "\u6697\u8272"),
|
|
942
946
|
class: "header-notice top-icon theme-switch"
|
|
943
947
|
}, [
|
|
944
|
-
unref(
|
|
948
|
+
unref(y) === s.value ? (openBlock(), createBlock(unref(QSymbolIcon), {
|
|
945
949
|
key: 0,
|
|
946
950
|
class: "icon",
|
|
947
951
|
type: "icon-Q-black",
|
|
948
952
|
size: "30",
|
|
949
|
-
onClick:
|
|
953
|
+
onClick: re[0] || (re[0] = (ae) => unref(O)())
|
|
950
954
|
})) : (openBlock(), createBlock(unref(QSymbolIcon), {
|
|
951
955
|
key: 1,
|
|
952
956
|
class: "icon",
|
|
953
957
|
type: "icon-Q-white",
|
|
954
958
|
size: "30",
|
|
955
|
-
onClick:
|
|
959
|
+
onClick: re[1] || (re[1] = (ae) => unref(O)())
|
|
956
960
|
}))
|
|
957
961
|
], 8, _hoisted_4$t)
|
|
958
962
|
]));
|
|
959
963
|
}
|
|
960
|
-
}),
|
|
964
|
+
}), rightTool_vue_vue_type_style_index_0_scoped_3f9eab38_lang = "", rightTool = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-3f9eab38"]]), _hoisted_1$M = { class: "lang-wrap" }, _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
961
965
|
__name: "langSwitch",
|
|
962
966
|
setup(r) {
|
|
963
967
|
const n = qqtApi.useHttp(), o = inject("q-layout-header-default-language", "zh"), s = inject("q-layout-header-switch-language", (O) => {
|
|
@@ -1228,30 +1232,36 @@ const QLayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_
|
|
|
1228
1232
|
}, null, 8, ["visible"])) : createCommentVNode("", !0)
|
|
1229
1233
|
]));
|
|
1230
1234
|
}
|
|
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 =
|
|
1235
|
+
}), 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 = {
|
|
1236
|
+
key: 0,
|
|
1237
|
+
class: "btn-list"
|
|
1238
|
+
}, _hoisted_4$q = ["onClick"], _hoisted_5$k = { class: "title" }, _hoisted_6$g = { class: "header-right" }, _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
1232
1239
|
__name: "index",
|
|
1233
1240
|
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([
|
|
1241
|
+
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
1242
|
{
|
|
1236
1243
|
title: n("i18n_btn_AEdE_25190693", "\u4F01\u4E1A\u4E3B\u9875"),
|
|
1237
1244
|
icon: "icon-Q-Company-Pages",
|
|
1238
1245
|
type: "icon-Q-Company-Pages",
|
|
1239
|
-
color: "#5570F1"
|
|
1246
|
+
color: "#5570F1",
|
|
1247
|
+
show: p.showTanentPageHome
|
|
1240
1248
|
},
|
|
1241
1249
|
{
|
|
1242
1250
|
title: n("i18n_btn_CnXL_273c6baa", "\u5185\u91C7\u5546\u57CE"),
|
|
1243
1251
|
icon: "icon-Q-Internal-shopping-mall",
|
|
1244
1252
|
type: "icon-Q-Internal-shopping-mall",
|
|
1245
|
-
color: "#E73152"
|
|
1253
|
+
color: "#E73152",
|
|
1254
|
+
show: p.showShoppingMall
|
|
1246
1255
|
},
|
|
1247
1256
|
{
|
|
1248
1257
|
title: n("i18n_btn_nRT_234d3cb", "\u91C7\u8D2D\u7F51"),
|
|
1249
1258
|
icon: "icon-Q-Procurement-website",
|
|
1250
1259
|
type: "icon-Q-Procurement-website",
|
|
1251
|
-
color: "#EF9144"
|
|
1260
|
+
color: "#EF9144",
|
|
1261
|
+
show: p.showWebProcurement
|
|
1252
1262
|
}
|
|
1253
|
-
]),
|
|
1254
|
-
switch (
|
|
1263
|
+
]), y = (O) => {
|
|
1264
|
+
switch (O) {
|
|
1255
1265
|
case "icon-Q-Company-Pages":
|
|
1256
1266
|
o();
|
|
1257
1267
|
break;
|
|
@@ -1266,33 +1276,35 @@ const QLayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_
|
|
|
1266
1276
|
break;
|
|
1267
1277
|
}
|
|
1268
1278
|
};
|
|
1269
|
-
return (
|
|
1279
|
+
return (O, x) => (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
1270
1280
|
createElementVNode("div", _hoisted_2$B, [
|
|
1271
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1281
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(b.value, (D, R) => (openBlock(), createElementBlock(Fragment, { key: R }, [
|
|
1282
|
+
D.show ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
1283
|
+
createElementVNode("span", {
|
|
1284
|
+
onClick: (P) => y(D.type)
|
|
1285
|
+
}, [
|
|
1286
|
+
createVNode$1(unref(QIcon), {
|
|
1287
|
+
class: "icon",
|
|
1288
|
+
type: D.type,
|
|
1289
|
+
size: "16",
|
|
1290
|
+
color: D.color
|
|
1291
|
+
}, null, 8, ["type", "color"]),
|
|
1292
|
+
createElementVNode("span", _hoisted_5$k, toDisplayString(D.title), 1)
|
|
1293
|
+
], 8, _hoisted_4$q)
|
|
1294
|
+
])) : createCommentVNode("", !0)
|
|
1295
|
+
], 64))), 128))
|
|
1284
1296
|
]),
|
|
1285
|
-
createElementVNode("div",
|
|
1297
|
+
createElementVNode("div", _hoisted_6$g, [
|
|
1286
1298
|
createVNode$1(navRight, null, {
|
|
1287
1299
|
extraRightTool: withCtx(() => [
|
|
1288
|
-
renderSlot(
|
|
1300
|
+
renderSlot(O.$slots, "extraRightTool", {}, void 0, !0)
|
|
1289
1301
|
]),
|
|
1290
1302
|
_: 3
|
|
1291
1303
|
})
|
|
1292
1304
|
])
|
|
1293
1305
|
]));
|
|
1294
1306
|
}
|
|
1295
|
-
}),
|
|
1307
|
+
}), index_vue_vue_type_style_index_0_scoped_7226c1e2_lang = "", QLayoutHeader = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-7226c1e2"]]), _sfc_main$11 = defineComponent({
|
|
1296
1308
|
name: "QLayout",
|
|
1297
1309
|
components: {
|
|
1298
1310
|
QLayoutSider,
|
|
@@ -1367,11 +1379,14 @@ const QLayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_
|
|
|
1367
1379
|
},
|
|
1368
1380
|
kefu: {
|
|
1369
1381
|
type: Function
|
|
1382
|
+
},
|
|
1383
|
+
layoutConfig: {
|
|
1384
|
+
type: Object
|
|
1370
1385
|
}
|
|
1371
1386
|
},
|
|
1372
1387
|
emits: ["menuSelect", "schedule-click", "services-click"],
|
|
1373
1388
|
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);
|
|
1389
|
+
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
1390
|
const o = ref(!0), s = ref();
|
|
1376
1391
|
return {
|
|
1377
1392
|
menuSelect: (O) => {
|
|
@@ -1394,7 +1409,7 @@ const QLayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_
|
|
|
1394
1409
|
siderRef: s
|
|
1395
1410
|
};
|
|
1396
1411
|
}
|
|
1397
|
-
}),
|
|
1412
|
+
}), index_vue_vue_type_style_index_0_scoped_dc8ce879_lang = "";
|
|
1398
1413
|
function _sfc_render$X(r, n, o, s, l, c) {
|
|
1399
1414
|
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
1415
|
return openBlock(), createBlock(x, {
|
|
@@ -1452,7 +1467,7 @@ function _sfc_render$X(r, n, o, s, l, c) {
|
|
|
1452
1467
|
_: 3
|
|
1453
1468
|
}, 8, ["onClick"]);
|
|
1454
1469
|
}
|
|
1455
|
-
const QQTLayout = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$X], ["__scopeId", "data-v-
|
|
1470
|
+
const QQTLayout = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$X], ["__scopeId", "data-v-dc8ce879"]]), index$1m = qqtUtils.withInstall(QQTLayout), index$1n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1456
1471
|
__proto__: null,
|
|
1457
1472
|
QQTLayout,
|
|
1458
1473
|
default: index$1m
|