<wxs module="wxs" src="./word-input.wxs"></wxs>

<view
    class="word-input-container"
    style="{{width ? 'width:' + width + ';' : ''}}">
    <van-icon
        class-prefix="toy-icon"
        name="translate"
        custom-class="word-input-icon"
        size="42rpx" />
    <input
        class="word-input"
        type="text"
        value="{{innerValue}}"
        placeholder="{{placeholder}}"
        bindinput="onInput"
        bindconfirm="onConfirm" />
    <toy-button
        class="btn-word-add"
        type="primary"
        width="auto"
        height="72rpx"
        bind:click="onConfirm">
        添加
    </toy-button>
</view>
