doway-coms 2.10.82 → 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]"
|
|
@@ -272,7 +271,6 @@
|
|
|
272
271
|
<a-select
|
|
273
272
|
:style="{color:scope.column.params.fontColor?scope.column.params.fontColor:null}"
|
|
274
273
|
v-model="scope.row[scope.column.property]"
|
|
275
|
-
v-if="getCellEditExp(scope)"
|
|
276
274
|
@change="cellValueChange(scope)"
|
|
277
275
|
mode="multiple"
|
|
278
276
|
size="small"
|
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)
|