ocpview-plus 1.0.13 → 1.0.14
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 +60 -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/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
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ export default {
|
|
|
21
21
|
labelWidth: 100,
|
|
22
22
|
showAddBtn: true,
|
|
23
23
|
showDelBatchBtn: true,
|
|
24
|
+
showZoom:false,
|
|
24
25
|
delBatchBtnName: '删除',
|
|
25
26
|
addBtnName: '新增',
|
|
26
27
|
editBtnName: '编辑',
|
|
@@ -30,6 +31,7 @@ export default {
|
|
|
30
31
|
showAddBtn: true,
|
|
31
32
|
showDelBatchBtn: true,
|
|
32
33
|
showDelBtn: true,
|
|
34
|
+
showZoom:false,
|
|
33
35
|
delBatchBtnName: '删除',
|
|
34
36
|
addBtnName: '新增',
|
|
35
37
|
showEditRowForm: false,
|
|
@@ -81,6 +83,9 @@ export default {
|
|
|
81
83
|
if (this.myConfig.showDelBatchBtn !== undefined) {
|
|
82
84
|
this.showDelBatchBtn = this.myConfig.showDelBatchBtn;
|
|
83
85
|
}
|
|
86
|
+
if (this.myConfig.showZoom !== undefined) {
|
|
87
|
+
this.showZoom = this.myConfig.showZoom;
|
|
88
|
+
}
|
|
84
89
|
|
|
85
90
|
if (this.myConfig.showPage) {
|
|
86
91
|
this.myConfig.indexMethod = this.customIndexMethod;
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
<span class="efuture-title-verticalline"/><span style="font-size: 14px;font-weight:bold" v-text="myConfig.title" />
|
|
15
15
|
</div>
|
|
16
16
|
</template>
|
|
17
|
-
<div :style="divStyle">
|
|
17
|
+
<div class="table-wrapper" :class="{'is--maximize':showZoom && isFull}" :style="divStyle">
|
|
18
18
|
<div v-if="$slots.header">
|
|
19
19
|
<slot name="header"></slot>
|
|
20
20
|
</div>
|
|
21
|
-
<Row v-else v-show="showGrid" type="flex" justify="start" align="middle" :gutter="0" style="margin-bottom: 10px;">
|
|
21
|
+
<Row class-name="row-box" v-else v-show="showGrid" type="flex" justify="start" align="middle" :gutter="0" style="margin-bottom: 10px;">
|
|
22
22
|
<Col v-if="showAddBtn">
|
|
23
23
|
<Button :style="btnStyle" customIcon="iconfont icon-custom-rowadd3" type="text" :disabled="myConfig.readOnly" @click="addRow" >添加</Button>
|
|
24
24
|
</Col>
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
<Divider type="vertical" style="margin: 0 6px 0 6px;"/>
|
|
27
27
|
</Col>
|
|
28
28
|
<Col v-if="showDelBatchBtn">
|
|
29
|
-
<Button
|
|
29
|
+
<Button :style="btnStyle" customIcon="iconfont icon-custom-rowdel3" type="text" :disabled="myConfig.readOnly" @click="delBatchRow">删除</Button>
|
|
30
|
+
</Col>
|
|
31
|
+
<Col class="col-align" v-if="showZoom">
|
|
32
|
+
<Button type="ghost" shape="circle" :title="isFull ? '还原' : '全屏'" :customIcon="[isFull ? 'iconfont icon-custom-minimize' : 'iconfont icon-custom-fullscreen']" @click="setZoom"></Button>
|
|
30
33
|
</Col>
|
|
31
34
|
</Row>
|
|
32
35
|
<Row v-show="showGrid" >
|
|
@@ -84,6 +87,8 @@ export default {
|
|
|
84
87
|
btnStyle:'padding-left:0px;padding-right:0px',
|
|
85
88
|
divStyle:'padding-left:24px',
|
|
86
89
|
showAddBtn:true,
|
|
90
|
+
showZoom: false,
|
|
91
|
+
isFull: false,
|
|
87
92
|
showDelBatchBtn:true,
|
|
88
93
|
showGrid:true,
|
|
89
94
|
showTitle:true,
|
|
@@ -146,6 +151,12 @@ export default {
|
|
|
146
151
|
setShowGrid(value) {
|
|
147
152
|
this.showGrid = value;
|
|
148
153
|
},
|
|
154
|
+
setShowZoom(value) {
|
|
155
|
+
this.showZoom = value;
|
|
156
|
+
},
|
|
157
|
+
setZoom() {
|
|
158
|
+
this.isFull = !this.isFull;
|
|
159
|
+
},
|
|
149
160
|
rowClick(e) {
|
|
150
161
|
if (this.showEffectValue) {
|
|
151
162
|
this.curlEffectData = [];
|
|
@@ -220,3 +231,25 @@ export default {
|
|
|
220
231
|
}
|
|
221
232
|
};
|
|
222
233
|
</script>
|
|
234
|
+
<style lang="less" scoped>
|
|
235
|
+
.table-wrapper{
|
|
236
|
+
transition: all .2s;
|
|
237
|
+
.row-box{
|
|
238
|
+
display: flex;
|
|
239
|
+
}
|
|
240
|
+
.col-align{
|
|
241
|
+
flex:1;
|
|
242
|
+
text-align: right;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
.is--maximize{
|
|
246
|
+
padding:0.5em 1.5em;
|
|
247
|
+
position: fixed;
|
|
248
|
+
left: 0;
|
|
249
|
+
top: 0;
|
|
250
|
+
z-index: 999;
|
|
251
|
+
width: 100%;
|
|
252
|
+
height: 100%;
|
|
253
|
+
background-color: #fff;
|
|
254
|
+
}
|
|
255
|
+
</style>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<Divider v-show="showChildrenGrid" style="margin-bottom:10px;margin-top: 10px;"/>
|
|
35
35
|
<EditGridCard v-show="showChildrenGrid" ref="grid" :config="gridConfig" :dictData="dictData" >
|
|
36
36
|
<template #header>
|
|
37
|
-
<Row
|
|
37
|
+
<Row type="flex" justify="start" align="middle" :gutter="0" style="margin-bottom: 10px;display: flex;">
|
|
38
38
|
<Col v-if="showAddBtn">
|
|
39
39
|
<Button customIcon="iconfont icon-custom-rowadd" type="text" size="small" :disabled="btnReadOnly" @click="addRow" >添加</Button>
|
|
40
40
|
</Col>
|
|
@@ -44,6 +44,9 @@
|
|
|
44
44
|
<Col v-if="showDelBatchBtn">
|
|
45
45
|
<Button customIcon="iconfont icon-custom-rowdel" size="small" type="text" :disabled="btnReadOnly" @click="delRow">删除</Button>
|
|
46
46
|
</Col>
|
|
47
|
+
<Col class="col-align" v-if="showZoom" style="flex:1;text-align: right;">
|
|
48
|
+
<Button type="ghost" shape="circle" :customIcon="[isFull ? 'iconfont icon-custom-minimize' : 'iconfont icon-custom-fullscreen']" @click="setZoom"></Button>
|
|
49
|
+
</Col>
|
|
47
50
|
</Row>
|
|
48
51
|
</template>
|
|
49
52
|
</EditGridCard>
|
|
@@ -75,7 +78,9 @@ export default {
|
|
|
75
78
|
btnReadOnly:false,
|
|
76
79
|
showAddBtn:true,
|
|
77
80
|
showDelBatchBtn:true,
|
|
78
|
-
showForm:true
|
|
81
|
+
showForm:true,
|
|
82
|
+
showZoom: false,
|
|
83
|
+
isFull: false,
|
|
79
84
|
};
|
|
80
85
|
},
|
|
81
86
|
props:{
|
|
@@ -142,9 +147,12 @@ export default {
|
|
|
142
147
|
if (this.gridConfig.showAddBtn !== undefined) {
|
|
143
148
|
this.showAddBtn = this.gridConfig.showAddBtn;
|
|
144
149
|
}
|
|
145
|
-
|
|
150
|
+
if (this.gridConfig.showDelBatchBtn !== undefined) {
|
|
146
151
|
this.showDelBatchBtn = this.gridConfig.showDelBatchBtn;
|
|
147
152
|
}
|
|
153
|
+
if (this.gridConfig.showZoom !== undefined) {
|
|
154
|
+
this.showZoom = this.gridConfig.showZoom;
|
|
155
|
+
}
|
|
148
156
|
this.gridConfig.addRowBefore = this.addRowBefore;
|
|
149
157
|
this.gridConfig.delRowBefore = this.delRowBefore;
|
|
150
158
|
this.showChildrenGrid = true;
|
|
@@ -333,6 +341,9 @@ export default {
|
|
|
333
341
|
delRow() {
|
|
334
342
|
this.$refs.grid.delBatchRow();
|
|
335
343
|
},
|
|
344
|
+
setShowZoom() {
|
|
345
|
+
this.isFull = !this.isFull;
|
|
346
|
+
},
|
|
336
347
|
delBatchRow() {
|
|
337
348
|
let obj = {};
|
|
338
349
|
obj.name = 'delRowData'
|
package/src/styles/common.less
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "iconfont"; /* Project id 4464454 */
|
|
3
|
-
src: url('iconfont.woff2?t=
|
|
4
|
-
url('iconfont.woff?t=
|
|
5
|
-
url('iconfont.ttf?t=
|
|
6
|
-
url('iconfont.svg?t=
|
|
3
|
+
src: url('iconfont.woff2?t=1754970817331') format('woff2'),
|
|
4
|
+
url('iconfont.woff?t=1754970817331') format('woff'),
|
|
5
|
+
url('iconfont.ttf?t=1754970817331') format('truetype'),
|
|
6
|
+
url('iconfont.svg?t=1754970817331#iconfont') format('svg');
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.iconfont {
|
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
-moz-osx-font-smoothing: grayscale;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
.icon-custom-fullscreen:before {
|
|
18
|
+
content: "\e670";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.icon-custom-minimize:before {
|
|
22
|
+
content: "\e671";
|
|
23
|
+
}
|
|
24
|
+
|
|
17
25
|
.icon-custom-qushitu:before {
|
|
18
26
|
content: "\e7fa";
|
|
19
27
|
}
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
/>
|
|
15
15
|
<missing-glyph />
|
|
16
16
|
|
|
17
|
+
<glyph glyph-name="fullscreen" unicode="" d="M852.48 782.222222h-144.725333a28.842667 28.842667 0 0 1-28.899556-28.928 28.842667 28.842667 0 0 1 28.899556-28.928h103.708444l-239.928889-239.928889a28.928 28.928 0 1 1 40.903111-40.903111l239.928889 239.928889v-103.822222a28.842667 28.842667 0 0 1 28.928-28.899556A28.842667 28.842667 0 0 1 910.222222 579.697778V724.366222A57.713778 57.713778 0 0 1 852.48 782.222222z m28.814222-565.077333a28.842667 28.842667 0 0 1-28.928-28.899556v-103.708444l-239.928889 239.928889a28.928 28.928 0 1 1-40.903111-40.903111l239.928889-239.928889h-103.822222a28.842667 28.842667 0 0 1-28.899556-28.928A28.842667 28.842667 0 0 1 707.697778-14.222222h144.696889C884.337778-14.222222 910.222222 11.662222 910.222222 43.633778v144.611555a28.842667 28.842667 0 0 1-28.928 28.899556z m-469.816889 107.349333l-239.872-239.900444V188.302222a28.814222 28.814222 0 0 1-28.899555 28.928A28.814222 28.814222 0 0 1 113.777778 188.273778v-144.668445C113.777778 11.662222 139.662222-14.222222 171.605333-14.222222h144.668445a28.814222 28.814222 0 0 1 28.928 28.928 28.814222 28.814222 0 0 1-28.928 28.899555H212.593778l239.872 239.900445a28.899556 28.899556 0 0 1 0 40.874666c-11.292444 11.377778-29.696 11.377778-40.96 0.113778zM212.622222 724.394667h103.708445a28.842667 28.842667 0 0 1 28.928 28.899555A28.814222 28.814222 0 0 1 316.302222 782.222222H171.633778C139.662222 782.222222 113.777778 756.337778 113.777778 724.394667v-144.668445a28.814222 28.814222 0 0 1 28.928-28.928 28.842667 28.842667 0 0 1 28.928 28.928V683.406222l239.928889-239.872a28.928 28.928 0 0 1 40.903111 40.874667L212.622222 724.394667z" horiz-adv-x="1024" />
|
|
18
|
+
|
|
19
|
+
<glyph glyph-name="minimize" unicode="" d="M625.664 440.888889h142.279111a28.359111 28.359111 0 0 1 28.444445 28.444444 28.359111 28.359111 0 0 1-28.444445 28.444445h-101.973333l235.918222 235.889778a28.444444 28.444444 0 1 1-40.220444 40.220444L625.777778 537.969778V640.028444a28.359111 28.359111 0 0 1-28.444445 28.444445 28.359111 28.359111 0 0 1-28.416-28.444445V497.777778c-0.085333-31.402667 25.372444-56.860444 56.775111-56.860445zM597.333333 99.612444a28.359111 28.359111 0 0 1 28.444445 28.444445v101.973333l235.889778-235.918222a28.444444 28.444444 0 1 1 40.220444 40.220444L665.969778 270.222222h102.058666a28.359111 28.359111 0 0 1 28.444445 28.444445 28.359111 28.359111 0 0 1-28.444445 28.416H625.777778A56.888889 56.888889 0 0 1 568.888889 270.222222v-142.165333a28.359111 28.359111 0 0 1 28.444444-28.444445z m-434.915555-105.528888L398.222222 229.944889V128a28.330667 28.330667 0 0 1 28.444445-28.444444A28.330667 28.330667 0 0 1 455.111111 128v142.250667A56.888889 56.888889 0 0 1 398.250667 327.111111h-142.222223a28.330667 28.330667 0 0 1-28.444444-28.444444 28.330667 28.330667 0 0 1 28.444444-28.416h101.916445L122.112 34.417778a28.444444 28.444444 0 0 1 0-40.192 28.444444 28.444444 0 0 1 40.277333-0.113778zM357.888 497.777778H256a28.359111 28.359111 0 0 1-28.444444-28.444445 28.330667 28.330667 0 0 1 28.444444-28.416H398.222222A56.888889 56.888889 0 0 1 455.111111 497.749333v142.222223a28.330667 28.330667 0 0 1-28.444444 28.444444 28.359111 28.359111 0 0 1-28.444445-28.444444v-101.916445L162.360889 773.888a28.444444 28.444444 0 0 1-40.220445-40.192l235.804445-235.946667z" horiz-adv-x="1024" />
|
|
20
|
+
|
|
17
21
|
<glyph glyph-name="qushitu" unicode="" d="M45 852c24.852 0 45-20.147 45-45v-801H979.09c24.853 0 45-20.147 45-45s-20.147-45-45-45H45c-24.853 0-45 20.147-45 45V807c0 24.853 20.147 45 45 45z m887.199-232.556c18.47-16.629 19.963-45.082 3.335-63.553L683.22 275.631c-17.235-19.145-46.993-19.942-65.228-1.747L466.877 424.67 267.625 201.993c-16.407-18.336-44.454-20.067-62.983-4.02l-0.56 0.492c-18.52 16.573-20.1 45.021-3.527 63.542l230.937 258.086c17.214 19.237 47.047 20.08 65.32 1.848l151.216-150.887 220.618 245.055c16.629 18.47 45.082 19.963 63.553 3.335z" horiz-adv-x="1024" />
|
|
18
22
|
|
|
19
23
|
<glyph glyph-name="shu-biaoji" unicode="" d="M18.962963 896h991.049357L765.321232 528.218324l244.692086-367.781677H138.729045v-288.436647H18.962963V896z m264.483431-113.777778H138.729045v-496.031189h144.717349V782.222222z m503.031516 0H418.183236v-496.031189h368.294674l-165.007719 248.015595L786.47791 782.222222z" horiz-adv-x="1024" />
|
|
Binary file
|
|
Binary file
|
|
Binary file
|