oga-ui 0.1.60 → 0.1.69

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/index.es.ts CHANGED
@@ -3509,11 +3509,11 @@ var en_default = {
3509
3509
  props: {
3510
3510
  offset: {
3511
3511
  type: Number,
3512
- default: () => 240
3512
+ default: () => 180
3513
3513
  },
3514
3514
  navigationOffset: {
3515
3515
  type: Number,
3516
- default: () => 450
3516
+ default: () => 300
3517
3517
  },
3518
3518
  padding: {
3519
3519
  type: Boolean,
@@ -3724,7 +3724,7 @@ var en_default = {
3724
3724
  }, 8, ["round", "loading"])])], 4)), [[vShow, Li.value]]);
3725
3725
  };
3726
3726
  }
3727
- }), [["__scopeId", "data-v-240d64ce"]]), unsaved_default = { install(x) {
3727
+ }), [["__scopeId", "data-v-0aa5b5eb"]]), unsaved_default = { install(x) {
3728
3728
  x.component("OgaUnsaved", src_default$7);
3729
3729
  } }, e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3730
3730
  function t(x) {
@@ -37514,7 +37514,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
37514
37514
  ])], 2);
37515
37515
  };
37516
37516
  }
37517
- }), [["__scopeId", "data-v-6b2b03db"]]), cascader_default = { install(x) {
37517
+ }), [["__scopeId", "data-v-a8cc6d4a"]]), cascader_default = { install(x) {
37518
37518
  x.component("OgaCascader", cascader_default$1);
37519
37519
  } }, _hoisted_1$4 = { class: "oga-material-label" }, date_picker_default$1 = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
37520
37520
  inheritAttrs: !1,
@@ -37707,7 +37707,10 @@ var src_default$4 = /* @__PURE__ */ __plugin_vue_export_helper_default(index_vue
37707
37707
  }
37708
37708
  }), avatar_default = { install(x) {
37709
37709
  x.component("OgaAvatar", src_default$3);
37710
- } }, _hoisted_1$1 = { class: "oga-table" }, _hoisted_2$1 = { class: "oga-table-content" }, src_default$2 = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
37710
+ } }, _hoisted_1$1 = { class: "oga-table" }, _hoisted_2$1 = {
37711
+ key: 0,
37712
+ class: "oga-table-content"
37713
+ }, src_default$2 = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
37711
37714
  __name: "index",
37712
37715
  props: {
37713
37716
  modelValue: {},
@@ -37715,14 +37718,16 @@ var src_default$4 = /* @__PURE__ */ __plugin_vue_export_helper_default(index_vue
37715
37718
  },
37716
37719
  emits: /* @__PURE__ */ mergeModels(["paging"], ["update:modelValue"]),
37717
37720
  setup(x, { emit: Li }) {
37718
- let fa = useModel(x, "modelValue"), lo = Li, Al = (x) => {
37721
+ let fa = useModel(x, "modelValue"), lo = Li, Tl = (x) => {
37719
37722
  fa.value.current = x, lo("paging", !1);
37720
- }, Uu = (x) => {
37723
+ }, Al = () => {
37724
+ fa.value !== void 0 && fa.value.empty && fa.value.empty.onClick && typeof fa.value.empty.onClick == "function" && fa.value.empty.onClick.call(this);
37725
+ }, Lm = (x) => {
37721
37726
  fa.value.size = x, lo("paging", !1);
37722
37727
  };
37723
37728
  return (x, Li) => {
37724
- let lo = resolveComponent("el-col"), Lm = resolveComponent("el-row"), Bm = resolveComponent("el-pagination"), x_ = resolveDirective("loading");
37725
- return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, [createVNode(Lm, {
37729
+ let lo = resolveComponent("el-col"), Bm = resolveComponent("el-row"), x_ = resolveComponent("el-button"), uy = resolveComponent("el-empty"), dx = resolveComponent("el-pagination"), kx = resolveDirective("loading");
37730
+ return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [fa.value.records.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$1, [createVNode(Bm, {
37726
37731
  class: "oga-table-row",
37727
37732
  style: normalizeStyle({ "--span": fa.value.gutter ?? 20 }),
37728
37733
  gutter: fa.value.gutter ?? 20
@@ -37731,29 +37736,42 @@ var src_default$4 = /* @__PURE__ */ __plugin_vue_export_helper_default(index_vue
37731
37736
  class: "oga-table-col",
37732
37737
  span: fa.value.span ?? 12
37733
37738
  }, {
37734
- default: withCtx(() => [renderSlot(x.$slots, "default", { item: _r }, void 0, !0)]),
37739
+ default: withCtx(() => [renderSlot(x.$slots, "default", { row: _r }, void 0, !0)]),
37735
37740
  _: 2
37736
37741
  }, 1032, ["span"]))), 256))]),
37737
37742
  _: 3
37738
- }, 8, ["style", "gutter"])]), fa.value.total > fa.value.size ? (openBlock(), createBlock(Bm, {
37739
- key: 0,
37743
+ }, 8, ["style", "gutter"])])) : (openBlock(), createBlock(uy, {
37744
+ key: 1,
37745
+ description: fa.value.empty?.content ?? unref(base_default).global.t("notData")
37746
+ }, {
37747
+ default: withCtx(() => [fa.value.empty ? (openBlock(), createBlock(x_, {
37748
+ key: 0,
37749
+ type: "text",
37750
+ onClick: Al
37751
+ }, {
37752
+ default: withCtx(() => [createTextVNode(toDisplayString(fa.value.empty?.buttonLabel ?? ""), 1)]),
37753
+ _: 1
37754
+ })) : createCommentVNode("v-if", !0)]),
37755
+ _: 1
37756
+ }, 8, ["description"])), fa.value.total > fa.value.size ? (openBlock(), createBlock(dx, {
37757
+ key: 2,
37740
37758
  "current-page": fa.value.current,
37741
37759
  "page-size": fa.value.size,
37742
37760
  layout: fa.value.pageLayout,
37743
37761
  "page-sizes": fa.value.pageSizes,
37744
37762
  total: fa.value.total,
37745
- onCurrentChange: Al,
37746
- onSizeChange: Uu
37763
+ onCurrentChange: Tl,
37764
+ onSizeChange: Lm
37747
37765
  }, null, 8, [
37748
37766
  "current-page",
37749
37767
  "page-size",
37750
37768
  "layout",
37751
37769
  "page-sizes",
37752
37770
  "total"
37753
- ])) : createCommentVNode("v-if", !0)])), [[x_, fa.value.loading]]);
37771
+ ])) : createCommentVNode("v-if", !0)])), [[kx, fa.value.loading]]);
37754
37772
  };
37755
37773
  }
37756
- }), [["__scopeId", "data-v-d877ce81"]]), paging_default = { install(x) {
37774
+ }), [["__scopeId", "data-v-f0b81431"]]), paging_default = { install(x) {
37757
37775
  x.component("OgaPaging", src_default$2);
37758
37776
  } }, icon_default = { install(x) {
37759
37777
  x.component("ElIcon", src_default$1);