ocpview-plus 1.0.13 → 1.0.15
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 +62 -6
- package/dist/ocpviewplus.min.js +3 -3
- package/dist/style.css +1 -1
- package/dist/styles/efviewplus.css +1 -1
- package/package.json +1 -1
- package/src/components/grid/basegrid.vue +2 -0
- package/src/components/grid/editgridbase.vue +5 -0
- package/src/components/masterplate/editgridcard.vue +36 -3
- package/src/components/masterplate/formdetailtwo.vue +14 -3
- package/src/styles/common.less +7 -1
- package/src/styles/components/iconfont/fonts/iconfont.less +12 -4
- package/src/styles/components/iconfont/fonts/iconfont.svg +4 -0
- package/src/styles/components/iconfont/fonts/iconfont.ttf +0 -0
- package/src/styles/components/iconfont/fonts/iconfont.woff +0 -0
- package/src/styles/components/iconfont/fonts/iconfont.woff2 +0 -0
|
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
|
|
|
453
453
|
common.initAnchor(ViewUI2.Anchor);
|
|
454
454
|
};
|
|
455
455
|
const name = "ocpview-plus";
|
|
456
|
-
const version$2 = "1.0.
|
|
456
|
+
const version$2 = "1.0.14";
|
|
457
457
|
const title = "ocpviewPlus";
|
|
458
458
|
const description = "A high quality Service UI components Library with Vue.js";
|
|
459
459
|
const homepage = "";
|
|
@@ -6907,6 +6907,8 @@ const _sfc_main$1I = {
|
|
|
6907
6907
|
column2.place = "grid";
|
|
6908
6908
|
if (column2.sortable === true) {
|
|
6909
6909
|
column2.sortable = "custom";
|
|
6910
|
+
} else if (column2.sortable === "default") {
|
|
6911
|
+
column2.sortable = true;
|
|
6910
6912
|
}
|
|
6911
6913
|
if (type === "numberbox") {
|
|
6912
6914
|
if (!column2.contentAlign) {
|
|
@@ -9106,6 +9108,7 @@ const _sfc_main$1F = {
|
|
|
9106
9108
|
labelWidth: 100,
|
|
9107
9109
|
showAddBtn: true,
|
|
9108
9110
|
showDelBatchBtn: true,
|
|
9111
|
+
showZoom: false,
|
|
9109
9112
|
delBatchBtnName: "\u5220\u9664",
|
|
9110
9113
|
addBtnName: "\u65B0\u589E",
|
|
9111
9114
|
editBtnName: "\u7F16\u8F91",
|
|
@@ -9115,6 +9118,7 @@ const _sfc_main$1F = {
|
|
|
9115
9118
|
showAddBtn: true,
|
|
9116
9119
|
showDelBatchBtn: true,
|
|
9117
9120
|
showDelBtn: true,
|
|
9121
|
+
showZoom: false,
|
|
9118
9122
|
delBatchBtnName: "\u5220\u9664",
|
|
9119
9123
|
addBtnName: "\u65B0\u589E",
|
|
9120
9124
|
showEditRowForm: false,
|
|
@@ -9164,6 +9168,9 @@ const _sfc_main$1F = {
|
|
|
9164
9168
|
if (this.myConfig.showDelBatchBtn !== void 0) {
|
|
9165
9169
|
this.showDelBatchBtn = this.myConfig.showDelBatchBtn;
|
|
9166
9170
|
}
|
|
9171
|
+
if (this.myConfig.showZoom !== void 0) {
|
|
9172
|
+
this.showZoom = this.myConfig.showZoom;
|
|
9173
|
+
}
|
|
9167
9174
|
if (this.myConfig.showPage) {
|
|
9168
9175
|
this.myConfig.indexMethod = this.customIndexMethod;
|
|
9169
9176
|
if (this.myConfig.pageSizeNum) {
|
|
@@ -43940,6 +43947,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43940
43947
|
]);
|
|
43941
43948
|
}
|
|
43942
43949
|
var billquerygrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$t]]);
|
|
43950
|
+
var editgridcard_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
43943
43951
|
const _sfc_main$v = {
|
|
43944
43952
|
name: "meditgridcard",
|
|
43945
43953
|
extends: _sfc_main$1F,
|
|
@@ -43957,6 +43965,8 @@ const _sfc_main$v = {
|
|
|
43957
43965
|
btnStyle: "padding-left:0px;padding-right:0px",
|
|
43958
43966
|
divStyle: "padding-left:24px",
|
|
43959
43967
|
showAddBtn: true,
|
|
43968
|
+
showZoom: false,
|
|
43969
|
+
isFull: false,
|
|
43960
43970
|
showDelBatchBtn: true,
|
|
43961
43971
|
showGrid: true,
|
|
43962
43972
|
showTitle: true,
|
|
@@ -44017,6 +44027,12 @@ const _sfc_main$v = {
|
|
|
44017
44027
|
setShowGrid(value) {
|
|
44018
44028
|
this.showGrid = value;
|
|
44019
44029
|
},
|
|
44030
|
+
setShowZoom(value) {
|
|
44031
|
+
this.showZoom = value;
|
|
44032
|
+
},
|
|
44033
|
+
setZoom() {
|
|
44034
|
+
this.isFull = !this.isFull;
|
|
44035
|
+
},
|
|
44020
44036
|
rowClick(e10) {
|
|
44021
44037
|
if (this.showEffectValue) {
|
|
44022
44038
|
this.curlEffectData = [];
|
|
@@ -44170,12 +44186,14 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44170
44186
|
])) : createCommentVNode("", true)
|
|
44171
44187
|
], 64)) : createCommentVNode("", true),
|
|
44172
44188
|
createElementVNode("div", {
|
|
44189
|
+
class: normalizeClass(["table-wrapper", { "is--maximize": $data.showZoom && $data.isFull }]),
|
|
44173
44190
|
style: normalizeStyle($data.divStyle)
|
|
44174
44191
|
}, [
|
|
44175
44192
|
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_4$a, [
|
|
44176
|
-
renderSlot(_ctx.$slots, "header")
|
|
44193
|
+
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
44177
44194
|
])) : withDirectives((openBlock(), createBlock(_component_Row, {
|
|
44178
44195
|
key: 1,
|
|
44196
|
+
"class-name": "row-box",
|
|
44179
44197
|
type: "flex",
|
|
44180
44198
|
justify: "start",
|
|
44181
44199
|
align: "middle",
|
|
@@ -44225,6 +44243,21 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44225
44243
|
}, 8, ["style", "disabled", "onClick"])
|
|
44226
44244
|
]),
|
|
44227
44245
|
_: 1
|
|
44246
|
+
})) : createCommentVNode("", true),
|
|
44247
|
+
$data.showZoom ? (openBlock(), createBlock(_component_Col, {
|
|
44248
|
+
key: 3,
|
|
44249
|
+
class: "col-align"
|
|
44250
|
+
}, {
|
|
44251
|
+
default: withCtx(() => [
|
|
44252
|
+
createVNode(_component_Button, {
|
|
44253
|
+
type: "ghost",
|
|
44254
|
+
shape: "circle",
|
|
44255
|
+
title: $data.isFull ? "\u8FD8\u539F" : "\u5168\u5C4F",
|
|
44256
|
+
customIcon: [$data.isFull ? "iconfont icon-custom-minimize" : "iconfont icon-custom-fullscreen"],
|
|
44257
|
+
onClick: $options.setZoom
|
|
44258
|
+
}, null, 8, ["title", "customIcon", "onClick"])
|
|
44259
|
+
]),
|
|
44260
|
+
_: 1
|
|
44228
44261
|
})) : createCommentVNode("", true)
|
|
44229
44262
|
]),
|
|
44230
44263
|
_: 1
|
|
@@ -44371,7 +44404,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44371
44404
|
}, 512), [
|
|
44372
44405
|
[vShow, $data.showGrid && $data.showEffectValue && $data.showEffectGrid]
|
|
44373
44406
|
])
|
|
44374
|
-
],
|
|
44407
|
+
], 6),
|
|
44375
44408
|
!_ctx.editRowFlag ? (openBlock(), createBlock(_component_Modal, {
|
|
44376
44409
|
key: 2,
|
|
44377
44410
|
modelValue: _ctx.showEditRowForm,
|
|
@@ -44395,7 +44428,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44395
44428
|
_: 3
|
|
44396
44429
|
}, 512);
|
|
44397
44430
|
}
|
|
44398
|
-
var mEditGridCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$s]]);
|
|
44431
|
+
var mEditGridCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$s], ["__scopeId", "data-v-52b06f05"]]);
|
|
44399
44432
|
const _sfc_main$u = {
|
|
44400
44433
|
name: "mformcard",
|
|
44401
44434
|
extends: FormBox,
|
|
@@ -44642,7 +44675,9 @@ const _sfc_main$t = {
|
|
|
44642
44675
|
btnReadOnly: false,
|
|
44643
44676
|
showAddBtn: true,
|
|
44644
44677
|
showDelBatchBtn: true,
|
|
44645
|
-
showForm: true
|
|
44678
|
+
showForm: true,
|
|
44679
|
+
showZoom: false,
|
|
44680
|
+
isFull: false
|
|
44646
44681
|
};
|
|
44647
44682
|
},
|
|
44648
44683
|
props: {
|
|
@@ -44712,6 +44747,9 @@ const _sfc_main$t = {
|
|
|
44712
44747
|
if (this.gridConfig.showDelBatchBtn !== void 0) {
|
|
44713
44748
|
this.showDelBatchBtn = this.gridConfig.showDelBatchBtn;
|
|
44714
44749
|
}
|
|
44750
|
+
if (this.gridConfig.showZoom !== void 0) {
|
|
44751
|
+
this.showZoom = this.gridConfig.showZoom;
|
|
44752
|
+
}
|
|
44715
44753
|
this.gridConfig.addRowBefore = this.addRowBefore;
|
|
44716
44754
|
this.gridConfig.delRowBefore = this.delRowBefore;
|
|
44717
44755
|
this.showChildrenGrid = true;
|
|
@@ -44899,6 +44937,9 @@ const _sfc_main$t = {
|
|
|
44899
44937
|
delRow() {
|
|
44900
44938
|
this.$refs.grid.delBatchRow();
|
|
44901
44939
|
},
|
|
44940
|
+
setShowZoom() {
|
|
44941
|
+
this.isFull = !this.isFull;
|
|
44942
|
+
},
|
|
44902
44943
|
delBatchRow() {
|
|
44903
44944
|
let obj = {};
|
|
44904
44945
|
obj.name = "delRowData";
|
|
@@ -45071,7 +45112,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
45071
45112
|
justify: "start",
|
|
45072
45113
|
align: "middle",
|
|
45073
45114
|
gutter: 0,
|
|
45074
|
-
style: { "margin-bottom": "10px" }
|
|
45115
|
+
style: { "margin-bottom": "10px", "display": "flex" }
|
|
45075
45116
|
}, {
|
|
45076
45117
|
default: withCtx(() => [
|
|
45077
45118
|
$data.showAddBtn ? (openBlock(), createBlock(_component_Col, { key: 0 }, {
|
|
@@ -45116,6 +45157,21 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
45116
45157
|
}, 8, ["disabled", "onClick"])
|
|
45117
45158
|
]),
|
|
45118
45159
|
_: 1
|
|
45160
|
+
})) : createCommentVNode("", true),
|
|
45161
|
+
$data.showZoom ? (openBlock(), createBlock(_component_Col, {
|
|
45162
|
+
key: 3,
|
|
45163
|
+
class: "col-align",
|
|
45164
|
+
style: { "flex": "1", "text-align": "right" }
|
|
45165
|
+
}, {
|
|
45166
|
+
default: withCtx(() => [
|
|
45167
|
+
createVNode(_component_Button, {
|
|
45168
|
+
type: "ghost",
|
|
45169
|
+
shape: "circle",
|
|
45170
|
+
customIcon: [$data.isFull ? "iconfont icon-custom-minimize" : "iconfont icon-custom-fullscreen"],
|
|
45171
|
+
onClick: _ctx.setZoom
|
|
45172
|
+
}, null, 8, ["customIcon", "onClick"])
|
|
45173
|
+
]),
|
|
45174
|
+
_: 1
|
|
45119
45175
|
})) : createCommentVNode("", true)
|
|
45120
45176
|
]),
|
|
45121
45177
|
_: 1
|