sh-view 2.5.3 → 2.5.4
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 +3 -3
- package/packages/components/global-components/sh-result/index.vue +1 -1
- package/packages/components/global-components/sh-table/js/useTable.js +1 -1
- package/packages/components/global-components/sh-tree/components/table-tree.vue +4 -4
- package/packages/components/global-components/sh-tree/css/index.scss +0 -6
- package/packages/components/global-components/sh-tree/index.vue +0 -1
- package/packages/vxeTable/render/globalRenders.jsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sh-view",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "基于vxe-table二次封装",
|
|
5
5
|
"main": "packages/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"jszip": "^3.10.1",
|
|
30
30
|
"popper.js": "^1.16.1",
|
|
31
31
|
"resize-observer-polyfill": "^1.5.1",
|
|
32
|
-
"sh-tools": "^2.
|
|
32
|
+
"sh-tools": "^2.1.4",
|
|
33
33
|
"tinymce": "^5.10.5",
|
|
34
34
|
"vue": "^3.3.4",
|
|
35
35
|
"vue-masonry": "^0.16.0",
|
|
36
36
|
"vue-router": "^4.2.4",
|
|
37
|
-
"vxe-table": "^4.5.
|
|
37
|
+
"vxe-table": "^4.5.11",
|
|
38
38
|
"vxe-table-plugin-export-pdf": "^3.0.4",
|
|
39
39
|
"vxe-table-plugin-export-xlsx": "^3.0.5",
|
|
40
40
|
"xe-clipboard": "^1.10.2",
|
|
@@ -67,7 +67,7 @@ export default defineComponent({
|
|
|
67
67
|
return types.includes(props.type) ? props.type : 'info'
|
|
68
68
|
})
|
|
69
69
|
const resultTitle = computed(() => {
|
|
70
|
-
return
|
|
70
|
+
return props.title ? props.title || resultTitleMap[resultType.value] : false
|
|
71
71
|
})
|
|
72
72
|
const resultIcon = computed(() => {
|
|
73
73
|
return resultIconMap[resultType.value]
|
|
@@ -165,7 +165,7 @@ export default function (props, context, proxy, isGrid) {
|
|
|
165
165
|
let cellValue = $vUtils.get(row, property)
|
|
166
166
|
if (!$vUtils.isNone(cellValue)) {
|
|
167
167
|
let { rvalue, rtext } = $vUtils.formatRender(cellValue, property, row, rname, rprops, proxy)
|
|
168
|
-
$vUtils.set(row, property, rtext)
|
|
168
|
+
$vUtils.set(row, property, ['$vMoney'].includes(rname) ? rtext : rvalue)
|
|
169
169
|
}
|
|
170
170
|
})
|
|
171
171
|
})
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<sh-result v-if="queryErrorText" class="sh-tree-result" type="error" :title="false" :text="queryErrorText"></sh-result>
|
|
2
3
|
<vxe-grid
|
|
3
|
-
v-
|
|
4
|
+
v-else
|
|
4
5
|
ref="tableRef"
|
|
5
6
|
:key="renderKey"
|
|
6
7
|
:class="{ 'sh-vxe-tree-table': true, 'is--hidecheck': globalConfig.checkHide }"
|
|
@@ -15,7 +16,6 @@
|
|
|
15
16
|
<sh-empty :icon="emptyIcon" :content="emptyText"></sh-empty>
|
|
16
17
|
</template>
|
|
17
18
|
</vxe-grid>
|
|
18
|
-
<sh-result v-else-if="queryErrorText" class="sh-tree-result" type="error" :text="queryErrorText"></sh-result>
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script>
|
|
@@ -109,7 +109,7 @@ export default defineComponent({
|
|
|
109
109
|
}
|
|
110
110
|
// 获取请求配置数据
|
|
111
111
|
const getServerConfigDataSourse = async () => {
|
|
112
|
-
const { serverConfig, serverParams, parseParams,
|
|
112
|
+
const { serverConfig, serverParams, parseParams, serverCache, valueData, globalConfig, multiple, nodeKey, labelField } = props
|
|
113
113
|
if (!serverConfig.url) {
|
|
114
114
|
treeServerComplate.value = true
|
|
115
115
|
return true
|
|
@@ -123,7 +123,7 @@ export default defineComponent({
|
|
|
123
123
|
params[key] = $vUtils.format(params[key], valueData)
|
|
124
124
|
}
|
|
125
125
|
})
|
|
126
|
-
if (!$vUtils.isEqual(queryCacheParams, params)) {
|
|
126
|
+
if (!$vUtils.isEqual(queryCacheParams.value, params)) {
|
|
127
127
|
treeServerComplate.value = false
|
|
128
128
|
}
|
|
129
129
|
if (serverCache && treeServerComplate.value) {
|
|
@@ -34,10 +34,6 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.sh-tree-select-dropdown {
|
|
37
|
-
.tree-skeleton{
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: 230px;
|
|
40
|
-
}
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
.sh-vxe-tree-table{
|
|
@@ -49,6 +45,4 @@
|
|
|
49
45
|
|
|
50
46
|
.sh-tree-result{
|
|
51
47
|
position: relative;
|
|
52
|
-
top: 50%;
|
|
53
|
-
transform: translateY(-60%);
|
|
54
48
|
}
|
|
@@ -69,7 +69,7 @@ const getFixedProp = (renderOpts, params) => {
|
|
|
69
69
|
name = props.colRenderName
|
|
70
70
|
}
|
|
71
71
|
let rturnProps = Object.assign({}, defaultPublicProps, defaultProps[name], props)
|
|
72
|
-
let transKeys = ['disabled', 'multiple', 'isLeaf', 'commafy', 'border', '
|
|
72
|
+
let transKeys = ['transfer', 'disabled', 'multiple', 'isLeaf', 'commafy', 'border', 'filterable', 'showWordCount', 'editable']
|
|
73
73
|
transKeys.forEach(key => {
|
|
74
74
|
if (rturnProps[key] !== null && rturnProps[key] !== undefined && typeof rturnProps[key] === 'string') {
|
|
75
75
|
rturnProps[key] = Boolean(+rturnProps[key])
|