chore(Picker): prefer using textContent (#6569)

This commit is contained in:
neverland
2020-06-19 06:16:56 +08:00
committed by GitHub
parent 9b0f23e2da
commit fe1ba1318b
2 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ export default createComponent({
const childData = {
class: 'van-ellipsis',
domProps: {
[this.allowHtml ? 'innerHTML' : 'innerText']: text,
[this.allowHtml ? 'innerHTML' : 'textContent']: text,
},
};