UNPKG

@aplus-frontend/ui

Version:

27 lines (26 loc) 783 B
import { defineComponent as n, createElementBlock as m, openBlock as p, mergeProps as l, unref as e, createVNode as i } from "vue"; import { IconApAdLineCloseDrawer as d } from "@aplus-frontend/icon"; import "../../config-provider/index.mjs"; import f from "../style/index.mjs"; import { useNamespace as u } from "../../config-provider/hooks/use-namespace.mjs"; const B = /* @__PURE__ */ n({ name: "ApDrawerClose", __name: "ApDrawerClose", emits: ["close"], setup(_, { emit: o }) { const { b: r } = u("ap-drawer"), t = f("ap-drawer"), s = o, a = () => { s("close"); }; return (c, C) => (p(), m("div", l({ ...c.$attrs }, { class: [e(r)("close"), e(t)], onClick: a }), [ i(e(d)) ], 16)); } }); export { B as default };