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/avatar/index.css +1 -1
- package/editor/index.css +1 -1
- package/form/index.css +1 -1
- package/form-item/index.css +1 -1
- package/image-upload/index.css +1 -1
- package/index.css +1 -1
- package/index.es.ts +34 -16
- package/index.umd.ts +2 -2
- package/input/index.css +1 -1
- package/layout/index.css +1 -1
- package/package.json +1 -1
- package/page/index.css +1 -1
- package/page/index.es.ts +2 -2
- package/page/index.umd.ts +1 -1
- package/paging/index.css +1 -1
- package/paging/index.es.ts +3135 -28
- package/paging/index.umd.ts +5 -1
- package/section/index.css +1 -1
- package/table/index.css +1 -1
- package/unsaved/index.css +1 -1
- package/unsaved/index.es.ts +1 -1
- package/unsaved/index.umd.ts +1 -1
package/index.es.ts
CHANGED
|
@@ -3509,11 +3509,11 @@ var en_default = {
|
|
|
3509
3509
|
props: {
|
|
3510
3510
|
offset: {
|
|
3511
3511
|
type: Number,
|
|
3512
|
-
default: () =>
|
|
3512
|
+
default: () => 180
|
|
3513
3513
|
},
|
|
3514
3514
|
navigationOffset: {
|
|
3515
3515
|
type: Number,
|
|
3516
|
-
default: () =>
|
|
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-
|
|
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-
|
|
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 = {
|
|
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,
|
|
37721
|
+
let fa = useModel(x, "modelValue"), lo = Li, Tl = (x) => {
|
|
37719
37722
|
fa.value.current = x, lo("paging", !1);
|
|
37720
|
-
},
|
|
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"),
|
|
37725
|
-
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
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", {
|
|
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"])])
|
|
37739
|
-
key:
|
|
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:
|
|
37746
|
-
onSizeChange:
|
|
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)])), [[
|
|
37771
|
+
])) : createCommentVNode("v-if", !0)])), [[kx, fa.value.loading]]);
|
|
37754
37772
|
};
|
|
37755
37773
|
}
|
|
37756
|
-
}), [["__scopeId", "data-v-
|
|
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);
|