Skip to content

Commit

Permalink
fix(comp:select): remove useless characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kovsu committed Feb 14, 2023
1 parent 998a681 commit fcdd0f8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions packages/components/select/demo/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ import { ref } from 'vue'
import { SelectData } from '@idux/components/select'
const dataSource = ref<SelectData[]>([{ label: 'Tom', value: 'tom' }])
const value = ref('tom')
const isLoading = ref<boolean>(false)
const isLoading = ref(false)
const onLoad = () => {
dataSource.value = [{ label: 'Tom', value: 'tom' }]
Expand All @@ -24,7 +22,6 @@ const onLoad = () => {
}
isLoading.value = true
setTimeout(() => {
isLoading.value = false
dataSource.value = [
Expand Down
2 changes: 1 addition & 1 deletion packages/components/select/src/panel/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default defineComponent({
children.push(<ɵEmpty v-slots={slots} empty={props.empty} />)
}

return <div onMousedown={handlePanelMouseDown}>{children} </div>
return <div onMousedown={handlePanelMouseDown}>{children}</div>
}
},
})
Expand Down
2 changes: 1 addition & 1 deletion packages/components/select/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
margin-left: @select-option-label-margin-left;
}
}

&-option-group {
.reset-component();
.select-option(@select-option-font-size - 2px, @select-option-group-color);
Expand Down
2 changes: 0 additions & 2 deletions packages/components/select/style/themes/default.variable.less
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@

@select-overlay-search-wrapper-padding: 4px 12px 8px;

@select-loading-height: @height-3xl;

@select-icon-font-size: @font-size-lg;
@select-icon-margin-right: @spacing-xs;
@select-icon-color: @select-placeholder-color;
Expand Down

0 comments on commit fcdd0f8

Please sign in to comment.