@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.
Files changed (2) hide show
  1. package/dist/app.js +30 -28
  2. package/package.json +3 -2
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as m, computed as g, ref as v, resolveComponent as l, openBlock as c, createBlock as d, onMounted as h } from "vue";
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
- }, r = [
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 n;
659
- r.push({
658
+ var m;
659
+ a.push({
660
660
  path: "/",
661
661
  redirect: {
662
- name: ((n = r[0].children) == null ? void 0 : n[0].name) || r[0].name
662
+ name: ((m = a[0].children) == null ? void 0 : m[0].name) || a[0].name
663
663
  }
664
664
  });
665
- const w = /* @__PURE__ */ m({
665
+ const w = /* @__PURE__ */ l({
666
666
  __name: "Navigator",
667
- setup(s) {
668
- const { t } = f(), a = b(), i = g(() => [
667
+ setup(p) {
668
+ const { t: e } = f(), i = h(), o = n(() => [
669
669
  {
670
- label: t("mf-kitchen.receiptTemplate"),
670
+ label: e("mf-kitchen.receiptTemplate"),
671
671
  value: "receipt-template",
672
- action: () => a.push({ name: "receipt-template" })
672
+ action: () => i.push({ name: "receipt-template" })
673
673
  }
674
- ]), e = v("");
675
- return (C, o) => {
676
- const p = l("fm-collapsible-tabs");
677
- return c(), d(p, {
678
- modelValue: e.value,
679
- "onUpdate:modelValue": o[0] || (o[0] = (u) => e.value = u),
680
- items: i.value,
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, ["modelValue", "items"]);
684
+ }, null, 8, ["model-value", "items"]);
683
685
  };
684
686
  }
685
- }), S = /* @__PURE__ */ m({
687
+ }), S = /* @__PURE__ */ l({
686
688
  __name: "App",
687
- setup(s) {
688
- const t = k();
689
- return h(() => {
690
- t.registerSidebarComponent(w);
691
- }), (a, i) => {
692
- const e = l("router-view");
693
- return c(), d(e);
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
- r as routes
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.2",
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",