ocpview-pro 0.1.21 → 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.
- package/dist/ocpviewplus.min.esm.js +12 -8
- package/dist/ocpviewplus.min.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/masterplate/listbtntoolbar.vue +3 -3
- package/src/components/tree/basetree.vue +1 -1
- package/src/index.js +1 -0
- package/src/localePlus/index.js +7 -1
|
@@ -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.
|
|
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 = "";
|
|
@@ -35139,7 +35139,7 @@ const _sfc_main$17 = {
|
|
|
35139
35139
|
}
|
|
35140
35140
|
if (this.myConfig.showRootNode) {
|
|
35141
35141
|
let root = {
|
|
35142
|
-
title: " " + this.myConfig.rootNode.name,
|
|
35142
|
+
title: " " + this.$t(this.myConfig.rootNode.name),
|
|
35143
35143
|
expand: true,
|
|
35144
35144
|
disabled: this.myConfig.readOnly,
|
|
35145
35145
|
children: tree,
|
|
@@ -52360,7 +52360,7 @@ const _sfc_main$n = {
|
|
|
52360
52360
|
modulecode: "",
|
|
52361
52361
|
items: [],
|
|
52362
52362
|
mainButton: "addData",
|
|
52363
|
-
mainButtonText:
|
|
52363
|
+
mainButtonText: "\u65B0\u589E",
|
|
52364
52364
|
mainButtonIcon: null,
|
|
52365
52365
|
mainButtonCustomIcon: "iconfont icon-custom-add"
|
|
52366
52366
|
},
|
|
@@ -52595,7 +52595,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52595
52595
|
onClick: $options.addData
|
|
52596
52596
|
}, {
|
|
52597
52597
|
default: withCtx(() => [
|
|
52598
|
-
createTextVNode(toDisplayString$1($data.myConfig.mainButtonText), 1)
|
|
52598
|
+
createTextVNode(toDisplayString$1(_ctx.$t($data.myConfig.mainButtonText)), 1)
|
|
52599
52599
|
]),
|
|
52600
52600
|
_: 1
|
|
52601
52601
|
}, 8, ["custom-icon", "icon", "disabled", "onClick"])
|
|
@@ -52627,7 +52627,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52627
52627
|
disabled: !!item.readOnly
|
|
52628
52628
|
}, {
|
|
52629
52629
|
default: withCtx(() => [
|
|
52630
|
-
createTextVNode(toDisplayString$1(item.text), 1)
|
|
52630
|
+
createTextVNode(toDisplayString$1(item.text ? _ctx.$t(item.text) : item.text), 1)
|
|
52631
52631
|
]),
|
|
52632
52632
|
_: 2
|
|
52633
52633
|
}, 1032, ["icon", "custom-icon", "onClick", "disabled"])
|
|
@@ -52758,7 +52758,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52758
52758
|
_: 1
|
|
52759
52759
|
});
|
|
52760
52760
|
}
|
|
52761
|
-
var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-
|
|
52761
|
+
var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-28108c6b"]]);
|
|
52762
52762
|
const _sfc_main$m = {
|
|
52763
52763
|
name: "mleftlistrightdetails",
|
|
52764
52764
|
components: { BillOperLog, ListBtnToolbar, BillDetailForm: billdetailform },
|
|
@@ -143806,6 +143806,7 @@ const getReportLocaleMessage = async () => {
|
|
|
143806
143806
|
}
|
|
143807
143807
|
};
|
|
143808
143808
|
const localeMap = { CN: "zh-CN", TR: "zh-TW", EN: "en-US" };
|
|
143809
|
+
let localeReadyPromise = Promise.resolve();
|
|
143809
143810
|
const install$1 = function(app2, options = {}) {
|
|
143810
143811
|
if (options.defaultLocale) {
|
|
143811
143812
|
i18n.global.locale.value = options.defaultLocale;
|
|
@@ -143813,13 +143814,15 @@ const install$1 = function(app2, options = {}) {
|
|
|
143813
143814
|
app2.use(i18n);
|
|
143814
143815
|
app2.config.globalProperties.$localeMap = localeMap;
|
|
143815
143816
|
if (options.fetchDynamic !== false) {
|
|
143816
|
-
getReportLocaleMessage();
|
|
143817
|
+
localeReadyPromise = getReportLocaleMessage();
|
|
143817
143818
|
}
|
|
143818
143819
|
};
|
|
143820
|
+
const localeReady = () => localeReadyPromise;
|
|
143819
143821
|
var localePlus = {
|
|
143820
143822
|
install: install$1,
|
|
143821
143823
|
i18n,
|
|
143822
|
-
getReportLocaleMessage
|
|
143824
|
+
getReportLocaleMessage,
|
|
143825
|
+
localeReady
|
|
143823
143826
|
};
|
|
143824
143827
|
function setupCopyFormatRestore() {
|
|
143825
143828
|
document.addEventListener("copy", (e11) => {
|
|
@@ -143958,6 +143961,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
143958
143961
|
const API = {
|
|
143959
143962
|
version: pkg.version,
|
|
143960
143963
|
install: install2,
|
|
143964
|
+
localeReady: localePlus.localeReady,
|
|
143961
143965
|
...components
|
|
143962
143966
|
};
|
|
143963
143967
|
export { API as default };
|