eoss-ui 0.5.65 → 0.5.66
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/button-group.js +172 -25
- package/lib/button.js +5 -1
- package/lib/calendar.js +8 -4
- package/lib/data-table.js +8 -8
- package/lib/eoss-ui.common.js +719 -503
- package/lib/form.js +22 -7
- package/lib/index.js +1 -1
- package/lib/selector.js +469 -429
- package/lib/theme-chalk/button-group.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/lib/toolbar.js +6 -0
- package/lib/upload.js +6 -6
- package/package.json +2 -2
- package/packages/button/src/main.vue +5 -1
- package/packages/button-group/src/main.vue +62 -7
- package/packages/calendar/src/main.vue +6 -2
- package/packages/data-table/src/column.vue +1 -1
- package/packages/form/src/main.vue +19 -5
- package/packages/selector/src/main.vue +31 -5
- package/packages/theme-chalk/lib/button-group.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/tree.css +1 -1
- package/packages/theme-chalk/src/button-group.scss +39 -0
- package/packages/theme-chalk/src/tree.scss +1 -0
- package/packages/toolbar/src/main.vue +6 -0
- package/packages/upload/src/main.vue +1 -1
- package/src/index.js +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
+
v-if="isRender"
|
|
3
4
|
class="es-selector"
|
|
4
5
|
ref="esSelector"
|
|
5
6
|
:class="{ 'es-pointer': !readonly && !filterable }"
|
|
6
7
|
v-clickoutside="handleClose"
|
|
7
8
|
>
|
|
8
|
-
<el-button v-if="button" v-bind="button" @click
|
|
9
|
+
<el-button v-if="button" v-bind="button" @click="openDialog"
|
|
9
10
|
><slot>选择</slot></el-button
|
|
10
11
|
>
|
|
11
12
|
<template v-else>
|
|
@@ -105,7 +106,6 @@
|
|
|
105
106
|
readonly
|
|
106
107
|
:name="name"
|
|
107
108
|
type="text"
|
|
108
|
-
wqwq
|
|
109
109
|
v-show="false"
|
|
110
110
|
></el-input>
|
|
111
111
|
</template>
|
|
@@ -188,6 +188,7 @@
|
|
|
188
188
|
class="es-selector-dialog"
|
|
189
189
|
>
|
|
190
190
|
<es-selector-panel
|
|
191
|
+
v-if="isReset"
|
|
191
192
|
v-model="selected"
|
|
192
193
|
v-bind="$attrs"
|
|
193
194
|
:multiple="multiple"
|
|
@@ -329,6 +330,13 @@ export default {
|
|
|
329
330
|
emptySerach: {
|
|
330
331
|
type: Boolean,
|
|
331
332
|
default: false
|
|
333
|
+
},
|
|
334
|
+
reset: Boolean,
|
|
335
|
+
useCaseCode: String,
|
|
336
|
+
businessData: [String, Array, Object],
|
|
337
|
+
inputHeight: {
|
|
338
|
+
type: Number,
|
|
339
|
+
default: 40
|
|
332
340
|
}
|
|
333
341
|
},
|
|
334
342
|
data() {
|
|
@@ -348,6 +356,16 @@ export default {
|
|
|
348
356
|
};
|
|
349
357
|
},
|
|
350
358
|
computed: {
|
|
359
|
+
isRender() {
|
|
360
|
+
let useCaseCodes = util.getStorage('useCaseCodes');
|
|
361
|
+
if (useCaseCodes && this.useCaseCode) {
|
|
362
|
+
return useCaseCodes.indexOf(this.useCaseCode) > -1;
|
|
363
|
+
}
|
|
364
|
+
return true;
|
|
365
|
+
},
|
|
366
|
+
isReset() {
|
|
367
|
+
return this.reset ? this.visible : true;
|
|
368
|
+
},
|
|
351
369
|
_elFormItemSize() {
|
|
352
370
|
return (this.elFormItem || {}).elFormItemSize;
|
|
353
371
|
},
|
|
@@ -413,7 +431,11 @@ export default {
|
|
|
413
431
|
selected: {
|
|
414
432
|
deep: true,
|
|
415
433
|
handler(val) {
|
|
416
|
-
this.$emit(
|
|
434
|
+
this.$emit(
|
|
435
|
+
'change',
|
|
436
|
+
Array.isArray(val) ? val : [val],
|
|
437
|
+
this.businessData
|
|
438
|
+
);
|
|
417
439
|
if (this.multiple) {
|
|
418
440
|
this.resetInputHeight();
|
|
419
441
|
}
|
|
@@ -551,10 +573,11 @@ export default {
|
|
|
551
573
|
this.visible = false;
|
|
552
574
|
if (util.isObject(res)) {
|
|
553
575
|
this.$emit('input', [res]);
|
|
576
|
+
this.$emit('confirm', [res], this.businessData);
|
|
554
577
|
} else {
|
|
555
578
|
this.$emit('input', res);
|
|
579
|
+
this.$emit('confirm', res, this.businessData);
|
|
556
580
|
}
|
|
557
|
-
this.$emit('confirm', res);
|
|
558
581
|
let inputChildNodes = this.$refs.reference
|
|
559
582
|
? this.$refs.reference.$el.childNodes
|
|
560
583
|
: null;
|
|
@@ -565,6 +588,9 @@ export default {
|
|
|
565
588
|
input.focus();
|
|
566
589
|
input.blur();
|
|
567
590
|
}
|
|
591
|
+
if (this.reset) {
|
|
592
|
+
this.selected = [];
|
|
593
|
+
}
|
|
568
594
|
},
|
|
569
595
|
handleClear() {
|
|
570
596
|
this.$emit('input', []);
|
|
@@ -584,7 +610,7 @@ export default {
|
|
|
584
610
|
if (this.collapseTags) return;
|
|
585
611
|
this.$nextTick(() => {
|
|
586
612
|
if (!this.$refs.reference) return;
|
|
587
|
-
const sizeInMap = this.
|
|
613
|
+
const sizeInMap = this.inputHeight;
|
|
588
614
|
let height = '';
|
|
589
615
|
if (this.selected !== undefined && this.selected.length === 0) {
|
|
590
616
|
height = sizeInMap + 'px';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.el-button-group>.es-selector,.el-button-group>.es-upload{float:left}.el-button-group>.es-selector:first-child>.el-button,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button{border-radius:0}.el-button-group>.es-selector:last-child>.el-button,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.es-selector:not(:last-child)>.el-button,.el-button-group>.es-upload:not(:last-child)>.el-upload--handle>.el-upload>.el-button{margin-right:-1px}.es-button-group{display:-webkit-box;display:-ms-flexbox;display:flex}.es-button-group>.el-dropdown>.el-button{border-color:#d9d9d9}.el-button-group>.el-button+.es-button,.el-button-group>.es-button+.el-button,.el-button-group>.es-button+.es-button{margin-left:0}.el-button-group>.es-selector:first-child>.el-button.el-button--danger,.el-button-group>.es-selector:first-child>.el-button.el-button--info,.el-button-group>.es-selector:first-child>.el-button.el-button--primary,.el-button-group>.es-selector:first-child>.el-button.el-button--success,.el-button-group>.es-selector:first-child>.el-button.el-button--warning{border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--danger,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--info,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--primary,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--success,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-selector:last-child>.el-button.el-button--danger,.el-button-group>.es-selector:last-child>.el-button.el-button--info,.el-button-group>.es-selector:last-child>.el-button.el-button--primary,.el-button-group>.es-selector:last-child>.el-button.el-button--success,.el-button-group>.es-selector:last-child>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5)}
|
|
1
|
+
@charset "UTF-8";.el-button-group>.es-selector,.el-button-group>.es-upload{float:left}.el-button-group>.es-selector:first-child>.el-button,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button{border-radius:0}.el-button-group>.es-selector:last-child>.el-button,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.es-selector:not(:last-child)>.el-button,.el-button-group>.es-upload:not(:last-child)>.el-upload--handle>.el-upload>.el-button{margin-right:-1px}.es-button-group{display:-webkit-box;display:-ms-flexbox;display:flex}.es-button-group>.el-dropdown>.el-button{border-color:#d9d9d9}.el-button-group>.el-button+.es-button,.el-button-group>.es-button+.el-button,.el-button-group>.es-button+.es-button{margin-left:0}.el-button-group>.es-selector:first-child>.el-button.el-button--danger,.el-button-group>.es-selector:first-child>.el-button.el-button--info,.el-button-group>.es-selector:first-child>.el-button.el-button--primary,.el-button-group>.es-selector:first-child>.el-button.el-button--success,.el-button-group>.es-selector:first-child>.el-button.el-button--warning{border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--danger,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--info,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--primary,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--success,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-selector:last-child>.el-button.el-button--danger,.el-button-group>.es-selector:last-child>.el-button.el-button--info,.el-button-group>.es-selector:last-child>.el-button.el-button--primary,.el-button-group>.es-selector:last-child>.el-button.el-button--success,.el-button-group>.es-selector:last-child>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5)}.es-dropdown-padding{padding:0}.es-dropdown-selector>.el-button,.es-dropdown-upload>.el-upload--handle>.el-upload>.el-button{display:block;width:100%;text-align:left;padding:6px 20px;line-height:24px;font-size:14px;border:0}.es-dropdown-upload>.el-upload--handle,.es-dropdown-upload>.el-upload--handle>.el-upload{display:block}.es-dropdown-upload>.el-upload--handle>.el-upload>.el-button{color:rgba(0,0,0,.75)}.es-dropdown-upload>.el-upload--handle>.el-upload>.el-button:hover{color:#69c0ff}.es-dropdown-selector>.el-button{color:rgba(0,0,0,.75)}.es-dropdown-selector>.el-button:hover{color:#69c0ff}
|