|
1 | 1 | <template>
|
2 |
| - <a-config-provider :theme="theme"> |
3 |
| - <div class="container"> |
4 |
| - <div> |
| 2 | + <a-extract-style> |
| 3 | + <a-config-provider :theme="theme"> |
| 4 | + <div class="container"> |
| 5 | + <div> |
| 6 | + <a-space> |
| 7 | + <a-button @click="changeTheme('dark')"> |
| 8 | + dark |
| 9 | + </a-button> |
| 10 | + <a-button @click="changeTheme('light')"> |
| 11 | + light |
| 12 | + </a-button> |
| 13 | + </a-space> |
| 14 | + </div> |
| 15 | + <a-alert |
| 16 | + message="Success Text" |
| 17 | + type="success" |
| 18 | + /> |
| 19 | + <div> |
| 20 | + icon: |
| 21 | + <AlertFilled /> |
| 22 | + <LoadingOutlined /> |
| 23 | + </div> |
| 24 | + <a-table v-bind="tableProps" /> |
5 | 25 | <a-space>
|
6 |
| - <a-button @click="changeTheme('dark')"> |
7 |
| - dark |
| 26 | + <a-button |
| 27 | + type="primary" |
| 28 | + @click="handleMessage('success')" |
| 29 | + > |
| 30 | + message success |
8 | 31 | </a-button>
|
9 |
| - <a-button @click="changeTheme('light')"> |
10 |
| - light |
| 32 | + <a-button @click="handleMessage('info')"> |
| 33 | + message info |
11 | 34 | </a-button>
|
12 | 35 | </a-space>
|
13 |
| - </div> |
14 |
| - <a-alert |
15 |
| - message="Success Text" |
16 |
| - type="success" |
17 |
| - /> |
18 |
| - <div> |
19 |
| - icon: |
20 |
| - <AlertFilled /> |
21 |
| - <LoadingOutlined /> |
22 |
| - </div> |
23 |
| - <a-table v-bind="tableProps" /> |
24 |
| - <a-space> |
25 |
| - <a-button |
26 |
| - type="primary" |
27 |
| - @click="handleMessage('success')" |
28 |
| - > |
29 |
| - message success |
30 |
| - </a-button> |
31 |
| - <a-button @click="handleMessage('info')"> |
32 |
| - message info |
33 |
| - </a-button> |
34 |
| - </a-space> |
35 |
| - <a-space> |
36 |
| - <a-button |
37 |
| - type="primary" |
38 |
| - @click="handleModal('success')" |
39 |
| - > |
40 |
| - modal success |
41 |
| - </a-button> |
42 |
| - <a-button @click="handleModal('info')"> |
43 |
| - modal info |
44 |
| - </a-button> |
45 |
| - </a-space> |
46 |
| - <a-space> |
47 |
| - <a-button |
48 |
| - type="primary" |
49 |
| - @click="handleNotification('success')" |
| 36 | + <a-space> |
| 37 | + <a-button |
| 38 | + type="primary" |
| 39 | + @click="handleModal('success')" |
| 40 | + > |
| 41 | + modal success |
| 42 | + </a-button> |
| 43 | + <a-button @click="handleModal('info')"> |
| 44 | + modal info |
| 45 | + </a-button> |
| 46 | + </a-space> |
| 47 | + <a-space> |
| 48 | + <a-button |
| 49 | + type="primary" |
| 50 | + @click="handleNotification('success')" |
| 51 | + > |
| 52 | + notification success |
| 53 | + </a-button> |
| 54 | + <a-button @click="handleNotification('info')"> |
| 55 | + notification info |
| 56 | + </a-button> |
| 57 | + </a-space> |
| 58 | + <a-flex |
| 59 | + gap="middle" |
| 60 | + vertical |
50 | 61 | >
|
51 |
| - notification success |
52 |
| - </a-button> |
53 |
| - <a-button @click="handleNotification('info')"> |
54 |
| - notification info |
55 |
| - </a-button> |
56 |
| - </a-space> |
57 |
| - <a-flex |
58 |
| - gap="middle" |
59 |
| - vertical |
60 |
| - > |
61 |
| - <a-radio-group v-model:value="value"> |
62 |
| - <a-radio value="horizontal"> |
63 |
| - horizontal |
64 |
| - </a-radio> |
65 |
| - <a-radio value="vertical"> |
66 |
| - vertical |
67 |
| - </a-radio> |
68 |
| - </a-radio-group> |
69 |
| - <a-flex :vertical="value === 'vertical'"> |
70 |
| - <div |
71 |
| - v-for="(item, index) in new Array(4)" |
72 |
| - :key="item" |
73 |
| - :style="{ ...baseStyle, background: `${index % 2 ? '#1677ff' : '#1677ffbf'}` }" |
74 |
| - /> |
| 62 | + <a-radio-group v-model:value="value"> |
| 63 | + <a-radio value="horizontal"> |
| 64 | + horizontal |
| 65 | + </a-radio> |
| 66 | + <a-radio value="vertical"> |
| 67 | + vertical |
| 68 | + </a-radio> |
| 69 | + </a-radio-group> |
| 70 | + <a-flex :vertical="value === 'vertical'"> |
| 71 | + <div |
| 72 | + v-for="(item, index) in new Array(4)" |
| 73 | + :key="item" |
| 74 | + :style="{ ...baseStyle, background: `${index % 2 ? '#1677ff' : '#1677ffbf'}` }" |
| 75 | + /> |
| 76 | + </a-flex> |
75 | 77 | </a-flex>
|
76 |
| - </a-flex> |
77 |
| - </div> |
78 |
| - </a-config-provider> |
| 78 | + </div> |
| 79 | + </a-config-provider> |
| 80 | + </a-extract-style> |
79 | 81 | </template>
|
80 | 82 |
|
81 | 83 | <script setup lang="ts">
|
|
0 commit comments