1. 程式人生 > 其它 >nvue 多個text超出自動換行

nvue 多個text超出自動換行

h5

richNodes(item) {
                return [
                    {
                        name: 'div',
                        attrs: {
                            class: 'div-rich-nickname',
                            style: 'color: #50c76f;display: contents;'
                        },
                        children: [
                            {
                                type: 
'text', text: item.user.nickname+'' } ] }, { name: 'div', attrs: { class: 'div-rich-comment', style:
'color: #fff;display: contents;' }, children: [ { type: 'text', text: item.comment } ] } ] }

app