@yimou6/common-ui 1.13.11 → 1.13.12
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/cdn/index.cdn.js +1 -1
- package/cdn/index.cdn.js.map +1 -1
- package/cdn/index.cdn.mjs +1 -1
- package/cdn/index.cdn.mjs.map +1 -1
- package/es/components/page-header/src/page-header.vue2.mjs +3 -2
- package/es/components/page-header/src/page-header.vue2.mjs.map +1 -1
- package/lib/components/page-header/src/page-header.vue2.js +3 -2
- package/lib/components/page-header/src/page-header.vue2.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,10 +16,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
const menuStore = inject(MENU_STORE);
|
|
17
17
|
const headerText = ref("");
|
|
18
18
|
function setHeaderText() {
|
|
19
|
-
var _a, _b, _c;
|
|
19
|
+
var _a, _b, _c, _d;
|
|
20
20
|
if (props.title) return props.title;
|
|
21
21
|
if (props.action) return ((_b = (_a = props.action) == null ? void 0 : _a.getCurrentMenu()) == null ? void 0 : _b.label) || "";
|
|
22
|
-
if (menuStore)
|
|
22
|
+
if (menuStore)
|
|
23
|
+
return ((_c = menuStore.getCurrentMenu()) == null ? void 0 : _c.label) || ((_d = menuStore.getCurrentMenu()) == null ? void 0 : _d.menuName) || "";
|
|
23
24
|
return "";
|
|
24
25
|
}
|
|
25
26
|
__name(setHeaderText, "setHeaderText");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.vue2.mjs","sources":["../../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { inject, ref, watchEffect } from \"vue\";\nimport { MENU_STORE } from \"../../../utils\";\nimport { PageHeaderProps } from \"./page-header\";\n\ndefineOptions({\n name: \"IPageHeader\",\n});\n\nconst props = defineProps(PageHeaderProps);\nconst menuStore = inject(MENU_STORE);\nconst headerText = ref(\"\");\n\nfunction setHeaderText() {\n if (props.title) return props.title;\n if (props.action) return props.action?.getCurrentMenu()?.label || \"\";\n if (menuStore)
|
|
1
|
+
{"version":3,"file":"page-header.vue2.mjs","sources":["../../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { inject, ref, watchEffect } from \"vue\";\nimport { MENU_STORE } from \"../../../utils\";\nimport { PageHeaderProps } from \"./page-header\";\n\ndefineOptions({\n name: \"IPageHeader\",\n});\n\nconst props = defineProps(PageHeaderProps);\nconst menuStore = inject(MENU_STORE);\nconst headerText = ref(\"\");\n\nfunction setHeaderText() {\n if (props.title) return props.title;\n if (props.action) return props.action?.getCurrentMenu()?.label || \"\";\n if (menuStore)\n return (\n menuStore.getCurrentMenu()?.label ||\n menuStore.getCurrentMenu()?.menuName ||\n \"\"\n );\n return \"\";\n}\nwatchEffect(() => {\n headerText.value = setHeaderText();\n});\n</script>\n\n<template>\n <div\n class=\"t-page-header\"\n :class=\"{\n 't-page-header__underline': underline,\n 't-page-header__between': slotFlex === 'between',\n 't-page-header__start': slotFlex === 'start',\n }\"\n >\n <div :class=\"{ 't-page-name': headerText }\">{{ headerText }}</div>\n <slot name=\"default\" />\n </div>\n</template>\n"],"names":["_createElementBlock","underline","slotFlex","_createElementVNode","_renderSlot"],"mappings":";;;;;;;;;;;;;;AASA,IAAA,MAAM,KAAQ,GAAA,OAAA;AACd,IAAM,MAAA,SAAA,GAAY,OAAO,UAAU,CAAA;AACnC,IAAM,MAAA,UAAA,GAAa,IAAI,EAAE,CAAA;AAEzB,IAAA,SAAS,aAAgB,GAAA;;AACvB,MAAI,IAAA,KAAA,CAAM,KAAO,EAAA,OAAO,KAAM,CAAA,KAAA;AAC9B,MAAI,IAAA,KAAA,CAAM,QAAe,OAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAM,WAAN,IAAc,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,cAAA,EAAA,KAAd,mBAAgC,KAAS,KAAA,EAAA;AAClE,MAAI,IAAA,SAAA;AACF,QACE,OAAA,CAAA,CAAA,EAAA,GAAA,SAAA,CAAU,gBAAV,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAA4B,YAC5B,EAAU,GAAA,SAAA,CAAA,cAAA,EAAV,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAA4B,QAC5B,CAAA,IAAA,EAAA;AAEJ,MAAO,OAAA,EAAA;AAAA;AATA,IAAA,MAAA,CAAA,aAAA,EAAA,eAAA,CAAA;AAWT,IAAA,WAAA,CAAY,MAAM;AAChB,MAAA,UAAA,CAAW,QAAQ,aAAc,EAAA;AAAA,KAClC,CAAA;;wBAIC,EAAAA,kBAAA;AAAA,QAUM,KAAA;AAAA,QAAA;AAAA,UATJ,KAAA,kBAAM,eAAe,EAAA;AAAA,wCACuBC,IAAS,CAAA,SAAA;AAAA,sCAAkCC,KAAQ,QAAA,KAAA,SAAA;AAAA,oCAA8CA,KAAQ,QAAA,KAAA;AAAA;;;UAMrJC,kBAAA;AAAA,YAAkE,KAAA;AAAA,YAAA;AAAA,cAA5D,qCAAwB,EAAA,UAAA,CAAU,OAAA;AAAA;4BAAO,WAAU,KAAA,CAAA;AAAA,YAAA;AAAA;AAAA,WAAA;AAAA,UACzDC,UAAA,CAAuB,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;"}
|
|
@@ -20,10 +20,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
20
|
const menuStore = vue.inject(provide.MENU_STORE);
|
|
21
21
|
const headerText = vue.ref("");
|
|
22
22
|
function setHeaderText() {
|
|
23
|
-
var _a, _b, _c;
|
|
23
|
+
var _a, _b, _c, _d;
|
|
24
24
|
if (props.title) return props.title;
|
|
25
25
|
if (props.action) return ((_b = (_a = props.action) == null ? void 0 : _a.getCurrentMenu()) == null ? void 0 : _b.label) || "";
|
|
26
|
-
if (menuStore)
|
|
26
|
+
if (menuStore)
|
|
27
|
+
return ((_c = menuStore.getCurrentMenu()) == null ? void 0 : _c.label) || ((_d = menuStore.getCurrentMenu()) == null ? void 0 : _d.menuName) || "";
|
|
27
28
|
return "";
|
|
28
29
|
}
|
|
29
30
|
__name(setHeaderText, "setHeaderText");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.vue2.js","sources":["../../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { inject, ref, watchEffect } from \"vue\";\nimport { MENU_STORE } from \"../../../utils\";\nimport { PageHeaderProps } from \"./page-header\";\n\ndefineOptions({\n name: \"IPageHeader\",\n});\n\nconst props = defineProps(PageHeaderProps);\nconst menuStore = inject(MENU_STORE);\nconst headerText = ref(\"\");\n\nfunction setHeaderText() {\n if (props.title) return props.title;\n if (props.action) return props.action?.getCurrentMenu()?.label || \"\";\n if (menuStore)
|
|
1
|
+
{"version":3,"file":"page-header.vue2.js","sources":["../../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { inject, ref, watchEffect } from \"vue\";\nimport { MENU_STORE } from \"../../../utils\";\nimport { PageHeaderProps } from \"./page-header\";\n\ndefineOptions({\n name: \"IPageHeader\",\n});\n\nconst props = defineProps(PageHeaderProps);\nconst menuStore = inject(MENU_STORE);\nconst headerText = ref(\"\");\n\nfunction setHeaderText() {\n if (props.title) return props.title;\n if (props.action) return props.action?.getCurrentMenu()?.label || \"\";\n if (menuStore)\n return (\n menuStore.getCurrentMenu()?.label ||\n menuStore.getCurrentMenu()?.menuName ||\n \"\"\n );\n return \"\";\n}\nwatchEffect(() => {\n headerText.value = setHeaderText();\n});\n</script>\n\n<template>\n <div\n class=\"t-page-header\"\n :class=\"{\n 't-page-header__underline': underline,\n 't-page-header__between': slotFlex === 'between',\n 't-page-header__start': slotFlex === 'start',\n }\"\n >\n <div :class=\"{ 't-page-name': headerText }\">{{ headerText }}</div>\n <slot name=\"default\" />\n </div>\n</template>\n"],"names":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