cnhis-design-vue 2.1.106 → 2.1.109
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 +16 -2
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +188 -182
- package/es/big-table/style.css +1 -1
- package/es/button/index.js +2 -2
- package/es/captcha/index.js +3 -3
- package/es/card-reader-sdk/index.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/fabric-chart/index.js +9 -9
- package/es/form-table/index.js +20 -20
- package/es/index/index.js +899 -339
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +25 -25
- package/es/multi-chat-client/index.js +19 -19
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +20 -20
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +27 -27
- package/es/select/index.js +4 -4
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +2 -2
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +2 -2
- package/es/slider-tree/index.js +1064 -0
- package/es/slider-tree/style.css +1 -0
- package/es/table-filter/index.js +30 -30
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +940 -404
- package/lib/cui.umd.js +940 -404
- package/lib/cui.umd.min.js +124 -124
- package/package.json +1 -1
- package/packages/big-table/src/components/edit-form/EditForm.vue +8 -3
- package/packages/big-table/src/components/edit-form/edit-component/mixins/search.js +214 -259
- package/packages/index.js +6 -3
- package/packages/slider-tree/hooks/useAsyncData.js +53 -0
- package/packages/slider-tree/index.js +7 -0
- package/packages/slider-tree/index.vue +439 -0
- package/packages/slider-tree/utils/index.js +10 -0
package/package.json
CHANGED
|
@@ -33,6 +33,7 @@ import registerCom from './edit-component/register-com.js';
|
|
|
33
33
|
import { formCommom } from './edit-mixins/index';
|
|
34
34
|
import validateRules from './edit-item/validate-rules';
|
|
35
35
|
import vexutils from '@/utils/vexutils';
|
|
36
|
+
import utils from '@/utils/utils-map';
|
|
36
37
|
import { FormModel } from "ant-design-vue";
|
|
37
38
|
|
|
38
39
|
export default {
|
|
@@ -393,9 +394,13 @@ export default {
|
|
|
393
394
|
if (curItem.isOnchange !== '00' && defVal) {
|
|
394
395
|
defVal = curItem.filtration_val || this.handleSysParams(defVal);
|
|
395
396
|
defVal = this.getObjs(defVal);
|
|
396
|
-
// 数组是无效的,
|
|
397
|
-
if(Array.isArray(defVal)) {
|
|
398
|
-
return defaultVal
|
|
397
|
+
// 数组是无效的, 空对象也是无效的
|
|
398
|
+
if (Array.isArray(defVal) || (utils?.isPlainObject?.(defVal) && !Object.keys(defVal)?.length)) {
|
|
399
|
+
return defaultVal;
|
|
400
|
+
}
|
|
401
|
+
// 必须是JSON
|
|
402
|
+
if(typeof defVal !== 'string') {
|
|
403
|
+
return JSON.stringify(defVal);
|
|
399
404
|
}
|
|
400
405
|
return defVal || defaultVal;
|
|
401
406
|
}
|