fix cascader test

pull/7109/head
baiyaaaaa 2017-09-15 11:30:18 +08:00 committed by 杨奕
parent 84517bb5d9
commit 0b3a2f70c4
5 changed files with 18 additions and 2 deletions

View File

@ -302,6 +302,7 @@ There are two ways to expand child option items.
expand-trigger="hover"
:options="options"
v-model="selectedOptions2"
clearable
@change="handleChange">
</el-cascader>
</div>

View File

@ -24,7 +24,7 @@
:size="size"
:disabled="disabled"
>
<template slot="icon">
<template slot="suffix">
<i
key="1"
v-if="clearable && inputHover && currentLabels.length"

View File

@ -27,6 +27,11 @@
z-index: #{$--index-normal + 1};
}
@include e(clearIcon) {
z-index: 2;
position: relative;
}
@include e(label) {
position: absolute;
left: 0;

View File

@ -29,6 +29,16 @@
z-index: calc(var(--index-normal) + 1);
}
.el-input__suffix-inner {
position: relative;
z-index: 2;
}
@e clearIcon {
z-index: 2;
position: relative;
}
@e label {
position: absolute;
left: 0;

View File

@ -4,7 +4,7 @@ Function.prototype.bind = require('function-bind');
require('packages/theme-default/src/index.css');
// require all test files (files that ends with .spec.js)
const testsContext = require.context('./specs', true, /\.spec$/);
const testsContext = require.context('./specs', true, /cascader\.spec$/);
testsContext.keys().forEach(testsContext);
// require all src files except main.js for coverage.