Skip to content
New issue

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

color 属性的表达式使用后无效 而background-color的使用则有效 #70

Open
xiaomaolver opened this issue Feb 13, 2019 · 4 comments

Comments

@xiaomaolver
Copy link

No description provided.

@xiaomaolver xiaomaolver changed the title colcor color 属性的表达式使用后无效 而background-color的使用则有效 Feb 13, 2019
@xiaomaolver
Copy link
Author

Binding.bind({
eventType: 'scroll',
anchor: list,
props: [
{
element: title,
property: 'color',
expression: {
origin: "evaluateColor('#ff0000','#0000ff',min(y,300)/300)"
}
},
{
element: target_bg,
property: 'background-color',
expression: {
origin: "evaluateColor('#ffffff','#000000',min(y,300)/300)"
}
}
]
});

代码如上,改变背景颜色的是有效的,但是改变字体颜色的却无效

@xiaomaolver xiaomaolver reopened this Feb 13, 2019
@hjhcn
Copy link
Contributor

hjhcn commented Feb 18, 2019

@xiaomaolver
Copy link
Author

@hjhcn https://jsplayground.taobao.org/ 进不去了, bindingx 版本0.0.49 weexSDK 版本 1.6+

@gfu7
Copy link

gfu7 commented Jul 2, 2020

I also found, iOS/Web is worked but Android not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants