el-plus-crud 0.0.80 → 0.0.81

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.81](https://github.com/KDJack/el-plus-crud/compare/v0.0.80...v0.0.81) (2023-09-14)
6
+
5
7
  ### [0.0.80](https://github.com/KDJack/el-plus-crud/compare/v0.0.79...v0.0.80) (2023-09-14)
6
8
 
7
9
  ### [0.0.79](https://github.com/KDJack/el-plus-crud/compare/v0.0.78...v0.0.79) (2023-09-07)
@@ -6469,7 +6469,7 @@ function om(f, i, l) {
6469
6469
  typeof i > "u" || i === "" || i === null ? l(new Error("此项必填!")) : (typeof i == "number" && (i = i + ""), typeof i == "string" && i.match(/^[ ]*$/) ? l(new Error("不能全是空格!")) : l());
6470
6470
  }
6471
6471
  function sm(f, i, l) {
6472
- i === null || typeof i > "u" || i === "" ? l(new Error("请选择!")) : l();
6472
+ i === null || typeof i > "u" || i === "" || (i == null ? void 0 : i.length) <= 0 ? l(new Error("请选择!")) : l();
6473
6473
  }
6474
6474
  function am(f, i, l) {
6475
6475
  i === null || typeof i > "u" || i === "" || i.length <= 0 || i[0] == null ? l(new Error("请选择!")) : l();
@@ -171,7 +171,7 @@ function validateInputNotAllBlank(rule: any, value: any, callback?: any) {
171
171
  * @param callback
172
172
  */
173
173
  function validateSelect(rule: any, value: any, callback?: any) {
174
- if (value === null || typeof value === 'undefined' || value === '') {
174
+ if (value === null || typeof value === 'undefined' || value === '' || value?.length <= 0) {
175
175
  callback(new Error('请选择!'))
176
176
  } else {
177
177
  callback()