vxe-pc-ui 3.18.3 → 3.18.5
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/color-picker/src/color-picker.js +14 -1
- package/es/date-picker/src/date-picker.js +14 -1
- package/es/date-range-picker/src/date-range-picker.js +14 -1
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +18 -5
- package/es/input/src/input.js +14 -1
- package/es/language/en-US.js +2 -2
- package/es/language/zh-CHT.js +2 -2
- package/es/language/zh-CN.js +2 -2
- package/es/number-input/src/number-input.js +12 -1
- package/es/password-input/src/password-input.js +14 -0
- package/es/select/src/select.js +20 -7
- package/es/space/src/space.js +8 -4
- 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/color-picker/src/color-picker.js +14 -1
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +13 -0
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +13 -0
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +18 -5
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +131 -21
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +13 -0
- package/lib/input/src/input.min.js +1 -1
- package/lib/language/en-US.js +2 -2
- package/lib/language/en-US.min.js +1 -1
- package/lib/language/en-US.umd.js +2 -2
- package/lib/language/zh-CHT.js +2 -2
- package/lib/language/zh-CHT.min.js +1 -1
- package/lib/language/zh-CHT.umd.js +2 -2
- package/lib/language/zh-CN.js +2 -2
- package/lib/language/zh-CN.min.js +1 -1
- package/lib/language/zh-CN.umd.js +2 -2
- package/lib/number-input/src/number-input.js +11 -0
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +14 -0
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/select/src/select.js +20 -7
- package/lib/select/src/select.min.js +1 -1
- package/lib/space/src/space.js +9 -4
- package/lib/space/src/space.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/color-picker/src/color-picker.ts +16 -2
- package/packages/date-picker/src/date-picker.ts +16 -2
- package/packages/date-range-picker/src/date-range-picker.ts +16 -2
- package/packages/icon-picker/src/icon-picker.ts +19 -5
- package/packages/input/src/input.ts +15 -1
- package/packages/language/en-US.ts +2 -2
- package/packages/language/zh-CHT.ts +2 -2
- package/packages/language/zh-CN.ts +2 -2
- package/packages/number-input/src/number-input.ts +14 -2
- package/packages/password-input/src/password-input.ts +16 -1
- package/packages/select/src/select.ts +21 -7
- package/packages/space/src/space.ts +8 -4
- package/types/components/color-picker.d.ts +2 -0
- package/types/components/date-picker.d.ts +2 -0
- package/types/components/date-range-picker.d.ts +2 -0
- package/types/components/gantt.d.ts +62 -3
- package/types/components/icon-picker.d.ts +2 -0
- package/types/components/input.d.ts +5 -0
- package/types/components/number-input.d.ts +5 -0
- package/types/components/password-input.d.ts +5 -0
- package/types/components/select.d.ts +5 -0
- package/types/components/space.d.ts +5 -0
- /package/es/icon/{iconfont.1788745444732.ttf → iconfont.1788857081434.ttf} +0 -0
- /package/es/icon/{iconfont.1788745444732.woff → iconfont.1788857081434.woff} +0 -0
- /package/es/icon/{iconfont.1788745444732.woff2 → iconfont.1788857081434.woff2} +0 -0
- /package/es/{iconfont.1788745444732.ttf → iconfont.1788857081434.ttf} +0 -0
- /package/es/{iconfont.1788745444732.woff → iconfont.1788857081434.woff} +0 -0
- /package/es/{iconfont.1788745444732.woff2 → iconfont.1788857081434.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788745444732.ttf → iconfont.1788857081434.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788745444732.woff → iconfont.1788857081434.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788745444732.woff2 → iconfont.1788857081434.woff2} +0 -0
- /package/lib/{iconfont.1788745444732.ttf → iconfont.1788857081434.ttf} +0 -0
- /package/lib/{iconfont.1788745444732.woff → iconfont.1788857081434.woff} +0 -0
- /package/lib/{iconfont.1788745444732.woff2 → iconfont.1788857081434.woff2} +0 -0
package/es/space/src/space.js
CHANGED
|
@@ -18,6 +18,7 @@ export default {
|
|
|
18
18
|
type: Boolean,
|
|
19
19
|
default: () => getConfig().space.wrap
|
|
20
20
|
},
|
|
21
|
+
width: [Number, String],
|
|
21
22
|
gap: {
|
|
22
23
|
type: [Number, String, Array, Object],
|
|
23
24
|
default: () => getConfig().space.gap
|
|
@@ -73,10 +74,10 @@ export default {
|
|
|
73
74
|
reactData
|
|
74
75
|
};
|
|
75
76
|
},
|
|
76
|
-
computed: Object.assign(Object.assign({}, {}), {
|
|
77
|
+
computed: Object.assign(Object.assign({}, {}), { computeCurrStyle() {
|
|
77
78
|
const $xeSpace = this;
|
|
78
79
|
const props = $xeSpace;
|
|
79
|
-
const { align, gap } = props;
|
|
80
|
+
const { align, gap, width } = props;
|
|
80
81
|
const stys = {};
|
|
81
82
|
let rowGap = '';
|
|
82
83
|
let columGap = '';
|
|
@@ -94,6 +95,9 @@ export default {
|
|
|
94
95
|
columGap = gap.columGap || '';
|
|
95
96
|
}
|
|
96
97
|
}
|
|
98
|
+
if (width) {
|
|
99
|
+
stys.width = toCssUnit(width);
|
|
100
|
+
}
|
|
97
101
|
if (align) {
|
|
98
102
|
stys['align-items'] = align;
|
|
99
103
|
}
|
|
@@ -158,7 +162,7 @@ export default {
|
|
|
158
162
|
const $xeSpace = this;
|
|
159
163
|
const props = $xeSpace;
|
|
160
164
|
const { vertical, wrap, className, fill, itemWidth, itemMinWidth, itemMaxWidth } = props;
|
|
161
|
-
const
|
|
165
|
+
const currStyle = $xeSpace.computeCurrStyle;
|
|
162
166
|
const vSize = $xeSpace.computeSize;
|
|
163
167
|
return h('div', {
|
|
164
168
|
ref: 'refElem',
|
|
@@ -169,7 +173,7 @@ export default {
|
|
|
169
173
|
'is--fill': fill,
|
|
170
174
|
'is--width': itemWidth || itemMinWidth || itemMaxWidth
|
|
171
175
|
}],
|
|
172
|
-
style:
|
|
176
|
+
style: currStyle
|
|
173
177
|
}, $xeSpace.renderItems(h));
|
|
174
178
|
}
|
|
175
179
|
},
|