|
| 1 | +<script setup lang="ts"> |
| 2 | +</script> |
1 | 3 | <template> |
2 | | - <t-config-provider :global-config="{ classPrefix: 't' }"> |
3 | | - <t-space direction="vertical" style="width: 100%; text-align: center"> |
4 | | - <logo /> |
5 | | - <h3>Welcome to use TDesign!</h3> |
6 | | - <t-space> |
7 | | - <t-button theme="primary"> |
8 | | - <add-icon /> |
9 | | - 新建 |
10 | | - </t-button> |
11 | | - <t-button variant="outline"> |
12 | | - <cloud-upload-icon /> |
13 | | - 上传文件 |
14 | | - </t-button> |
15 | | - <t-button shape="circle" theme="primary"> |
16 | | - <discount-icon /> |
17 | | - </t-button> |
18 | | - <t-button shape="circle" theme="primary"> |
19 | | - <cloud-download-icon /> |
20 | | - </t-button> |
21 | | - <t-button variant="outline"> 搜索 </t-button> |
22 | | - </t-space> |
23 | | - </t-space> |
24 | | - </t-config-provider> |
| 4 | + <t-card bordered class="card"> |
| 5 | + <t-form class="form"> |
| 6 | + <t-tabs :default-value="1" class="tab"> |
| 7 | + <t-tab-panel :value="1" label="User"><br> |
| 8 | + <t-form-item label="User"> |
| 9 | + <t-input-adornment prepend="github.com/"> |
| 10 | + <t-input placeholder="username" /> |
| 11 | + </t-input-adornment> |
| 12 | + </t-form-item> |
| 13 | + </t-tab-panel> |
| 14 | + <t-tab-panel :value="2" label="Repo"><br> |
| 15 | + <t-form-item label="User"> |
| 16 | + <t-input-adornment prepend="github.com/"> |
| 17 | + <t-input placeholder="username" /> |
| 18 | + </t-input-adornment> |
| 19 | + </t-form-item> |
| 20 | + <t-form-item label="Repo"> |
| 21 | + <t-input placeholder="repository" /> |
| 22 | + </t-form-item> |
| 23 | + </t-tab-panel> |
| 24 | + <t-tab-panel :value="3" label="Release"> |
| 25 | + </t-tab-panel> |
| 26 | + </t-tabs> |
| 27 | + <t-form-item label="Theme" name="theme" initial-data="dark"> |
| 28 | + <t-select defaultValue="light"> |
| 29 | + <t-option key="light" label="light" value="light" /> |
| 30 | + <t-option key="dark" label="dark" value="dark" /> |
| 31 | + </t-select> |
| 32 | + </t-form-item> |
| 33 | + </t-form> |
| 34 | + <t-button id="generate">Generate</t-button> |
| 35 | + </t-card> |
25 | 36 | </template> |
26 | 37 |
|
27 | | -<script setup lang="ts"> |
28 | | -import { |
29 | | - AddIcon, |
30 | | - CloudUploadIcon, |
31 | | - DiscountIcon, |
32 | | - CloudDownloadIcon, |
33 | | -} from "tdesign-icons-vue-next"; |
34 | | -import Logo from "../assets/svg/assets-t-logo.svg?component"; |
35 | | -</script> |
| 38 | +<style> |
| 39 | +html, body { |
| 40 | + padding: 0; |
| 41 | + margin: 0; |
| 42 | + display: flex; |
| 43 | + align-items: center; |
| 44 | + justify-content: center; |
| 45 | + gap: 8px; |
| 46 | + width: 100%; |
| 47 | + height: 100%; |
| 48 | + overflow: auto; |
| 49 | + background: #fafcf1; |
| 50 | +} |
| 51 | +
|
| 52 | +* { |
| 53 | + font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
| 54 | +} |
| 55 | +#app { |
| 56 | + position: absolute; |
| 57 | + top: 8px; |
| 58 | + display: flex; |
| 59 | + flex-direction: column; |
| 60 | + gap: 8px; |
| 61 | + margin: 30px; |
| 62 | + width: 80%; |
| 63 | + min-width: 220px; |
| 64 | + max-width: 550px; |
| 65 | +} |
| 66 | +
|
| 67 | +.card { |
| 68 | + width: 100%; |
| 69 | + display: grid; |
| 70 | + grid-gap: 46px; |
| 71 | +} |
| 72 | +
|
| 73 | +.form { |
| 74 | + width: 100%; |
| 75 | +} |
| 76 | +
|
| 77 | +.tab { |
| 78 | + width: 100%; |
| 79 | + margin: 20px 0; |
| 80 | +} |
| 81 | +
|
| 82 | +#generate { |
| 83 | + margin: 0 auto; |
| 84 | +} |
| 85 | +
|
| 86 | +#preview { |
| 87 | + width: 100%; |
| 88 | +} |
36 | 89 |
|
| 90 | +.quote { |
| 91 | + width: 20px; |
| 92 | + color: black !important; |
| 93 | + float: right; |
| 94 | + text-decoration: none; |
| 95 | + transform: translate(5px, -5px); |
| 96 | +} |
| 97 | +</style> |
0 commit comments