提交 f99056ba 编写于 作者: H hdx

fix(attrs): 调整条件编译,支持 iOS

上级 c47c6c81
...@@ -26,27 +26,26 @@ export default { ...@@ -26,27 +26,26 @@ export default {
}, },
computed: { computed: {
hasPropsAttrs(): boolean { hasPropsAttrs(): boolean {
// #ifdef UNI-APP-X && APP-ANDROID // #ifdef APP-ANDROID
return this.$attrs.has('val') return this.$attrs.has('val')
// #endif // #endif
// #ifdef UNI-APP-X && WEB // #ifndef APP-ANDROID
return !!this.$attrs['val'] return !!this.$attrs['val']
// #endif // #endif
}, },
hasEmitsAttr (): boolean { hasEmitsAttr (): boolean {
// #ifdef UNI-APP-X && APP-ANDROID // #ifdef APP-ANDROID
return this.$attrs.has('result') return this.$attrs.has('result')
// #endif // #endif
// #ifdef UNI-APP-X && WEB // #ifndef APP-ANDROID
return !!this.$attrs['result'] return !!this.$attrs['result']
// #endif // #endif
}, },
hasAttrs (): boolean { hasAttrs (): boolean {
// #ifdef UNI-APP-X && APP-ANDROID // #ifdef APP-ANDROID
return this.$attrs.has('class') return this.$attrs.has('class')
// #endif // #endif
// #ifdef UNI-APP-X && WEB // #ifndef APP-ANDROID
return !!this.$attrs['class'] return !!this.$attrs['class']
// #endif // #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册