We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p
font-size
text
<text></text>
padding
border
margin
padding-top
padding-right
padding-bottom
padding-left
:class
:class="[type === 'index' ? 'active' : '']"
:class="{active: type === 'index'}"
:class="[type === 'index' ? 'active disabled' : '']"
img
image
div
scroller
DOM
<div class="warpper"> <text class="warpper_context>text</text> </div>
.warpper .warpper_context ❌ color:#fff; //native端无效 .warpper_context ✔️ color:#fff; // native端有效
flex
flex-direction
display: none
v-show
v-if
inline-block
.active.active
WXModalUIModule.m - (void)toast:(NSString *)message duration:(double)duration { WXAssertMainThread(); //UIView *superView = [[[UIApplication sharedApplication] windows] objectAtIndex:0]; UIView *superView = [[[UIApplication sharedApplication] windows] lastObject]; if (!superView) { superView = self.weexInstance.rootView; } UIView *toastView = [self toastViewForMessage:message superView:superView]; WXToastInfo *info = [WXToastInfo new]; info.toastView = toastView; info.superView = superView; info.duration = duration; [[WXToastManager sharedManager].toastQueue addObject:info]; if (![WXToastManager sharedManager].toastingView) { [self showToast:toastView superView:superView duration:duration]; } }
vue-router
native
内存泄露
iOS
getSkuList() { const _this = this; _this.skuList = []; console.log('aaa'); storage.setItem('skuList', _this.skuList, event => { console.log('set success'); }); storage.getItem('skuList', event => { console.log('get value') if (event.data) { _this.skuList = event.data; } }); console.log('bbb'); }
运行结果 aaa bbb set success get value
storage
let skuList = [{ skuId: 2696, count: 1, createTime: 1490688258 }, { skuId: 2970, count: 1, createTime: 1490688272 }, { skuId: 2971, count: 1, createTime: 1490688272 }, { skuId: 2972, count: 1, createTime: 1490688272 }]; skuList = JSON.stringify(skuList); storage.setItem('skuList', skuList, event => { console.log('set success'); }); storage.getItem('skuList', event => { console.log('get value:', event.data) if (event.data) { _this.skuList = JSON.parse(event.data); } });
router-view
The text was updated successfully, but these errors were encountered:
No branches or pull requests
记录项目从vue2.0拓展到weex
p
标签,p
居然不能设置font-size
,文字显示一律改用text
标签:<text></text>
padding
border
margin
等属性不支持简写,请使用padding-top
padding-right
padding-bottom
padding-left
;:class
不能使用对象语法应该使用数组语法,数组写法:class="[type === 'index' ? 'active' : '']"
✔️;对象写法:class="{active: type === 'index'}"
❌,且数组写法一次只能判断添加一个类,:class="[type === 'index' ? 'active disabled' : '']"
❌img
简写只能用image
标签div
text
(html5标签语义化一夜回到解放前,毕竟不用SEO),在weex提供的內建组件中,譬如scroller
之类的,使用weex不支持的标签在native端可能会导致dom元素直接消失DOM
元素只支持单个类设置样式flex
布局,务必设置flex-direction
属性display: none
,即不支持v-show
,需要替换成v-if
inline-block
元素的布局无法有效实现.active.active
增加css选择器权重的写法vue-router
的情况下在native
端实现原生多页应用的体验(用了一下存在内存泄露
的问题待解决)iOS
端顶部渲染20px的问题storage
存储的内容应该转为字符串,取的内容转化为json对象router-view
需要包裹在div
标签中The text was updated successfully, but these errors were encountered: