vxe-table-pro
Version:
Vue table plugins based on vxe-table
60 lines (59 loc) • 1.4 kB
JavaScript
import { defineComponent as n, mergeModels as u, useModel as r, resolveComponent as s, createElementBlock as p, openBlock as m, createVNode as i, mergeProps as f } from "vue";
import { _ as c } from "./index-B8MbCfO1.mjs";
const y = { class: "text-style" }, _ = /* @__PURE__ */ n({
__name: "index",
props: /* @__PURE__ */ u({
index: {
type: Number,
default: -1
},
key: {
type: String,
default: ""
},
row: {
type: Object,
default: () => ({})
},
placeholder: {
type: String,
default: "请输入"
},
disabled: {
type: Boolean,
default: !1
},
type: {
type: String,
default: ""
},
maxlength: {
type: Number,
default: null
},
showWordLimit: {
type: Boolean,
default: !1
}
}, {
modelValue: { default: "" },
modelModifiers: {}
}),
emits: ["update:modelValue"],
setup(e) {
const t = r(e, "modelValue"), o = e;
return (x, l) => {
const a = s("el-input");
return m(), p("div", y, [
i(a, f({
clearable: "",
modelValue: t.value,
"onUpdate:modelValue": l[0] || (l[0] = (d) => t.value = d)
}, o, { style: { width: "100%" } }), null, 16, ["modelValue"])
]);
};
}
}), g = /* @__PURE__ */ c(_, [["__scopeId", "data-v-63bfe664"]]);
export {
g as default
};