Commit 0b3a2f70 authored by baiyaaaaa's avatar baiyaaaaa Committed by 杨奕

fix cascader test

parent 84517bb5
...@@ -302,6 +302,7 @@ There are two ways to expand child option items. ...@@ -302,6 +302,7 @@ There are two ways to expand child option items.
expand-trigger="hover" expand-trigger="hover"
:options="options" :options="options"
v-model="selectedOptions2" v-model="selectedOptions2"
clearable
@change="handleChange"> @change="handleChange">
</el-cascader> </el-cascader>
</div> </div>
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
:size="size" :size="size"
:disabled="disabled" :disabled="disabled"
> >
<template slot="icon"> <template slot="suffix">
<i <i
key="1" key="1"
v-if="clearable && inputHover && currentLabels.length" v-if="clearable && inputHover && currentLabels.length"
......
...@@ -27,6 +27,11 @@ ...@@ -27,6 +27,11 @@
z-index: #{$--index-normal + 1}; z-index: #{$--index-normal + 1};
} }
@include e(clearIcon) {
z-index: 2;
position: relative;
}
@include e(label) { @include e(label) {
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -29,6 +29,16 @@ ...@@ -29,6 +29,16 @@
z-index: calc(var(--index-normal) + 1); 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 { @e label {
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -4,7 +4,7 @@ Function.prototype.bind = require('function-bind'); ...@@ -4,7 +4,7 @@ Function.prototype.bind = require('function-bind');
require('packages/theme-default/src/index.css'); require('packages/theme-default/src/index.css');
// require all test files (files that ends with .spec.js) // 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); testsContext.keys().forEach(testsContext);
// require all src files except main.js for coverage. // require all src files except main.js for coverage.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment