vxe-pc-ui 3.3.41 → 3.3.43
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/checkbox.js +2 -0
- package/es/checkbox/src/group.js +1 -0
- package/es/icon/style.css +1 -1
- package/es/list/src/list.js +61 -13
- package/es/radio/src/button.js +2 -0
- package/es/radio/src/group.js +1 -0
- package/es/radio/src/radio.js +2 -0
- 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/checkbox.js +2 -0
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +1 -0
- 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 +69 -14
- package/lib/index.umd.min.js +1 -1
- package/lib/list/src/list.js +59 -12
- package/lib/list/src/list.min.js +1 -1
- package/lib/radio/src/button.js +2 -0
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/group.js +1 -0
- package/lib/radio/src/group.min.js +1 -1
- package/lib/radio/src/radio.js +2 -0
- package/lib/radio/src/radio.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/checkbox.ts +2 -0
- package/packages/checkbox/src/group.ts +1 -0
- package/packages/list/src/list.ts +64 -14
- package/packages/radio/src/button.ts +2 -0
- package/packages/radio/src/group.ts +1 -0
- package/packages/radio/src/radio.ts +2 -0
- package/types/components/list.d.ts +3 -1
- package/types/components/table.d.ts +1 -1
- /package/es/icon/{iconfont.1734611289675.ttf → iconfont.1734680304044.ttf} +0 -0
- /package/es/icon/{iconfont.1734611289675.woff → iconfont.1734680304044.woff} +0 -0
- /package/es/icon/{iconfont.1734611289675.woff2 → iconfont.1734680304044.woff2} +0 -0
- /package/es/{iconfont.1734611289675.ttf → iconfont.1734680304044.ttf} +0 -0
- /package/es/{iconfont.1734611289675.woff → iconfont.1734680304044.woff} +0 -0
- /package/es/{iconfont.1734611289675.woff2 → iconfont.1734680304044.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1734611289675.ttf → iconfont.1734680304044.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1734611289675.woff → iconfont.1734680304044.woff} +0 -0
- /package/lib/icon/style/{iconfont.1734611289675.woff2 → iconfont.1734680304044.woff2} +0 -0
- /package/lib/{iconfont.1734611289675.ttf → iconfont.1734680304044.ttf} +0 -0
- /package/lib/{iconfont.1734611289675.woff → iconfont.1734680304044.woff} +0 -0
- /package/lib/{iconfont.1734611289675.woff2 → iconfont.1734680304044.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -12862,7 +12862,7 @@ function handleBooleanDefaultValue(value) {
|
|
|
12862
12862
|
}
|
|
12863
12863
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
12864
12864
|
|
|
12865
|
-
var log_version = "ui v".concat("3.3.
|
|
12865
|
+
var log_version = "ui v".concat("3.3.43");
|
|
12866
12866
|
var warnLog = log.create('warn', log_version);
|
|
12867
12867
|
var errLog = log.create('error', log_version);
|
|
12868
12868
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
@@ -12870,7 +12870,7 @@ var errLog = log.create('error', log_version);
|
|
|
12870
12870
|
|
|
12871
12871
|
|
|
12872
12872
|
|
|
12873
|
-
var ui_version = "3.3.
|
|
12873
|
+
var ui_version = "3.3.43";
|
|
12874
12874
|
index_esm_VxeUI.version = ui_version;
|
|
12875
12875
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
12876
12876
|
index_esm_VxeUI.tableVersion = '';
|
|
@@ -18429,11 +18429,13 @@ var CarouselItem = VxeCarouselItem;
|
|
|
18429
18429
|
var $xeCheckbox = this;
|
|
18430
18430
|
var props = $xeCheckbox;
|
|
18431
18431
|
var slots = $xeCheckbox.$scopedSlots;
|
|
18432
|
+
var label = props.label;
|
|
18432
18433
|
var vSize = $xeCheckbox.computeSize;
|
|
18433
18434
|
var isDisabled = $xeCheckbox.computeIsDisabled;
|
|
18434
18435
|
var isChecked = $xeCheckbox.computeIsChecked;
|
|
18435
18436
|
var indeterminate = !isChecked && props.indeterminate;
|
|
18436
18437
|
return h('label', {
|
|
18438
|
+
key: label,
|
|
18437
18439
|
class: ['vxe-checkbox', _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--indeterminate', indeterminate), 'is--disabled', isDisabled), 'is--checked', isChecked)],
|
|
18438
18440
|
attrs: {
|
|
18439
18441
|
title: props.title
|
|
@@ -18637,6 +18639,7 @@ var Checkbox = VxeCheckbox;
|
|
|
18637
18639
|
class: 'vxe-checkbox-group'
|
|
18638
18640
|
}, defaultSlot ? defaultSlot({}) : options ? options.map(function (item) {
|
|
18639
18641
|
return h(src_checkbox, {
|
|
18642
|
+
key: item[valueField],
|
|
18640
18643
|
props: {
|
|
18641
18644
|
label: item[valueField],
|
|
18642
18645
|
content: item[labelField],
|
|
@@ -30967,7 +30970,9 @@ var Link = VxeLink;
|
|
|
30967
30970
|
var reactData = {
|
|
30968
30971
|
scrollYLoad: false,
|
|
30969
30972
|
bodyHeight: 0,
|
|
30970
|
-
|
|
30973
|
+
customHeight: 0,
|
|
30974
|
+
customMaxHeight: 0,
|
|
30975
|
+
parentHeight: 0,
|
|
30971
30976
|
topSpaceHeight: 0,
|
|
30972
30977
|
items: []
|
|
30973
30978
|
};
|
|
@@ -30999,14 +31004,17 @@ var Link = VxeLink;
|
|
|
30999
31004
|
computeStyles: function computeStyles() {
|
|
31000
31005
|
var $xeList = this;
|
|
31001
31006
|
var props = $xeList;
|
|
31007
|
+
var reactData = $xeList.reactData;
|
|
31002
31008
|
var height = props.height,
|
|
31003
31009
|
maxHeight = props.maxHeight;
|
|
31010
|
+
var customHeight = reactData.customHeight,
|
|
31011
|
+
customMaxHeight = reactData.customMaxHeight;
|
|
31004
31012
|
var style = {};
|
|
31005
31013
|
if (height) {
|
|
31006
|
-
style.height = "".concat(
|
|
31014
|
+
style.height = "".concat(customHeight, "px");
|
|
31007
31015
|
} else if (maxHeight) {
|
|
31008
31016
|
style.height = 'auto';
|
|
31009
|
-
style.maxHeight = "".concat(
|
|
31017
|
+
style.maxHeight = "".concat(customMaxHeight, "px");
|
|
31010
31018
|
}
|
|
31011
31019
|
return style;
|
|
31012
31020
|
}
|
|
@@ -31067,6 +31075,33 @@ var Link = VxeLink;
|
|
|
31067
31075
|
$xeList.clearScroll();
|
|
31068
31076
|
return $xeList.loadData(datas);
|
|
31069
31077
|
},
|
|
31078
|
+
calcTableHeight: function calcTableHeight(key) {
|
|
31079
|
+
var $xeList = this;
|
|
31080
|
+
var props = $xeList;
|
|
31081
|
+
var reactData = $xeList.reactData;
|
|
31082
|
+
var parentHeight = reactData.parentHeight;
|
|
31083
|
+
var val = props[key];
|
|
31084
|
+
var num = 0;
|
|
31085
|
+
if (val) {
|
|
31086
|
+
if (val === '100%' || val === 'auto') {
|
|
31087
|
+
num = parentHeight;
|
|
31088
|
+
} else {
|
|
31089
|
+
if (isScale(val)) {
|
|
31090
|
+
num = Math.floor((external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(val) || 1) / 100 * parentHeight);
|
|
31091
|
+
} else {
|
|
31092
|
+
num = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(val);
|
|
31093
|
+
}
|
|
31094
|
+
num = Math.max(40, num);
|
|
31095
|
+
}
|
|
31096
|
+
}
|
|
31097
|
+
return num;
|
|
31098
|
+
},
|
|
31099
|
+
updateHeight: function updateHeight() {
|
|
31100
|
+
var $xeList = this;
|
|
31101
|
+
var reactData = $xeList.reactData;
|
|
31102
|
+
reactData.customHeight = $xeList.calcTableHeight('height');
|
|
31103
|
+
reactData.customMaxHeight = $xeList.calcTableHeight('maxHeight');
|
|
31104
|
+
},
|
|
31070
31105
|
updateYSpace: function updateYSpace() {
|
|
31071
31106
|
var $xeList = this;
|
|
31072
31107
|
var reactData = $xeList.reactData;
|
|
@@ -31114,7 +31149,7 @@ var Link = VxeLink;
|
|
|
31114
31149
|
if (firstItemElem) {
|
|
31115
31150
|
rowHeight = firstItemElem.offsetHeight;
|
|
31116
31151
|
}
|
|
31117
|
-
rowHeight = Math.max(
|
|
31152
|
+
rowHeight = Math.max(12, rowHeight);
|
|
31118
31153
|
scrollYStore.rowHeight = rowHeight;
|
|
31119
31154
|
// 计算 Y 逻辑
|
|
31120
31155
|
if (scrollYLoad) {
|
|
@@ -31123,12 +31158,11 @@ var Link = VxeLink;
|
|
|
31123
31158
|
var offsetYSize = sYOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sYOpts.oSize) : dom_browse.edge ? 10 : 0;
|
|
31124
31159
|
scrollYStore.offsetSize = offsetYSize;
|
|
31125
31160
|
scrollYStore.visibleSize = visibleYSize;
|
|
31126
|
-
scrollYStore.endIndex = Math.max(scrollYStore.startIndex
|
|
31161
|
+
scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
|
|
31127
31162
|
$xeList.updateYData();
|
|
31128
31163
|
} else {
|
|
31129
31164
|
$xeList.updateYSpace();
|
|
31130
31165
|
}
|
|
31131
|
-
reactData.rowHeight = rowHeight;
|
|
31132
31166
|
});
|
|
31133
31167
|
},
|
|
31134
31168
|
/**
|
|
@@ -31189,11 +31223,17 @@ var Link = VxeLink;
|
|
|
31189
31223
|
*/
|
|
31190
31224
|
recalculate: function recalculate() {
|
|
31191
31225
|
var $xeList = this;
|
|
31226
|
+
var reactData = $xeList.reactData;
|
|
31192
31227
|
var el = $xeList.$refs.refElem;
|
|
31193
|
-
if (el
|
|
31194
|
-
|
|
31228
|
+
if (el) {
|
|
31229
|
+
var parentEl = el.parentElement;
|
|
31230
|
+
reactData.parentHeight = parentEl ? parentEl.clientHeight : 0;
|
|
31231
|
+
$xeList.updateHeight();
|
|
31232
|
+
if (el.clientWidth && el.clientHeight) {
|
|
31233
|
+
return $xeList.computeScrollLoad();
|
|
31234
|
+
}
|
|
31195
31235
|
}
|
|
31196
|
-
return
|
|
31236
|
+
return $xeList.$nextTick();
|
|
31197
31237
|
},
|
|
31198
31238
|
loadYData: function loadYData(evnt) {
|
|
31199
31239
|
var $xeList = this;
|
|
@@ -31297,6 +31337,14 @@ var Link = VxeLink;
|
|
|
31297
31337
|
var props = $xeList;
|
|
31298
31338
|
$xeList.loadData(props.data || []);
|
|
31299
31339
|
},
|
|
31340
|
+
height: function height() {
|
|
31341
|
+
var $xeList = this;
|
|
31342
|
+
$xeList.recalculate();
|
|
31343
|
+
},
|
|
31344
|
+
maxHeight: function maxHeight() {
|
|
31345
|
+
var $xeList = this;
|
|
31346
|
+
$xeList.recalculate();
|
|
31347
|
+
},
|
|
31300
31348
|
syncResize: function syncResize(val) {
|
|
31301
31349
|
var $xeList = this;
|
|
31302
31350
|
if (val) {
|
|
@@ -31312,23 +31360,25 @@ var Link = VxeLink;
|
|
|
31312
31360
|
created: function created() {
|
|
31313
31361
|
var $xeList = this;
|
|
31314
31362
|
var props = $xeList;
|
|
31315
|
-
globalEvents.on($xeList, 'resize', function () {
|
|
31316
|
-
$xeList.recalculate();
|
|
31317
|
-
});
|
|
31318
31363
|
$xeList.loadData(props.data || []);
|
|
31319
31364
|
},
|
|
31320
31365
|
mounted: function mounted() {
|
|
31321
31366
|
var $xeList = this;
|
|
31322
31367
|
var props = $xeList;
|
|
31323
31368
|
var internalData = $xeList.internalData;
|
|
31369
|
+
$xeList.recalculate();
|
|
31324
31370
|
if (props.autoResize) {
|
|
31325
31371
|
var el = $xeList.$refs.refElem;
|
|
31326
31372
|
var resizeObserver = globalResize.create(function () {
|
|
31327
31373
|
return $xeList.recalculate();
|
|
31328
31374
|
});
|
|
31329
31375
|
resizeObserver.observe(el);
|
|
31376
|
+
if (el) {
|
|
31377
|
+
resizeObserver.observe(el.parentElement);
|
|
31378
|
+
}
|
|
31330
31379
|
internalData.resizeObserver = resizeObserver;
|
|
31331
31380
|
}
|
|
31381
|
+
globalEvents.on($xeList, 'resize', $xeList.recalculate);
|
|
31332
31382
|
},
|
|
31333
31383
|
activated: function activated() {
|
|
31334
31384
|
var $xeList = this;
|
|
@@ -38883,12 +38933,14 @@ var Pulldown = VxePulldown;
|
|
|
38883
38933
|
renderVN: function renderVN(h) {
|
|
38884
38934
|
var $xeRadio = this;
|
|
38885
38935
|
var props = $xeRadio;
|
|
38936
|
+
var label = props.label;
|
|
38886
38937
|
var slots = $xeRadio.$scopedSlots;
|
|
38887
38938
|
var vSize = $xeRadio.computeSize;
|
|
38888
38939
|
var isDisabled = $xeRadio.computeIsDisabled;
|
|
38889
38940
|
var name = $xeRadio.computeName;
|
|
38890
38941
|
var isChecked = $xeRadio.computeChecked;
|
|
38891
38942
|
return h('label', {
|
|
38943
|
+
key: label,
|
|
38892
38944
|
class: ['vxe-radio', _defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--checked', isChecked), 'is--disabled', isDisabled)],
|
|
38893
38945
|
attrs: {
|
|
38894
38946
|
title: props.title
|
|
@@ -39088,11 +39140,13 @@ var Radio = VxeRadio;
|
|
|
39088
39140
|
var $xeRadioButton = this;
|
|
39089
39141
|
var props = $xeRadioButton;
|
|
39090
39142
|
var slots = $xeRadioButton.$scopedSlots;
|
|
39143
|
+
var label = props.label;
|
|
39091
39144
|
var vSize = $xeRadioButton.computeSize;
|
|
39092
39145
|
var isDisabled = $xeRadioButton.computeIsDisabled;
|
|
39093
39146
|
var name = $xeRadioButton.computeName;
|
|
39094
39147
|
var isChecked = $xeRadioButton.computeChecked;
|
|
39095
39148
|
return h('label', {
|
|
39149
|
+
key: label,
|
|
39096
39150
|
class: ['vxe-radio', 'vxe-radio-button', _defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--disabled', isDisabled)],
|
|
39097
39151
|
attrs: {
|
|
39098
39152
|
title: props.title
|
|
@@ -39278,6 +39332,7 @@ var RadioButton = VxeRadioButton;
|
|
|
39278
39332
|
class: 'vxe-radio-group'
|
|
39279
39333
|
}, defaultSlot ? defaultSlot({}) : options ? options.map(function (item) {
|
|
39280
39334
|
return h(btnComp, {
|
|
39335
|
+
key: item[valueField],
|
|
39281
39336
|
props: {
|
|
39282
39337
|
label: item[valueField],
|
|
39283
39338
|
content: item[labelField],
|