u-button组件里:customStyle="样式数据名"
在data里申明样式数据名,形式为对象,注意值要加引号,且有-的只要改为驼峰命名如border-Radius
<u-button :customStyle="btnGetCode"></u-button>
data(){ return { btnGetCode: { borderRadius: '7px',//驼峰命名注意 height: '34px' } }}
u-button组件里:customStyle="样式数据名"
在data里申明样式数据名,形式为对象,注意值要加引号,且有-的只要改为驼峰命名如border-Radius
<u-button :customStyle="btnGetCode"></u-button>
data(){ return { btnGetCode: { borderRadius: '7px',//驼峰命名注意 height: '34px' } }}