resolver-egretimp-plus 0.0.264 → 0.0.266
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 +1 -1
- package/dist/theme/element/index.css +1 -1
- package/dist/theme/element/src/index.scss +3 -0
- package/package.json +1 -1
- package/src/components/packages-H5/CmiButton.vue +1 -1
- package/src/components/packages-H5/CmiCalendar.vue +11 -11
- package/src/components/packages-H5/CmiCell.vue +3 -3
- package/src/components/packages-H5/CmiCheckbox.vue +2 -2
- package/src/components/packages-H5/CmiDatetimePicker.vue +2 -2
- package/src/components/packages-H5/CmiInput.vue +3 -3
- package/src/components/packages-H5/CmiPicker.vue +1 -1
- package/src/components/packages-H5/CmiSearch.vue +3 -3
- package/src/components/packages-H5/CustomComponentTabPaneH5.vue +1 -1
- package/src/components/packages-H5/CustomComponentTableH5.vue +7 -7
- package/src/components/packages-H5/CustomComponentTabsH5.vue +3 -2
- package/src/theme/element/index.scss +3 -0
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ const props = defineProps({
|
|
|
22
22
|
const calcPorps = computed(() => {
|
|
23
23
|
return ['displayType', 'widgetSize', 'plain', 'color', 'loading', 'loadtype', 'loadingcolor', 'disabled'].reduce((ret, key) => {
|
|
24
24
|
if (['plain', 'loading', 'loadtype'].includes(key)) {
|
|
25
|
-
ret[key] = props[key]
|
|
25
|
+
ret[key] = props[key] == '1' ? true : false
|
|
26
26
|
} else if (key === 'displayType') {
|
|
27
27
|
ret.type = props[key]
|
|
28
28
|
} else if (key === 'widgetSize') {
|
|
@@ -12,7 +12,7 @@ const props = defineProps({
|
|
|
12
12
|
})
|
|
13
13
|
const open = computed({
|
|
14
14
|
get() {
|
|
15
|
-
return props?.config?.open
|
|
15
|
+
return props?.config?.open == '1'
|
|
16
16
|
},
|
|
17
17
|
set(val) {
|
|
18
18
|
props.config.open = val ? '1' : '0'
|
|
@@ -67,24 +67,24 @@ const calcProps = computed(() => {
|
|
|
67
67
|
const ret = {
|
|
68
68
|
type: props?.config?.displayType,
|
|
69
69
|
title: lang.value?.indexOf('zh') > -1 ? props.config?.metaNameZh : props.config?.metaNameEn,
|
|
70
|
-
readonly: props?.config?.readonly
|
|
71
|
-
tiled: props?.config?.tiled
|
|
70
|
+
readonly: props?.config?.readonly == '1',
|
|
71
|
+
tiled: props?.config?.tiled == '1',
|
|
72
72
|
mindate: props?.config?.mindate,
|
|
73
73
|
maxdate: props?.config?.maxdate,
|
|
74
|
-
hidemark: props?.config?.hidemark
|
|
75
|
-
hidetitle: props?.config?.hidetitle
|
|
76
|
-
hidesubtitle: props?.config?.hidesubtitle
|
|
77
|
-
hideconfirm: props?.config?.hideconfirm
|
|
78
|
-
eagerrender: props?.config?.eagerrender
|
|
74
|
+
hidemark: props?.config?.hidemark == '1',
|
|
75
|
+
hidetitle: props?.config?.hidetitle == '1',
|
|
76
|
+
hidesubtitle: props?.config?.hidesubtitle == '1',
|
|
77
|
+
hideconfirm: props?.config?.hideconfirm == '1',
|
|
78
|
+
eagerrender: props?.config?.eagerrender == '1',
|
|
79
79
|
confirmtext: props?.config?.confirmtext,
|
|
80
80
|
confirmdisabledtext: props?.config?.confirmdisabledtext,
|
|
81
81
|
weekfirstday: props?.config?.weekfirstday,
|
|
82
|
-
forbidmaskclick: props?.config?.forbidmaskclick
|
|
82
|
+
forbidmaskclick: props?.config?.forbidmaskclick == '1',
|
|
83
83
|
|
|
84
84
|
maxrange: props?.config?.maxrange,
|
|
85
85
|
rangeprompt: props?.config?.rangeprompt,
|
|
86
|
-
hiderangeprompt: props?.config?.hiderangeprompt
|
|
87
|
-
allowsameday: props?.config?.allowsameday
|
|
86
|
+
hiderangeprompt: props?.config?.hiderangeprompt == '1',
|
|
87
|
+
allowsameday: props?.config?.allowsameday == '1',
|
|
88
88
|
}
|
|
89
89
|
return ret
|
|
90
90
|
})
|
|
@@ -64,10 +64,10 @@ const calcProps = computed(() => {
|
|
|
64
64
|
desc,
|
|
65
65
|
content: props.config?.content,
|
|
66
66
|
to: props.config?.toHref,
|
|
67
|
-
islink: props.config?.islink
|
|
67
|
+
islink: props.config?.islink == '1',
|
|
68
68
|
icon: props.config?.icon,
|
|
69
|
-
selfadaption: hasOwn(props.config, 'selfadaption') ? props.config.selfadaption
|
|
70
|
-
noborder: props.config?.noborder
|
|
69
|
+
selfadaption: hasOwn(props.config, 'selfadaption') ? props.config.selfadaption == '1' : true,
|
|
70
|
+
noborder: props.config?.noborder == '1' || props.config?.borderHidden == '1',
|
|
71
71
|
}
|
|
72
72
|
})
|
|
73
73
|
const attrs = useAttrs()
|
|
@@ -27,8 +27,8 @@ const checkboxProps = computed(() => {
|
|
|
27
27
|
label: lang?.value?.indexOf('zh') > -1 ? props.config?.metaNameZh : props.config?.metaNameEn,
|
|
28
28
|
size: props?.config?.size,
|
|
29
29
|
disabled: props.disabled,
|
|
30
|
-
block: props?.config?.block
|
|
31
|
-
indeterminate: props?.config?.indeterminate
|
|
30
|
+
block: props?.config?.block == '1',
|
|
31
|
+
indeterminate: props?.config?.indeterminate == '1',
|
|
32
32
|
}
|
|
33
33
|
})
|
|
34
34
|
const attrs = useAttrs()
|
|
@@ -10,7 +10,7 @@ const props = defineProps({
|
|
|
10
10
|
})
|
|
11
11
|
const open = computed({
|
|
12
12
|
get() {
|
|
13
|
-
return props?.config?.open
|
|
13
|
+
return props?.config?.open == '1'
|
|
14
14
|
},
|
|
15
15
|
set(val) {
|
|
16
16
|
props.config.open = val ? '1' : '0'
|
|
@@ -44,7 +44,7 @@ const calcProps = computed(() => {
|
|
|
44
44
|
const ret = {
|
|
45
45
|
type: props?.config?.displayType,
|
|
46
46
|
title: lang.value?.indexOf('zh') > -1 ? props.config?.metaNameZh : props.config?.metaNameEn,
|
|
47
|
-
forbidmaskclick: props?.config?.forbidmaskclick
|
|
47
|
+
forbidmaskclick: props?.config?.forbidmaskclick == '1',
|
|
48
48
|
mindate: props?.config?.mindate,
|
|
49
49
|
maxdate: props?.config?.maxdate,
|
|
50
50
|
minhour: props?.config?.minhour,
|
|
@@ -25,12 +25,12 @@ const inputProps = computed(() => {
|
|
|
25
25
|
max: props.config?.max,
|
|
26
26
|
maxlength: props.config?.maxLength,
|
|
27
27
|
disabled: props.disabled,
|
|
28
|
-
readonly: props.config?.readonly
|
|
28
|
+
readonly: props.config?.readonly =='1',
|
|
29
29
|
required: props.required,
|
|
30
30
|
errormsg: props.config?.errormsg,
|
|
31
31
|
clearable: props.clearable && !props.disabled,
|
|
32
|
-
showWordLimit: props.config?.showWordLimit
|
|
33
|
-
showPassword: props.config?.showPassword
|
|
32
|
+
showWordLimit: props.config?.showWordLimit == '1' && props.config?.maxLength,
|
|
33
|
+
showPassword: props.config?.showPassword == '1',
|
|
34
34
|
prefixIcon: props.config?.prefixIcon,
|
|
35
35
|
suffixIcon: props.config?.suffixIcon,
|
|
36
36
|
minRows: props.config?.minRows,
|
|
@@ -11,14 +11,14 @@ const calcProps = computed(() => {
|
|
|
11
11
|
return {
|
|
12
12
|
shape: props.config?.shape,
|
|
13
13
|
dark: props.config?.dark,
|
|
14
|
-
showback: props.config?.showback
|
|
15
|
-
showaction: props.config?.showaction
|
|
14
|
+
showback: props.config?.showback == '1',
|
|
15
|
+
showaction: props.config?.showaction == '1',
|
|
16
16
|
actiontext: props.config?.actiontext,
|
|
17
17
|
iconcolor: props.config?.iconcolor,
|
|
18
18
|
placeholder: lang?.value?.indexOf('zh') > -1 ? props.config?.defPlacehold : props.config?.defPlaceholdEn,
|
|
19
19
|
maxlength: props.config?.maxlength,
|
|
20
20
|
autofocus: props.config?.autofocus,
|
|
21
|
-
clearable: props.config?.clearable
|
|
21
|
+
clearable: props.config?.clearable == '1',
|
|
22
22
|
disabled: props.disabled,
|
|
23
23
|
readonly: props.readonly,
|
|
24
24
|
noborder: props.config?.noborder,
|
|
@@ -11,7 +11,7 @@ const tabProps = computed(() => {
|
|
|
11
11
|
return {
|
|
12
12
|
label: lang.value.indexOf('zh') > -1 ? props.config?.metaNameZh : props.config?.metaNameEn,
|
|
13
13
|
name: props.config?.metaCode,
|
|
14
|
-
disabled: props.config?.editFlag
|
|
14
|
+
disabled: props.config?.editFlag == '0'
|
|
15
15
|
}
|
|
16
16
|
})
|
|
17
17
|
const modelValue = defineModel()
|
|
@@ -20,11 +20,11 @@ const isFrontPage = computed(() => {
|
|
|
20
20
|
})
|
|
21
21
|
const tableProps = computed(() => {
|
|
22
22
|
return {
|
|
23
|
-
stripe: props.config?.stripe
|
|
24
|
-
card: props.config?.displayType
|
|
23
|
+
stripe: props.config?.stripe == '1',
|
|
24
|
+
card: props.config?.displayType == 'card',
|
|
25
25
|
display: props.config?.display,
|
|
26
|
-
open: props.config?.defaultOpenFlag
|
|
27
|
-
showlandscape: props.config?.showLandscape
|
|
26
|
+
open: props.config?.defaultOpenFlag == '1',
|
|
27
|
+
showlandscape: props.config?.showLandscape == '1',
|
|
28
28
|
rowkey: props.config?.rowkey,
|
|
29
29
|
height: props.config?.height,
|
|
30
30
|
}
|
|
@@ -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
|
|
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(() => {
|
|
@@ -142,8 +142,8 @@ const getTableColumnProps = (config) => {
|
|
|
142
142
|
label,
|
|
143
143
|
prop: config.metaCode,
|
|
144
144
|
width: config.columnWidth || props.config.columnWidth,
|
|
145
|
-
ellipsis: config.ellipsis
|
|
146
|
-
showexpand: config.showexpand
|
|
145
|
+
ellipsis: config.ellipsis == '1',
|
|
146
|
+
showexpand: config.showexpand == '1',
|
|
147
147
|
fixed: config.fixed,
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -17,7 +17,7 @@ const tabpanes = computed(() => {
|
|
|
17
17
|
|
|
18
18
|
const activeNames = computed({
|
|
19
19
|
get() {
|
|
20
|
-
const currentTab = tabpanes.value.find(tab => tab.defaultShowFlag
|
|
20
|
+
const currentTab = tabpanes.value.find(tab => tab.defaultShowFlag == '1')
|
|
21
21
|
const currentCycleTab = tabpanes.value.find(tab => tab.currentCode)
|
|
22
22
|
return (currentTab && currentTab.metaCode)
|
|
23
23
|
|| (currentCycleTab && currentCycleTab.currentCode)
|
|
@@ -48,7 +48,8 @@ const tabProps = computed(() => {
|
|
|
48
48
|
sticky: props.config?.sticky == '1',
|
|
49
49
|
offsettop: (props.config?.offsetTop || '0') + 'vw',
|
|
50
50
|
type: props.config.displayType || props.config.tabType,
|
|
51
|
-
title: lang.value?.indexOf('zh') > -1 ? props.config.metaNameZh : props.config.metaNameEn
|
|
51
|
+
title: lang.value?.indexOf('zh') > -1 ? props.config.metaNameZh : props.config.metaNameEn,
|
|
52
|
+
stopSlide: props.config?.stopSlide ?? true
|
|
52
53
|
}
|
|
53
54
|
})
|
|
54
55
|
|