resolver-egretimp-plus 0.0.112 → 0.0.114

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.112",
3
+ "version": "0.0.114",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -15,7 +15,7 @@ const emit = defineEmits(['change'])
15
15
  const props = defineProps({
16
16
  ...commonPropsType,
17
17
  multiple: {
18
- type: Boolean,
18
+ type: [String, Boolean],
19
19
  default: false
20
20
  },
21
21
  type: {
@@ -61,7 +61,7 @@ const initSelEmployee = async () => {
61
61
  return dataLoad.value
62
62
  }, async (val) => {
63
63
  if (!val) return
64
- await nextTick()
64
+ await seelp(200)
65
65
  const data = modelValue.value ? modelValue.value.split(',') : []
66
66
  const initParams = {
67
67
  el: `#${metaCode.value}`,
@@ -73,7 +73,7 @@ const initSelEmployee = async () => {
73
73
  // cascade: true
74
74
  },
75
75
  lang: lang.value,
76
- multiple: props.multiple,
76
+ multiple: typeof props.multiple === 'boolean' ? props.multiple : props.multiple === '1',
77
77
  placeholder: lang?.value?.indexOf('zh') > -1 ? props.placeholder : props.placeholderEn,
78
78
  // disabled: props.disabled,
79
79
  onSelectedChange: (data, arr) => {
@@ -94,6 +94,13 @@ const initSelEmployee = async () => {
94
94
  })
95
95
  }
96
96
 
97
+ function seelp(time) {
98
+ return new Promise((resolve) => {
99
+ setTimeout(() => {
100
+ resolve(true)
101
+ }, time);
102
+ })
103
+ }
97
104
  onMounted(() => {
98
105
  initSelEmployee()
99
106
  })