[
https://issues.apache.org/jira/browse/WEEX-229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16474329#comment-16474329
]
Danz He commented on WEEX-229:
------------------------------
In 1.x the value attribute is not working for certain reason. In short, the
value of 'value' attribute should be put into a child text node and to be as a
text content value, during compiling time. But in that specific time, the
relationship of parent and children is not official formed yet.
The conclusion is that it's not likely to support 'value' attribute for 'text'
component yet in [[email protected].|mailto:[email protected].] You should
put your text value as a child of text node. e.g. Use '<text>test</text>'
instead of '<text value="test"></text>'.
> weex web weex-vue-render1.0.x text components value attribute not effective
> ----------------------------------------------------------------------------
>
> Key: WEEX-229
> URL: https://issues.apache.org/jira/browse/WEEX-229
> Project: Weex
> Issue Type: Bug
> Reporter: fengwuxp
> Assignee: Danz He
> Priority: Major
>
> example
> code :
> `<text value='测试'></text>`
> result:
> ` <p data-v-1b31d2a8="" value="测试" weex-type="text" class="num_text weex-el
> weex-text"></p>`
> use cdn js
> <script src="//h5.m.taobao.com/js/trip/weex-ui/vue.runtime.min.js"></script>
> <script
> src="//h5.m.taobao.com/js/trip/weex-ui/weex-vue-render-next.min.js"></script>
> devDependencies list:
> {{"vue": "^2.5.3", }}
> {{"vue-loader": "^12.2.2",}}
> {{ "vue-router": "^3.0.1", }}
> {{"vue-template-compiler": "^2.5.3", }}
> {{"webpack": "^3.8.1", }}
> {{"webpack-cli": "^2.0.9", }}
> {{"webpack-dev-server": "^3.0.0",}}
> {{ "weex-loader": "~0.5.3", }}
> {{"weex-ui": "^0.4.0", }}
> {{"weex-vue-framework": "^2.5.13-weex.5",}}
> {{ "weex-vue-loader": "~0.4.2",}}
> {{ "weex-vue-precompiler": "^0.1.17", }}
> {{"weex-vue-render": "^1.0.17",}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)