resolver-egretimp-plus 0.0.94 → 0.0.96
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/dist/h5/index.js +2 -2
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/analysisComponent.jsx +1 -1
- package/src/components/packages-H5/CustomComponentTableH5.vue +6 -3
- package/src/components/packages-web/CustomComponentTable.jsx +5 -1
- package/src/utils/defaultVal.js +3 -0
package/package.json
CHANGED
|
@@ -194,7 +194,7 @@ export default {
|
|
|
194
194
|
attrs?.onClick?.call(context, e) // 如果配置中有点击事件
|
|
195
195
|
executeClickEvents({ beforeRequestService, afterRequestService })
|
|
196
196
|
}
|
|
197
|
-
function executeClickEvents({ beforeRequestService, afterRequestService }) {
|
|
197
|
+
function executeClickEvents({ beforeRequestService, afterRequestService } = {}) {
|
|
198
198
|
executeEventOrchestration({
|
|
199
199
|
beforeRequestService,
|
|
200
200
|
afterRequestService,
|
|
@@ -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
|
|
|
@@ -155,7 +155,11 @@ onMounted(() => {
|
|
|
155
155
|
} catch (error) {
|
|
156
156
|
}
|
|
157
157
|
setTimeout(() => {
|
|
158
|
-
|
|
158
|
+
try {
|
|
159
|
+
// 这边有的时候会报错
|
|
160
|
+
tableRef.value?.setTableData(val)
|
|
161
|
+
} catch (error) {
|
|
162
|
+
}
|
|
159
163
|
}, 100);
|
|
160
164
|
}, {
|
|
161
165
|
immediate: true
|
|
@@ -221,4 +225,3 @@ function normalTableRowValue(row) {
|
|
|
221
225
|
/>
|
|
222
226
|
</div>
|
|
223
227
|
</template>
|
|
224
|
-
<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)
|