Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix: 修复style性质的属性没有转换成内联样式的问题
Browse files Browse the repository at this point in the history
fix #281
  • Loading branch information
Darmody authored and yesmeck committed Oct 16, 2019
1 parent 4721370 commit e2bc745
Show file tree
Hide file tree
Showing 22 changed files with 107 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@


<template name="REMAX_TPL_1_view">
<view disable-scroll="{{item.props['disable-scroll']}}" hover-class="{{item.props['hover-class']}}" hover-start-time="{{item.props['hover-start-time']}}" hover-stay-time="{{item.props['hover-stay-time']}}" hidden="{{item.props['hidden']}}" class="{{item.props['class']}}" style="{{item.props['style']}}" animation="{{item.props['animation']}}" hover-stop-propagation="{{item.props['hover-stop-propagation']}}" onTap="{{item.props['onTap']}}" onTouchStart="{{item.props['onTouchStart']}}" onTouchMove="{{item.props['onTouchMove']}}" onTouchEnd="{{item.props['onTouchEnd']}}" onTouchCancel="{{item.props['onTouchCancel']}}" onLongTap="{{item.props['onLongTap']}}" onTransitionEnd="{{item.props['onTransitionEnd']}}" onAnimationIteration="{{item.props['onAnimationIteration']}}" onAnimationStart="{{item.props['onAnimationStart']}}" onAnimationEnd="{{item.props['onAnimationEnd']}}" onAppear="{{item.props['onAppear']}}" onDisappear="{{item.props['onDisappear']}}" onFirstAppear="{{item.props['onFirstAppear']}}" id="{{item.props['id']}}" >
<view disable-scroll="{{item.props['disable-scroll']}}" hover-class="{{item.props['hover-class']}}" hover-start-time="{{item.props['hover-start-time']}}" hover-stay-time="{{item.props['hover-stay-time']}}" hidden="{{item.props['hidden']}}" class="{{item.props['class']}}" style="{{item.props['style']}}" animation="{{item.props['animation']}}" hover-stop-propagation="{{item.props['hover-stop-propagation']}}" onTap="{{item.props['onTap']}}" onTouchStart="{{item.props['onTouchStart']}}" onTouchMove="{{item.props['onTouchMove']}}" onTouchEnd="{{item.props['onTouchEnd']}}" onTouchCancel="{{item.props['onTouchCancel']}}" onLongTap="{{item.props['onLongTap']}}" onTransitionEnd="{{item.props['onTransitionEnd']}}" onAnimationIteration="{{item.props['onAnimationIteration']}}" onAnimationStart="{{item.props['onAnimationStart']}}" onAnimationEnd="{{item.props['onAnimationEnd']}}" onAppear="{{item.props['onAppear']}}" onDisappear="{{item.props['onDisappear']}}" onFirstAppear="{{item.props['onFirstAppear']}}" id="{{item.props['id']}}" data-foo="{{item.props['data-foo']}}" >

