@macroui/macroui-vue 2.3.12 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2606,7 +2606,7 @@ const In = (a, i) => {
2606
2606
  ], !0)
2607
2607
  ], 4));
2608
2608
  }
2609
- }), qt = /* @__PURE__ */ ge(Oo, [["__scopeId", "data-v-a3ab479f"]]), Xt = ve(qt), Fo = he({
2609
+ }), qt = /* @__PURE__ */ ge(Oo, [["__scopeId", "data-v-1a968abd"]]), Xt = ve(qt), Fo = he({
2610
2610
  distance: {
2611
2611
  type: Number,
2612
2612
  default: 0
@@ -7255,15 +7255,21 @@ const Gt = Symbol("table"), Dd = { class: "el-table__inner-wrapper" }, Id = {
7255
7255
  emptyText: { type: String, default: "暂无数据" },
7256
7256
  loading: { type: Boolean, default: !1 },
7257
7257
  expandRowKeys: { type: Array, default: () => [] },
7258
+ // 展开行的 keys
7258
7259
  defaultExpandAll: { type: Boolean, default: !1 },
7260
+ // 默认展开所有行
7259
7261
  defaultSort: { type: Object, default: () => ({}) },
7260
7262
  tooltipEffect: { type: String, default: "dark" },
7261
7263
  spanMethod: { type: Function, default: null },
7262
7264
  selectOnIndeterminate: { type: Boolean, default: !0 },
7263
7265
  indent: { type: Number, default: 16 },
7266
+ // 树形缩进宽度
7264
7267
  treeProps: { type: Object, default: () => ({ hasChildren: "hasChildren", children: "children" }) },
7268
+ // 树形配置
7265
7269
  lazy: { type: Boolean, default: !1 },
7270
+ // 是否懒加载子节点
7266
7271
  load: { type: Function, default: null },
7272
+ // 懒加载函数
7267
7273
  style: { type: Object, default: () => ({}) },
7268
7274
  className: { type: String, default: "" },
7269
7275
  tableLayout: { type: String, default: "fixed" },
@@ -7285,6 +7291,7 @@ const Gt = Symbol("table"), Dd = { class: "el-table__inner-wrapper" }, Id = {
7285
7291
  // 拖拽占位符类名
7286
7292
  },
7287
7293
  emits: [
7294
+ // Element Plus 标准事件
7288
7295
  "select",
7289
7296
  "select-all",
7290
7297
  "selection-change",
@@ -7308,9 +7315,19 @@ const Gt = Symbol("table"), Dd = { class: "el-table__inner-wrapper" }, Id = {
7308
7315
  "cell-edit",
7309
7316
  "refresh",
7310
7317
  "column-visible-change",
7318
+ // 拖拽排序事件
7311
7319
  "row-drag-start",
7312
7320
  "row-drag-end",
7313
- "row-drop"
7321
+ "row-drop",
7322
+ // 树形数据事件
7323
+ "tree-node-expand",
7324
+ "tree-node-collapse",
7325
+ // 列操作事件
7326
+ "column-change",
7327
+ "header-dragstart",
7328
+ // 滚动事件
7329
+ "scroll-to",
7330
+ "body-scroll"
7314
7331
  ],
7315
7332
  setup(a, { expose: i, emit: t }) {
7316
7333
  const e = a, l = t, u = _(), s = _(), f = _(), c = {
@@ -7720,7 +7737,9 @@ const Gt = Symbol("table"), Dd = { class: "el-table__inner-wrapper" }, Id = {
7720
7737
  }, ha = (y, T) => e.summaryMethod ? e.summaryMethod({ columns: D.value, data: e.data })[T] || "" : T === 0 ? e.sumText : y.prop ? e.data.map((ne) => Number(ct(ne, y.prop)) || 0).reduce((ne, X) => ne + X, 0) : "", pl = (y) => !!(y.showOverflowTooltip !== void 0 ? y.showOverflowTooltip : e.showOverflowTooltip), ma = (y) => y.tooltipEffect || e.tooltipEffect || "dark", fl = (y, T, Z) => {
7721
7738
  const V = ot(y, T, Z);
7722
7739
  return T.tooltipFormatter ? T.tooltipFormatter({ row: y, column: T, cellValue: V }) : String(V ?? "");
7723
- }, _t = /* @__PURE__ */ new Map(), ga = () => {
7740
+ };
7741
+ _(/* @__PURE__ */ new Set());
7742
+ const _t = /* @__PURE__ */ new Map(), ga = () => {
7724
7743
  _t.clear();
7725
7744
  }, kt = (y, T, Z, V) => {
7726
7745
  if (!e.spanMethod)
@@ -8027,7 +8046,7 @@ ${V}`, X = new Blob([ne], { type: "text/csv;charset=utf-8;" }), $e = document.cr
8027
8046
  class: "btn btn-ghost btn-sm",
8028
8047
  onClick: T[0] || (T[0] = (V) => oe.value = !oe.value)
8029
8048
  }, [...T[12] || (T[12] = [
8030
- Va('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-06e6db24><line x1="8" y1="6" x2="21" y2="6" data-v-06e6db24></line><line x1="8" y1="12" x2="21" y2="12" data-v-06e6db24></line><line x1="8" y1="18" x2="21" y2="18" data-v-06e6db24></line><line x1="3" y1="6" x2="3.01" y2="6" data-v-06e6db24></line><line x1="3" y1="12" x2="3.01" y2="12" data-v-06e6db24></line><line x1="3" y1="18" x2="3.01" y2="18" data-v-06e6db24></line></svg> 列设置 ', 2)
8049
+ Va('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-1e0b8815><line x1="8" y1="6" x2="21" y2="6" data-v-1e0b8815></line><line x1="8" y1="12" x2="21" y2="12" data-v-1e0b8815></line><line x1="8" y1="18" x2="21" y2="18" data-v-1e0b8815></line><line x1="3" y1="6" x2="3.01" y2="6" data-v-1e0b8815></line><line x1="3" y1="12" x2="3.01" y2="12" data-v-1e0b8815></line><line x1="3" y1="18" x2="3.01" y2="18" data-v-1e0b8815></line></svg> 列设置 ', 2)
8031
8050
  ])]),
8032
8051
  oe.value ? (n(), r("div", Hd, [
8033
8052
  T[13] || (T[13] = p("div", { class: "text-sm font-semibold mb-2" }, "显示列", -1)),
@@ -8517,7 +8536,7 @@ ${V}`, X = new Blob([ne], { type: "text/csv;charset=utf-8;" }), $e = document.cr
8517
8536
  ], 38);
8518
8537
  };
8519
8538
  }
8520
- }), zc = /* @__PURE__ */ ge(Vc, [["__scopeId", "data-v-06e6db24"]]), Nc = /* @__PURE__ */ ce({
8539
+ }), zc = /* @__PURE__ */ ge(Vc, [["__scopeId", "data-v-1e0b8815"]]), Nc = /* @__PURE__ */ ce({
8521
8540
  name: "ElTableColumn",
8522
8541
  inheritAttrs: !1,
8523
8542
  __name: "table-column",