@feedmepos/mf-kitchen 1.0.2 → 1.0.3-beta.0
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/app.js +30 -28
- package/package.json +3 -2
package/dist/app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as b } from "vue-router";
|
|
1
|
+
import { defineComponent as l, computed as n, resolveComponent as c, openBlock as d, createBlock as s, onMounted as v } from "vue";
|
|
2
|
+
import { useRouter as h, useRoute as b } from "vue-router";
|
|
3
3
|
import { useI18n as f, useCoreStore as k } from "@feedmepos/mf-common";
|
|
4
4
|
const y = {
|
|
5
5
|
"mf-kitchen": {
|
|
@@ -648,49 +648,51 @@ Scan QR code to let us know how you enjoyed with us, or to claim e-invoice`,
|
|
|
648
648
|
footerTextPlaceholder: "在此处输入页脚文本",
|
|
649
649
|
footerQrPlaceholder: "在此处输入页脚二维码"
|
|
650
650
|
}
|
|
651
|
-
},
|
|
651
|
+
}, a = [
|
|
652
652
|
{
|
|
653
653
|
path: "/receipt-template",
|
|
654
654
|
name: "receipt-template",
|
|
655
655
|
component: () => import("./ReceiptTemplate-ad04045a.js")
|
|
656
656
|
}
|
|
657
657
|
];
|
|
658
|
-
var
|
|
659
|
-
|
|
658
|
+
var m;
|
|
659
|
+
a.push({
|
|
660
660
|
path: "/",
|
|
661
661
|
redirect: {
|
|
662
|
-
name: ((
|
|
662
|
+
name: ((m = a[0].children) == null ? void 0 : m[0].name) || a[0].name
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
|
-
const w = /* @__PURE__ */
|
|
665
|
+
const w = /* @__PURE__ */ l({
|
|
666
666
|
__name: "Navigator",
|
|
667
|
-
setup(
|
|
668
|
-
const { t } = f(),
|
|
667
|
+
setup(p) {
|
|
668
|
+
const { t: e } = f(), i = h(), o = n(() => [
|
|
669
669
|
{
|
|
670
|
-
label:
|
|
670
|
+
label: e("mf-kitchen.receiptTemplate"),
|
|
671
671
|
value: "receipt-template",
|
|
672
|
-
action: () =>
|
|
672
|
+
action: () => i.push({ name: "receipt-template" })
|
|
673
673
|
}
|
|
674
|
-
]),
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
674
|
+
]), t = b(), u = n(() => {
|
|
675
|
+
var r;
|
|
676
|
+
return ((r = t.name) == null ? void 0 : r.toString()) || "";
|
|
677
|
+
});
|
|
678
|
+
return (r, C) => {
|
|
679
|
+
const g = c("fm-collapsible-tabs");
|
|
680
|
+
return d(), s(g, {
|
|
681
|
+
"model-value": u.value,
|
|
682
|
+
items: o.value,
|
|
681
683
|
class: "py-16 px-8"
|
|
682
|
-
}, null, 8, ["
|
|
684
|
+
}, null, 8, ["model-value", "items"]);
|
|
683
685
|
};
|
|
684
686
|
}
|
|
685
|
-
}), S = /* @__PURE__ */
|
|
687
|
+
}), S = /* @__PURE__ */ l({
|
|
686
688
|
__name: "App",
|
|
687
|
-
setup(
|
|
688
|
-
const
|
|
689
|
-
return
|
|
690
|
-
|
|
691
|
-
}), (
|
|
692
|
-
const
|
|
693
|
-
return
|
|
689
|
+
setup(p) {
|
|
690
|
+
const e = k();
|
|
691
|
+
return v(() => {
|
|
692
|
+
e.registerSidebarComponent(w);
|
|
693
|
+
}), (i, o) => {
|
|
694
|
+
const t = c("router-view");
|
|
695
|
+
return d(), s(t);
|
|
694
696
|
};
|
|
695
697
|
}
|
|
696
698
|
}), D = {
|
|
@@ -701,5 +703,5 @@ const w = /* @__PURE__ */ m({
|
|
|
701
703
|
export {
|
|
702
704
|
S as FmApp,
|
|
703
705
|
D as i18nMessages,
|
|
704
|
-
|
|
706
|
+
a as routes
|
|
705
707
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-kitchen",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3-beta.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"import": "./dist/app.js"
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
"./style.css": "./dist/style.css"
|
|
14
15
|
},
|
|
15
16
|
"scripts": {
|
|
16
17
|
"dev": "cross-env NODE_ENV=development vite --mode development",
|