vxe-pc-ui 4.10.39 → 4.10.41
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/es/checkbox/src/group.js +63 -4
- package/es/icon/style.css +1 -1
- package/es/radio/src/group.js +58 -4
- package/es/select/src/select.js +20 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/checkbox/src/group.js +68 -3
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +165 -17
- package/lib/index.umd.min.js +1 -1
- package/lib/radio/src/group.js +64 -3
- package/lib/radio/src/group.min.js +1 -1
- package/lib/select/src/select.js +22 -3
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/checkbox/src/group.ts +72 -5
- package/packages/radio/src/group.ts +68 -5
- package/packages/select/src/select.ts +19 -2
- package/types/components/checkbox-group.d.ts +13 -2
- package/types/components/gantt.d.ts +14 -4
- package/types/components/radio-group.d.ts +12 -1
- package/types/components/select.d.ts +2 -1
- package/types/components/table.d.ts +2 -2
- /package/es/icon/{iconfont.1764581342290.ttf → iconfont.1764747215178.ttf} +0 -0
- /package/es/icon/{iconfont.1764581342290.woff → iconfont.1764747215178.woff} +0 -0
- /package/es/icon/{iconfont.1764581342290.woff2 → iconfont.1764747215178.woff2} +0 -0
- /package/es/{iconfont.1764581342290.ttf → iconfont.1764747215178.ttf} +0 -0
- /package/es/{iconfont.1764581342290.woff → iconfont.1764747215178.woff} +0 -0
- /package/es/{iconfont.1764581342290.woff2 → iconfont.1764747215178.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1764581342290.ttf → iconfont.1764747215178.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1764581342290.woff → iconfont.1764747215178.woff} +0 -0
- /package/lib/icon/style/{iconfont.1764581342290.woff2 → iconfont.1764747215178.woff2} +0 -0
- /package/lib/{iconfont.1764581342290.ttf → iconfont.1764747215178.ttf} +0 -0
- /package/lib/{iconfont.1764581342290.woff → iconfont.1764747215178.woff} +0 -0
- /package/lib/{iconfont.1764581342290.woff2 → iconfont.1764747215178.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2360,7 +2360,7 @@ if (typeof window !== 'undefined') {
|
|
|
2360
2360
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2361
2361
|
var es_array_push = __webpack_require__(4114);
|
|
2362
2362
|
;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/core.js
|
|
2363
|
-
const coreVersion = "4.2.
|
|
2363
|
+
const coreVersion = "4.2.14";
|
|
2364
2364
|
const VxeCore = {
|
|
2365
2365
|
coreVersion,
|
|
2366
2366
|
uiVersion: '',
|
|
@@ -2960,7 +2960,7 @@ function createLog(type, name) {
|
|
|
2960
2960
|
return msg;
|
|
2961
2961
|
};
|
|
2962
2962
|
}
|
|
2963
|
-
const version = "4.2.
|
|
2963
|
+
const version = "4.2.14";
|
|
2964
2964
|
const log = {
|
|
2965
2965
|
create: createLog,
|
|
2966
2966
|
warn: createLog('warn', `v${version}`),
|
|
@@ -3238,7 +3238,10 @@ const interceptor = {
|
|
|
3238
3238
|
return interceptor;
|
|
3239
3239
|
},
|
|
3240
3240
|
get(type) {
|
|
3241
|
-
|
|
3241
|
+
if (type) {
|
|
3242
|
+
return storeMap[type] || [];
|
|
3243
|
+
}
|
|
3244
|
+
return [];
|
|
3242
3245
|
},
|
|
3243
3246
|
add(type, render) {
|
|
3244
3247
|
// 兼容
|
|
@@ -3596,14 +3599,14 @@ function checkDynamic() {
|
|
|
3596
3599
|
}
|
|
3597
3600
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3598
3601
|
|
|
3599
|
-
const log_version = `ui v${"4.10.
|
|
3602
|
+
const log_version = `ui v${"4.10.41"}`;
|
|
3600
3603
|
const warnLog = log.create('warn', log_version);
|
|
3601
3604
|
const errLog = log.create('error', log_version);
|
|
3602
3605
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3603
3606
|
|
|
3604
3607
|
|
|
3605
3608
|
|
|
3606
|
-
const ui_version = "4.10.
|
|
3609
|
+
const ui_version = "4.10.41";
|
|
3607
3610
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3608
3611
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3609
3612
|
function config(options) {
|
|
@@ -10295,6 +10298,11 @@ const CheckboxButton = VxeCheckboxButton;
|
|
|
10295
10298
|
|
|
10296
10299
|
|
|
10297
10300
|
|
|
10301
|
+
function createInternalData() {
|
|
10302
|
+
return {
|
|
10303
|
+
// isLoaded: false
|
|
10304
|
+
};
|
|
10305
|
+
}
|
|
10298
10306
|
/* harmony default export */ var group = (defineVxeComponent({
|
|
10299
10307
|
name: 'VxeCheckboxGroup',
|
|
10300
10308
|
props: {
|
|
@@ -10312,9 +10320,10 @@ const CheckboxButton = VxeCheckboxButton;
|
|
|
10312
10320
|
size: {
|
|
10313
10321
|
type: String,
|
|
10314
10322
|
default: () => getConfig().checkboxGroup.size || getConfig().size
|
|
10315
|
-
}
|
|
10323
|
+
},
|
|
10324
|
+
defaultConfig: Object
|
|
10316
10325
|
},
|
|
10317
|
-
emits: ['update:modelValue', 'change'],
|
|
10326
|
+
emits: ['update:modelValue', 'change', 'default-change'],
|
|
10318
10327
|
setup(props, context) {
|
|
10319
10328
|
const {
|
|
10320
10329
|
slots,
|
|
@@ -10324,6 +10333,7 @@ const CheckboxButton = VxeCheckboxButton;
|
|
|
10324
10333
|
const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
10325
10334
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
10326
10335
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
10336
|
+
const internalData = createInternalData();
|
|
10327
10337
|
const computeIsDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
10328
10338
|
const {
|
|
10329
10339
|
disabled
|
|
@@ -10346,6 +10356,9 @@ const CheckboxButton = VxeCheckboxButton;
|
|
|
10346
10356
|
}
|
|
10347
10357
|
return false;
|
|
10348
10358
|
});
|
|
10359
|
+
const computeDefaultOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
10360
|
+
return Object.assign({}, props.defaultConfig);
|
|
10361
|
+
});
|
|
10349
10362
|
const computePropsOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
10350
10363
|
return Object.assign({}, props.optionProps);
|
|
10351
10364
|
});
|
|
@@ -10378,6 +10391,15 @@ const CheckboxButton = VxeCheckboxButton;
|
|
|
10378
10391
|
$checkboxGroup: $xeCheckboxGroup
|
|
10379
10392
|
}, params));
|
|
10380
10393
|
};
|
|
10394
|
+
const emitModel = value => {
|
|
10395
|
+
emit('update:modelValue', value);
|
|
10396
|
+
};
|
|
10397
|
+
const emitDefaultValue = value => {
|
|
10398
|
+
emitModel(value);
|
|
10399
|
+
dispatchEvent('default-change', {
|
|
10400
|
+
value
|
|
10401
|
+
}, null);
|
|
10402
|
+
};
|
|
10381
10403
|
const checkboxGroupMethods = {
|
|
10382
10404
|
dispatchEvent
|
|
10383
10405
|
};
|
|
@@ -10396,7 +10418,7 @@ const CheckboxButton = VxeCheckboxButton;
|
|
|
10396
10418
|
} else {
|
|
10397
10419
|
checklist.splice(checkIndex, 1);
|
|
10398
10420
|
}
|
|
10399
|
-
|
|
10421
|
+
emitModel(checklist);
|
|
10400
10422
|
$xeCheckboxGroup.dispatchEvent('change', Object.assign({}, params, {
|
|
10401
10423
|
checklist,
|
|
10402
10424
|
value: checklist
|
|
@@ -10407,6 +10429,36 @@ const CheckboxButton = VxeCheckboxButton;
|
|
|
10407
10429
|
}
|
|
10408
10430
|
}
|
|
10409
10431
|
};
|
|
10432
|
+
const loadData = datas => {
|
|
10433
|
+
const {
|
|
10434
|
+
isLoaded
|
|
10435
|
+
} = internalData;
|
|
10436
|
+
const defaultOpts = computeDefaultOpts.value;
|
|
10437
|
+
const valueField = computeValueField.value;
|
|
10438
|
+
if (!isLoaded) {
|
|
10439
|
+
const {
|
|
10440
|
+
selectMode
|
|
10441
|
+
} = defaultOpts;
|
|
10442
|
+
if (datas.length > 0 && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(props.modelValue)) {
|
|
10443
|
+
if (selectMode === 'all') {
|
|
10444
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
10445
|
+
emitDefaultValue(datas.map(item => item[valueField]));
|
|
10446
|
+
});
|
|
10447
|
+
} else if (selectMode === 'first' || selectMode === 'last') {
|
|
10448
|
+
const selectItem = (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[selectMode](datas);
|
|
10449
|
+
if (selectItem) {
|
|
10450
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
10451
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(props.modelValue)) {
|
|
10452
|
+
emitDefaultValue([selectItem[valueField]]);
|
|
10453
|
+
}
|
|
10454
|
+
});
|
|
10455
|
+
}
|
|
10456
|
+
}
|
|
10457
|
+
internalData.isLoaded = true;
|
|
10458
|
+
}
|
|
10459
|
+
}
|
|
10460
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
10461
|
+
};
|
|
10410
10462
|
Object.assign($xeCheckboxGroup, checkboxGroupMethods, checkboxGroupPrivateMethods);
|
|
10411
10463
|
const renderVN = () => {
|
|
10412
10464
|
const {
|
|
@@ -10427,6 +10479,22 @@ const CheckboxButton = VxeCheckboxButton;
|
|
|
10427
10479
|
});
|
|
10428
10480
|
}) : []);
|
|
10429
10481
|
};
|
|
10482
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.options, val => {
|
|
10483
|
+
loadData(val || []);
|
|
10484
|
+
});
|
|
10485
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
10486
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
10487
|
+
const {
|
|
10488
|
+
options
|
|
10489
|
+
} = props;
|
|
10490
|
+
if (options) {
|
|
10491
|
+
loadData(options);
|
|
10492
|
+
}
|
|
10493
|
+
});
|
|
10494
|
+
});
|
|
10495
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
10496
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, createInternalData());
|
|
10497
|
+
});
|
|
10430
10498
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeCheckboxGroup', $xeCheckboxGroup);
|
|
10431
10499
|
$xeCheckboxGroup.renderVN = renderVN;
|
|
10432
10500
|
return renderVN;
|
|
@@ -23038,7 +23106,7 @@ function checkRuleStatus(rule, val) {
|
|
|
23038
23106
|
}
|
|
23039
23107
|
return true;
|
|
23040
23108
|
}
|
|
23041
|
-
function
|
|
23109
|
+
function form_createInternalData() {
|
|
23042
23110
|
return {
|
|
23043
23111
|
meTimeout: undefined,
|
|
23044
23112
|
stTimeout: undefined,
|
|
@@ -23149,7 +23217,7 @@ function createInternalData() {
|
|
|
23149
23217
|
formItems: [],
|
|
23150
23218
|
itemWidth: 0
|
|
23151
23219
|
});
|
|
23152
|
-
const internalData =
|
|
23220
|
+
const internalData = form_createInternalData();
|
|
23153
23221
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
23154
23222
|
const refTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
23155
23223
|
let formMethods = {};
|
|
@@ -23902,7 +23970,7 @@ function createInternalData() {
|
|
|
23902
23970
|
});
|
|
23903
23971
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
23904
23972
|
globalEvents.off($xeForm, 'resize');
|
|
23905
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData,
|
|
23973
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, form_createInternalData());
|
|
23906
23974
|
});
|
|
23907
23975
|
if (props.items) {
|
|
23908
23976
|
loadItem(props.items);
|
|
@@ -29587,6 +29655,7 @@ const Option = VxeOption;
|
|
|
29587
29655
|
|
|
29588
29656
|
|
|
29589
29657
|
|
|
29658
|
+
|
|
29590
29659
|
function isOptionVisible(option) {
|
|
29591
29660
|
return option.visible !== false;
|
|
29592
29661
|
}
|
|
@@ -29595,6 +29664,7 @@ function getOptUniqueId() {
|
|
|
29595
29664
|
}
|
|
29596
29665
|
function select_createInternalData() {
|
|
29597
29666
|
return {
|
|
29667
|
+
// isLoaded: false,
|
|
29598
29668
|
synchData: [],
|
|
29599
29669
|
fullData: [],
|
|
29600
29670
|
afterVisibleList: [],
|
|
@@ -29701,7 +29771,7 @@ function select_createInternalData() {
|
|
|
29701
29771
|
*/
|
|
29702
29772
|
optionKey: Boolean
|
|
29703
29773
|
},
|
|
29704
|
-
emits: ['update:modelValue', 'change', 'all-change', 'clear', 'blur', 'focus', 'click', 'scroll', 'visible-change'],
|
|
29774
|
+
emits: ['update:modelValue', 'change', 'default-change', 'all-change', 'clear', 'blur', 'focus', 'click', 'scroll', 'visible-change'],
|
|
29705
29775
|
setup(props, context) {
|
|
29706
29776
|
const {
|
|
29707
29777
|
slots,
|
|
@@ -29916,6 +29986,12 @@ function select_createInternalData() {
|
|
|
29916
29986
|
const emitModel = value => {
|
|
29917
29987
|
emit('update:modelValue', value);
|
|
29918
29988
|
};
|
|
29989
|
+
const emitDefaultValue = value => {
|
|
29990
|
+
emitModel(value);
|
|
29991
|
+
dispatchEvent('default-change', {
|
|
29992
|
+
value
|
|
29993
|
+
}, null);
|
|
29994
|
+
};
|
|
29919
29995
|
const getOptKey = () => {
|
|
29920
29996
|
const optionOpts = computeOptionOpts.value;
|
|
29921
29997
|
return optionOpts.keyField || props.optionId || '_X_OPTION_KEY';
|
|
@@ -30801,6 +30877,9 @@ function select_createInternalData() {
|
|
|
30801
30877
|
*/
|
|
30802
30878
|
const loadData = datas => {
|
|
30803
30879
|
cacheItemMap(datas || []);
|
|
30880
|
+
const {
|
|
30881
|
+
multiple
|
|
30882
|
+
} = props;
|
|
30804
30883
|
const {
|
|
30805
30884
|
isLoaded,
|
|
30806
30885
|
fullData,
|
|
@@ -30823,12 +30902,20 @@ function select_createInternalData() {
|
|
|
30823
30902
|
selectMode
|
|
30824
30903
|
} = defaultOpts;
|
|
30825
30904
|
if (datas.length > 0 && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(props.modelValue)) {
|
|
30826
|
-
if (selectMode === '
|
|
30905
|
+
if (selectMode === 'all') {
|
|
30906
|
+
if (multiple) {
|
|
30907
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
30908
|
+
emitDefaultValue(datas.map(item => item[valueField]));
|
|
30909
|
+
});
|
|
30910
|
+
} else {
|
|
30911
|
+
errLog('vxe.error.notConflictProp', ['default-config.selectMode=all', 'multiple=true']);
|
|
30912
|
+
}
|
|
30913
|
+
} else if (selectMode === 'first' || selectMode === 'last') {
|
|
30827
30914
|
const selectItem = (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[selectMode](datas);
|
|
30828
30915
|
if (selectItem) {
|
|
30829
30916
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
30830
30917
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(props.modelValue)) {
|
|
30831
|
-
|
|
30918
|
+
emitDefaultValue(selectItem[valueField]);
|
|
30832
30919
|
}
|
|
30833
30920
|
});
|
|
30834
30921
|
}
|
|
@@ -33776,6 +33863,11 @@ const RadioButton = VxeRadioButton;
|
|
|
33776
33863
|
|
|
33777
33864
|
|
|
33778
33865
|
|
|
33866
|
+
function group_createInternalData() {
|
|
33867
|
+
return {
|
|
33868
|
+
// isLoaded: false
|
|
33869
|
+
};
|
|
33870
|
+
}
|
|
33779
33871
|
/* harmony default export */ var radio_src_group = (defineVxeComponent({
|
|
33780
33872
|
name: 'VxeRadioGroup',
|
|
33781
33873
|
props: {
|
|
@@ -33794,9 +33886,10 @@ const RadioButton = VxeRadioButton;
|
|
|
33794
33886
|
size: {
|
|
33795
33887
|
type: String,
|
|
33796
33888
|
default: () => getConfig().radioGroup.size || getConfig().size
|
|
33797
|
-
}
|
|
33889
|
+
},
|
|
33890
|
+
defaultConfig: Object
|
|
33798
33891
|
},
|
|
33799
|
-
emits: ['update:modelValue', 'change'],
|
|
33892
|
+
emits: ['update:modelValue', 'change', 'default-change'],
|
|
33800
33893
|
setup(props, context) {
|
|
33801
33894
|
const {
|
|
33802
33895
|
slots,
|
|
@@ -33809,6 +33902,7 @@ const RadioButton = VxeRadioButton;
|
|
|
33809
33902
|
computeSize
|
|
33810
33903
|
} = useSize(props);
|
|
33811
33904
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
33905
|
+
const internalData = group_createInternalData();
|
|
33812
33906
|
const computeIsDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
33813
33907
|
const {
|
|
33814
33908
|
disabled
|
|
@@ -33821,6 +33915,9 @@ const RadioButton = VxeRadioButton;
|
|
|
33821
33915
|
}
|
|
33822
33916
|
return disabled;
|
|
33823
33917
|
});
|
|
33918
|
+
const computeDefaultOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
33919
|
+
return Object.assign({}, props.defaultConfig);
|
|
33920
|
+
});
|
|
33824
33921
|
const computeMaps = {
|
|
33825
33922
|
computeIsDisabled
|
|
33826
33923
|
};
|
|
@@ -33847,6 +33944,15 @@ const RadioButton = VxeRadioButton;
|
|
|
33847
33944
|
const propsOpts = computePropsOpts.value;
|
|
33848
33945
|
return propsOpts.disabled || 'disabled';
|
|
33849
33946
|
});
|
|
33947
|
+
const emitModel = value => {
|
|
33948
|
+
emit('update:modelValue', value);
|
|
33949
|
+
};
|
|
33950
|
+
const emitDefaultValue = value => {
|
|
33951
|
+
emitModel(value);
|
|
33952
|
+
dispatchEvent('default-change', {
|
|
33953
|
+
value
|
|
33954
|
+
}, null);
|
|
33955
|
+
};
|
|
33850
33956
|
const dispatchEvent = (type, params, evnt) => {
|
|
33851
33957
|
emit(type, createEvent(evnt, {
|
|
33852
33958
|
$radioGroup: $xeRadioGroup
|
|
@@ -33858,7 +33964,7 @@ const RadioButton = VxeRadioButton;
|
|
|
33858
33964
|
const radioGroupPrivateMethods = {
|
|
33859
33965
|
handleChecked(params, evnt) {
|
|
33860
33966
|
const value = params.checkedValue;
|
|
33861
|
-
|
|
33967
|
+
emitModel(value);
|
|
33862
33968
|
dispatchEvent('change', {
|
|
33863
33969
|
value,
|
|
33864
33970
|
label: value,
|
|
@@ -33870,6 +33976,32 @@ const RadioButton = VxeRadioButton;
|
|
|
33870
33976
|
}
|
|
33871
33977
|
}
|
|
33872
33978
|
};
|
|
33979
|
+
const loadData = datas => {
|
|
33980
|
+
const {
|
|
33981
|
+
isLoaded
|
|
33982
|
+
} = internalData;
|
|
33983
|
+
const defaultOpts = computeDefaultOpts.value;
|
|
33984
|
+
const valueField = computeValueField.value;
|
|
33985
|
+
if (!isLoaded) {
|
|
33986
|
+
const {
|
|
33987
|
+
selectMode
|
|
33988
|
+
} = defaultOpts;
|
|
33989
|
+
if (datas.length > 0 && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(props.modelValue)) {
|
|
33990
|
+
if (selectMode === 'first' || selectMode === 'last') {
|
|
33991
|
+
const selectItem = (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[selectMode](datas);
|
|
33992
|
+
if (selectItem) {
|
|
33993
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
33994
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(props.modelValue)) {
|
|
33995
|
+
emitDefaultValue(selectItem[valueField]);
|
|
33996
|
+
}
|
|
33997
|
+
});
|
|
33998
|
+
}
|
|
33999
|
+
}
|
|
34000
|
+
internalData.isLoaded = true;
|
|
34001
|
+
}
|
|
34002
|
+
}
|
|
34003
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
34004
|
+
};
|
|
33873
34005
|
Object.assign($xeRadioGroup, radioGroupMethods, radioGroupPrivateMethods);
|
|
33874
34006
|
const renderVN = () => {
|
|
33875
34007
|
const {
|
|
@@ -33895,6 +34027,22 @@ const RadioButton = VxeRadioButton;
|
|
|
33895
34027
|
});
|
|
33896
34028
|
}) : []);
|
|
33897
34029
|
};
|
|
34030
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.options, val => {
|
|
34031
|
+
loadData(val || []);
|
|
34032
|
+
});
|
|
34033
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
34034
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
34035
|
+
const {
|
|
34036
|
+
options
|
|
34037
|
+
} = props;
|
|
34038
|
+
if (options) {
|
|
34039
|
+
loadData(options);
|
|
34040
|
+
}
|
|
34041
|
+
});
|
|
34042
|
+
});
|
|
34043
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
34044
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, group_createInternalData());
|
|
34045
|
+
});
|
|
33898
34046
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeRadioGroup', $xeRadioGroup);
|
|
33899
34047
|
$xeRadioGroup.renderVN = renderVN;
|
|
33900
34048
|
return $xeRadioGroup;
|