iov-design 2.15.114 → 2.15.115
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/lib/avatar.js +43 -4
- package/lib/checkbox.js +3 -3
- package/lib/index.js +1 -1
- package/lib/iov-design.common.js +221 -28
- package/lib/theme-chalk/avatar.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/checkbox.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/radio.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/upload.js +166 -12
- package/package.json +1 -1
- package/packages/avatar/src/main.vue +35 -4
- package/packages/checkbox/src/checkbox.vue +1 -1
- package/packages/theme-chalk/src/avatar.scss +31 -19
- package/packages/theme-chalk/src/checkbox.scss +20 -12
- package/packages/theme-chalk/src/common/var.scss +1 -20
- package/packages/theme-chalk/src/radio.scss +12 -12
- package/packages/theme-chalk/src/skeleton-item.scss +3 -3
- package/packages/theme-chalk/src/upload.scss +22 -0
- package/packages/upload/src/index.vue +24 -1
- package/packages/upload/src/upload-list.vue +107 -7
- package/packages/upload/src/upload.vue +1 -1
- package/src/index.js +1 -1
package/lib/avatar.js
CHANGED
|
@@ -200,6 +200,7 @@ function normalizeComponent(
|
|
|
200
200
|
__webpack_require__.r(__webpack_exports__);
|
|
201
201
|
|
|
202
202
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/avatar/src/main.vue?vue&type=script&lang=js
|
|
203
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
203
204
|
|
|
204
205
|
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
205
206
|
name: 'ElAvatar',
|
|
@@ -209,7 +210,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
209
210
|
type: [Number, String],
|
|
210
211
|
validator: function validator(val) {
|
|
211
212
|
if (typeof val === 'string') {
|
|
212
|
-
return ['large', 'medium', 'small'].includes(val);
|
|
213
|
+
return ['large', 'medium', 'small', 'mini'].includes(val);
|
|
213
214
|
}
|
|
214
215
|
return typeof val === 'number';
|
|
215
216
|
}
|
|
@@ -229,6 +230,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
229
230
|
fit: {
|
|
230
231
|
type: String,
|
|
231
232
|
default: 'cover'
|
|
233
|
+
},
|
|
234
|
+
backgroundColor: String,
|
|
235
|
+
color: String,
|
|
236
|
+
fontSize: {
|
|
237
|
+
type: [Number, String],
|
|
238
|
+
validator: function validator(val) {
|
|
239
|
+
if (typeof val === 'string') {
|
|
240
|
+
return (/^\d+(px|em|rem|%)$/.test(val)
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
return typeof val === 'number';
|
|
244
|
+
}
|
|
232
245
|
}
|
|
233
246
|
},
|
|
234
247
|
|
|
@@ -243,7 +256,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
243
256
|
avatarClass: function avatarClass() {
|
|
244
257
|
var size = this.size,
|
|
245
258
|
icon = this.icon,
|
|
246
|
-
shape = this.shape
|
|
259
|
+
shape = this.shape,
|
|
260
|
+
backgroundColor = this.backgroundColor,
|
|
261
|
+
color = this.color,
|
|
262
|
+
fontSize = this.fontSize;
|
|
247
263
|
|
|
248
264
|
var classList = ['el-avatar'];
|
|
249
265
|
|
|
@@ -259,6 +275,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
259
275
|
classList.push('el-avatar--' + shape);
|
|
260
276
|
}
|
|
261
277
|
|
|
278
|
+
if (backgroundColor) {
|
|
279
|
+
classList.push('el-avatar--custom-bg');
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (color) {
|
|
283
|
+
classList.push('el-avatar--custom-color');
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
if (fontSize) {
|
|
287
|
+
classList.push('el-avatar--custom-font-size');
|
|
288
|
+
}
|
|
289
|
+
|
|
262
290
|
return classList.join(' ');
|
|
263
291
|
}
|
|
264
292
|
},
|
|
@@ -307,7 +335,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
307
335
|
render: function render() {
|
|
308
336
|
var h = arguments[0];
|
|
309
337
|
var avatarClass = this.avatarClass,
|
|
310
|
-
size = this.size
|
|
338
|
+
size = this.size,
|
|
339
|
+
backgroundColor = this.backgroundColor,
|
|
340
|
+
color = this.color,
|
|
341
|
+
fontSize = this.fontSize;
|
|
311
342
|
|
|
312
343
|
|
|
313
344
|
var sizeStyle = typeof size === 'number' ? {
|
|
@@ -316,9 +347,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
316
347
|
lineHeight: size + 'px'
|
|
317
348
|
} : {};
|
|
318
349
|
|
|
350
|
+
var customStyle = {
|
|
351
|
+
background: backgroundColor || undefined,
|
|
352
|
+
color: color || undefined,
|
|
353
|
+
fontSize: fontSize ? typeof fontSize === 'number' ? fontSize + 'px' : fontSize : undefined
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
var mergedStyle = _extends({}, sizeStyle, customStyle);
|
|
357
|
+
|
|
319
358
|
return h(
|
|
320
359
|
'span',
|
|
321
|
-
{ 'class': avatarClass, style:
|
|
360
|
+
{ 'class': avatarClass, style: mergedStyle },
|
|
322
361
|
[this.renderAvatar()]
|
|
323
362
|
);
|
|
324
363
|
}
|
package/lib/checkbox.js
CHANGED
|
@@ -206,9 +206,9 @@ module.exports = require("iov-design/lib/mixins/emitter");
|
|
|
206
206
|
// ESM COMPAT FLAG
|
|
207
207
|
__webpack_require__.r(__webpack_exports__);
|
|
208
208
|
|
|
209
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=
|
|
209
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=36eb8f41
|
|
210
210
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:"el-checkbox",class:[
|
|
211
|
-
|
|
211
|
+
_vm.checkboxSize ? 'el-checkbox--' + _vm.checkboxSize : '',
|
|
212
212
|
{ 'is-disabled': _vm.isDisabled },
|
|
213
213
|
{ 'is-bordered': _vm.border },
|
|
214
214
|
{ 'is-card': _vm.card},
|
|
@@ -224,7 +224,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
224
224
|
var staticRenderFns = []
|
|
225
225
|
render._withStripped = true
|
|
226
226
|
|
|
227
|
-
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=
|
|
227
|
+
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=36eb8f41
|
|
228
228
|
|
|
229
229
|
// EXTERNAL MODULE: external "iov-design/lib/mixins/emitter"
|
|
230
230
|
var emitter_ = __webpack_require__(4);
|