This commit is contained in:
Luiz Silva 2026-05-16 15:00:25 -03:00
parent 303eda1b99
commit d56219c2de
4 changed files with 8 additions and 11 deletions

12
dist/eli-vue.es.js vendored
View file

@ -12602,14 +12602,12 @@ const zb = /* @__PURE__ */ oe(hb, [["render", wb]]), xb = ie({
return e !== null && typeof e == "object"; return e !== null && typeof e == "object";
} }
}, },
setup(e, { emit: n, expose: r }) { setup(e, { emit: n }) {
const o = H(null); const r = H(null), o = N(() => e.acoes.length > 0);
r({ menuEl: o }); function t(i) {
const t = N(() => e.acoes.length > 0); e.linha && n("executar", { acao: i.acao, linha: e.linha });
function i(a) {
e.linha && n("executar", { acao: a.acao, linha: e.linha });
} }
return { menuEl: o, possuiAcoes: t, emitExecutar: i }; return { menuEl: r, possuiAcoes: o, emitExecutar: t };
} }
}), Db = ["id", "aria-labelledby"], Ob = ["aria-label", "title", "onClick"], jb = { class: "eli-tabela__acoes-item-texto" }; }), Db = ["id", "aria-labelledby"], Ob = ["aria-label", "title", "onClick"], jb = { class: "eli-tabela__acoes-item-texto" };
function Ub(e, n, r, o, t, i) { function Ub(e, n, r, o, t, i) {

2
dist/eli-vue.umd.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "eli-vue", "name": "eli-vue",
"version": "0.1.106", "version": "0.1.107",
"private": false, "private": false,
"main": "./dist/eli-vue.umd.js", "main": "./dist/eli-vue.umd.js",
"module": "./dist/eli-vue.es.js", "module": "./dist/eli-vue.es.js",

View file

@ -80,9 +80,8 @@ export default defineComponent({
return payload !== null && typeof payload === "object" return payload !== null && typeof payload === "object"
}, },
}, },
setup(props, { emit, expose }) { setup(props, { emit }) {
const menuEl = ref<HTMLElement | null>(null) const menuEl = ref<HTMLElement | null>(null)
expose({ menuEl })
const possuiAcoes = computed(() => props.acoes.length > 0) const possuiAcoes = computed(() => props.acoes.length > 0)