vxe-pc-ui 3.3.32 → 3.3.35
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/icon/style.css +1 -1
- package/es/image/src/image.js +4 -2
- package/es/image/style.css +3 -0
- package/es/image/style.min.css +1 -0
- package/es/number-input/src/number-input.js +2 -1
- package/es/pager/style.css +1 -1
- package/es/pager/style.min.css +1 -1
- package/es/rate/src/rate.js +22 -5
- package/es/rate/style.css +6 -3
- package/es/rate/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/src/switch.js +22 -2
- package/es/switch/style.css +3 -0
- package/es/switch/style.min.css +1 -1
- package/es/ui/index.js +5 -4
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +24 -9
- package/es/upload/style.css +21 -5
- package/es/upload/style.min.css +1 -1
- package/es/vxe-image/style.css +3 -0
- package/es/vxe-image/style.min.css +1 -0
- package/es/vxe-pager/style.css +1 -1
- package/es/vxe-pager/style.min.css +1 -1
- package/es/vxe-rate/style.css +6 -3
- package/es/vxe-rate/style.min.css +1 -1
- package/es/vxe-switch/style.css +3 -0
- package/es/vxe-switch/style.min.css +1 -1
- package/es/vxe-upload/style.css +21 -5
- package/es/vxe-upload/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/image/src/image.js +4 -2
- package/lib/image/src/image.min.js +1 -1
- package/lib/image/style/style.css +3 -0
- package/lib/image/style/style.min.css +1 -0
- package/lib/index.umd.js +76 -23
- package/lib/index.umd.min.js +1 -1
- package/lib/number-input/src/number-input.js +2 -1
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/pager/style/style.css +1 -1
- package/lib/pager/style/style.min.css +1 -1
- package/lib/rate/src/rate.js +21 -5
- package/lib/rate/src/rate.min.js +1 -1
- package/lib/rate/style/style.css +6 -3
- package/lib/rate/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/src/switch.js +22 -3
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/switch/style/style.css +3 -0
- package/lib/switch/style/style.min.css +1 -1
- package/lib/ui/index.js +5 -4
- 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/lib/upload/src/upload.js +21 -7
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/upload/style/style.css +21 -5
- package/lib/upload/style/style.min.css +1 -1
- package/lib/vxe-image/style/style.css +3 -0
- package/lib/vxe-image/style/style.min.css +1 -0
- package/lib/vxe-pager/style/style.css +1 -1
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-rate/style/style.css +6 -3
- package/lib/vxe-rate/style/style.min.css +1 -1
- package/lib/vxe-switch/style/style.css +3 -0
- package/lib/vxe-switch/style/style.min.css +1 -1
- package/lib/vxe-upload/style/style.css +21 -5
- package/lib/vxe-upload/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/image/src/image.ts +4 -2
- package/packages/number-input/src/number-input.ts +2 -1
- package/packages/rate/src/rate.ts +23 -5
- package/packages/switch/src/switch.ts +25 -4
- package/packages/ui/index.ts +4 -3
- package/packages/upload/src/upload.ts +24 -9
- package/styles/components/image.scss +5 -0
- package/styles/components/pager.scss +1 -1
- package/styles/components/rate.scss +10 -3
- package/styles/components/switch.scss +5 -0
- package/styles/components/upload.scss +21 -4
- package/types/components/image.d.ts +2 -0
- package/types/components/table-module/custom.d.ts +2 -0
- package/types/components/table.d.ts +35 -4
- package/types/components/upload.d.ts +14 -0
- /package/es/icon/{iconfont.1734000190581.ttf → iconfont.1734189926286.ttf} +0 -0
- /package/es/icon/{iconfont.1734000190581.woff → iconfont.1734189926286.woff} +0 -0
- /package/es/icon/{iconfont.1734000190581.woff2 → iconfont.1734189926286.woff2} +0 -0
- /package/es/{iconfont.1734000190581.ttf → iconfont.1734189926286.ttf} +0 -0
- /package/es/{iconfont.1734000190581.woff → iconfont.1734189926286.woff} +0 -0
- /package/es/{iconfont.1734000190581.woff2 → iconfont.1734189926286.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1734000190581.ttf → iconfont.1734189926286.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1734000190581.woff → iconfont.1734189926286.woff} +0 -0
- /package/lib/icon/style/{iconfont.1734000190581.woff2 → iconfont.1734189926286.woff2} +0 -0
- /package/lib/{iconfont.1734000190581.ttf → iconfont.1734189926286.ttf} +0 -0
- /package/lib/{iconfont.1734000190581.woff → iconfont.1734189926286.woff} +0 -0
- /package/lib/{iconfont.1734000190581.woff2 → iconfont.1734189926286.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -12859,7 +12859,7 @@ function handleBooleanDefaultValue(value) {
|
|
|
12859
12859
|
}
|
|
12860
12860
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
12861
12861
|
|
|
12862
|
-
var log_version = "ui v".concat("3.3.
|
|
12862
|
+
var log_version = "ui v".concat("3.3.35");
|
|
12863
12863
|
var warnLog = log.create('warn', log_version);
|
|
12864
12864
|
var errLog = log.create('error', log_version);
|
|
12865
12865
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
@@ -12867,7 +12867,7 @@ var errLog = log.create('error', log_version);
|
|
|
12867
12867
|
|
|
12868
12868
|
|
|
12869
12869
|
|
|
12870
|
-
var ui_version = "3.3.
|
|
12870
|
+
var ui_version = "3.3.35";
|
|
12871
12871
|
index_esm_VxeUI.version = ui_version;
|
|
12872
12872
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
12873
12873
|
index_esm_VxeUI.tableVersion = '';
|
|
@@ -12990,7 +12990,8 @@ setConfig({
|
|
|
12990
12990
|
},
|
|
12991
12991
|
image: {
|
|
12992
12992
|
showPreview: true,
|
|
12993
|
-
showPrintButton: true
|
|
12993
|
+
showPrintButton: true,
|
|
12994
|
+
maskClosable: true
|
|
12994
12995
|
},
|
|
12995
12996
|
imageGroup: {
|
|
12996
12997
|
showPreview: true,
|
|
@@ -13182,8 +13183,8 @@ setConfig({
|
|
|
13182
13183
|
showRemoveButton: true,
|
|
13183
13184
|
showButtonIcon: true,
|
|
13184
13185
|
showPreview: true,
|
|
13185
|
-
dragToUpload: true
|
|
13186
|
-
|
|
13186
|
+
dragToUpload: true
|
|
13187
|
+
// imageConfig: {}
|
|
13187
13188
|
},
|
|
13188
13189
|
watermark: {
|
|
13189
13190
|
rotate: -30,
|
|
@@ -27024,6 +27025,7 @@ var openPreviewImage = function openPreviewImage(options) {
|
|
|
27024
27025
|
title: [String, Number],
|
|
27025
27026
|
width: [String, Number],
|
|
27026
27027
|
height: [String, Number],
|
|
27028
|
+
circle: Boolean,
|
|
27027
27029
|
maskClosable: {
|
|
27028
27030
|
type: Boolean,
|
|
27029
27031
|
default: function _default() {
|
|
@@ -27158,13 +27160,14 @@ var openPreviewImage = function openPreviewImage(options) {
|
|
|
27158
27160
|
var $xeImage = this;
|
|
27159
27161
|
var props = $xeImage;
|
|
27160
27162
|
var alt = props.alt,
|
|
27161
|
-
loading = props.loading
|
|
27163
|
+
loading = props.loading,
|
|
27164
|
+
circle = props.circle;
|
|
27162
27165
|
var imgStyle = $xeImage.computeImgStyle;
|
|
27163
27166
|
var imgUrl = $xeImage.computeImgUrl;
|
|
27164
27167
|
var vSize = $xeImage.computeSize;
|
|
27165
27168
|
return h('img', {
|
|
27166
27169
|
ref: 'refElem',
|
|
27167
|
-
class: ['vxe-image', _defineProperty({}, "size--".concat(vSize), vSize)],
|
|
27170
|
+
class: ['vxe-image', _defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--circle', circle)],
|
|
27168
27171
|
style: imgStyle,
|
|
27169
27172
|
attrs: {
|
|
27170
27173
|
src: imgUrl,
|
|
@@ -34449,13 +34452,14 @@ var handleNumberString = function handleNumberString(val) {
|
|
|
34449
34452
|
var reactData = $xeNumberInput.reactData;
|
|
34450
34453
|
if (props.controls) {
|
|
34451
34454
|
if (reactData.isActivated) {
|
|
34455
|
+
evnt.stopPropagation();
|
|
34456
|
+
evnt.preventDefault();
|
|
34452
34457
|
var delta = evnt.deltaY;
|
|
34453
34458
|
if (delta > 0) {
|
|
34454
34459
|
$xeNumberInput.numberNextEvent(evnt);
|
|
34455
34460
|
} else if (delta < 0) {
|
|
34456
34461
|
$xeNumberInput.numberPrevEvent(evnt);
|
|
34457
34462
|
}
|
|
34458
|
-
evnt.preventDefault();
|
|
34459
34463
|
}
|
|
34460
34464
|
}
|
|
34461
34465
|
$xeNumberInput.triggerEvent(evnt);
|
|
@@ -39315,6 +39319,19 @@ var RadioGroup = VxeRadioGroup;
|
|
|
39315
39319
|
}
|
|
39316
39320
|
return disabled;
|
|
39317
39321
|
},
|
|
39322
|
+
computeIsReadonly: function computeIsReadonly() {
|
|
39323
|
+
var $xeRate = this;
|
|
39324
|
+
var props = $xeRate;
|
|
39325
|
+
var $xeForm = $xeRate.$xeForm;
|
|
39326
|
+
var readonly = props.readonly;
|
|
39327
|
+
if (readonly === null) {
|
|
39328
|
+
if ($xeForm) {
|
|
39329
|
+
return $xeForm.readonly || $xeForm.disabled;
|
|
39330
|
+
}
|
|
39331
|
+
return false;
|
|
39332
|
+
}
|
|
39333
|
+
return readonly;
|
|
39334
|
+
},
|
|
39318
39335
|
computeNumVal: function computeNumVal() {
|
|
39319
39336
|
var $xeRate = this;
|
|
39320
39337
|
var props = $xeRate;
|
|
@@ -39350,7 +39367,8 @@ var RadioGroup = VxeRadioGroup;
|
|
|
39350
39367
|
var $xeRate = this;
|
|
39351
39368
|
var reactData = $xeRate.reactData;
|
|
39352
39369
|
var isDisabled = $xeRate.computeIsDisabled;
|
|
39353
|
-
|
|
39370
|
+
var isReadonly = $xeRate.computeIsReadonly;
|
|
39371
|
+
if (!(isDisabled || isReadonly)) {
|
|
39354
39372
|
var value = item.value;
|
|
39355
39373
|
reactData.activeValue = value;
|
|
39356
39374
|
}
|
|
@@ -39365,7 +39383,8 @@ var RadioGroup = VxeRadioGroup;
|
|
|
39365
39383
|
var $xeForm = $xeRate.$xeForm;
|
|
39366
39384
|
var formItemInfo = $xeRate.formItemInfo;
|
|
39367
39385
|
var isDisabled = $xeRate.computeIsDisabled;
|
|
39368
|
-
|
|
39386
|
+
var isReadonly = $xeRate.computeIsReadonly;
|
|
39387
|
+
if (!(isDisabled || isReadonly)) {
|
|
39369
39388
|
var value = item.value;
|
|
39370
39389
|
$xeRate.emitModel(value);
|
|
39371
39390
|
$xeRate.dispatchEvent('change', {
|
|
@@ -39385,12 +39404,13 @@ var RadioGroup = VxeRadioGroup;
|
|
|
39385
39404
|
var props = $xeRate;
|
|
39386
39405
|
var status = props.status;
|
|
39387
39406
|
var isDisabled = $xeRate.computeIsDisabled;
|
|
39407
|
+
var isReadonly = $xeRate.computeIsReadonly;
|
|
39388
39408
|
var itemList = $xeRate.computeItemList;
|
|
39389
39409
|
var vSize = $xeRate.computeSize;
|
|
39390
39410
|
var numVal = $xeRate.computeNumVal;
|
|
39391
39411
|
return h('div', {
|
|
39392
39412
|
ref: 'refElem',
|
|
39393
|
-
class: ['vxe-rate', _defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(status), status), 'is--disabled', isDisabled)]
|
|
39413
|
+
class: ['vxe-rate', _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(status), status), 'is--disabled', isDisabled), 'is--readonly', isReadonly)]
|
|
39394
39414
|
}, itemList.map(function (item) {
|
|
39395
39415
|
var isChecked = numVal >= item.value;
|
|
39396
39416
|
return h('div', {
|
|
@@ -39399,13 +39419,13 @@ var RadioGroup = VxeRadioGroup;
|
|
|
39399
39419
|
}],
|
|
39400
39420
|
on: {
|
|
39401
39421
|
mouseenter: function mouseenter(evnt) {
|
|
39402
|
-
if (!isDisabled) {
|
|
39422
|
+
if (!(isDisabled || isReadonly)) {
|
|
39403
39423
|
$xeRate.mouseenterEvent(evnt, item);
|
|
39404
39424
|
}
|
|
39405
39425
|
},
|
|
39406
39426
|
mouseleave: $xeRate.mouseleaveEvent,
|
|
39407
39427
|
click: function click(evnt) {
|
|
39408
|
-
if (!isDisabled) {
|
|
39428
|
+
if (!(isDisabled || isReadonly)) {
|
|
39409
39429
|
$xeRate.clickEvent(evnt, item);
|
|
39410
39430
|
}
|
|
39411
39431
|
}
|
|
@@ -40084,6 +40104,10 @@ var Steps = VxeSteps;
|
|
|
40084
40104
|
type: Boolean,
|
|
40085
40105
|
default: null
|
|
40086
40106
|
},
|
|
40107
|
+
readonly: {
|
|
40108
|
+
type: Boolean,
|
|
40109
|
+
default: null
|
|
40110
|
+
},
|
|
40087
40111
|
size: {
|
|
40088
40112
|
type: String,
|
|
40089
40113
|
default: function _default() {
|
|
@@ -40141,6 +40165,19 @@ var Steps = VxeSteps;
|
|
|
40141
40165
|
}
|
|
40142
40166
|
return disabled;
|
|
40143
40167
|
},
|
|
40168
|
+
computeIsReadonly: function computeIsReadonly() {
|
|
40169
|
+
var $xeSwitch = this;
|
|
40170
|
+
var props = $xeSwitch;
|
|
40171
|
+
var $xeForm = $xeSwitch.$xeForm;
|
|
40172
|
+
var readonly = props.readonly;
|
|
40173
|
+
if (readonly === null) {
|
|
40174
|
+
if ($xeForm) {
|
|
40175
|
+
return $xeForm.readonly || $xeForm.disabled;
|
|
40176
|
+
}
|
|
40177
|
+
return false;
|
|
40178
|
+
}
|
|
40179
|
+
return readonly;
|
|
40180
|
+
},
|
|
40144
40181
|
computeOnShowLabel: function computeOnShowLabel() {
|
|
40145
40182
|
var $xeSwitch = this;
|
|
40146
40183
|
var props = $xeSwitch;
|
|
@@ -40205,7 +40242,8 @@ var Steps = VxeSteps;
|
|
|
40205
40242
|
var $xeForm = $xeSwitch.$xeForm;
|
|
40206
40243
|
var formItemInfo = $xeSwitch.formItemInfo;
|
|
40207
40244
|
var isDisabled = $xeSwitch.computeIsDisabled;
|
|
40208
|
-
|
|
40245
|
+
var isReadonly = $xeSwitch.computeIsReadonly;
|
|
40246
|
+
if (!(isDisabled || isReadonly)) {
|
|
40209
40247
|
var isChecked = $xeSwitch.computeIsChecked;
|
|
40210
40248
|
clearTimeout(internalData.atTimeout);
|
|
40211
40249
|
var value = isChecked ? props.closeValue : props.openValue;
|
|
@@ -40258,14 +40296,15 @@ var Steps = VxeSteps;
|
|
|
40258
40296
|
var onShowLabel = $xeSwitch.computeOnShowLabel;
|
|
40259
40297
|
var offShowLabel = $xeSwitch.computeOffShowLabel;
|
|
40260
40298
|
var isDisabled = $xeSwitch.computeIsDisabled;
|
|
40299
|
+
var isReadonly = $xeSwitch.computeIsReadonly;
|
|
40261
40300
|
return h('div', {
|
|
40262
|
-
class: ['vxe-switch', isChecked ? 'is--on' : 'is--off', _defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--disabled', isDisabled), 'is--animat', reactData.hasAnimat)]
|
|
40301
|
+
class: ['vxe-switch', isChecked ? 'is--on' : 'is--off', _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--disabled', isDisabled), 'is--readonly', isReadonly), 'is--animat', reactData.hasAnimat)]
|
|
40263
40302
|
}, [h('button', {
|
|
40264
40303
|
ref: 'refButton',
|
|
40265
40304
|
class: 'vxe-switch--button',
|
|
40266
40305
|
attrs: {
|
|
40267
40306
|
type: 'button',
|
|
40268
|
-
disabled: isDisabled
|
|
40307
|
+
disabled: isDisabled || isReadonly
|
|
40269
40308
|
},
|
|
40270
40309
|
on: {
|
|
40271
40310
|
click: $xeSwitch.clickEvent,
|
|
@@ -45365,6 +45404,16 @@ function handleTransferFiles(items) {
|
|
|
45365
45404
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(getConfig().upload.imageTypes, true);
|
|
45366
45405
|
}
|
|
45367
45406
|
},
|
|
45407
|
+
imageConfig: {
|
|
45408
|
+
type: Object,
|
|
45409
|
+
default: function _default() {
|
|
45410
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(getConfig().upload.imageConfig, true);
|
|
45411
|
+
}
|
|
45412
|
+
},
|
|
45413
|
+
/**
|
|
45414
|
+
* 已废弃,被 image-config 替换
|
|
45415
|
+
* @deprecated
|
|
45416
|
+
*/
|
|
45368
45417
|
imageStyle: {
|
|
45369
45418
|
type: Object,
|
|
45370
45419
|
default: function _default() {
|
|
@@ -45676,16 +45725,16 @@ function handleTransferFiles(items) {
|
|
|
45676
45725
|
}
|
|
45677
45726
|
return defHints.join(getI18n('vxe.base.comma'));
|
|
45678
45727
|
},
|
|
45679
|
-
|
|
45728
|
+
computeImageOpts: function computeImageOpts() {
|
|
45680
45729
|
var $xeUpload = this;
|
|
45681
45730
|
var props = $xeUpload;
|
|
45682
|
-
return Object.assign({}, props.imageStyle);
|
|
45731
|
+
return Object.assign({}, props.imageConfig || props.imageStyle);
|
|
45683
45732
|
},
|
|
45684
45733
|
computeImgStyle: function computeImgStyle() {
|
|
45685
45734
|
var $xeUpload = this;
|
|
45686
|
-
var
|
|
45687
|
-
|
|
45688
|
-
height =
|
|
45735
|
+
var imageOpts = $xeUpload.computeImageOpts;
|
|
45736
|
+
var width = imageOpts.width,
|
|
45737
|
+
height = imageOpts.height;
|
|
45689
45738
|
var stys = {};
|
|
45690
45739
|
if (width) {
|
|
45691
45740
|
stys.width = toCssUnit(width);
|
|
@@ -46532,6 +46581,7 @@ function handleTransferFiles(items) {
|
|
|
46532
46581
|
var fileCacheMaps = reactData.fileCacheMaps;
|
|
46533
46582
|
var isDisabled = $xeUpload.computeIsDisabled;
|
|
46534
46583
|
var formReadonly = $xeUpload.computeFormReadonly;
|
|
46584
|
+
var imageOpts = $xeUpload.computeImageOpts;
|
|
46535
46585
|
var imgStyle = $xeUpload.computeImgStyle;
|
|
46536
46586
|
var cornerSlot = slots.corner;
|
|
46537
46587
|
return currList.map(function (item, index) {
|
|
@@ -46543,6 +46593,7 @@ function handleTransferFiles(items) {
|
|
|
46543
46593
|
key: index,
|
|
46544
46594
|
class: ['vxe-upload--image-item', {
|
|
46545
46595
|
'is--preview': showPreview,
|
|
46596
|
+
'is--circle': imageOpts.circle,
|
|
46546
46597
|
'is--loading': isLoading,
|
|
46547
46598
|
'is--error': isError
|
|
46548
46599
|
}]
|
|
@@ -46583,12 +46634,14 @@ function handleTransferFiles(items) {
|
|
|
46583
46634
|
$xeUpload.handleReUpload(item);
|
|
46584
46635
|
}
|
|
46585
46636
|
}
|
|
46586
|
-
})]) : h('
|
|
46637
|
+
})]) : h('div', {
|
|
46638
|
+
class: 'vxe-upload--image-item-img-wrapper'
|
|
46639
|
+
}, [h('img', {
|
|
46587
46640
|
class: 'vxe-upload--image-item-img',
|
|
46588
46641
|
attrs: {
|
|
46589
46642
|
src: $xeUpload.getThumbnailFileUrl(item)
|
|
46590
46643
|
}
|
|
46591
|
-
}) : renderEmptyElement($xeUpload), h('div', {
|
|
46644
|
+
})]) : renderEmptyElement($xeUpload), h('div', {
|
|
46592
46645
|
class: 'vxe-upload--image-item-btn-wrapper',
|
|
46593
46646
|
on: {
|
|
46594
46647
|
click: function click(evnt) {
|