doway-coms 2.10.83 → 3.0.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doway-coms",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "doway组件库",
|
|
5
5
|
"author": "dowaysoft",
|
|
6
6
|
"main": "packages/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"vue-router": "3.6.5",
|
|
26
26
|
"vuedraggable": "^2.24.3",
|
|
27
27
|
"vuex": "3.6.2",
|
|
28
|
-
"vxe-table": "3.
|
|
28
|
+
"vxe-table": "3.12.9",
|
|
29
29
|
"xe-clipboard": "1.10.2",
|
|
30
30
|
"xe-utils": "3.5.4"
|
|
31
31
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<a-button v-if="showFold===true"
|
|
4
4
|
class="collapse-btn"
|
|
5
5
|
type="link"
|
|
6
|
-
@click="
|
|
6
|
+
@click="hiddenDetail = !hiddenDetail"
|
|
7
7
|
>
|
|
8
8
|
<a-icon :type="hiddenDetail ? 'down' : 'up'" class="collapse-icon" />
|
|
9
9
|
<!-- {{ hiddenDetail ? '展开' : '收起' }} -->
|
|
@@ -611,10 +611,6 @@ export default {
|
|
|
611
611
|
},
|
|
612
612
|
activated() {},
|
|
613
613
|
methods: {
|
|
614
|
-
collapseChange(){
|
|
615
|
-
this.hiddenDetail = !this.hiddenDetail
|
|
616
|
-
this.$emit('collapseChange',this.hiddenDetail)
|
|
617
|
-
},
|
|
618
614
|
getFieldStyle(colInfo){
|
|
619
615
|
// console.debug('0 0 calc('+colInfo.colSpan*250+'px -'+(colInfo.colSpan-1)*this.flexGap +'px)')
|
|
620
616
|
let fieldStyle ={
|
|
@@ -250,7 +250,6 @@
|
|
|
250
250
|
<a-select
|
|
251
251
|
:style="{color:scope.column.params.fontColor?scope.column.params.fontColor:null}"
|
|
252
252
|
:allowClear="scope.column.params.allowClear"
|
|
253
|
-
v-if="getCellEditExp(scope)"
|
|
254
253
|
show-search
|
|
255
254
|
option-filter-prop="children"
|
|
256
255
|
v-model="scope.row[scope.column.property]"
|
|
@@ -265,9 +264,6 @@
|
|
|
265
264
|
>{{ loopSource.caption }}</a-select-option
|
|
266
265
|
>
|
|
267
266
|
</a-select>
|
|
268
|
-
<div v-else>
|
|
269
|
-
{{ gridDefaultValueDisplay(scope.row, scope.column) }}
|
|
270
|
-
</div>
|
|
271
267
|
</div>
|
|
272
268
|
</template>
|
|
273
269
|
<template #multiSelect_edit="scope">
|
|
@@ -275,7 +271,6 @@
|
|
|
275
271
|
<a-select
|
|
276
272
|
:style="{color:scope.column.params.fontColor?scope.column.params.fontColor:null}"
|
|
277
273
|
v-model="scope.row[scope.column.property]"
|
|
278
|
-
v-if="getCellEditExp(scope)"
|
|
279
274
|
@change="cellValueChange(scope)"
|
|
280
275
|
mode="multiple"
|
|
281
276
|
size="small"
|
|
@@ -289,9 +284,6 @@
|
|
|
289
284
|
>{{ loopSource.caption }}</a-select-option
|
|
290
285
|
>
|
|
291
286
|
</a-select>
|
|
292
|
-
<div v-else>
|
|
293
|
-
{{ gridDefaultValueDisplay(scope.row, scope.column) }}
|
|
294
|
-
</div>
|
|
295
287
|
</div>
|
|
296
288
|
</template>
|
|
297
289
|
<template #time_edit="scope" class="interceptor-class">
|
|
@@ -1354,19 +1346,10 @@ export default {
|
|
|
1354
1346
|
if(scope.column.params.editExp){
|
|
1355
1347
|
for(let i=0;i<scope.column.params.editExp.length;i++){
|
|
1356
1348
|
let exp = scope.column.params.editExp[i]
|
|
1357
|
-
if(exp.
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
editExpResult = false
|
|
1361
|
-
break
|
|
1362
|
-
}
|
|
1363
|
-
}else{
|
|
1364
|
-
if(scope.row[exp.field]!==exp.value){
|
|
1365
|
-
editExpResult = false
|
|
1366
|
-
break
|
|
1367
|
-
}
|
|
1349
|
+
if(scope.row[exp.field]!==exp.value){
|
|
1350
|
+
editExpResult = false
|
|
1351
|
+
break
|
|
1368
1352
|
}
|
|
1369
|
-
|
|
1370
1353
|
}
|
|
1371
1354
|
}
|
|
1372
1355
|
return scope.column.params.controlEdit === true && editExpResult
|
|
@@ -2909,9 +2892,6 @@ export default {
|
|
|
2909
2892
|
getVisibleData() {
|
|
2910
2893
|
return this.$refs.baseGrid.getTableData().visibleData
|
|
2911
2894
|
},
|
|
2912
|
-
getVisibleDataLength(){
|
|
2913
|
-
return this.$refs.baseGrid.getTableData().visibleData.length
|
|
2914
|
-
},
|
|
2915
2895
|
/**
|
|
2916
2896
|
* 获取更新的行
|
|
2917
2897
|
*/
|
|
@@ -478,9 +478,6 @@ export default {
|
|
|
478
478
|
}
|
|
479
479
|
if (this.columns[i].dataSource) {
|
|
480
480
|
this.columns[i]['params'].dataSource = this.columns[i].dataSource
|
|
481
|
-
if(this.columns[i].controlType===controlType.select){
|
|
482
|
-
this.columns[i]['formatter'] = 'formatSelect'
|
|
483
|
-
}
|
|
484
481
|
}
|
|
485
482
|
if (!this.columns[i].width) {
|
|
486
483
|
this.columns[i]['width'] = 100
|
package/packages/index.js
CHANGED
|
@@ -66,7 +66,7 @@ const components = [
|
|
|
66
66
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
67
67
|
|
|
68
68
|
import 'vxe-table/lib/style.css'
|
|
69
|
-
import
|
|
69
|
+
import VxeUITable from 'vxe-table'
|
|
70
70
|
|
|
71
71
|
const popupInterceptor = (params) => {
|
|
72
72
|
// 比如点击了某个组件的弹出层面板之后,此时被激活单元格不应该被自动关闭,通过返回 false 可以阻止默认的行为。
|
|
@@ -96,11 +96,11 @@ const popupInterceptor = (params) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
//网格弹出点击拦截器
|
|
99
|
-
|
|
99
|
+
VxeUITable.interceptor.add('event.clearEdit', (params) => {
|
|
100
100
|
return popupInterceptor(params)
|
|
101
101
|
})
|
|
102
102
|
//网格筛选点击拦截器
|
|
103
|
-
|
|
103
|
+
VxeUITable.interceptor.add('event.clearFilter', (params) => {
|
|
104
104
|
return popupInterceptor(params)
|
|
105
105
|
})
|
|
106
106
|
|
|
@@ -113,7 +113,7 @@ Vue.use(Contextmenu)
|
|
|
113
113
|
|
|
114
114
|
const install = function (Vue) {
|
|
115
115
|
//注册grid组件
|
|
116
|
-
Vue.use(
|
|
116
|
+
Vue.use(VxeUITable)
|
|
117
117
|
// 遍历注册全局组件
|
|
118
118
|
components.forEach((component) => {
|
|
119
119
|
Vue.component(component.name, component)
|