UNPKG

birdpaper-ui

Version:

一个通用的 vue3 UI组件库。A common vue3 UI component library.

43 lines (42 loc) 1.8 kB
import _sfc_main from "./verifyCode.vue2.js"; import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, withDirectives, withKeys, withModifiers, vModelDynamic } from "vue"; import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js"; const _hoisted_1 = ["onUpdate:modelValue", "type", "disabled", "readonly", "onInput"]; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.inpClass) }, [ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.length, (v) => { return withDirectives((openBlock(), createElementBlock("input", { "onUpdate:modelValue": ($event) => _ctx.globalValue[v - 1] = $event, type: _ctx.inpType, ref_for: true, ref: _ctx.setItemRef, class: normalizeClass(["bp-verifycode-inner"]), spellcheck: false, disabled: _ctx.disabled, readonly: _ctx.readonly, maxlength: 1, onFocus: _cache[0] || (_cache[0] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)), onKeydown: [ _cache[1] || (_cache[1] = (...args) => _ctx.onKeydown && _ctx.onKeydown(...args)), _cache[2] || (_cache[2] = withKeys(withModifiers(() => { }, ["prevent"]), ["space"])) ], onPaste: _cache[3] || (_cache[3] = (...args) => _ctx.onPaste && _ctx.onPaste(...args)), onInput: ($event) => _ctx.onInput($event, v - 1) }, null, 40, _hoisted_1)), [ [ vModelDynamic, _ctx.globalValue[v - 1], void 0, { trim: true } ] ]); }), 256)) ], 2); } const verifyCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { verifyCode as default };