resolver-egretimp-plus 0.1.32 → 0.1.34

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -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
- return Object.keys(ElTabPane.props).reduce((ret, key) => {
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) => {
@@ -114,7 +114,6 @@
114
114
  }
115
115
  .pagination-wrap {
116
116
  display: flex;
117
- margin-top: 16px;
118
117
  }
119
118
  .hidden-column {
120
119
  border: none;
@@ -23,10 +23,11 @@ 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' && !val) {
27
- setTimeout(() => {
28
- defaultVal(config)
29
- }, 0)
26
+ if (modelKey === 'update:modelValue' && (val === undefined || val === null)) {
27
+ defaultVal(config)
28
+ // setTimeout(() => {
29
+ // defaultVal(config)
30
+ // }, 0)
30
31
  }
31
32
  config && (config.bindValue = val)
32
33
  if (config) {
@@ -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)