<block a:for="{{item.children}}" key="{{item.id}}">
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ var _page = function _page() {
return createElement(View, null, createElement(View, _extends({
onClick: handleClick,
onTouchStart: handleTouchStart,
id: "view"
id: "view",
"data-foo": "bar"
}, props), "foo"), TextElement);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default () => {
onClick={handleClick}
onTouchStart={handleTouchStart}
id="view"
data-foo="bar"
{...props}
>
foo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@


<template name="REMAX_TPL_1_view">
<view disable-scroll="{{item.props['disable-scroll']}}" hover-class="{{item.props['hover-class']}}" hover-start-time="{{item.props['hover-start-time']}}" hover-stay-time="{{item.props['hover-stay-time']}}" hidden="{{item.props['hidden']}}" class="{{item.props['class']}}" style="{{item.props['style']}}" animation="{{item.props['animation']}}" hover-stop-propagation="{{item.props['hover-stop-propagation']}}" onTap="{{item.props['onTap']}}" onTouchStart="{{item.props['onTouchStart']}}" onTouchMove="{{item.props['onTouchMove']}}" onTouchEnd="{{item.props['onTouchEnd']}}" onTouchCancel="{{item.props['onTouchCancel']}}" onLongTap="{{item.props['onLongTap']}}" onTransitionEnd="{{item.props['onTransitionEnd']}}" onAnimationIteration="{{item.props['onAnimationIteration']}}" onAnimationStart="{{item.props['onAnimationStart']}}" onAnimationEnd="{{item.props['onAnimationEnd']}}" onAppear="{{item.props['onAppear']}}" onDisappear="{{item.props['onDisappear']}}" onFirstAppear="{{item.props['onFirstAppear']}}" onTap="{{item.props['onTap']}}" id="{{item.props['id']}}" >
<view disable-scroll="{{item.props['disable-scroll']}}" hover-class="{{item.props['hover-class']}}" hover-start-time="{{item.props['hover-start-time']}}" hover-stay-time="{{item.props['hover-stay-time']}}" hidden="{{item.props['hidden']}}" class="{{item.props['class']}}" style="{{item.props['style']}}" animation="{{item.props['animation']}}" hover-stop-propagation="{{item.props['hover-stop-propagation']}}" onTap="{{item.props['onTap']}}" onTouchStart="{{item.props['onTouchStart']}}" onTouchMove="{{item.props['onTouchMove']}}" onTouchEnd="{{item.props['onTouchEnd']}}" onTouchCancel="{{item.props['onTouchCancel']}}" onLongTap="{{item.props['onLongTap']}}" onTransitionEnd="{{item.props['onTransitionEnd']}}" onAnimationIteration="{{item.props['onAnimationIteration']}}" onAnimationStart="{{item.props['onAnimationStart']}}" onAnimationEnd="{{item.props['onAnimationEnd']}}" onAppear="{{item.props['onAppear']}}" onDisappear="{{item.props['onDisappear']}}" onFirstAppear="{{item.props['onFirstAppear']}}" onTap="{{item.props['onTap']}}" id="{{item.props['id']}}" data-foo="{{item.props['data-foo']}}" >

<block a:for="{{item.children}}" key="{{item.id}}">
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@


<template name="REMAX_TPL_1_view">
<view disable-scroll="{{item.props['disable-scroll']}}" hover-class="{{item.props['hover-class']}}" hover-start-time="{{item.props['hover-start-time']}}" hover-stay-time="{{item.props['hover-stay-time']}}" hidden="{{item.props['hidden']}}" class="{{item.props['class']}}" style="{{item.props['style']}}" animation="{{item.props['animation']}}" hover-stop-propagation="{{item.props['hover-stop-propagation']}}" onTap="{{item.props['onTap']}}" onTouchStart="{{item.props['onTouchStart']}}" onTouchMove="{{item.props['onTouchMove']}}" onTouchEnd="{{item.props['onTouchEnd']}}" onTouchCancel="{{item.props['onTouchCancel']}}" onLongTap="{{item.props['onLongTap']}}" onTransitionEnd="{{item.props['onTransitionEnd']}}" onAnimationIteration="{{item.props['onAnimationIteration']}}" onAnimationStart="{{item.props['onAnimationStart']}}" onAnimationEnd="{{item.props['onAnimationEnd']}}" onAppear="{{item.props['onAppear']}}" onDisappear="{{item.props['onDisappear']}}" onFirstAppear="{{item.props['onFirstAppear']}}" onTap="{{item.props['onTap']}}" id="{{item.props['id']}}" >
<view disable-scroll="{{item.props['disable-scroll']}}" hover-class="{{item.props['hover-class']}}" hover-start-time="{{item.props['hover-start-time']}}" hover-stay-time="{{item.props['hover-stay-time']}}" hidden="{{item.props['hidden']}}" class="{{item.props['class']}}" style="{{item.props['style']}}" animation="{{item.props['animation']}}" hover-stop-propagation="{{item.props['hover-stop-propagation']}}" onTap="{{item.props['onTap']}}" onTouchStart="{{item.props['onTouchStart']}}" onTouchMove="{{item.props['onTouchMove']}}" onTouchEnd="{{item.props['onTouchEnd']}}" onTouchCancel="{{item.props['onTouchCancel']}}" onLongTap="{{item.props['onLongTap']}}" onTransitionEnd="{{item.props['onTransitionEnd']}}" onAnimationIteration="{{item.props['onAnimationIteration']}}" onAnimationStart="{{item.props['onAnimationStart']}}" onAnimationEnd="{{item.props['onAnimationEnd']}}" onAppear="{{item.props['onAppear']}}" onDisappear="{{item.props['onDisappear']}}" onFirstAppear="{{item.props['onFirstAppear']}}" onTap="{{item.props['onTap']}}" id="{{item.props['id']}}" data-foo="{{item.props['data-foo']}}" >

<block a:for="{{item.children}}" key="{{item.id}}">
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@


<template name="REMAX_TPL_1_view">
<view disable-scroll="{{item.props['disable-scroll']}}" hover-class="{{item.props['hover-class']}}" hover-start-time="{{item.props['hover-start-time']}}" hover-stay-time="{{item.props['hover-stay-time']}}" hidden="{{item.props['hidden']}}" class="{{item.props['class']}}" style="{{item.props['style']}}" animation="{{item.props['animation']}}" hover-stop-propagation="{{item.props['hover-stop-propagation']}}" onTap="{{item.props['onTap']}}" onTouchStart="{{item.props['onTouchStart']}}" onTouchMove="{{item.props['onTouchMove']}}" onTouchEnd="{{item.props['onTouchEnd']}}" onTouchCancel="{{item.props['onTouchCancel']}}" onLongTap="{{item.props['onLongTap']}}" onTransitionEnd="{{item.props['onTransitionEnd']}}" onAnimationIteration="{{item.props['onAnimationIteration']}}" onAnimationStart="{{item.props['onAnimationStart']}}" onAnimationEnd="{{item.props['onAnimationEnd']}}" onAppear="{{item.props['onAppear']}}" onDisappear="{{item.props['onDisappear']}}" onFirstAppear="{{item.props['onFirstAppear']}}" onTap="{{item.props['onTap']}}" id="{{item.props['id']}}" >
<view disable-scroll="{{item.props['disable-scroll']}}" hover-class="{{item.props['hover-class']}}" hover-start-time="{{item.props['hover-start-time']}}" hover-stay-time="{{item.props['hover-stay-time']}}" hidden="{{item.props['hidden']}}" class="{{item.props['class']}}" style="{{item.props['style']}}" animation="{{item.props['animation']}}" hover-stop-propagation="{{item.props['hover-stop-propagation']}}" onTap="{{item.props['onTap']}}" onTouchStart="{{item.props['onTouchStart']}}" onTouchMove="{{item.props['onTouchMove']}}" onTouchEnd="{{item.props['onTouchEnd']}}" onTouchCancel="{{item.props['onTouchCancel']}}" onLongTap="{{item.props['onLongTap']}}" onTransitionEnd="{{item.props['onTransitionEnd']}}" onAnimationIteration="{{item.props['onAnimationIteration']}}" onAnimationStart="{{item.props['onAnimationStart']}}" onAnimationEnd="{{item.props['onAnimationEnd']}}" onAppear="{{item.props['onAppear']}}" onDisappear="{{item.props['onDisappear']}}" onFirstAppear="{{item.props['onFirstAppear']}}" onTap="{{item.props['onTap']}}" id="{{item.props['id']}}" data-foo="{{item.props['data-foo']}}" >

<block a:for="{{item.children}}" key="{{item.id}}">
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
Expand Down
Loading

0 comments on commit e2bc745

Please sign in to comment.