提交 f99056ba 编写于 作者: H hdx

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

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