vxe-pc-ui 4.17.20 → 4.17.21
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 +202 -87
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/slider/src/slider.js +167 -72
- package/es/slider/style.css +8 -15
- package/es/slider/style.min.css +1 -1
- package/es/space/src/space.js +31 -11
- 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-slider/style.css +8 -15
- package/es/vxe-slider/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 +210 -92
- package/lib/index.umd.min.js +1 -1
- package/lib/slider/src/slider.js +170 -78
- package/lib/slider/src/slider.min.js +1 -1
- package/lib/slider/style/style.css +8 -15
- package/lib/slider/style/style.min.css +1 -1
- package/lib/space/src/space.js +36 -11
- package/lib/space/src/space.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-slider/style/style.css +8 -15
- package/lib/vxe-slider/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 +4 -3
- package/packages/slider/src/slider.ts +165 -72
- package/packages/space/src/space.ts +37 -12
- package/styles/components/slider.scss +8 -13
- package/styles/components/space.scss +1 -0
- package/types/components/slider.d.ts +9 -2
- package/types/components/space.d.ts +2 -0
- /package/es/icon/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/es/icon/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
- /package/es/icon/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/es/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/es/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
- /package/es/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/lib/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/lib/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
- /package/lib/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
package/es/space/src/space.js
CHANGED
|
@@ -34,6 +34,10 @@ export default defineVxeComponent({
|
|
|
34
34
|
separator: {
|
|
35
35
|
type: String,
|
|
36
36
|
default: () => getConfig().space.separator
|
|
37
|
+
},
|
|
38
|
+
align: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: () => getConfig().space.align
|
|
37
41
|
}
|
|
38
42
|
},
|
|
39
43
|
emits: [],
|
|
@@ -49,7 +53,7 @@ export default defineVxeComponent({
|
|
|
49
53
|
refElem
|
|
50
54
|
};
|
|
51
55
|
const computeWrapperStyle = computed(() => {
|
|
52
|
-
const { gap } = props;
|
|
56
|
+
const { align, gap } = props;
|
|
53
57
|
const stys = {};
|
|
54
58
|
let rowGap = '';
|
|
55
59
|
let columGap = '';
|
|
@@ -67,6 +71,9 @@ export default defineVxeComponent({
|
|
|
67
71
|
columGap = gap.columGap || '';
|
|
68
72
|
}
|
|
69
73
|
}
|
|
74
|
+
if (align) {
|
|
75
|
+
stys['align-items'] = align;
|
|
76
|
+
}
|
|
70
77
|
if (!eqEmptyValue(rowGap)) {
|
|
71
78
|
stys['--vxe-ui-space-current-row-gap'] = toCssUnit(rowGap);
|
|
72
79
|
}
|
|
@@ -92,11 +99,31 @@ export default defineVxeComponent({
|
|
|
92
99
|
};
|
|
93
100
|
const spacePrivateMethods = {};
|
|
94
101
|
Object.assign($xeSpace, spaceMethods, spacePrivateMethods);
|
|
102
|
+
const renderItems = () => {
|
|
103
|
+
const { separator, itemClassName } = props;
|
|
104
|
+
const itemVNs = [];
|
|
105
|
+
const defaultSlot = slots.default;
|
|
106
|
+
const separatorSlot = slots.separator;
|
|
107
|
+
if (defaultSlot) {
|
|
108
|
+
XEUtils.each(defaultSlot({}), (itemVN, index, items) => {
|
|
109
|
+
itemVNs.push(h('div', {
|
|
110
|
+
key: 'i' + index,
|
|
111
|
+
class: ['vxe-space--item', getPropClass(itemClassName, { index })]
|
|
112
|
+
}, [itemVN]));
|
|
113
|
+
if ((separator || separatorSlot) && index < items.length - 1) {
|
|
114
|
+
itemVNs.push(h('div', {
|
|
115
|
+
key: 's' + index,
|
|
116
|
+
class: 'vxe-space--separator'
|
|
117
|
+
}, separatorSlot ? separatorSlot({}) : ('' + separator)));
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return itemVNs;
|
|
122
|
+
};
|
|
95
123
|
const renderVN = () => {
|
|
96
|
-
const { vertical, wrap, className
|
|
124
|
+
const { vertical, wrap, className } = props;
|
|
97
125
|
const wrapperStyle = computeWrapperStyle.value;
|
|
98
126
|
const vSize = computeSize.value;
|
|
99
|
-
const defaultSlot = slots.default;
|
|
100
127
|
return h('div', {
|
|
101
128
|
ref: refElem,
|
|
102
129
|
class: ['vxe-space', getPropClass(className, {}), {
|
|
@@ -105,14 +132,7 @@ export default defineVxeComponent({
|
|
|
105
132
|
'is--vertical': vertical
|
|
106
133
|
}],
|
|
107
134
|
style: wrapperStyle
|
|
108
|
-
},
|
|
109
|
-
? (defaultSlot({}) || []).map((itemVN, index) => {
|
|
110
|
-
return h('div', {
|
|
111
|
-
key: index,
|
|
112
|
-
class: ['vxe-space--item', getPropClass(itemClassName, { index })]
|
|
113
|
-
}, [itemVN]);
|
|
114
|
-
})
|
|
115
|
-
: []);
|
|
135
|
+
}, renderItems());
|
|
116
136
|
};
|
|
117
137
|
$xeSpace.renderVN = renderVN;
|
|
118
138
|
return $xeSpace;
|
package/es/space/style.css
CHANGED
package/es/space/style.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-space{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-default);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-default)}.vxe-space.size--xlarge{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-xlarge);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-xlarge)}.vxe-space.size--large{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-large);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-large)}.vxe-space.size--medium{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-medium);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-medium)}.vxe-space.size--small{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-small);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-small)}.vxe-space.size--mini{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-mini);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-mini)}.vxe-space{display:inline-flex;flex-direction:row;gap:var(--vxe-ui-space-current-row-gap) var(--vxe-ui-space-current-column-gap)}.vxe-space.is--wrap{flex-wrap:wrap}.vxe-space.is--vertical{flex-direction:column}
|
|
1
|
+
.vxe-space{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-default);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-default)}.vxe-space.size--xlarge{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-xlarge);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-xlarge)}.vxe-space.size--large{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-large);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-large)}.vxe-space.size--medium{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-medium);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-medium)}.vxe-space.size--small{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-small);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-small)}.vxe-space.size--mini{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-mini);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-mini)}.vxe-space{display:inline-flex;flex-direction:row;align-items:center;gap:var(--vxe-ui-space-current-row-gap) var(--vxe-ui-space-current-column-gap)}.vxe-space.is--wrap{flex-wrap:wrap}.vxe-space.is--vertical{flex-direction:column}
|