|
|
@ -1,4 +1,6 @@ |
|
|
<script lang="ts" setup> |
|
|
<script lang="ts" setup> |
|
|
|
|
|
import { ref } from 'vue'; |
|
|
|
|
|
|
|
|
import { Page } from '@vben/common-ui'; |
|
|
import { Page } from '@vben/common-ui'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
@ -6,6 +8,7 @@ import { |
|
|
ElCard, |
|
|
ElCard, |
|
|
ElMessage, |
|
|
ElMessage, |
|
|
ElNotification, |
|
|
ElNotification, |
|
|
|
|
|
ElSegmented, |
|
|
ElSpace, |
|
|
ElSpace, |
|
|
ElTable, |
|
|
ElTable, |
|
|
} from 'element-plus'; |
|
|
} from 'element-plus'; |
|
|
@ -47,6 +50,10 @@ const tableData = [ |
|
|
{ prop1: '5', prop2: 'E' }, |
|
|
{ prop1: '5', prop2: 'E' }, |
|
|
{ prop1: '6', prop2: 'F' }, |
|
|
{ prop1: '6', prop2: 'F' }, |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
const segmentedValue = ref('Mon'); |
|
|
|
|
|
|
|
|
|
|
|
const segmentedOptions = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']; |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
|
@ -84,6 +91,14 @@ const tableData = [ |
|
|
<ElButton type="success" @click="notify('success')"> 成功 </ElButton> |
|
|
<ElButton type="success" @click="notify('success')"> 成功 </ElButton> |
|
|
</ElSpace> |
|
|
</ElSpace> |
|
|
</ElCard> |
|
|
</ElCard> |
|
|
|
|
|
<ElCard class="mb-5"> |
|
|
|
|
|
<template #header> Segmented </template> |
|
|
|
|
|
<ElSegmented |
|
|
|
|
|
v-model="segmentedValue" |
|
|
|
|
|
:options="segmentedOptions" |
|
|
|
|
|
size="large" |
|
|
|
|
|
/> |
|
|
|
|
|
</ElCard> |
|
|
<ElCard class="mb-5"> |
|
|
<ElCard class="mb-5"> |
|
|
<ElTable :data="tableData" stripe> |
|
|
<ElTable :data="tableData" stripe> |
|
|
<ElTable.TableColumn label="测试列1" prop="prop1" /> |
|
|
<ElTable.TableColumn label="测试列1" prop="prop1" /> |
|
|
|