lew-ui 1.1.15 → 1.1.17
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/lew.es.ts +5 -8
- package/dist/lew.umd.ts +2 -2
- package/package.json +1 -1
package/dist/lew.es.ts
CHANGED
|
@@ -3017,11 +3017,6 @@ const selectProps = {
|
|
|
3017
3017
|
required: true,
|
|
3018
3018
|
validator(options) {
|
|
3019
3019
|
const _options = toRaw(options);
|
|
3020
|
-
if (_options.length == 0) {
|
|
3021
|
-
throw new Error(
|
|
3022
|
-
"lew-select\uFF1Aoptions \u5FC5\u987B\u4E3A\u957F\u5EA6\u5927\u4E8E 0 \u7684 Array"
|
|
3023
|
-
);
|
|
3024
|
-
}
|
|
3025
3020
|
const arr = _options.map((e) => e.value);
|
|
3026
3021
|
const newSet = new Set(arr);
|
|
3027
3022
|
if (arr.length !== newSet.size) {
|
|
@@ -8575,6 +8570,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
8575
8570
|
return pageArr;
|
|
8576
8571
|
});
|
|
8577
8572
|
const changePage = (type, num) => {
|
|
8573
|
+
if ((props == null ? void 0 : props.total) == 0) {
|
|
8574
|
+
return;
|
|
8575
|
+
}
|
|
8578
8576
|
if (type == "next") {
|
|
8579
8577
|
pageNum.value += num;
|
|
8580
8578
|
} else if (type == "prve") {
|
|
@@ -8590,7 +8588,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
8590
8588
|
emit("update:pageNum", pageNum.value);
|
|
8591
8589
|
emit("update:pageSize", pageSize.value);
|
|
8592
8590
|
};
|
|
8593
|
-
let pageSizebackup = ref("20");
|
|
8594
8591
|
const checkPageSize = (e) => {
|
|
8595
8592
|
if (!e) {
|
|
8596
8593
|
return;
|
|
@@ -8700,8 +8697,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
8700
8697
|
createVNode(_component_lew_select, {
|
|
8701
8698
|
style: { "width": "100px" },
|
|
8702
8699
|
align: "center",
|
|
8703
|
-
modelValue: unref(
|
|
8704
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(
|
|
8700
|
+
modelValue: unref(pageSize),
|
|
8701
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(pageSize) ? pageSize.value = $event : pageSize = $event),
|
|
8705
8702
|
onChange: checkPageSize,
|
|
8706
8703
|
size: "small",
|
|
8707
8704
|
"show-icon": false,
|