Select 选择框
选择框,用来代替原生的 select 元素,提供丰富的样式和功能
基础用法
html
<xtt-select id="operate">
<option>option1</option>
<option selected>option2</option>
<option>option3</option>
</xtt-select>
<xtt-select disabled>
<option>option1</option>
<option selected>option2</option>
<option>option3</option>
</xtt-select>
<p>label 虽然可以使 select 显示内容,但是只有 label 属性时 value 为空</p>
<xtt-select>
<option label="option1"></option>
<option label="option2"></option>
<option label="option3"></option>
</xtt-select>
<xtt-select></xtt-select>