ocpview-pro 0.1.20 → 0.1.22

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.
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
453
453
  common.initAnchor(ViewUI2.Anchor);
454
454
  };
455
455
  const name = "ocpview-pro";
456
- const version$2 = "0.1.17";
456
+ const version$2 = "0.1.21";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -1439,11 +1439,6 @@ caseMethod.getToken = function(_self) {
1439
1439
  }
1440
1440
  if (Cookies.get("token")) {
1441
1441
  token = Cookies.get("token");
1442
- } else {
1443
- let temp = caseMethod.getUrlParam("token");
1444
- if (temp) {
1445
- token = temp;
1446
- }
1447
1442
  }
1448
1443
  return token;
1449
1444
  };
@@ -35144,7 +35139,7 @@ const _sfc_main$17 = {
35144
35139
  }
35145
35140
  if (this.myConfig.showRootNode) {
35146
35141
  let root = {
35147
- title: " " + this.myConfig.rootNode.name,
35142
+ title: " " + this.$t(this.myConfig.rootNode.name),
35148
35143
  expand: true,
35149
35144
  disabled: this.myConfig.readOnly,
35150
35145
  children: tree,
@@ -52365,7 +52360,7 @@ const _sfc_main$n = {
52365
52360
  modulecode: "",
52366
52361
  items: [],
52367
52362
  mainButton: "addData",
52368
- mainButtonText: this.$t("\u65B0\u589E"),
52363
+ mainButtonText: "\u65B0\u589E",
52369
52364
  mainButtonIcon: null,
52370
52365
  mainButtonCustomIcon: "iconfont icon-custom-add"
52371
52366
  },
@@ -52600,7 +52595,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
52600
52595
  onClick: $options.addData
52601
52596
  }, {
52602
52597
  default: withCtx(() => [
52603
- createTextVNode(toDisplayString$1($data.myConfig.mainButtonText), 1)
52598
+ createTextVNode(toDisplayString$1(_ctx.$t($data.myConfig.mainButtonText)), 1)
52604
52599
  ]),
52605
52600
  _: 1
52606
52601
  }, 8, ["custom-icon", "icon", "disabled", "onClick"])
@@ -52632,7 +52627,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
52632
52627
  disabled: !!item.readOnly
52633
52628
  }, {
52634
52629
  default: withCtx(() => [
52635
- createTextVNode(toDisplayString$1(item.text), 1)
52630
+ createTextVNode(toDisplayString$1(item.text ? _ctx.$t(item.text) : item.text), 1)
52636
52631
  ]),
52637
52632
  _: 2
52638
52633
  }, 1032, ["icon", "custom-icon", "onClick", "disabled"])
@@ -52763,7 +52758,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
52763
52758
  _: 1
52764
52759
  });
52765
52760
  }
52766
- var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-522d7085"]]);
52761
+ var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-28108c6b"]]);
52767
52762
  const _sfc_main$m = {
52768
52763
  name: "mleftlistrightdetails",
52769
52764
  components: { BillOperLog, ListBtnToolbar, BillDetailForm: billdetailform },
@@ -143811,6 +143806,7 @@ const getReportLocaleMessage = async () => {
143811
143806
  }
143812
143807
  };
143813
143808
  const localeMap = { CN: "zh-CN", TR: "zh-TW", EN: "en-US" };
143809
+ let localeReadyPromise = Promise.resolve();
143814
143810
  const install$1 = function(app2, options = {}) {
143815
143811
  if (options.defaultLocale) {
143816
143812
  i18n.global.locale.value = options.defaultLocale;
@@ -143818,13 +143814,15 @@ const install$1 = function(app2, options = {}) {
143818
143814
  app2.use(i18n);
143819
143815
  app2.config.globalProperties.$localeMap = localeMap;
143820
143816
  if (options.fetchDynamic !== false) {
143821
- getReportLocaleMessage();
143817
+ localeReadyPromise = getReportLocaleMessage();
143822
143818
  }
143823
143819
  };
143820
+ const localeReady = () => localeReadyPromise;
143824
143821
  var localePlus = {
143825
143822
  install: install$1,
143826
143823
  i18n,
143827
- getReportLocaleMessage
143824
+ getReportLocaleMessage,
143825
+ localeReady
143828
143826
  };
143829
143827
  function setupCopyFormatRestore() {
143830
143828
  document.addEventListener("copy", (e11) => {
@@ -143963,6 +143961,7 @@ if (typeof window !== "undefined" && window.Vue) {
143963
143961
  const API = {
143964
143962
  version: pkg.version,
143965
143963
  install: install2,
143964
+ localeReady: localePlus.localeReady,
143966
143965
  ...components
143967
143966
  };
143968
143967
  export { API as default };