resolver-egretimp-plus 0.0.62 → 0.0.63

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.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -8,10 +8,18 @@ const props = defineProps({
8
8
  ...commonPropsType,
9
9
  })
10
10
 
11
+ const normalVal = computed(() => {
12
+ const findItem = props?.options?.find(item => item.columnValue == modelValue.value)
13
+ if (findItem) {
14
+ return lang?.value?.indexOf('zh') > -1 ? findItem.columnDesc_zh : findItem.columnDesc
15
+ }
16
+ return modelValue.value
17
+ })
18
+
11
19
  const calcProps = computed(() => {
12
20
  return {
13
21
  title: lang?.value?.indexOf('zh') > -1 ? props.config?.metaNameZh : props.config?.metaNameEn,
14
- desc: modelValue.value || props.config?.desc,
22
+ desc: normalVal.value || props.config?.desc,
15
23
  content: props.config?.content,
16
24
  to: props.config?.toHref,
17
25
  islink: props.config?.islink === '1',
@@ -25,20 +33,12 @@ const onChange = (e) => {
25
33
  modelValue.value = e.detail.value
26
34
  }
27
35
 
28
- const normalVal = computed(() => {
29
- const findItem = props?.options?.find(item => item.columnValue == modelValue.value)
30
- if (findItem) {
31
- return lang?.value?.indexOf('zh') > -1 ? findItem.columnDesc_zh : findItem.columnDesc
32
- }
33
- return modelValue.value
34
- })
35
-
36
36
  </script>
37
37
 
38
38
  <template>
39
39
  <cmi-cell-group>
40
40
  <cmi-cell
41
- :value="normalVal" v-bind="{ ...attrs, ...calcProps}"
41
+ v-bind="{ ...attrs, ...calcProps}"
42
42
  @change="onChange"
43
43
  ></cmi-cell>
44
44
  </cmi-cell-group>