ocpview-pro 0.1.21 → 0.1.23
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 +21 -9
- package/dist/ocpviewplus.min.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/masterplate/detailsbox.vue +13 -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.22";
|
|
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,
|
|
@@ -46924,7 +46924,15 @@ const _sfc_main$w = {
|
|
|
46924
46924
|
if (index > -1) {
|
|
46925
46925
|
let form = this.$Method.copy(this.data[index]);
|
|
46926
46926
|
if (this.$refs[obj.para.curlIndex] && this.$refs[obj.para.curlIndex][0]) {
|
|
46927
|
-
|
|
46927
|
+
let rowObject = this.$refs[obj.para.curlIndex][0];
|
|
46928
|
+
form = rowObject.getData();
|
|
46929
|
+
let gridName = rowObject.config ? rowObject.config.gridName : void 0;
|
|
46930
|
+
if (gridName && rowObject.$refs && rowObject.$refs.grid) {
|
|
46931
|
+
let gridDelData = rowObject.$refs.grid.delData || [];
|
|
46932
|
+
if (gridDelData.length > 0) {
|
|
46933
|
+
form[gridName] = gridDelData.concat(form[gridName] || []);
|
|
46934
|
+
}
|
|
46935
|
+
}
|
|
46928
46936
|
}
|
|
46929
46937
|
if (this.myConfig.delRowBefore) {
|
|
46930
46938
|
let obj2 = {};
|
|
@@ -52360,7 +52368,7 @@ const _sfc_main$n = {
|
|
|
52360
52368
|
modulecode: "",
|
|
52361
52369
|
items: [],
|
|
52362
52370
|
mainButton: "addData",
|
|
52363
|
-
mainButtonText:
|
|
52371
|
+
mainButtonText: "\u65B0\u589E",
|
|
52364
52372
|
mainButtonIcon: null,
|
|
52365
52373
|
mainButtonCustomIcon: "iconfont icon-custom-add"
|
|
52366
52374
|
},
|
|
@@ -52595,7 +52603,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52595
52603
|
onClick: $options.addData
|
|
52596
52604
|
}, {
|
|
52597
52605
|
default: withCtx(() => [
|
|
52598
|
-
createTextVNode(toDisplayString$1($data.myConfig.mainButtonText), 1)
|
|
52606
|
+
createTextVNode(toDisplayString$1(_ctx.$t($data.myConfig.mainButtonText)), 1)
|
|
52599
52607
|
]),
|
|
52600
52608
|
_: 1
|
|
52601
52609
|
}, 8, ["custom-icon", "icon", "disabled", "onClick"])
|
|
@@ -52627,7 +52635,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52627
52635
|
disabled: !!item.readOnly
|
|
52628
52636
|
}, {
|
|
52629
52637
|
default: withCtx(() => [
|
|
52630
|
-
createTextVNode(toDisplayString$1(item.text), 1)
|
|
52638
|
+
createTextVNode(toDisplayString$1(item.text ? _ctx.$t(item.text) : item.text), 1)
|
|
52631
52639
|
]),
|
|
52632
52640
|
_: 2
|
|
52633
52641
|
}, 1032, ["icon", "custom-icon", "onClick", "disabled"])
|
|
@@ -52758,7 +52766,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52758
52766
|
_: 1
|
|
52759
52767
|
});
|
|
52760
52768
|
}
|
|
52761
|
-
var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-
|
|
52769
|
+
var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-28108c6b"]]);
|
|
52762
52770
|
const _sfc_main$m = {
|
|
52763
52771
|
name: "mleftlistrightdetails",
|
|
52764
52772
|
components: { BillOperLog, ListBtnToolbar, BillDetailForm: billdetailform },
|
|
@@ -143806,6 +143814,7 @@ const getReportLocaleMessage = async () => {
|
|
|
143806
143814
|
}
|
|
143807
143815
|
};
|
|
143808
143816
|
const localeMap = { CN: "zh-CN", TR: "zh-TW", EN: "en-US" };
|
|
143817
|
+
let localeReadyPromise = Promise.resolve();
|
|
143809
143818
|
const install$1 = function(app2, options = {}) {
|
|
143810
143819
|
if (options.defaultLocale) {
|
|
143811
143820
|
i18n.global.locale.value = options.defaultLocale;
|
|
@@ -143813,13 +143822,15 @@ const install$1 = function(app2, options = {}) {
|
|
|
143813
143822
|
app2.use(i18n);
|
|
143814
143823
|
app2.config.globalProperties.$localeMap = localeMap;
|
|
143815
143824
|
if (options.fetchDynamic !== false) {
|
|
143816
|
-
getReportLocaleMessage();
|
|
143825
|
+
localeReadyPromise = getReportLocaleMessage();
|
|
143817
143826
|
}
|
|
143818
143827
|
};
|
|
143828
|
+
const localeReady = () => localeReadyPromise;
|
|
143819
143829
|
var localePlus = {
|
|
143820
143830
|
install: install$1,
|
|
143821
143831
|
i18n,
|
|
143822
|
-
getReportLocaleMessage
|
|
143832
|
+
getReportLocaleMessage,
|
|
143833
|
+
localeReady
|
|
143823
143834
|
};
|
|
143824
143835
|
function setupCopyFormatRestore() {
|
|
143825
143836
|
document.addEventListener("copy", (e11) => {
|
|
@@ -143958,6 +143969,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
143958
143969
|
const API = {
|
|
143959
143970
|
version: pkg.version,
|
|
143960
143971
|
install: install2,
|
|
143972
|
+
localeReady: localePlus.localeReady,
|
|
143961
143973
|
...components
|
|
143962
143974
|
};
|
|
143963
143975
|
export { API as default };
|