iov-design 2.15.79 → 2.15.81
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/autocomplete.js +12 -4
- package/lib/index.js +1 -1
- package/lib/iov-design.common.js +50 -34
- package/lib/radio-group.js +4 -2
- package/lib/radio.js +11 -5
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/upload.js +8 -8
- package/package.json +1 -1
- package/packages/autocomplete/src/autocomplete.vue +10 -2
- package/packages/radio/src/radio-group.vue +2 -0
- package/packages/radio/src/radio.vue +9 -3
- package/packages/theme-chalk/src/autocomplete.scss +17 -14
- package/packages/upload/src/upload-picture.vue +1 -1
- package/src/index.js +1 -1
package/lib/upload.js
CHANGED
|
@@ -530,16 +530,16 @@ var upload_file_component = Object(componentNormalizer["a" /* default */])(
|
|
|
530
530
|
)
|
|
531
531
|
|
|
532
532
|
/* harmony default export */ var upload_file = (upload_file_component.exports);
|
|
533
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-picture.vue?vue&type=template&id=
|
|
534
|
-
var
|
|
533
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-picture.vue?vue&type=template&id=5a3aaff1
|
|
534
|
+
var upload_picturevue_type_template_id_5a3aaff1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{class:[
|
|
535
535
|
'el-upload-list',
|
|
536
536
|
'el-upload-list--' + _vm.listType,
|
|
537
537
|
{ 'is-disabled': _vm.disabled }
|
|
538
|
-
],attrs:{"tag":"ul","name":"el-list"}},_vm._l((_vm.files),function(file){return _c('li',{key:file.uid,class:['el-upload-list__item', 'el-upload-list__item-' + _vm.size, 'is-' + file.status, _vm.focusing ? 'focusing' : ''],attrs:{"tabindex":"0"},on:{"focus":function($event){_vm.focusing = true},"blur":function($event){_vm.focusing = false},"click":function($event){_vm.focusing = false}}},[_vm._t("default",[_c('div',{staticClass:"el-upload-list__file"},[(file.status === 'success')?_c('div',{staticClass:"el-upload-list__item-name",on:{"click":function($event){_vm.handleClick(file)}}},[_c('span',{staticClass:"el-upload-list__item-thumbnail"},[_c('el-image',{attrs:{"src":file[_vm.fileUrlAlias],"preview-src-list":_vm.handlePreview ? [] : [file[_vm.fileUrlAlias]],"fit":"contain"}},[_c('i',{staticClass:"el-image__placeholder",attrs:{"slot":"placeholder"},slot:"placeholder"}),_c('i',{staticClass:"el-image__error",attrs:{"slot":"error"},slot:"error"})])],1)]):_vm._e(),(file.status === 'uploading')?_c('div',{staticClass:"el-upload-list__item-status-label"},[_c('el-progress',{staticClass:"el-upload-progress",attrs:{"percentage":file.percentage,"stroke-width":2,"show-text":false,"type":"line","color":"#3F57FF","define-back-color":"#F2F3F5"}}),_c('span',{staticClass:"el-upload-progress__text"},[_vm._v("上传中")])],1):_vm._e()]),(file.status === 'success')?_c('span',{staticClass:"el-upload-list__item-actions"},[(_vm.handlePreview)?_c('i',{staticClass:"el-upload-list__item-preview iov-icon-eye",on:{"click":function($event){_vm.handlePreview(file)}}}):_vm._e(),(!_vm.disabled)?_c('i',{staticClass:"el-upload-list__item-delete iov-icon-delete",on:{"click":function($event){$event.stopPropagation();_vm.$emit('remove', file)}}}):_vm._e(),(!_vm.disabled)?_c('i',{staticClass:"el-upload-list__item-update iov-icon-update"}):_vm._e()]):_vm._e()],{file:file})],2)}),0)}
|
|
539
|
-
var
|
|
540
|
-
|
|
538
|
+
],attrs:{"tag":"ul","name":"el-list"}},_vm._l((_vm.files),function(file){return _c('li',{key:file.uid,class:['el-upload-list__item', 'el-upload-list__item-' + _vm.size, 'is-' + file.status, _vm.focusing ? 'focusing' : ''],attrs:{"tabindex":"0"},on:{"focus":function($event){_vm.focusing = true},"blur":function($event){_vm.focusing = false},"click":function($event){_vm.focusing = false}}},[_vm._t("default",[_c('div',{staticClass:"el-upload-list__file"},[(file.status === 'success')?_c('div',{staticClass:"el-upload-list__item-name",on:{"click":function($event){_vm.handleClick(file)}}},[_c('span',{staticClass:"el-upload-list__item-thumbnail"},[_c('el-image',{attrs:{"src":file[_vm.fileUrlAlias],"preview-src-list":_vm.handlePreview ? [] : [file[_vm.fileUrlAlias]],"fit":"contain"}},[_c('i',{staticClass:"el-image__placeholder",attrs:{"slot":"placeholder"},slot:"placeholder"}),_c('i',{staticClass:"el-image__error",attrs:{"slot":"error"},slot:"error"})])],1)]):_vm._e(),(file.status === 'uploading')?_c('div',{staticClass:"el-upload-list__item-status-label"},[_c('el-progress',{staticClass:"el-upload-progress",attrs:{"percentage":file.percentage,"stroke-width":2,"show-text":false,"type":"line","color":"#3F57FF","define-back-color":"#F2F3F5"}}),_c('span',{staticClass:"el-upload-progress__text"},[_vm._v("上传中")])],1):_vm._e()]),(file.status === 'success')?_c('span',{staticClass:"el-upload-list__item-actions"},[(_vm.handlePreview)?_c('i',{staticClass:"el-upload-list__item-preview iov-icon-eye",on:{"click":function($event){$event.stopPropagation();_vm.handlePreview(file)}}}):_vm._e(),(!_vm.disabled)?_c('i',{staticClass:"el-upload-list__item-delete iov-icon-delete",on:{"click":function($event){$event.stopPropagation();_vm.$emit('remove', file)}}}):_vm._e(),(!_vm.disabled)?_c('i',{staticClass:"el-upload-list__item-update iov-icon-update"}):_vm._e()]):_vm._e()],{file:file})],2)}),0)}
|
|
539
|
+
var upload_picturevue_type_template_id_5a3aaff1_staticRenderFns = []
|
|
540
|
+
upload_picturevue_type_template_id_5a3aaff1_render._withStripped = true
|
|
541
541
|
|
|
542
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload-picture.vue?vue&type=template&id=
|
|
542
|
+
// CONCATENATED MODULE: ./packages/upload/src/upload-picture.vue?vue&type=template&id=5a3aaff1
|
|
543
543
|
|
|
544
544
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-picture.vue?vue&type=script&lang=js
|
|
545
545
|
//
|
|
@@ -652,8 +652,8 @@ upload_picturevue_type_template_id_4efcdfee_render._withStripped = true
|
|
|
652
652
|
|
|
653
653
|
var upload_picture_component = Object(componentNormalizer["a" /* default */])(
|
|
654
654
|
src_upload_picturevue_type_script_lang_js,
|
|
655
|
-
|
|
656
|
-
|
|
655
|
+
upload_picturevue_type_template_id_5a3aaff1_render,
|
|
656
|
+
upload_picturevue_type_template_id_5a3aaff1_staticRenderFns,
|
|
657
657
|
false,
|
|
658
658
|
null,
|
|
659
659
|
null,
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
aria-haspopup="listbox"
|
|
6
6
|
role="combobox"
|
|
7
7
|
:aria-expanded="suggestionVisible"
|
|
8
|
+
ref="autocomplete"
|
|
8
9
|
:aria-owns="id"
|
|
9
10
|
>
|
|
10
11
|
<el-input
|
|
@@ -32,9 +33,15 @@
|
|
|
32
33
|
<template slot="suffix" v-if="$slots.suffix">
|
|
33
34
|
<slot name="suffix"></slot>
|
|
34
35
|
</template>
|
|
36
|
+
<template slot="prefixLabel" v-if="$slots.prefixLabel">
|
|
37
|
+
<slot name="prefixLabel"></slot>
|
|
38
|
+
</template>
|
|
39
|
+
<template slot="suffixLabel" v-if="$slots.suffixLabel">
|
|
40
|
+
<slot name="suffixLabel"></slot>
|
|
41
|
+
</template>
|
|
35
42
|
</el-input>
|
|
36
43
|
<el-autocomplete-suggestions
|
|
37
|
-
visible-arrow
|
|
44
|
+
:visible-arrow="false"
|
|
38
45
|
:class="[popperClass ? popperClass : '']"
|
|
39
46
|
:popper-options="popperOptions"
|
|
40
47
|
:append-to-body="popperAppendToBody"
|
|
@@ -155,8 +162,9 @@
|
|
|
155
162
|
watch: {
|
|
156
163
|
suggestionVisible(val) {
|
|
157
164
|
let $input = this.getInput();
|
|
165
|
+
const $autocomplete = this.$refs.autocomplete;
|
|
158
166
|
if ($input) {
|
|
159
|
-
this.broadcast('ElAutocompleteSuggestions', 'visible', [val, $
|
|
167
|
+
this.broadcast('ElAutocompleteSuggestions', 'visible', [val, $autocomplete.offsetWidth]);
|
|
160
168
|
}
|
|
161
169
|
}
|
|
162
170
|
},
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
{ 'is-bordered': border },
|
|
9
9
|
{ 'is-button': button || groupButton },
|
|
10
10
|
{ 'is-checked': model === label },
|
|
11
|
-
{ 'is-card': card},
|
|
12
|
-
{ 'is-card-radio': card && radio}
|
|
11
|
+
{ 'is-card': card || groupCard},
|
|
12
|
+
{ 'is-card-radio': (card || groupCard) && (radio || groupRadio)}
|
|
13
13
|
]"
|
|
14
14
|
role="radio"
|
|
15
15
|
:aria-checked="model === label"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
@keydown.space.stop.prevent="model = isDisabled ? model : label"
|
|
19
19
|
>
|
|
20
20
|
<span class="el-radio__input"
|
|
21
|
-
:style="{display: border || button || groupButton || card && !radio ? 'none' : ''}"
|
|
21
|
+
:style="{display: border || button || groupButton || (card || groupCard) && !(radio || groupRadio) ? 'none' : ''}"
|
|
22
22
|
:class="{
|
|
23
23
|
'is-disabled': isDisabled,
|
|
24
24
|
'is-checked': model === label
|
|
@@ -126,6 +126,12 @@
|
|
|
126
126
|
groupButton() {
|
|
127
127
|
return this.isGroup ? this._radioGroup.button : this.button;
|
|
128
128
|
},
|
|
129
|
+
groupCard() {
|
|
130
|
+
return this.isGroup ? this._radioGroup.card : this.card;
|
|
131
|
+
},
|
|
132
|
+
groupRadio() {
|
|
133
|
+
return this.isGroup ? this._radioGroup.radio : this.radio;
|
|
134
|
+
},
|
|
129
135
|
isDisabled() {
|
|
130
136
|
return this.isGroup
|
|
131
137
|
? this._radioGroup.disabled || this.disabled || (this.elForm || {}).disabled
|
|
@@ -7,20 +7,21 @@
|
|
|
7
7
|
|
|
8
8
|
@include b(autocomplete) {
|
|
9
9
|
position: relative;
|
|
10
|
-
display: inline-block;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
@include b(autocomplete-suggestion) {
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
position: absolute;
|
|
14
|
+
z-index: #{$--index-top + 1};
|
|
15
|
+
border: $--select-dropdown-border;
|
|
16
16
|
border-radius: $--border-radius-base;
|
|
17
|
-
|
|
17
|
+
background-color: $--select-dropdown-background;
|
|
18
|
+
box-shadow: $--select-dropdown-shadow;
|
|
18
19
|
box-sizing: border-box;
|
|
19
|
-
|
|
20
|
+
margin: 4px 0;
|
|
20
21
|
|
|
21
22
|
@include e(wrap) {
|
|
22
|
-
max-height:
|
|
23
|
-
padding:
|
|
23
|
+
max-height: $--select-dropdown-max-height;
|
|
24
|
+
padding: $--select-dropdown-padding;
|
|
24
25
|
box-sizing: border-box;
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -30,16 +31,18 @@
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
& li {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
color: $--color-text-regular;
|
|
38
|
-
font-size: $--font-size-base;
|
|
39
|
-
list-style: none;
|
|
34
|
+
font-size: $--select-font-size;
|
|
35
|
+
padding: 0 12px;
|
|
36
|
+
position: relative;
|
|
40
37
|
white-space: nowrap;
|
|
41
38
|
overflow: hidden;
|
|
42
39
|
text-overflow: ellipsis;
|
|
40
|
+
color: $--select-option-color;
|
|
41
|
+
height: $--select-option-height;
|
|
42
|
+
border-radius: $--select-option-border-radius;
|
|
43
|
+
line-height: $--select-option-height;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
cursor: pointer;
|
|
43
46
|
|
|
44
47
|
&:hover {
|
|
45
48
|
background-color: $--select-option-hover-background;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
<span class="el-upload-list__item-actions" v-if="file.status === 'success'">
|
|
44
|
-
<i v-if="handlePreview" @click="handlePreview(file)" class="el-upload-list__item-preview iov-icon-eye"></i>
|
|
44
|
+
<i v-if="handlePreview" @click.stop="handlePreview(file)" class="el-upload-list__item-preview iov-icon-eye"></i>
|
|
45
45
|
<i v-if="!disabled" class="el-upload-list__item-delete iov-icon-delete" @click.stop="$emit('remove', file)"></i>
|
|
46
46
|
<i v-if="!disabled" class="el-upload-list__item-update iov-icon-update"></i>
|
|
47
47
|
</span>
|