resolver-egretimp-plus 0.1.31 → 0.1.33
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/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/form.scss +2 -0
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/components/packages-web/CustomComponentCycleTabPane.vue +13 -1
- package/src/components/packages-web/CustomComponentSendMail.vue +3 -1
- package/src/components/packages-web/CustomComponentTable.jsx +1 -1
- package/src/components/packages-web/ElButton.vue +2 -2
- package/src/components/styles/CustomComponenTable.scss +0 -1
- package/src/hooks/index.js +2 -1
- package/src/theme/element/components/form.scss +2 -0
- package/src/utils/loadModule.js +2 -2
package/package.json
CHANGED
|
@@ -34,7 +34,12 @@ import { computed, inject, reactive, watch, defineModel, defineProps } from 'vue
|
|
|
34
34
|
import { commonPropsType, cloneDeep, definePrivatelyProp } from '../../utils/index.js'
|
|
35
35
|
import { TabPane } from '../tabs'
|
|
36
36
|
import { h } from 'vue'
|
|
37
|
+
import { useAttrs } from 'vue'
|
|
37
38
|
|
|
39
|
+
defineOptions({
|
|
40
|
+
inheritAttrs: false
|
|
41
|
+
})
|
|
42
|
+
const attrs = useAttrs()
|
|
38
43
|
const props = defineProps({
|
|
39
44
|
...commonPropsType,
|
|
40
45
|
...ElTabPane.props,
|
|
@@ -45,10 +50,17 @@ const modelValue = defineModel()
|
|
|
45
50
|
const lang = inject('lang')
|
|
46
51
|
|
|
47
52
|
const tabPaneProps = computed(() => {
|
|
48
|
-
|
|
53
|
+
const ret = Object.keys(ElTabPane.props).reduce((ret, key) => {
|
|
49
54
|
ret[key] = props[key]
|
|
50
55
|
return ret
|
|
51
56
|
}, {})
|
|
57
|
+
if (attrs?.class) {
|
|
58
|
+
ret.class = attrs.class
|
|
59
|
+
}
|
|
60
|
+
if (attrs?.style) {
|
|
61
|
+
ret.style = attrs.style
|
|
62
|
+
}
|
|
63
|
+
return ret
|
|
52
64
|
})
|
|
53
65
|
|
|
54
66
|
// 循环部分逻辑
|
|
@@ -13,7 +13,9 @@ import { MAIL_SEND_URL } from '../../api/builtIn.js'
|
|
|
13
13
|
const props = defineProps({
|
|
14
14
|
...commonPropsType,
|
|
15
15
|
...ElButton.props,
|
|
16
|
-
toHref: String
|
|
16
|
+
toHref: String,
|
|
17
|
+
plain: [String, Number, Boolean],
|
|
18
|
+
circle: [String, Number, Boolean]
|
|
17
19
|
})
|
|
18
20
|
const calcPorps = computed(() => {
|
|
19
21
|
const ret = {
|
|
@@ -540,7 +540,7 @@ export default {
|
|
|
540
540
|
{
|
|
541
541
|
pageable.value ?
|
|
542
542
|
<div class="pagination-wrap" style={{'justify-content': pageAlignEnmu[pageAlign.value || PAGE_RIGHT]}}>
|
|
543
|
-
<ElPagination { ...paginationProps.value } {...pagenationEvents} v-model:current-page={page.pageNum} v-model:page-size={page.pageSize} total={normalPageTotal.value}></ElPagination>
|
|
543
|
+
<ElPagination style="margin-top: 16px;" { ...paginationProps.value } {...pagenationEvents} v-model:current-page={page.pageNum} v-model:page-size={page.pageSize} total={normalPageTotal.value}></ElPagination>
|
|
544
544
|
</div>
|
|
545
545
|
: null
|
|
546
546
|
}
|
|
@@ -20,8 +20,8 @@ const slots = useSlots()
|
|
|
20
20
|
const props = defineProps({
|
|
21
21
|
...commonPropsType,
|
|
22
22
|
...ElButton.props,
|
|
23
|
-
plain: [String, Boolean],
|
|
24
|
-
circle: [String, Boolean]
|
|
23
|
+
plain: [String, Number, Boolean],
|
|
24
|
+
circle: [String, Number, Boolean]
|
|
25
25
|
})
|
|
26
26
|
const calcPorps = computed(() => {
|
|
27
27
|
const ret = Object.keys(ElButton.props).reduce((total, key) => {
|
package/src/hooks/index.js
CHANGED
|
@@ -23,7 +23,8 @@ export function useVModel(config, props, emit, modelKey = 'update:modelValue') {
|
|
|
23
23
|
return
|
|
24
24
|
}
|
|
25
25
|
const val = (metaCodeKey ? props.modelValue?.[metaCodeKey] : props.modelValue) ?? null
|
|
26
|
-
if (modelKey === 'update:modelValue' &&
|
|
26
|
+
if (modelKey === 'update:modelValue' && (val === undefined || val === null)) {
|
|
27
|
+
// defaultVal(config)
|
|
27
28
|
setTimeout(() => {
|
|
28
29
|
defaultVal(config)
|
|
29
30
|
}, 0)
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
box-sizing: content-box;
|
|
14
|
+
max-width: 100%;
|
|
14
15
|
|
|
15
16
|
// 不需要自带的必填*提示符合
|
|
16
17
|
&::before {
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
display: flex;
|
|
24
25
|
align-items: center;
|
|
25
26
|
box-sizing: content-box;
|
|
27
|
+
max-width: 100%;
|
|
26
28
|
|
|
27
29
|
// 不需要自带的必填*提示符合
|
|
28
30
|
&::before {
|
package/src/utils/loadModule.js
CHANGED
|
@@ -24,10 +24,10 @@ const options = {
|
|
|
24
24
|
if (resultToast(ret.data, messageInstance)) {
|
|
25
25
|
return ret.data.result?.content
|
|
26
26
|
} else {
|
|
27
|
-
return ''
|
|
27
|
+
return '<template><span></span></template>'
|
|
28
28
|
}
|
|
29
29
|
}).catch(() => {
|
|
30
|
-
return ''
|
|
30
|
+
return '<template><span></span></template>'
|
|
31
31
|
}))
|
|
32
32
|
}
|
|
33
33
|
return fileCache.get(fileId)
|