sh-view 2.8.8 → 2.8.9
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": "sh-view",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.9",
|
|
4
4
|
"description": "基于vxe-table二次封装,更包含Alert,Badge,Card,CodeEditor,Col,Corner,CountTo,Drawer,Empty,Form,Header,Icon,List,Loading,Modal,Noticebar,Poptip,Progress,PullRefresh,Query,Result,Row,Split,Grid,Table,Tabs,Tag,Toolbar,Tree,Upload,WaterFall,WaterMark等丰富组件库",
|
|
5
5
|
"main": "packages/index.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -122,7 +122,7 @@ export default function (props, context, proxy, isGrid) {
|
|
|
122
122
|
}
|
|
123
123
|
})
|
|
124
124
|
const tableMoneyConfig = computed(() => {
|
|
125
|
-
return Object.assign({
|
|
125
|
+
return Object.assign({ style: { width: '60px' } }, $vTableSetup.moneyConfig, props.moneyConfig, tableVmConfig.value)
|
|
126
126
|
})
|
|
127
127
|
const tableExportConfig = computed(() =>
|
|
128
128
|
Object.assign(
|
|
@@ -259,6 +259,17 @@ export default function (props, context, proxy, isGrid) {
|
|
|
259
259
|
else if (tableGlobalConfig.value.selectType === 'checkbox' && checkRecords) selections = checkRecords
|
|
260
260
|
selectionRows.value = selections
|
|
261
261
|
}
|
|
262
|
+
const updateExpended = () => {
|
|
263
|
+
if (tableRef.value && tableTreeConfig.value.expandAll) {
|
|
264
|
+
setTimeout(() => {
|
|
265
|
+
tableRef.value.setAllTreeExpand(true)
|
|
266
|
+
})
|
|
267
|
+
} else if (tableRef.value && props.expandConfig && props.expandConfig.expandAll) {
|
|
268
|
+
setTimeout(() => {
|
|
269
|
+
tableRef.value.setAllRowExpand(true)
|
|
270
|
+
})
|
|
271
|
+
}
|
|
272
|
+
}
|
|
262
273
|
|
|
263
274
|
// -------- 表格
|
|
264
275
|
// 当前行变化
|
|
@@ -552,6 +563,7 @@ export default function (props, context, proxy, isGrid) {
|
|
|
552
563
|
() => props.dataSourse,
|
|
553
564
|
value => {
|
|
554
565
|
updateSelection([])
|
|
566
|
+
updateExpended()
|
|
555
567
|
},
|
|
556
568
|
{
|
|
557
569
|
immediate: true
|
|
@@ -156,11 +156,14 @@ let vxeOptions = {
|
|
|
156
156
|
icon: 'vxe-icon-spinner roll',
|
|
157
157
|
text: '加载中...'
|
|
158
158
|
},
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
moneyConfig: {
|
|
160
|
+
enabled: false,
|
|
161
|
+
options: [
|
|
162
|
+
{ value: 1, label: '元', digits: 2 },
|
|
163
|
+
{ value: 1000, label: '千元', digits: 4 },
|
|
164
|
+
{ value: 10000, label: '万元', digits: 6 }
|
|
165
|
+
]
|
|
166
|
+
},
|
|
164
167
|
cnGroups: [
|
|
165
168
|
{ shortText: '兆', fullText: '兆', value: '' },
|
|
166
169
|
{ shortText: '千', fullText: '千亿', value: '' },
|
|
@@ -504,7 +504,7 @@ const filterRenders = {
|
|
|
504
504
|
case 'has':
|
|
505
505
|
return String(rtext).indexOf(valueSt) > -1
|
|
506
506
|
case 'eq':
|
|
507
|
-
return utils.isEqual(rvalue, valueSt)
|
|
507
|
+
return utils.isEqual(String(rvalue), valueSt)
|
|
508
508
|
case 'gt':
|
|
509
509
|
return isDate ? utils.getDateDiff(valueSt, rvalue).done : Number(rvalue) > Number(valueSt)
|
|
510
510
|
case 'lt':
|