vxe-pc-ui 4.16.15 → 4.16.17
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 +27 -19
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/split/style.css +29 -18
- package/es/split/style.min.css +1 -1
- package/es/splitter/src/splitter.js +21 -16
- package/es/splitter/style.css +29 -18
- package/es/splitter/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +4 -1
- package/es/ui/src/log.js +2 -2
- package/es/vxe-split/style.css +29 -18
- package/es/vxe-split/style.min.css +1 -1
- package/es/vxe-splitter/style.css +29 -18
- package/es/vxe-splitter/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 +32 -21
- package/lib/index.umd.min.js +1 -1
- package/lib/split/style/style.css +29 -18
- package/lib/split/style/style.min.css +1 -1
- package/lib/splitter/src/splitter.js +26 -18
- package/lib/splitter/src/splitter.min.js +1 -1
- package/lib/splitter/style/style.css +29 -18
- package/lib/splitter/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +4 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +2 -2
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-split/style/style.css +29 -18
- package/lib/vxe-split/style/style.min.css +1 -1
- package/lib/vxe-splitter/style/style.css +29 -18
- package/lib/vxe-splitter/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/splitter/src/splitter.ts +21 -16
- package/packages/ui/index.ts +3 -0
- package/packages/ui/src/log.ts +1 -1
- package/styles/components/splitter.scss +42 -18
- package/styles/theme/base.scss +4 -5
- package/styles/theme/dark.scss +0 -1
- package/styles/theme/light.scss +0 -1
- package/styles/variable.scss +1 -1
- package/types/components/button.d.ts +7 -0
- package/types/components/color-picker.d.ts +7 -0
- package/types/components/date-picker.d.ts +7 -0
- package/types/components/date-range-picker.d.ts +7 -0
- package/types/components/gantt.d.ts +12 -0
- package/types/components/pulldown.d.ts +7 -0
- package/types/components/select.d.ts +7 -0
- package/types/components/splitter.d.ts +4 -0
- package/types/components/table-select.d.ts +7 -0
- package/types/components/tree-select.d.ts +7 -0
- /package/es/icon/{iconfont.1784366410181.ttf → iconfont.1784627055150.ttf} +0 -0
- /package/es/icon/{iconfont.1784366410181.woff → iconfont.1784627055150.woff} +0 -0
- /package/es/icon/{iconfont.1784366410181.woff2 → iconfont.1784627055150.woff2} +0 -0
- /package/es/{iconfont.1784366410181.ttf → iconfont.1784627055150.ttf} +0 -0
- /package/es/{iconfont.1784366410181.woff → iconfont.1784627055150.woff} +0 -0
- /package/es/{iconfont.1784366410181.woff2 → iconfont.1784627055150.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1784366410181.ttf → iconfont.1784627055150.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1784366410181.woff → iconfont.1784627055150.woff} +0 -0
- /package/lib/icon/style/{iconfont.1784366410181.woff2 → iconfont.1784627055150.woff2} +0 -0
- /package/lib/{iconfont.1784366410181.ttf → iconfont.1784627055150.ttf} +0 -0
- /package/lib/{iconfont.1784366410181.woff → iconfont.1784627055150.woff} +0 -0
- /package/lib/{iconfont.1784366410181.woff2 → iconfont.1784627055150.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -81,12 +81,12 @@ function checkDynamic() {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const { log } = VxeUI;
|
|
84
|
-
const uiVersion = `ui v${"4.16.
|
|
84
|
+
const uiVersion = `ui v${"4.16.17"}`;
|
|
85
85
|
function createComponentLog(name) {
|
|
86
86
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
87
87
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
88
88
|
const designVersion = VxeUI.designVersion ? `design v${VxeUI.designVersion}` : '';
|
|
89
|
-
const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].join(' ');
|
|
89
|
+
const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter(v => v).join(' ');
|
|
90
90
|
return {
|
|
91
91
|
warnLog: log.create('warn', versionInfo + '] [' + name),
|
|
92
92
|
errLog: log.create('error', versionInfo + '] [' + name)
|
|
@@ -95,7 +95,7 @@ function createComponentLog(name) {
|
|
|
95
95
|
const warnLog$h = log.create('warn', uiVersion);
|
|
96
96
|
log.create('error', uiVersion);
|
|
97
97
|
|
|
98
|
-
const version = "4.16.
|
|
98
|
+
const version = "4.16.17";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -454,6 +454,9 @@ setConfig$1({
|
|
|
454
454
|
resizeConfig: {
|
|
455
455
|
// immediate: false,
|
|
456
456
|
showTip: true
|
|
457
|
+
},
|
|
458
|
+
actionConfig: {
|
|
459
|
+
autoHideButton: true
|
|
457
460
|
}
|
|
458
461
|
},
|
|
459
462
|
splitterPanel: {},
|
|
@@ -36150,9 +36153,10 @@ var VxeSplitComponent = defineVxeComponent({
|
|
|
36150
36153
|
widthRatio: widthCount / 100
|
|
36151
36154
|
};
|
|
36152
36155
|
});
|
|
36153
|
-
const
|
|
36156
|
+
const computeWrapperStyle = computed(() => {
|
|
36157
|
+
const { width, height } = props;
|
|
36154
36158
|
const barOpts = computeBarOpts.value;
|
|
36155
|
-
const { width, height } = barOpts;
|
|
36159
|
+
const { width: barWidth, height: barHeight } = barOpts;
|
|
36156
36160
|
const stys = {};
|
|
36157
36161
|
if (height) {
|
|
36158
36162
|
stys.height = toCssUnit(height);
|
|
@@ -36160,6 +36164,12 @@ var VxeSplitComponent = defineVxeComponent({
|
|
|
36160
36164
|
if (width) {
|
|
36161
36165
|
stys.width = toCssUnit(width);
|
|
36162
36166
|
}
|
|
36167
|
+
if (barHeight) {
|
|
36168
|
+
stys['--vxe-ui-splitter-handle-bar-vertical-height'] = toCssUnit(barHeight);
|
|
36169
|
+
}
|
|
36170
|
+
if (barWidth) {
|
|
36171
|
+
stys['--vxe-ui-splitter-handle-bar-horizontal-width'] = toCssUnit(barWidth);
|
|
36172
|
+
}
|
|
36163
36173
|
return stys;
|
|
36164
36174
|
});
|
|
36165
36175
|
const computeMaps = {
|
|
@@ -36765,7 +36775,6 @@ var VxeSplitComponent = defineVxeComponent({
|
|
|
36765
36775
|
const renderHandleBar = (prevItem, nextItem) => {
|
|
36766
36776
|
const { border, resize, vertical } = props;
|
|
36767
36777
|
const { itemList } = reactData;
|
|
36768
|
-
const barStyle = computeBarStyle.value;
|
|
36769
36778
|
const actionOpts = computeActionOpts.value;
|
|
36770
36779
|
const { direction } = actionOpts;
|
|
36771
36780
|
const showPrevButton = XEUtils.isBoolean(actionOpts.showPrevButton) ? actionOpts.showPrevButton : (itemList.some(item => item.showAction));
|
|
@@ -36780,7 +36789,6 @@ var VxeSplitComponent = defineVxeComponent({
|
|
|
36780
36789
|
}, [
|
|
36781
36790
|
h('div', {
|
|
36782
36791
|
class: 'vxe-splitter-panel-handle-bar',
|
|
36783
|
-
style: barStyle,
|
|
36784
36792
|
onMousedown: dragEvent
|
|
36785
36793
|
}),
|
|
36786
36794
|
itemList.length === 2
|
|
@@ -36789,7 +36797,7 @@ var VxeSplitComponent = defineVxeComponent({
|
|
|
36789
36797
|
}, [
|
|
36790
36798
|
showPrevButton && nextItem.isExpand
|
|
36791
36799
|
? h('div', {
|
|
36792
|
-
class: 'vxe-splitter-panel-action-btn',
|
|
36800
|
+
class: ['vxe-splitter-panel-action-btn', prevItem.isExpand ? 'is--prev' : 'is--next'],
|
|
36793
36801
|
onDblclick: handlePrevActionDblclickEvent,
|
|
36794
36802
|
onClick: handlePrevActionClickEvent
|
|
36795
36803
|
}, [
|
|
@@ -36800,7 +36808,7 @@ var VxeSplitComponent = defineVxeComponent({
|
|
|
36800
36808
|
: renderEmptyElement($xeSplitter),
|
|
36801
36809
|
showNextButton && prevItem.isExpand
|
|
36802
36810
|
? h('div', {
|
|
36803
|
-
class: 'vxe-splitter-panel-action-btn',
|
|
36811
|
+
class: ['vxe-splitter-panel-action-btn', nextItem.isExpand ? 'is--next' : 'is--prev'],
|
|
36804
36812
|
onDblclick: handleNextActionDblclickEvent,
|
|
36805
36813
|
onClick: handleNextActionClickEvent
|
|
36806
36814
|
}, [
|
|
@@ -36817,10 +36825,13 @@ var VxeSplitComponent = defineVxeComponent({
|
|
|
36817
36825
|
const { border, padding, resize, vertical } = props;
|
|
36818
36826
|
const { itemList } = reactData;
|
|
36819
36827
|
const vSize = computeSize.value;
|
|
36828
|
+
const actionOpts = computeActionOpts.value;
|
|
36829
|
+
const { autoHideButton } = actionOpts;
|
|
36820
36830
|
const resizeOpts = computeResizeOpts.value;
|
|
36821
36831
|
const { immediate } = resizeOpts;
|
|
36822
36832
|
const visibleItems = computeVisibleItems.value;
|
|
36823
36833
|
const { autoItems } = computeAutoItems.value;
|
|
36834
|
+
const isOnlyView = visibleItems.length <= 1;
|
|
36824
36835
|
const itemVNs = [];
|
|
36825
36836
|
itemList.forEach((prevItem, index) => {
|
|
36826
36837
|
const { id, name, slots, renderHeight, resizeHeight, foldHeight, renderWidth, resizeWidth, foldWidth, isExpand } = prevItem;
|
|
@@ -36884,28 +36895,25 @@ var VxeSplitComponent = defineVxeComponent({
|
|
|
36884
36895
|
}
|
|
36885
36896
|
});
|
|
36886
36897
|
return h('div', {
|
|
36887
|
-
class: 'vxe-splitter-wrapper'
|
|
36898
|
+
class: ['vxe-splitter-wrapper', {
|
|
36899
|
+
'is--ah-btn': autoHideButton,
|
|
36900
|
+
'is--only-view': isOnlyView
|
|
36901
|
+
}]
|
|
36888
36902
|
}, itemVNs);
|
|
36889
36903
|
};
|
|
36890
36904
|
const renderVN = () => {
|
|
36891
|
-
const { vertical
|
|
36905
|
+
const { vertical } = props;
|
|
36892
36906
|
const vSize = computeSize.value;
|
|
36893
36907
|
const resizeOpts = computeResizeOpts.value;
|
|
36908
|
+
const wrapperStyle = computeWrapperStyle.value;
|
|
36894
36909
|
const { immediate, showTip } = resizeOpts;
|
|
36895
36910
|
const defaultSlot = slots.default;
|
|
36896
|
-
const stys = {};
|
|
36897
|
-
if (height) {
|
|
36898
|
-
stys.height = toCssUnit(height);
|
|
36899
|
-
}
|
|
36900
|
-
if (width) {
|
|
36901
|
-
stys.width = toCssUnit(width);
|
|
36902
|
-
}
|
|
36903
36911
|
return h('div', {
|
|
36904
36912
|
ref: refElem,
|
|
36905
36913
|
class: ['vxe-splitter', vertical ? 'is--vertical' : 'is--horizontal', immediate ? 'is-resize--immediate' : 'is-resize--lazy', {
|
|
36906
36914
|
[`size--${vSize}`]: vSize
|
|
36907
36915
|
}],
|
|
36908
|
-
style:
|
|
36916
|
+
style: wrapperStyle
|
|
36909
36917
|
}, [
|
|
36910
36918
|
h('div', {
|
|
36911
36919
|
class: 'vxe-splitter-slots'
|