mrxy-yk 1.9.3 → 1.9.4

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.
@@ -157,14 +157,18 @@ var ObjectUtil = class {
157
157
  * @param value
158
158
  */
159
159
  static isNotEmpty(value) {
160
- return value === 0 || Boolean(value);
160
+ return !this.isEmpty(value);
161
161
  }
162
162
  /**
163
163
  * 判断参数是否为null|undefined|''
164
164
  * @param value
165
165
  */
166
166
  static isEmpty(value) {
167
- return !this.isNotEmpty(value);
167
+ return [
168
+ null,
169
+ void 0,
170
+ ""
171
+ ].includes(value);
168
172
  }
169
173
  /**
170
174
  * 如果value不为空返回value否则返回arg
@@ -172,7 +176,7 @@ var ObjectUtil = class {
172
176
  * @param arg
173
177
  */
174
178
  static isEmptyToVal(value, arg) {
175
- return this.isNotEmpty(value) ? value : arg;
179
+ return this.isEmpty(value) ? arg : value;
176
180
  }
177
181
  /**
178
182
  * 根据source更新target中的属性值
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mrxy-yk",
3
- "version": "1.9.3",
3
+ "version": "1.9.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A collection of Vue 3 components and utilities",