UNPKG

arco-crud-plus

Version:

基于arco-design-vue的配置化表格表单组件

26 lines (25 loc) 540 B
const i = /* @__PURE__ */ new WeakMap(), n = new ResizeObserver((t) => { for (const e of t) { const o = i.get(e.target); o && o({ width: e.borderBoxSize[0].inlineSize, height: e.borderBoxSize[0].blockSize }); } }), r = { install(t) { t.directive("resize", { //在创建自定义名称时不要带v-,使用时再携带 mounted(e, o) { i.set(e, o.value), n.observe(e); }, unmounted(e) { n.unobserve(e); } }); } }; export { r as Resize, r as default };