resolver-egretimp-plus 0.0.103 → 0.0.104

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.103",
3
+ "version": "0.0.104",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -101,13 +101,31 @@ const dialogValue = computed({
101
101
  })
102
102
  // 是否显示确定按钮
103
103
  const showConfirmButton = computed(() => {
104
- return !!(props.config?.showConfirmButton) || !!(props.config?.showConfirm)
104
+ return (
105
+ typeof props.config?.showConfirmButton === 'boolean' ?
106
+ !!(props.config?.showConfirmButton) :
107
+ props.config.showConfirmButton === '1'
108
+ ) || (
109
+ typeof props.config?.showConfirm === 'boolean' ?
110
+ !!(props.config?.showConfirm) :
111
+ props.config.showConfirm === '1'
112
+ )
105
113
  })
106
114
  // 是否显示确定关闭按钮
107
115
  const showCloseButton = computed(() => {
108
116
  return hasOwn(props.config, 'showCloseButton') ?
109
- !!(props.config?.showCloseButton) :
110
- hasOwn(props.config, 'showClose') ? !!(props.config?.showClose) : true
117
+ (
118
+ typeof props.config.showCloseButton === 'boolean' ?
119
+ !!(props.config.showCloseButton) :
120
+ props.config.showCloseButton === '1'
121
+ ) :
122
+ hasOwn(props.config, 'showClose') ?
123
+ (
124
+ typeof props.config.showClose === 'boolean' ?
125
+ !!(props.config.showClose) :
126
+ props.config.showClose === '1'
127
+ ) :
128
+ true
111
129
  })
112
130
 
113
131
  const toConfirm = async () => {