Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PengYYYYY committed Jun 27, 2022
1 parent f30e703 commit a90ef35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/cascader/cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default defineComponent({
{...(props.selectInputProps as TdSelectInputProps)}
onInputChange={(value) => {
if (!isFilterable) return;
setInputVal(value);
setInputVal(`${value}`);
}}
onTagChange={(val: CascaderValue, ctx) => {
handleRemoveTagEffect(cascaderContext.value, ctx.index, props.onRemove);
Expand Down
11 changes: 4 additions & 7 deletions test/snap/__snapshots__/csr.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24186,7 +24186,7 @@ exports[`csr snapshot test > csr test ./examples/cascader/demos/filterable.vue 1
class="t-input__wrap t-select-input t-select-input--empty t-cascader"
>
<div
class="t-input t-is-default t-is-readonly t-input--prefix t-input--suffix"
class="t-input t-is-default t-input--prefix t-input--suffix"
>
<!---->
<div
Expand All @@ -24200,7 +24200,6 @@ exports[`csr snapshot test > csr test ./examples/cascader/demos/filterable.vue 1
<input
class="t-input__inner"
placeholder="请选择"
readonly=""
type="text"
/>
<!---->
Expand Down Expand Up @@ -24235,7 +24234,7 @@ exports[`csr snapshot test > csr test ./examples/cascader/demos/filterable.vue 1
class="t-input__wrap t-tag-input t-tag-input--break-line t-select-input t-select-input--multiple t-cascader"
>
<div
class="t-input t-is-default t-is-readonly t-input--prefix t-input--suffix"
class="t-input t-is-default t-input--prefix t-input--suffix"
>
<!---->
<div
Expand Down Expand Up @@ -24268,7 +24267,6 @@ exports[`csr snapshot test > csr test ./examples/cascader/demos/filterable.vue 1
<input
class="t-input__inner"
placeholder=""
readonly=""
type="text"
/>
<!---->
Expand Down Expand Up @@ -24303,7 +24301,7 @@ exports[`csr snapshot test > csr test ./examples/cascader/demos/filterable.vue 1
class="t-input__wrap t-select-input t-select-input--empty t-cascader"
>
<div
class="t-input t-is-default t-is-readonly t-input--prefix t-input--suffix"
class="t-input t-is-default t-input--prefix t-input--suffix"
>
<!---->
<div
Expand All @@ -24317,7 +24315,6 @@ exports[`csr snapshot test > csr test ./examples/cascader/demos/filterable.vue 1
<input
class="t-input__inner"
placeholder="请选择"
readonly=""
type="text"
/>
<!---->
Expand Down Expand Up @@ -36745,7 +36742,7 @@ exports[`csr snapshot test > csr test ./examples/config-provider/demos/others.vu
</div>
<input
class="t-input__inner"
placeholder="select cascader data"
placeholder="select without data in Cascader"
readonly=""
type="text"
/>
Expand Down
Loading

0 comments on commit a90ef35

Please sign in to comment.