vxe-pc-ui 4.19.6 → 4.19.7
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/dist/all.esm.js +332 -293
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/row/src/col.js +39 -18
- package/es/row/src/row.js +34 -16
- package/es/row/style.css +101 -24
- package/es/row/style.min.css +1 -1
- package/es/scrollbar/src/scrollbar.js +6 -4
- package/es/space/style.css +1 -0
- package/es/space/style.min.css +1 -1
- 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/es/vxe-row/style.css +101 -24
- package/es/vxe-row/style.min.css +1 -1
- package/es/vxe-space/style.css +1 -0
- package/es/vxe-space/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +89 -36
- package/lib/index.umd.min.js +1 -1
- package/lib/row/src/col.js +43 -17
- package/lib/row/src/col.min.js +1 -1
- package/lib/row/src/row.js +38 -14
- package/lib/row/src/row.min.js +1 -1
- package/lib/row/style/style.css +101 -24
- package/lib/row/style/style.min.css +1 -1
- package/lib/scrollbar/src/scrollbar.js +6 -3
- package/lib/scrollbar/src/scrollbar.min.js +1 -1
- package/lib/space/style/style.css +1 -0
- package/lib/space/style/style.min.css +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/lib/vxe-row/style/style.css +101 -24
- package/lib/vxe-row/style/style.min.css +1 -1
- package/lib/vxe-space/style/style.css +1 -0
- package/lib/vxe-space/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/row/src/col.ts +41 -18
- package/packages/row/src/row.ts +36 -17
- package/packages/scrollbar/src/scrollbar.ts +7 -4
- package/styles/components/row.scss +21 -3
- package/styles/components/space.scss +1 -0
- package/types/components/row.d.ts +2 -0
- /package/es/icon/{iconfont.1791769645781.ttf → iconfont.1791794447472.ttf} +0 -0
- /package/es/icon/{iconfont.1791769645781.woff → iconfont.1791794447472.woff} +0 -0
- /package/es/icon/{iconfont.1791769645781.woff2 → iconfont.1791794447472.woff2} +0 -0
- /package/es/{iconfont.1791769645781.ttf → iconfont.1791794447472.ttf} +0 -0
- /package/es/{iconfont.1791769645781.woff → iconfont.1791794447472.woff} +0 -0
- /package/es/{iconfont.1791769645781.woff2 → iconfont.1791794447472.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1791769645781.ttf → iconfont.1791794447472.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1791769645781.woff → iconfont.1791794447472.woff} +0 -0
- /package/lib/icon/style/{iconfont.1791769645781.woff2 → iconfont.1791794447472.woff2} +0 -0
- /package/lib/{iconfont.1791769645781.ttf → iconfont.1791794447472.ttf} +0 -0
- /package/lib/{iconfont.1791769645781.woff → iconfont.1791794447472.woff} +0 -0
- /package/lib/{iconfont.1791769645781.woff2 → iconfont.1791794447472.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -4745,7 +4745,7 @@ function checkDynamic() {
|
|
|
4745
4745
|
const {
|
|
4746
4746
|
log: log_log
|
|
4747
4747
|
} = VxeUI;
|
|
4748
|
-
const uiVersion = `ui v${"4.19.
|
|
4748
|
+
const uiVersion = `ui v${"4.19.7"}`;
|
|
4749
4749
|
function createComponentLog(name) {
|
|
4750
4750
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
4751
4751
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -4763,7 +4763,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
4763
4763
|
|
|
4764
4764
|
|
|
4765
4765
|
|
|
4766
|
-
const ui_version = "4.19.
|
|
4766
|
+
const ui_version = "4.19.7";
|
|
4767
4767
|
VxeUI.uiVersion = ui_version;
|
|
4768
4768
|
VxeUI.dynamicApp = dynamicApp;
|
|
4769
4769
|
function config(options) {
|
|
@@ -20507,6 +20507,10 @@ const CheckboxGroup = VxeCheckboxGroup;
|
|
|
20507
20507
|
|
|
20508
20508
|
|
|
20509
20509
|
|
|
20510
|
+
|
|
20511
|
+
const {
|
|
20512
|
+
errLog: col_errLog
|
|
20513
|
+
} = createComponentLog('col');
|
|
20510
20514
|
/* harmony default export */ var col = (defineVxeComponent({
|
|
20511
20515
|
name: 'VxeCol',
|
|
20512
20516
|
props: {
|
|
@@ -20552,27 +20556,33 @@ const CheckboxGroup = VxeCheckboxGroup;
|
|
|
20552
20556
|
} = props;
|
|
20553
20557
|
const rowGutter = computeRowGutter.value;
|
|
20554
20558
|
const rowVertical = computeRowVertical.value;
|
|
20559
|
+
let gridLayout = false;
|
|
20560
|
+
if ($xeRow) {
|
|
20561
|
+
gridLayout = !!$xeRow.props.gridLayout;
|
|
20562
|
+
}
|
|
20555
20563
|
const style = {};
|
|
20556
|
-
if (
|
|
20557
|
-
|
|
20558
|
-
|
|
20559
|
-
|
|
20560
|
-
|
|
20561
|
-
|
|
20562
|
-
|
|
20563
|
-
|
|
20564
|
-
|
|
20565
|
-
|
|
20564
|
+
if (!gridLayout) {
|
|
20565
|
+
if (rowGutter) {
|
|
20566
|
+
let [lrGutter, tbGutter] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rowGutter) ? rowGutter : [rowGutter];
|
|
20567
|
+
if (rowVertical) {
|
|
20568
|
+
tbGutter = lrGutter;
|
|
20569
|
+
lrGutter = '';
|
|
20570
|
+
}
|
|
20571
|
+
if (lrGutter) {
|
|
20572
|
+
const padding = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(lrGutter) ? toCssUnit(lrGutter / 2) : `calc(${toCssUnit(lrGutter)} / 2)`;
|
|
20573
|
+
style.paddingLeft = padding;
|
|
20574
|
+
style.paddingRight = padding;
|
|
20575
|
+
}
|
|
20576
|
+
if (tbGutter) {
|
|
20577
|
+
const padding = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(tbGutter) ? toCssUnit(tbGutter / 2) : `calc(${toCssUnit(tbGutter)} / 2)`;
|
|
20578
|
+
style.paddingTop = padding;
|
|
20579
|
+
style.paddingBottom = padding;
|
|
20580
|
+
}
|
|
20566
20581
|
}
|
|
20567
|
-
if (
|
|
20568
|
-
|
|
20569
|
-
style.paddingTop = padding;
|
|
20570
|
-
style.paddingBottom = padding;
|
|
20582
|
+
if (width) {
|
|
20583
|
+
style.width = toCssUnit(width);
|
|
20571
20584
|
}
|
|
20572
20585
|
}
|
|
20573
|
-
if (width) {
|
|
20574
|
-
style.width = toCssUnit(width);
|
|
20575
|
-
}
|
|
20576
20586
|
return style;
|
|
20577
20587
|
});
|
|
20578
20588
|
const computeMaps = {};
|
|
@@ -20617,6 +20627,22 @@ const CheckboxGroup = VxeCheckboxGroup;
|
|
|
20617
20627
|
class: 'vxe-col--inner'
|
|
20618
20628
|
}, defaultSlot ? defaultSlot({}) : [])]);
|
|
20619
20629
|
};
|
|
20630
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
20631
|
+
const {
|
|
20632
|
+
width,
|
|
20633
|
+
fill
|
|
20634
|
+
} = props;
|
|
20635
|
+
if ($xeRow) {
|
|
20636
|
+
if ($xeRow.props.gridLayout) {
|
|
20637
|
+
if (width) {
|
|
20638
|
+
col_errLog('vxe.error.notSupportProp', ['grid-layout', `width=${width}`, 'width=null']);
|
|
20639
|
+
}
|
|
20640
|
+
if (fill) {
|
|
20641
|
+
col_errLog('vxe.error.notSupportProp', ['grid-layout', `fill=${fill}`, 'fill=false']);
|
|
20642
|
+
}
|
|
20643
|
+
}
|
|
20644
|
+
}
|
|
20645
|
+
});
|
|
20620
20646
|
$xeCol.renderVN = renderVN;
|
|
20621
20647
|
return $xeCol;
|
|
20622
20648
|
},
|
|
@@ -36614,6 +36640,7 @@ const {
|
|
|
36614
36640
|
createEvent: scrollbar_createEvent,
|
|
36615
36641
|
domUtils: scrollbar_domUtils,
|
|
36616
36642
|
globalResize: scrollbar_globalResize,
|
|
36643
|
+
globalEvents: scrollbar_globalEvents,
|
|
36617
36644
|
renderEmptyElement: scrollbar_renderEmptyElement
|
|
36618
36645
|
} = VxeUI;
|
|
36619
36646
|
function scrollbar_createReactData() {
|
|
@@ -37194,9 +37221,7 @@ function scrollbar_createInternalData() {
|
|
|
37194
37221
|
reFlag.value++;
|
|
37195
37222
|
});
|
|
37196
37223
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(reFlag, () => {
|
|
37197
|
-
$xeScrollbar.recalculate()
|
|
37198
|
-
$xeScrollbar.recalculate();
|
|
37199
|
-
});
|
|
37224
|
+
$xeScrollbar.recalculate();
|
|
37200
37225
|
});
|
|
37201
37226
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
37202
37227
|
const {
|
|
@@ -37219,6 +37244,9 @@ function scrollbar_createInternalData() {
|
|
|
37219
37244
|
internalData.resizeObserver = resizeObserver;
|
|
37220
37245
|
}
|
|
37221
37246
|
reFlag.value++;
|
|
37247
|
+
scrollbar_globalEvents.on($xeScrollbar, 'resize', () => {
|
|
37248
|
+
reFlag.value++;
|
|
37249
|
+
});
|
|
37222
37250
|
});
|
|
37223
37251
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
37224
37252
|
const {
|
|
@@ -37227,6 +37255,7 @@ function scrollbar_createInternalData() {
|
|
|
37227
37255
|
if (resizeObserver) {
|
|
37228
37256
|
resizeObserver.disconnect();
|
|
37229
37257
|
}
|
|
37258
|
+
scrollbar_globalEvents.off($xeScrollbar, 'resize');
|
|
37230
37259
|
});
|
|
37231
37260
|
$xeScrollbar.renderVN = renderVN;
|
|
37232
37261
|
return $xeScrollbar;
|
|
@@ -46355,9 +46384,17 @@ const Result = VxeResult;
|
|
|
46355
46384
|
|
|
46356
46385
|
|
|
46357
46386
|
|
|
46387
|
+
|
|
46388
|
+
const {
|
|
46389
|
+
warnLog: row_warnLog
|
|
46390
|
+
} = createComponentLog('row');
|
|
46358
46391
|
/* harmony default export */ var row = (defineVxeComponent({
|
|
46359
46392
|
name: 'VxeRow',
|
|
46360
46393
|
props: {
|
|
46394
|
+
gridLayout: {
|
|
46395
|
+
type: Boolean,
|
|
46396
|
+
default: () => getConfig().row.gridLayout
|
|
46397
|
+
},
|
|
46361
46398
|
gutter: [Number, String, Array],
|
|
46362
46399
|
wrap: {
|
|
46363
46400
|
type: Boolean,
|
|
@@ -46384,25 +46421,31 @@ const Result = VxeResult;
|
|
|
46384
46421
|
};
|
|
46385
46422
|
const computeRowStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
46386
46423
|
const {
|
|
46424
|
+
gridLayout,
|
|
46387
46425
|
gutter,
|
|
46388
46426
|
vertical
|
|
46389
46427
|
} = props;
|
|
46390
46428
|
const style = {};
|
|
46391
46429
|
if (gutter) {
|
|
46392
46430
|
let [lrGutter, tbGutter] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(gutter) ? gutter : [gutter];
|
|
46393
|
-
if (
|
|
46394
|
-
|
|
46395
|
-
|
|
46396
|
-
}
|
|
46397
|
-
|
|
46398
|
-
|
|
46399
|
-
|
|
46400
|
-
|
|
46401
|
-
|
|
46402
|
-
|
|
46403
|
-
|
|
46404
|
-
|
|
46405
|
-
|
|
46431
|
+
if (gridLayout) {
|
|
46432
|
+
style.columnGap = toCssUnit(lrGutter);
|
|
46433
|
+
style.rowGap = toCssUnit(tbGutter || lrGutter);
|
|
46434
|
+
} else {
|
|
46435
|
+
if (vertical) {
|
|
46436
|
+
tbGutter = lrGutter;
|
|
46437
|
+
lrGutter = '';
|
|
46438
|
+
}
|
|
46439
|
+
if (lrGutter) {
|
|
46440
|
+
const offsetSize = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(lrGutter) ? toCssUnit(-(lrGutter / 2)) : `calc(${toCssUnit(lrGutter)} / 2 * -1)`;
|
|
46441
|
+
style.marginLeft = offsetSize;
|
|
46442
|
+
style.marginRight = offsetSize;
|
|
46443
|
+
}
|
|
46444
|
+
if (tbGutter) {
|
|
46445
|
+
const offsetSize = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(tbGutter) ? toCssUnit(-(tbGutter / 2)) : `calc(${toCssUnit(tbGutter)} / 2 * -1)`;
|
|
46446
|
+
style.marginTop = offsetSize;
|
|
46447
|
+
style.marginBottom = offsetSize;
|
|
46448
|
+
}
|
|
46406
46449
|
}
|
|
46407
46450
|
}
|
|
46408
46451
|
return style;
|
|
@@ -46431,6 +46474,7 @@ const Result = VxeResult;
|
|
|
46431
46474
|
Object.assign($xeRow, rowMethods, rowPrivateMethods);
|
|
46432
46475
|
const renderVN = () => {
|
|
46433
46476
|
const {
|
|
46477
|
+
gridLayout,
|
|
46434
46478
|
vertical,
|
|
46435
46479
|
wrap
|
|
46436
46480
|
} = props;
|
|
@@ -46438,7 +46482,7 @@ const Result = VxeResult;
|
|
|
46438
46482
|
const defaultSlot = slots.default;
|
|
46439
46483
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46440
46484
|
ref: refElem,
|
|
46441
|
-
class: ['vxe-row', {
|
|
46485
|
+
class: ['vxe-row', gridLayout ? 'grid--layout' : 'def--layout', {
|
|
46442
46486
|
'is--vertical': vertical,
|
|
46443
46487
|
'is--wrap': wrap
|
|
46444
46488
|
}],
|
|
@@ -46446,6 +46490,15 @@ const Result = VxeResult;
|
|
|
46446
46490
|
onClick: clickEvent
|
|
46447
46491
|
}, defaultSlot ? defaultSlot({}) : []);
|
|
46448
46492
|
};
|
|
46493
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
46494
|
+
const {
|
|
46495
|
+
gridLayout,
|
|
46496
|
+
wrap
|
|
46497
|
+
} = props;
|
|
46498
|
+
if (gridLayout && !wrap) {
|
|
46499
|
+
row_warnLog('vxe.error.notSupportProp', ['grid-layout', 'wrap=false', 'wrap=true']);
|
|
46500
|
+
}
|
|
46501
|
+
});
|
|
46449
46502
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeRow', $xeRow);
|
|
46450
46503
|
$xeRow.renderVN = renderVN;
|
|
46451
46504
|
return $xeRow;
|