yanzhen-design-vue
Version:
32 lines (31 loc) • 1.18 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
const antDesignVue = require("ant-design-vue");
const input = require("./input.cjs");
const useInput = require("./use-input.cjs");
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
...{ name: input.inputName },
__name: "input",
props: input.inputProps,
emits: input.inputEmits,
setup(__props, { expose: __expose, emit: __emit }) {
const { ns } = input.inputOptions;
const props = __props;
const emit = __emit;
const { _ref, propsRef, modelValue } = useInput.useInput(props, emit);
__expose({
ref: _ref
});
return (_ctx, _cache) => {
return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Input), vue.mergeProps({
ref_key: "_ref",
ref: _ref,
value: vue.unref(modelValue),
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
class: [vue.unref(ns).b()]
}, vue.unref(propsRef)), null, 16, ["value", "class"]);
};
}
});
exports.default = _sfc_main;