为了做试验,我直接将封装的button内容写为
<template>
<button :form-type="inputFormType">Submit</button>
</template>
外部调用时
<x-button type="danger" height="100rpx" inputFormType="submit">确定</x-button>
完整代码可以参照ThorUi封装的tui-button
为了做试验,我直接将封装的button内容写为
<template>
<button :form-type="inputFormType">Submit</button>
</template>
外部调用时
<x-button type="danger" height="100rpx" inputFormType="submit">确定</x-button>
完整代码可以参照ThorUi封装的tui-button
0 个回复