lew-ui 1.1.15 → 1.1.16
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 +3 -5
- 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") {
|