-
Notifications
You must be signed in to change notification settings - Fork 6
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
71 changed files
with
7,994 additions
and
6,650 deletions.
There are no files selected for viewing
This file was deleted.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// eslint.config.js | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu({ | ||
ignores: [ | ||
'**/fixtures', | ||
'**/node_modules', | ||
'**/dist', | ||
'**/.nuxt', | ||
], | ||
}) |
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 |
---|---|---|
@@ -1,5 +1,15 @@ | ||
<script setup lang="ts"> | ||
import { locale, messages } from './store' | ||
onMounted(() => { | ||
Locale.add('en-US', Locale.enUS) | ||
}) | ||
</script> | ||
|
||
<template> | ||
<nuxt-layout> | ||
<nuxt-page /> | ||
<var-locale-provider :locale="locale" :messages="messages"> | ||
<nuxt-page /> | ||
</var-locale-provider> | ||
</nuxt-layout> | ||
</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
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
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ | |
<var-chip>左下</var-chip> | ||
</var-badge> | ||
</var-space> | ||
</template> | ||
</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
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 |
---|---|---|
@@ -1,10 +1,25 @@ | ||
<script setup lang="ts"> | ||
function onChange() { | ||
Locale.use('en-US') | ||
} | ||
</script> | ||
<template> | ||
<var-space :size="[10, 10]"> | ||
<var-button>默认按钮</var-button> | ||
<var-button type="primary">主要按钮</var-button> | ||
<var-button type="info">信息按钮</var-button> | ||
<var-button type="success">成功按钮</var-button> | ||
<var-button type="warning">警告按钮</var-button> | ||
<var-button type="danger">危险按钮</var-button> | ||
<var-button @click="onChange">默认按钮</var-button> | ||
<var-button type="primary"> | ||
主要按钮 | ||
</var-button> | ||
<var-button type="info"> | ||
信息按钮 | ||
</var-button> | ||
<var-button type="success"> | ||
成功按钮 | ||
</var-button> | ||
<var-button type="warning"> | ||
警告按钮 | ||
</var-button> | ||
<var-button type="danger"> | ||
危险按钮 | ||
</var-button> | ||
</var-space> | ||
</template> | ||
</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,5 +1,7 @@ | ||
<template> | ||
<var-card title="本草纲目" subtitle="我表情悠哉 跳个大概" | ||
<var-card | ||
title="本草纲目" subtitle="我表情悠哉 跳个大概" | ||
description="如果华佗再世,崇洋都被医治,外邦来学汉字,激发我民族意识。马钱子、决明子、苍耳子,还有莲子;黄药子、苦豆子、川楝子,我要面子。用我的方式,改写一部历史。没什么别的事,跟着我念几个字。山药当归枸杞 GO,山药 当归 枸杞 GO,看我抓一把中药,服下一帖骄傲~" | ||
src="https://varlet.gitee.io/varlet-ui/cat.jpg" /> | ||
</template> | ||
src="https://varlet.gitee.io/varlet-ui/cat.jpg" | ||
/> | ||
</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
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,10 +1,20 @@ | ||
<template> | ||
<var-space> | ||
<var-chip>默认纸片</var-chip> | ||
<var-chip type="primary">主要纸片</var-chip> | ||
<var-chip type="success">成功纸片</var-chip> | ||
<var-chip type="danger">危险纸片</var-chip> | ||
<var-chip type="warning">警告纸片</var-chip> | ||
<var-chip type="info">信息纸片</var-chip> | ||
<var-chip type="primary"> | ||
主要纸片 | ||
</var-chip> | ||
<var-chip type="success"> | ||
成功纸片 | ||
</var-chip> | ||
<var-chip type="danger"> | ||
危险纸片 | ||
</var-chip> | ||
<var-chip type="warning"> | ||
警告纸片 | ||
</var-chip> | ||
<var-chip type="info"> | ||
信息纸片 | ||
</var-chip> | ||
</var-space> | ||
</template> | ||
</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
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ const value = ref(0) | |
|
||
<template> | ||
<var-counter v-model="value" /> | ||
</template> | ||
</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,9 +1,7 @@ | ||
<script setup> | ||
import { ref } from 'vue' | ||
<script setup lang="ts"> | ||
const date = ref('2021-04-08') | ||
</script> | ||
|
||
<template> | ||
<var-date-picker v-model="date" /> | ||
</template> | ||
</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
Oops, something went wrong.