forked from element-plus/element-plus
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
436 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
label?: string; | ||
value?: any; | ||
}>(); | ||
defineOptions({ name: 'ClOption' }); | ||
</script> | ||
|
||
<template> | ||
<el-option | ||
:label="label" | ||
:value="value" | ||
:data-test="value" | ||
:data-test-text="label" | ||
> | ||
<template #default> | ||
<slot /> | ||
</template> | ||
</el-option> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
label?: string; | ||
placeholder?: string; | ||
filterable?: boolean; | ||
popperClass?: string; | ||
}>(); | ||
const emit = defineEmits<{ | ||
(e: 'change', value: any): void; | ||
(e: 'clear'): void; | ||
}>(); | ||
defineOptions({ name: 'ClSelect' }); | ||
</script> | ||
|
||
<template> | ||
<el-select | ||
v-model="internalModelValue" | ||
:placeholder="placeholder" | ||
:filterable="filterable" | ||
:popper-class="popperClass" | ||
@change="(value: any) => emit('change', value)" | ||
@clear="() => emit('clear')" | ||
> | ||
<slot /> | ||
<template #label> | ||
<slot name="label" /> | ||
</template> | ||
</el-select> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import BlankLayout from './BlankLayout.vue'; | ||
import DetailLayout from './content/detail/DetailLayout.vue'; | ||
import Header from './components/Header.vue'; | ||
import ListLayout from './content/list/ListLayout.vue'; | ||
import NormalLayout from './NormalLayout.vue'; | ||
import Sidebar from './components/Sidebar.vue'; | ||
import SidebarItem from './components/SidebarItem.vue'; | ||
import SimpleLayout from './content/simple/SimpleLayout.vue'; | ||
import TabsView from './components/TabsView.vue'; | ||
import DetailLayout from './content/detail/DetailLayout.vue'; | ||
import useDetail from './content/detail/useDetail'; | ||
import ListLayout from './content/list/ListLayout.vue'; | ||
import useList from './content/list/useList'; | ||
import SimpleLayout from './content/simple/SimpleLayout.vue'; | ||
import NormalLayout from './NormalLayout.vue'; | ||
|
||
export { | ||
BlankLayout as ClBlankLayout, | ||
DetailLayout as ClDetailLayout, | ||
Header as ClHeader, | ||
ListLayout as ClListLayout, | ||
NormalLayout as ClNormalLayout, | ||
Sidebar as ClSidebar, | ||
SidebarItem as ClSidebarItem, | ||
SimpleLayout as ClSimpleLayout, | ||
TabsView as ClTabsView, | ||
DetailLayout as ClDetailLayout, | ||
useDetail as useDetail, | ||
ListLayout as ClListLayout, | ||
useList as useList, | ||
SimpleLayout as ClSimpleLayout, | ||
NormalLayout as ClNormalLayout, | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters