resolver-egretimp-plus 0.0.171 → 0.0.173
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 +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/analysisComponent.jsx +3 -1
- package/src/utils/defaultVal.js +2 -0
package/package.json
CHANGED
|
@@ -69,8 +69,11 @@ export default {
|
|
|
69
69
|
const messageCb = inject('_messageCb')
|
|
70
70
|
const messageInstance = inject('_messageInstance')
|
|
71
71
|
const builtPolyfillReq = inject('_builtPolyfillReq')
|
|
72
|
+
const rootValue = inject('rootValue')
|
|
72
73
|
|
|
73
74
|
const selects = inject('selects')
|
|
75
|
+
|
|
76
|
+
definePrivatelyProp(props.config, '_rootValue', rootValue)
|
|
74
77
|
// 当前组件的实例
|
|
75
78
|
const instance = getCurrentInstance()
|
|
76
79
|
const appContext = instance?.appContext
|
|
@@ -205,7 +208,6 @@ export default {
|
|
|
205
208
|
|
|
206
209
|
const _isH5 = inject('_isH5')
|
|
207
210
|
const lang = inject('lang')
|
|
208
|
-
const rootValue = inject('rootValue')
|
|
209
211
|
const onClick = (e, params) => {
|
|
210
212
|
const context = {
|
|
211
213
|
props,
|
package/src/utils/defaultVal.js
CHANGED
|
@@ -11,6 +11,8 @@ export default function defaultVal(config) {
|
|
|
11
11
|
} else {
|
|
12
12
|
if (configDefaultVal === ARG_FLAGS.CURRENT_DATE || configDefaultVal === 'currentDate') {
|
|
13
13
|
defaultVal = formatDate(new Date(), 'yyyy-MM-dd')
|
|
14
|
+
} else if (['true', 'false'].includes(configDefaultVal)) {
|
|
15
|
+
defaultVal = configDefaultVal == 'true' ? true : false
|
|
14
16
|
} else {
|
|
15
17
|
defaultVal = configDefaultVal
|
|
16
18
|
}
|