vxe-pc-ui 3.17.19 → 3.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/es/components.js +31 -1
- package/es/icon/style.css +1 -1
- package/es/slider/src/slider.js +220 -82
- package/es/slider/style.css +8 -15
- package/es/slider/style.min.css +1 -1
- package/es/space/index.js +12 -0
- package/es/space/src/space.js +143 -0
- package/es/space/style.css +37 -0
- package/es/space/style.min.css +1 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/dom.js +3 -0
- 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/index.js +3 -0
- package/es/vxe-space/style.css +37 -0
- package/es/vxe-space/style.min.css +1 -0
- package/lib/components.js +41 -2
- package/lib/components.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +462 -91
- package/lib/index.umd.min.js +1 -1
- package/lib/slider/src/slider.js +237 -87
- 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/index.js +19 -0
- package/lib/space/index.min.js +1 -0
- package/lib/space/src/space.js +172 -0
- package/lib/space/src/space.min.js +1 -0
- package/lib/space/style/index.js +1 -0
- package/lib/space/style/style.css +37 -0
- package/lib/space/style/style.min.css +1 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +2 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +4 -0
- package/lib/ui/src/dom.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/index.js +22 -0
- package/lib/vxe-space/index.min.js +1 -0
- package/lib/vxe-space/style/index.js +1 -0
- package/lib/vxe-space/style/style.css +37 -0
- package/lib/vxe-space/style/style.min.css +1 -0
- package/package.json +2 -2
- package/packages/components.ts +31 -1
- package/packages/slider/src/slider.ts +226 -80
- package/packages/space/index.ts +16 -0
- package/packages/space/src/space.ts +159 -0
- package/packages/ui/index.ts +1 -0
- package/packages/ui/src/dom.ts +4 -0
- package/styles/all.scss +1 -0
- package/styles/components/slider.scss +8 -13
- package/styles/components/space.scss +38 -0
- package/styles/theme/base.scss +20 -6
- package/types/all.d.ts +3 -0
- package/types/components/slider.d.ts +13 -0
- package/types/components/space.d.ts +102 -0
- package/types/ui/global-config.d.ts +2 -0
- /package/es/icon/{iconfont.1787739873173.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/es/icon/{iconfont.1787739873173.woff → iconfont.1787994741699.woff} +0 -0
- /package/es/icon/{iconfont.1787739873173.woff2 → iconfont.1787994741699.woff2} +0 -0
- /package/es/{iconfont.1787739873173.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/es/{iconfont.1787739873173.woff → iconfont.1787994741699.woff} +0 -0
- /package/es/{iconfont.1787739873173.woff2 → iconfont.1787994741699.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787739873173.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787739873173.woff → iconfont.1787994741699.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787739873173.woff2 → iconfont.1787994741699.woff2} +0 -0
- /package/lib/{iconfont.1787739873173.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/lib/{iconfont.1787739873173.woff → iconfont.1787994741699.woff} +0 -0
- /package/lib/{iconfont.1787739873173.woff2 → iconfont.1787994741699.woff2} +0 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _comp = require("../../ui/src/comp");
|
|
8
|
+
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
9
|
+
var _ui = require("../../ui");
|
|
10
|
+
var _dom = require("../../ui/src/dom");
|
|
11
|
+
var _utils = require("../../ui/src/utils");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17
|
+
var _default2 = exports.default = /* define-vxe-component start */(0, _comp.defineVxeComponent)({
|
|
18
|
+
name: 'VxeSpace',
|
|
19
|
+
mixins: [_ui.globalMixins.sizeMixin, _ui.globalMixins.permissionMixin],
|
|
20
|
+
props: {
|
|
21
|
+
size: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: function _default() {
|
|
24
|
+
return (0, _ui.getConfig)().space.size || (0, _ui.getConfig)().size;
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
wrap: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: function _default() {
|
|
30
|
+
return (0, _ui.getConfig)().space.wrap;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
gap: {
|
|
34
|
+
type: [Number, String, Array, Object],
|
|
35
|
+
default: function _default() {
|
|
36
|
+
return (0, _ui.getConfig)().space.gap;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
vertical: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: function _default() {
|
|
42
|
+
return (0, _ui.getConfig)().space.vertical;
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
className: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: function _default() {
|
|
48
|
+
return (0, _ui.getConfig)().space.className;
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
itemClassName: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: function _default() {
|
|
54
|
+
return (0, _ui.getConfig)().space.itemClassName;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
separator: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: function _default() {
|
|
60
|
+
return (0, _ui.getConfig)().space.separator;
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
align: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: function _default() {
|
|
66
|
+
return (0, _ui.getConfig)().space.align;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
data: function data() {
|
|
71
|
+
var xID = _xeUtils.default.uniqueId();
|
|
72
|
+
var reactData = {
|
|
73
|
+
activeValue: null
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
xID: xID,
|
|
77
|
+
reactData: reactData
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
computed: Object.assign(Object.assign({}, {}), {
|
|
81
|
+
computeWrapperStyle: function computeWrapperStyle() {
|
|
82
|
+
var $xeSpace = this;
|
|
83
|
+
var props = $xeSpace;
|
|
84
|
+
var align = props.align,
|
|
85
|
+
gap = props.gap;
|
|
86
|
+
var stys = {};
|
|
87
|
+
var rowGap = '';
|
|
88
|
+
var columGap = '';
|
|
89
|
+
if (_xeUtils.default.isNumber(gap) || _xeUtils.default.isString(gap)) {
|
|
90
|
+
rowGap = gap;
|
|
91
|
+
columGap = gap;
|
|
92
|
+
} else if (gap) {
|
|
93
|
+
if (_xeUtils.default.isArray(gap)) {
|
|
94
|
+
rowGap = gap[0];
|
|
95
|
+
columGap = gap[1];
|
|
96
|
+
} else {
|
|
97
|
+
rowGap = gap.rowGap || '';
|
|
98
|
+
columGap = gap.columGap || '';
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (align) {
|
|
102
|
+
stys['align-items'] = align;
|
|
103
|
+
}
|
|
104
|
+
if (!(0, _utils.eqEmptyValue)(rowGap)) {
|
|
105
|
+
stys['--vxe-ui-space-current-row-gap'] = (0, _dom.toCssUnit)(rowGap);
|
|
106
|
+
}
|
|
107
|
+
if (!(0, _utils.eqEmptyValue)(columGap)) {
|
|
108
|
+
stys['--vxe-ui-space-current-column-gap'] = (0, _dom.toCssUnit)(columGap);
|
|
109
|
+
}
|
|
110
|
+
return stys;
|
|
111
|
+
}
|
|
112
|
+
}),
|
|
113
|
+
methods: {
|
|
114
|
+
//
|
|
115
|
+
// Method
|
|
116
|
+
//
|
|
117
|
+
dispatchEvent: function dispatchEvent(type, params, evnt) {
|
|
118
|
+
var $xeSpace = this;
|
|
119
|
+
$xeSpace.$emit(type, (0, _ui.createEvent)(evnt, {
|
|
120
|
+
$space: $xeSpace
|
|
121
|
+
}, params));
|
|
122
|
+
},
|
|
123
|
+
//
|
|
124
|
+
// Render
|
|
125
|
+
//
|
|
126
|
+
renderItems: function renderItems(h) {
|
|
127
|
+
var $xeSpace = this;
|
|
128
|
+
var props = $xeSpace;
|
|
129
|
+
var slots = $xeSpace.$scopedSlots;
|
|
130
|
+
var separator = props.separator,
|
|
131
|
+
itemClassName = props.itemClassName;
|
|
132
|
+
var itemVNs = [];
|
|
133
|
+
var defaultSlot = slots.default;
|
|
134
|
+
var separatorSlot = slots.separator;
|
|
135
|
+
if (defaultSlot) {
|
|
136
|
+
_xeUtils.default.each(defaultSlot({}), function (itemVN, index, items) {
|
|
137
|
+
itemVNs.push(h('div', {
|
|
138
|
+
key: 'i' + index,
|
|
139
|
+
class: ['vxe-space--item', (0, _dom.getPropClass)(itemClassName, {
|
|
140
|
+
index: index
|
|
141
|
+
})]
|
|
142
|
+
}, [itemVN]));
|
|
143
|
+
if ((separator || separatorSlot) && index < items.length - 1) {
|
|
144
|
+
itemVNs.push(h('div', {
|
|
145
|
+
key: 's' + index,
|
|
146
|
+
class: 'vxe-space--separator'
|
|
147
|
+
}, separatorSlot ? separatorSlot({}) : '' + separator));
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
return itemVNs;
|
|
152
|
+
},
|
|
153
|
+
renderVN: function renderVN(h) {
|
|
154
|
+
var $xeSpace = this;
|
|
155
|
+
var props = $xeSpace;
|
|
156
|
+
var vertical = props.vertical,
|
|
157
|
+
wrap = props.wrap,
|
|
158
|
+
className = props.className;
|
|
159
|
+
var wrapperStyle = $xeSpace.computeWrapperStyle;
|
|
160
|
+
var vSize = $xeSpace.computeSize;
|
|
161
|
+
return h('div', {
|
|
162
|
+
ref: 'refElem',
|
|
163
|
+
class: ['vxe-space', (0, _dom.getPropClass)(className, {}), _defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--wrap', wrap), 'is--vertical', vertical)],
|
|
164
|
+
style: wrapperStyle
|
|
165
|
+
}, $xeSpace.renderItems(h));
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
render: function render(h) {
|
|
169
|
+
return this.renderVN(h);
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
/* define-vxe-component end */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}var _default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeSpace",mixins:[_ui.globalMixins.sizeMixin,_ui.globalMixins.permissionMixin],props:{size:{type:String,default:function(){return(0,_ui.getConfig)().space.size||(0,_ui.getConfig)().size}},wrap:{type:Boolean,default:function(){return(0,_ui.getConfig)().space.wrap}},gap:{type:[Number,String,Array,Object],default:function(){return(0,_ui.getConfig)().space.gap}},vertical:{type:Boolean,default:function(){return(0,_ui.getConfig)().space.vertical}},className:{type:String,default:function(){return(0,_ui.getConfig)().space.className}},itemClassName:{type:String,default:function(){return(0,_ui.getConfig)().space.itemClassName}},separator:{type:String,default:function(){return(0,_ui.getConfig)().space.separator}},align:{type:String,default:function(){return(0,_ui.getConfig)().space.align}}},data:function(){return{xID:_xeUtils.default.uniqueId(),reactData:{activeValue:null}}},computed:Object.assign(Object.assign({},{}),{computeWrapperStyle:function(){var e=this.align,t=this.gap,i={},r="",n="";return _xeUtils.default.isNumber(t)||_xeUtils.default.isString(t)?n=r=t:t&&(n=_xeUtils.default.isArray(t)?(r=t[0],t[1]):(r=t.rowGap||"",t.columGap||"")),e&&(i["align-items"]=e),(0,_utils.eqEmptyValue)(r)||(i["--vxe-ui-space-current-row-gap"]=(0,_dom.toCssUnit)(r)),(0,_utils.eqEmptyValue)(n)||(i["--vxe-ui-space-current-column-gap"]=(0,_dom.toCssUnit)(n)),i}}),methods:{dispatchEvent:function(e,t,i){this.$emit(e,(0,_ui.createEvent)(i,{$space:this},t))},renderItems:function(r){var e=this.$scopedSlots,n=this.separator,u=this.itemClassName,o=[],t=e.default,a=e.separator;return t&&_xeUtils.default.each(t({}),function(e,t,i){o.push(r("div",{key:"i"+t,class:["vxe-space--item",(0,_dom.getPropClass)(u,{index:t})]},[e])),(n||a)&&t<i.length-1&&o.push(r("div",{key:"s"+t,class:"vxe-space--separator"},a?a({}):""+n))}),o},renderVN:function(e){var t=this,i=t.vertical,r=t.wrap,n=t.computeWrapperStyle,u=t.computeSize;return e("div",{ref:"refElem",class:["vxe-space",(0,_dom.getPropClass)(t.className,{}),_defineProperty(_defineProperty(_defineProperty({},"size--".concat(u),u),"is--wrap",r),"is--vertical",i)],style:n},t.renderItems(e))}},render:function(e){return this.renderVN(e)}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('./style.css')
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.vxe-space {
|
|
2
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-default);
|
|
3
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-default);
|
|
4
|
+
}
|
|
5
|
+
.vxe-space.size--xlarge {
|
|
6
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-xlarge);
|
|
7
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-xlarge);
|
|
8
|
+
}
|
|
9
|
+
.vxe-space.size--large {
|
|
10
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-large);
|
|
11
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-large);
|
|
12
|
+
}
|
|
13
|
+
.vxe-space.size--medium {
|
|
14
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-medium);
|
|
15
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-medium);
|
|
16
|
+
}
|
|
17
|
+
.vxe-space.size--small {
|
|
18
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-small);
|
|
19
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-small);
|
|
20
|
+
}
|
|
21
|
+
.vxe-space.size--mini {
|
|
22
|
+
--vxe-ui-space-current-row-gap: var(--vxe-ui-space-row-gap-mini);
|
|
23
|
+
--vxe-ui-space-current-column-gap: var(--vxe-ui-space-column-gap-mini);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.vxe-space {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: var(--vxe-ui-space-current-row-gap) var(--vxe-ui-space-current-column-gap);
|
|
31
|
+
}
|
|
32
|
+
.vxe-space.is--wrap {
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
}
|
|
35
|
+
.vxe-space.is--vertical {
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
}
|
|
@@ -0,0 +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;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}
|