resolver-egretimp-plus 0.0.104 → 0.0.106
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/const/index.js +1 -1
- package/dist/h5/index.js +2 -2
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/components/packages-H5/CustomComponentCardH5.vue +6 -1
- package/src/components/packages-H5/CustomComponentTableH5.vue +3 -2
- package/src/utils/const.js +2 -1
- package/src/utils/render.jsx +12 -0
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ function toCollapse() {
|
|
|
47
47
|
</script>
|
|
48
48
|
<template>
|
|
49
49
|
<cmi-card v-bind="{...cmiProps, ...attrs}">
|
|
50
|
-
<div slot="content">
|
|
50
|
+
<div slot="content" :style="{'background-color': cmiProps.cardbgcolor}">
|
|
51
51
|
<Renderer :config="showPageMeteList" v-model="modelValue"></Renderer>
|
|
52
52
|
<div v-if="showCollapseBtn" class="collapse-wrap">
|
|
53
53
|
<cmi-button type="text" size="small" @click="toCollapse">
|
|
@@ -62,4 +62,9 @@ function toCollapse() {
|
|
|
62
62
|
display: flex;
|
|
63
63
|
justify-content: end;
|
|
64
64
|
}
|
|
65
|
+
cmi-card {
|
|
66
|
+
cmi-form-item {
|
|
67
|
+
background-color: transparent;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
65
70
|
</style>
|
|
@@ -53,7 +53,7 @@ const normalPageTotal = computed(() => {
|
|
|
53
53
|
const paginationProps = computed(() => {
|
|
54
54
|
return {
|
|
55
55
|
pagesizes: props.config?.pagesizes || [3, 10, 20, 50],
|
|
56
|
-
showHomeEnd: hasOwn(props.config, 'showHomeEnd') ? props.config.showHomeEnd === '1' : hasOwn(props.config, 'show-home-end') ? props.config['show-home-end'] === '1' :
|
|
56
|
+
showHomeEnd: hasOwn(props.config, 'showHomeEnd') ? props.config.showHomeEnd === '1' : hasOwn(props.config, 'show-home-end') ? props.config['show-home-end'] === '1' : false,
|
|
57
57
|
}
|
|
58
58
|
})
|
|
59
59
|
const pagenationEvents = computed(() => {
|
|
@@ -213,9 +213,10 @@ function normalTableRowValue(row) {
|
|
|
213
213
|
>
|
|
214
214
|
</cmi-table-column>
|
|
215
215
|
</cmi-table>
|
|
216
|
-
<div v-if="pageable && normalPageTotal > 3" :style="{'justify-content': pageAlignEnmu[pageAlign ||
|
|
216
|
+
<div v-if="pageable && normalPageTotal > 3" :style="{'display': 'flex', 'justify-content': pageAlignEnmu[pageAlign || PAGE_CENTER]}" style="margin-bottom: 12px;">
|
|
217
217
|
<cmi-pagination
|
|
218
218
|
:key="normalPageTotal"
|
|
219
|
+
style="border-radius: 8px;border: 1px solid rgba(219,219,219,1);"
|
|
219
220
|
v-bind="{...paginationProps, ...pagenationEvents}"
|
|
220
221
|
@sizeChange="pagenationEvents.onSizeChange"
|
|
221
222
|
@currentChange="pagenationEvents.onCurrentChange"
|
package/src/utils/const.js
CHANGED
|
@@ -35,6 +35,7 @@ export const NOT_NEED_FORM_ITEM_META_TYPE = [
|
|
|
35
35
|
'cmi-dropdown-menu',
|
|
36
36
|
'cmi-divider'
|
|
37
37
|
]
|
|
38
|
+
export const TRANS_CELL_COMPONETS = ['CmiInput', 'CmiSelect']
|
|
38
39
|
export const NOT_NEED_COL_ITEM_META_TYPE = ['CustomComponentTabPane', 'CustomComponentDialog', 'CustomComponentCol', 'CustomComponentTabPaneH5']
|
|
39
40
|
export const MULTI_PAGE_META_LIST_TYPES = ['CustomComponentTable']
|
|
40
41
|
export const SPECIAL_SET_FULL_WIDTH_ITEM_META_TYPE = ['el-select', 'el-date-picker', 'el-time-picker', 'el-time-select', 'el-cascader', 'el-input-number', 'CustomComponentTree', 'CustomComponentSteps']
|
|
@@ -226,4 +227,4 @@ export const META_TYPE_MAP = {
|
|
|
226
227
|
|
|
227
228
|
export {
|
|
228
229
|
commonPropsType as componentPropsType
|
|
229
|
-
}
|
|
230
|
+
}
|
package/src/utils/render.jsx
CHANGED
|
@@ -2,6 +2,7 @@ import { getCodeMapRules } from '../rules/rulesDriver.js'
|
|
|
2
2
|
import { resolveAssetComponents, findComponent, compareComponet, normalPixel, isPlainObject, hasOwn, isFnStr, normalCapitalizeComponent, capitalize, camelize, formatDate} from './common.js'
|
|
3
3
|
import { resolveComponent, inject, defineAsyncComponent } from 'vue'
|
|
4
4
|
import CustomComponentColH5 from '../components/packages-H5/CustomComponentColH5.vue'
|
|
5
|
+
import CmiCell from '../components/packages-H5/CmiCell.vue'
|
|
5
6
|
import {
|
|
6
7
|
commonPropsType,
|
|
7
8
|
FORM_META_TYPE,
|
|
@@ -21,6 +22,7 @@ import {
|
|
|
21
22
|
H5_REPLACE_PREFIX_FLAG,
|
|
22
23
|
H5_PREFIX_FLAG,
|
|
23
24
|
PLAIN_TYPE_ALONG_COLUMNS,
|
|
25
|
+
TRANS_CELL_COMPONETS,
|
|
24
26
|
} from './const.js'
|
|
25
27
|
import { preserveCheck } from './preserveFunc.js'
|
|
26
28
|
import { isArray, isFunction, isString } from './is.js'
|
|
@@ -345,6 +347,9 @@ export function getComponentForConfig({config, disabled, getNativeComps}) {
|
|
|
345
347
|
if (isPlainColumn(config, disabled)) {
|
|
346
348
|
return CustomComponentPlain
|
|
347
349
|
}
|
|
350
|
+
if (isTransCellMobile(config, disabled)) {
|
|
351
|
+
return CmiCell
|
|
352
|
+
}
|
|
348
353
|
|
|
349
354
|
const components = inject('components')
|
|
350
355
|
const { composeComponents } = getNativeComps()
|
|
@@ -635,6 +640,9 @@ function generateFormItemH5(config, lang, compProps, params = {}) {
|
|
|
635
640
|
}
|
|
636
641
|
|
|
637
642
|
return node => {
|
|
643
|
+
if (isTransCellMobile(config, compProps?.disabled)) {
|
|
644
|
+
return node
|
|
645
|
+
}
|
|
638
646
|
if (!config.needformItem && !config.showFormItem) {
|
|
639
647
|
return node
|
|
640
648
|
}
|
|
@@ -838,3 +846,7 @@ export function getComponentPropsKeys(comp, config) {
|
|
|
838
846
|
// emitsKyes = emitsKyes.filter(key => typeof key === 'string').map(key => `on${capitalize((camelize(key)))}`)
|
|
839
847
|
return [...emitsKyes, ...propsKeys]
|
|
840
848
|
}
|
|
849
|
+
|
|
850
|
+
function isTransCellMobile(config, disabled) {
|
|
851
|
+
return config?.alwaysNative !== '1' && disabled && findComponent(TRANS_CELL_COMPONETS, config.renderby || config.metaType) !== -1
|
|
852
|
+
}
|