resolver-egretimp-plus 0.0.93 → 0.0.95
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
|
@@ -31,7 +31,7 @@ const tableProps = computed(() => {
|
|
|
31
31
|
})
|
|
32
32
|
const page = reactive({
|
|
33
33
|
pageNum: 1,
|
|
34
|
-
pageSize: props.config?.pageSize ||
|
|
34
|
+
pageSize: props.config?.pageSize || 10,
|
|
35
35
|
total: 0,
|
|
36
36
|
})
|
|
37
37
|
|
|
@@ -149,9 +149,17 @@ onMounted(() => {
|
|
|
149
149
|
pageNum: page.pageNum
|
|
150
150
|
}
|
|
151
151
|
}, ({ val }) => {
|
|
152
|
-
|
|
152
|
+
try {
|
|
153
|
+
// 这边有的时候会报错
|
|
154
|
+
tableRef.value?.setTableData([])
|
|
155
|
+
} catch (error) {
|
|
156
|
+
}
|
|
153
157
|
setTimeout(() => {
|
|
154
|
-
|
|
158
|
+
try {
|
|
159
|
+
// 这边有的时候会报错
|
|
160
|
+
tableRef.value?.setTableData(val)
|
|
161
|
+
} catch (error) {
|
|
162
|
+
}
|
|
155
163
|
}, 100);
|
|
156
164
|
}, {
|
|
157
165
|
immediate: true
|
|
@@ -217,4 +225,3 @@ function normalTableRowValue(row) {
|
|
|
217
225
|
/>
|
|
218
226
|
</div>
|
|
219
227
|
</template>
|
|
220
|
-
<style></style>
|
|
@@ -153,7 +153,11 @@ export default {
|
|
|
153
153
|
if (nextConfig && (nextConfig.width == 0 || nextConfig.width == '0px' || nextConfig.hidden == '1')) {
|
|
154
154
|
props.className = `${props.className || ''} next-hidden-column`
|
|
155
155
|
}
|
|
156
|
-
if (
|
|
156
|
+
if (
|
|
157
|
+
isPlainColumn({...config, isColumn: true}, calcDisable(config, props.mode)) &&
|
|
158
|
+
config.showOverflowTooltip !== false &&
|
|
159
|
+
config['show-overflow-tooltip'] !== false
|
|
160
|
+
) {
|
|
157
161
|
props['show-overflow-tooltip'] = true
|
|
158
162
|
}
|
|
159
163
|
if (config.type === 'selection') {
|
package/src/utils/defaultVal.js
CHANGED
|
@@ -5,6 +5,9 @@ export default function defaultVal(config) {
|
|
|
5
5
|
if ((config.defaultVal || config.defaultValue) && !config.bindValue && config.bindValue !== 0) {
|
|
6
6
|
const configDefaultVal = config.defaultVal || config.defaultValue
|
|
7
7
|
let defaultVal = null
|
|
8
|
+
if (config.metaCode === 'custId') {
|
|
9
|
+
debugger
|
|
10
|
+
}
|
|
8
11
|
try {
|
|
9
12
|
if (/^{\w*}$/.test(configDefaultVal) || /^\[\w*\]$/.test(configDefaultVal)) {
|
|
10
13
|
defaultVal = JSON.parse(configDefaultVal)
|