import "./rolldown-runtime-CdpVaAjv.js";
import { n as e } from "./utils-DJ3DjJ60.js";
import { y as t } from "./BaseItem-C8gi9njV.js";
import "./DatePicker-DHA3FreS.js";
import { i as n } from "./Button-CG0BbgfC.js";
import { createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
//#region ../components/FileWrapper/FileWrapper.vue?vue&type=script&setup=true&lang.ts
var p = { class: "file_wrapper" }, m = {
	key: 0,
	class: "header"
}, h = { class: "file_main" }, g = { class: "file" }, _ = { class: "file_name" }, v = e(/* @__PURE__ */ n(/* @__PURE__ */ c({
	name: "zh-file-wrapper",
	__name: "FileWrapper",
	props: {
		downLoadUrl: {
			type: String,
			default: ""
		},
		canPreview: {
			type: Boolean,
			default: !1
		},
		fileName: {
			type: String,
			default: "--"
		},
		canDelete: {
			type: Boolean,
			default: !1
		},
		title: {
			type: String,
			default: ""
		},
		fileId: {
			type: Number,
			default: 0
		}
	},
	emits: ["deleteFile"],
	setup(e, { emit: n }) {
		let c = e, v = n, y = () => {
			c.canDelete && v("deleteFile", c.fileId);
		};
		return (n, v) => (l(), i("div", p, [c.title ? (l(), i("div", m, u(c.title), 1)) : r("", !0), a("div", h, [
			a("div", g, [v[0] ||= a("div", { class: "file_type mr-12" }, [a("i", { class: "iconfont icon-xiangmuguanli" })], -1), a("div", _, u(c.fileName), 1)]),
			s(d(t), {
				size: "small",
				class: "btn",
				link: "",
				style: { width: "80px" },
				href: c.downLoadUrl,
				underline: !1,
				download: "download"
			}, {
				default: f(() => [...v[1] ||= [o(" 查看/下载 ", -1)]]),
				_: 1
			}, 8, ["href"]),
			e.canDelete ? (l(), i("i", {
				key: 0,
				class: "iconfont icon-close close",
				onClick: y
			})) : r("", !0)
		])]));
	}
}), [["__scopeId", "data-v-f39312c3"]]));
//#endregion
export { v as t };
