UNPKG

ant-design-x-vue

Version:
39 lines (38 loc) 983 B
import { defineComponent as n, useTemplateRef as l, computed as s, createVNode as u, mergeProps as d } from "vue"; import { Upload as p } from "ant-design-vue"; import { _ as i } from "../chunks/helper-chunk.mjs"; const m = /* @__PURE__ */ n({ name: "AXAttachmentsSilentUploader", __name: "SilentUploader", props: { children: { required: !0 }, upload: { required: !0 }, rootClassName: { type: String, required: !1 } }, setup(e, { expose: r }) { const o = l("upload"), a = s(() => { var t; return (t = o.value) == null ? void 0 : t.$el; }); return r({ nativeElement: a }), () => u(p, d(e.upload, { showUploadList: !1, ref: "upload" }), { default: () => [e.children] }); } }), U = /* @__PURE__ */ i(m, [["__file", "/Users/wangzhichao/办公/code/github/ant-design-x-vue-pure/ant-design-x-vue/src/attachments/SilentUploader.vue"]]); export { U as default };