n20-common-lib 2.4.3 → 2.4.5
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
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<vxe-table
|
|
3
3
|
ref="el-table"
|
|
4
4
|
:key="colsKey"
|
|
5
|
-
:class="{ 'cell-default-set--': cellDefault, 'clear-in-form-margin': clearInFormMargin }"
|
|
6
5
|
:header-cell-style="{ 'text-align': 'center' }"
|
|
7
6
|
:data="data"
|
|
8
7
|
:height="height"
|
|
@@ -44,6 +43,9 @@ const columnRender = {
|
|
|
44
43
|
},
|
|
45
44
|
index: {
|
|
46
45
|
type: [Number, String]
|
|
46
|
+
},
|
|
47
|
+
height: {
|
|
48
|
+
type: [Number, String]
|
|
47
49
|
}
|
|
48
50
|
},
|
|
49
51
|
render(h) {
|
|
@@ -54,7 +56,6 @@ const columnRender = {
|
|
|
54
56
|
export default {
|
|
55
57
|
name: 'TablePro',
|
|
56
58
|
components: {
|
|
57
|
-
columnRender,
|
|
58
59
|
tableSetSize
|
|
59
60
|
},
|
|
60
61
|
filters: {
|
|
@@ -74,14 +75,6 @@ export default {
|
|
|
74
75
|
}
|
|
75
76
|
},
|
|
76
77
|
props: {
|
|
77
|
-
bigData: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: false
|
|
80
|
-
},
|
|
81
|
-
column: {
|
|
82
|
-
type: Boolean,
|
|
83
|
-
default: false
|
|
84
|
-
},
|
|
85
78
|
data: {
|
|
86
79
|
type: Array,
|
|
87
80
|
default: undefined
|
|
@@ -132,12 +125,6 @@ export default {
|
|
|
132
125
|
sizeBind: undefined
|
|
133
126
|
}
|
|
134
127
|
},
|
|
135
|
-
provide() {
|
|
136
|
-
let bigData = this.bigData
|
|
137
|
-
return {
|
|
138
|
-
bigData
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
128
|
watch: {
|
|
142
129
|
columns() {
|
|
143
130
|
this.colsKey = this.colsKey + 1
|
|
@@ -146,43 +133,8 @@ export default {
|
|
|
146
133
|
this.sizeC = val
|
|
147
134
|
}
|
|
148
135
|
},
|
|
149
|
-
mounted() {
|
|
150
|
-
console.log(this.data)
|
|
151
|
-
let inTable = this.$refs['el-table']
|
|
152
|
-
if (inTable) {
|
|
153
|
-
this.$refs['table'] = inTable
|
|
154
|
-
this.clearSelection = inTable.clearSelection
|
|
155
|
-
this.toggleRowSelection = inTable.toggleRowSelection
|
|
156
|
-
this.toggleAllSelection = inTable.toggleAllSelection
|
|
157
|
-
this.toggleRowExpansion = inTable.toggleRowExpansion
|
|
158
|
-
this.setCurrentRow = inTable.setCurrentRow
|
|
159
|
-
this.clearSort = inTable.clearSort
|
|
160
|
-
this.clearFilter = inTable.clearFilter
|
|
161
|
-
this.doLayout = inTable.doLayout
|
|
162
|
-
this.sort = inTable.sort
|
|
163
|
-
}
|
|
164
|
-
},
|
|
136
|
+
mounted() {},
|
|
165
137
|
methods: {
|
|
166
|
-
bigFilter(arg) {
|
|
167
|
-
let filters = arg.filters || []
|
|
168
|
-
let elFilters = {}
|
|
169
|
-
filters.forEach((item) => {
|
|
170
|
-
let key = item.column.className
|
|
171
|
-
if (key && typeof key === 'string') {
|
|
172
|
-
let _key = key.split(',').find((s) => s.includes('key@'))
|
|
173
|
-
|
|
174
|
-
if (_key) _key = _key.replace('key@', '')
|
|
175
|
-
|
|
176
|
-
if (_key) key = _key
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
elFilters[key || item.property] = item.values
|
|
180
|
-
})
|
|
181
|
-
this.$emit('filter-change', elFilters, arg)
|
|
182
|
-
},
|
|
183
|
-
bigExpand(arg) {
|
|
184
|
-
this.$emit('expand-change', arg.row, arg.expanded, arg)
|
|
185
|
-
},
|
|
186
138
|
sizeUp(size) {
|
|
187
139
|
this.sizeC = size
|
|
188
140
|
this.$emit('update:size', size)
|
|
@@ -118,7 +118,8 @@ HoverTooltip.install = (Vue) => {
|
|
|
118
118
|
el.$tipShow = () => tipShow(el, binding.arg)
|
|
119
119
|
el.$tipHide = () => tipHide(el)
|
|
120
120
|
el.addEventListener('mouseenter', () => {
|
|
121
|
-
|
|
121
|
+
console.log(getWidth(binding.value))
|
|
122
|
+
if (getWidth(binding.value) > (binding.arg || 100)) {
|
|
122
123
|
return el.$tipShow()
|
|
123
124
|
}
|
|
124
125
|
})
|
package/src/i18n.json
CHANGED
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"en": "Passwords include at least two kinds of numbers, letters and special symbols."
|
|
178
178
|
},
|
|
179
179
|
"请输入利率": {
|
|
180
|
-
"en": "
|
|
180
|
+
"en": "Rate"
|
|
181
181
|
},
|
|
182
182
|
"其中有效数据": {
|
|
183
183
|
"en": "where valid data"
|
|
@@ -1407,7 +1407,7 @@
|
|
|
1407
1407
|
"en": "Import file"
|
|
1408
1408
|
},
|
|
1409
1409
|
"请输入金额": {
|
|
1410
|
-
"en": "
|
|
1410
|
+
"en": "Amount"
|
|
1411
1411
|
},
|
|
1412
1412
|
"请输入密码": {
|
|
1413
1413
|
"en": "Please enter"
|