@artmate/chat
Version:
**开箱即用的AI组件库(基于 Vue3 + ElementPlus)**
57 lines (56 loc) • 1.29 kB
JavaScript
import { defineComponent as s, ref as r, createBlock as n, openBlock as p, unref as i, mergeProps as d, withCtx as c, renderSlot as f } from "vue";
import { ElUpload as u } from "element-plus";
const B = /* @__PURE__ */ s({
__name: "silentUploader",
props: {
upload: {},
rootClassName: {},
beforeUpload: {},
beforeRemove: {},
onRemove: {},
onChange: {},
onPreview: {},
onSuccess: {},
onProgress: {},
onError: {},
onExceed: {},
crossorigin: {},
action: {},
headers: {},
method: {},
data: {},
multiple: { type: Boolean },
name: {},
drag: { type: Boolean },
withCredentials: { type: Boolean },
showFileList: { type: Boolean },
accept: {},
fileList: {},
autoUpload: { type: Boolean },
listType: {},
httpRequest: {},
disabled: { type: Boolean },
limit: {}
},
setup(t, { expose: a }) {
const e = t, o = r();
return a({
uploadRef: o
}), (l, m) => (p(), n(i(u), d(e.upload, {
ref_key: "uploadRef",
ref: o,
"auto-upload": !1,
"show-file-list": !1,
action: "#",
class: e.rootClassName
}), {
default: c(() => [
f(l.$slots, "default")
]),
_: 3
}, 16, ["class"]));
}
});
export {
B as default
};