@coffic/cosy-ui 0.6.42 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert/{AlertBasicContainer.astro → EAlertBasicContainer.astro} +2 -2
- package/dist/alert/{AlertCustomStyleContainer.astro → EAlertCustomStyleContainer.astro} +2 -2
- package/dist/alert/{AlertTypesContainer.astro → EAlertTypesContainer.astro} +8 -8
- package/dist/alert/{AlertWithTitleContainer.astro → EAlertWithTitleContainer.astro} +2 -2
- package/dist/alert/index.ts +12 -12
- package/dist/app.css +1 -1
- package/dist/button/ButtonBasicContainer.astro +1 -7
- package/dist/button/ButtonLinkContainer.astro +1 -7
- package/dist/button/ButtonSizesContainer.astro +1 -7
- package/dist/button/ButtonVariantsContainer.astro +1 -8
- package/dist/button/ButtonWithIconsContainer.astro +2 -13
- package/dist/button/index_astro.ts +1 -3
- package/dist/code-container/CodeContainer.astro +2 -2
- package/dist/code-container/index.ts +7 -7
- package/dist/container/EContainerBasic.astro +13 -0
- package/dist/container/EContainerBasicContainer.astro +11 -0
- package/dist/container/EContainerFlexBetween.astro +16 -0
- package/dist/container/EContainerFlexCenter.astro +23 -0
- package/dist/container/EContainerFlexColumn.astro +16 -0
- package/dist/container/EContainerFlexContainer.astro +34 -0
- package/dist/container/EContainerFlexRow.astro +16 -0
- package/dist/container/EContainerPadding.astro +32 -0
- package/dist/container/EContainerPaddingContainer.astro +11 -0
- package/dist/container/EContainerSizes.astro +36 -0
- package/dist/container/EContainerSizesContainer.astro +11 -0
- package/dist/container/index.ts +16 -1
- package/dist/footer/{FooterBasic.astro → EFooterBasic.astro} +7 -1
- package/dist/footer/EFooterBasicContainer.astro +11 -0
- package/dist/footer/EFooterComplete.astro +45 -0
- package/dist/footer/EFooterCompleteContainer.astro +11 -0
- package/dist/footer/EFooterFeaturesContainer.astro +40 -0
- package/dist/footer/EFooterWithLogo.astro +23 -0
- package/dist/footer/EFooterWithLogoContainer.astro +11 -0
- package/dist/footer/EFooterWithNavigation.astro +24 -0
- package/dist/footer/EFooterWithNavigationContainer.astro +11 -0
- package/dist/footer/EFooterWithProducts.astro +24 -0
- package/dist/footer/EFooterWithProductsContainer.astro +11 -0
- package/dist/footer/EFooterWithSocial.astro +24 -0
- package/dist/footer/EFooterWithSocialContainer.astro +11 -0
- package/dist/footer/FooterSection.astro +4 -2
- package/dist/footer/index.ts +24 -4
- package/dist/icons/index.ts +3 -0
- package/dist/index_astro.ts +1 -0
- package/package.json +2 -9
- package/dist/button/Button.vue +0 -105
- package/dist/button/ButtonBasic.vue +0 -11
- package/dist/button/ButtonFeature.vue +0 -91
- package/dist/button/ButtonFeatureBasic.vue +0 -8
- package/dist/button/ButtonFeatureContainer.astro +0 -18
- package/dist/button/ButtonFeatureWithTips.vue +0 -7
- package/dist/button/ButtonLink.vue +0 -13
- package/dist/button/ButtonSizes.vue +0 -12
- package/dist/button/ButtonWithIcons.vue +0 -21
- package/dist/button/index_vue.ts +0 -4
- package/dist/vue/AlertDialog/AlertDialog.vue +0 -120
- package/dist/vue/AlertDialog/Basic.vue +0 -38
- package/dist/vue/AlertDialog/Multilang.vue +0 -48
- package/dist/vue/AlertDialog/index.ts +0 -20
- package/dist/vue/BannerBox/BannerBox.vue +0 -296
- package/dist/vue/BannerBox/DownloadButton.vue +0 -202
- package/dist/vue/BannerBox/ExampleBasic.vue +0 -32
- package/dist/vue/BannerBox/ExampleCustomBg.vue +0 -32
- package/dist/vue/BannerBox/ExampleDisplayModeAlways.vue +0 -34
- package/dist/vue/BannerBox/ExampleDisplayModeHover.vue +0 -34
- package/dist/vue/BannerBox/ExampleDisplayModeNever.vue +0 -34
- package/dist/vue/BannerBox/ExampleImageExport.vue +0 -37
- package/dist/vue/BannerBox/ExampleSizePreset.vue +0 -35
- package/dist/vue/BannerBox/FeatureCard.vue +0 -190
- package/dist/vue/BannerBox/SmartBanner.vue +0 -44
- package/dist/vue/BannerBox/bgStyles.ts +0 -55
- package/dist/vue/BannerBox/index.ts +0 -48
- package/dist/vue/BannerBox/sizePresets.ts +0 -23
- package/dist/vue/BlogList/Basic.vue +0 -30
- package/dist/vue/BlogList/BlogList.vue +0 -100
- package/dist/vue/BlogList/Empty.vue +0 -8
- package/dist/vue/BlogList/EmptyEnglish.vue +0 -8
- package/dist/vue/BlogList/English.vue +0 -24
- package/dist/vue/BlogList/index.ts +0 -29
- package/dist/vue/ConfirmDialog/Basic.vue +0 -57
- package/dist/vue/ConfirmDialog/ConfirmDialog.vue +0 -134
- package/dist/vue/ConfirmDialog/CustomButtons.vue +0 -69
- package/dist/vue/ConfirmDialog/index.ts +0 -20
- package/dist/vue/Icons/AlertTriangleIcon.vue +0 -30
- package/dist/vue/Icons/CalendarIcon.vue +0 -30
- package/dist/vue/Icons/CheckCircleIcon.vue +0 -30
- package/dist/vue/Icons/CheckIcon.vue +0 -30
- package/dist/vue/Icons/ChevronDownIcon.vue +0 -30
- package/dist/vue/Icons/ClipboardIcon.vue +0 -30
- package/dist/vue/Icons/CloseIcon.vue +0 -30
- package/dist/vue/Icons/InboxArchiveIcon.vue +0 -30
- package/dist/vue/Icons/InfoCircleIcon.vue +0 -30
- package/dist/vue/Icons/InfoIcon.vue +0 -30
- package/dist/vue/Icons/LinkIcon.vue +0 -30
- package/dist/vue/Icons/MenuIcon.vue +0 -30
- package/dist/vue/Icons/SearchIcon.vue +0 -30
- package/dist/vue/Icons/SettingsIcon.vue +0 -30
- package/dist/vue/Icons/UserIcon.vue +0 -30
- package/dist/vue/Icons/VueIcon.vue +0 -76
- package/dist/vue/Icons/XCircleIcon.vue +0 -30
- package/dist/vue/ListItem.vue +0 -5
- package/dist/vue/MacWindow/Basic.vue +0 -11
- package/dist/vue/MacWindow/CustomHeight.vue +0 -13
- package/dist/vue/MacWindow/MacWindow.vue +0 -262
- package/dist/vue/MacWindow/WithEvents.vue +0 -34
- package/dist/vue/MacWindow/WithSidebar.vue +0 -21
- package/dist/vue/MacWindow/WithTabs.vue +0 -21
- package/dist/vue/MacWindow/WithToolbar.vue +0 -43
- package/dist/vue/MacWindow/index.ts +0 -36
- package/dist/vue/SmartLink.vue +0 -17
- package/dist/vue/TagList.vue +0 -23
- package/dist/vue/VueCounter.vue +0 -29
- package/dist/vue/iPhone/Basic.vue +0 -33
- package/dist/vue/iPhone/CustomBackground.vue +0 -33
- package/dist/vue/iPhone/NoFrame.vue +0 -33
- package/dist/vue/iPhone/WeatherApp.vue +0 -97
- package/dist/vue/iPhone/assets/iPhone 14 Pro - Deep Purple - Landscape.png +0 -0
- package/dist/vue/iPhone/assets/iPhone 14 Pro - Deep Purple - Portrait.png +0 -0
- package/dist/vue/iPhone/assets/iPhone 14 Pro - Gold - Landscape.png +0 -0
- package/dist/vue/iPhone/assets/iPhone 14 Pro - Gold - Portrait.png +0 -0
- package/dist/vue/iPhone/assets/iPhone 14 Pro - Silver - Landscape.png +0 -0
- package/dist/vue/iPhone/assets/iPhone 14 Pro - Silver - Portrait.png +0 -0
- package/dist/vue/iPhone/assets/iPhone 14 Pro - Space Black - Landscape.png +0 -0
- package/dist/vue/iPhone/assets/iPhone 14 Pro - Space Black - Portrait.png +0 -0
- package/dist/vue/iPhone/iPhoneWindow.vue +0 -193
- package/dist/vue/iPhone/index.ts +0 -28
- /package/dist/alert/{AlertBasic.astro → EAlertBasic.astro} +0 -0
- /package/dist/alert/{AlertCustomStyle.astro → EAlertCustomStyle.astro} +0 -0
- /package/dist/alert/{AlertError.astro → EAlertError.astro} +0 -0
- /package/dist/alert/{AlertInfo.astro → EAlertInfo.astro} +0 -0
- /package/dist/alert/{AlertSuccess.astro → EAlertSuccess.astro} +0 -0
- /package/dist/alert/{AlertWarning.astro → EAlertWarning.astro} +0 -0
- /package/dist/alert/{AlertWithTitle.astro → EAlertWithTitle.astro} +0 -0
- /package/dist/code-container/{CodeContainerBasic.astro → ECodeContainerBasic.astro} +0 -0
- /package/dist/code-container/{CodeContainerMultiple.astro → ECodeContainerMultiple.astro} +0 -0
@@ -1,29 +0,0 @@
|
|
1
|
-
import Basic from './Basic.vue';
|
2
|
-
import Empty from './Empty.vue';
|
3
|
-
import English from './English.vue';
|
4
|
-
import EmptyEnglish from './EmptyEnglish.vue';
|
5
|
-
import BasicSource from './Basic.vue?raw';
|
6
|
-
import EmptySource from './Empty.vue?raw';
|
7
|
-
import EnglishSource from './English.vue?raw';
|
8
|
-
import EmptyEnglishSource from './EmptyEnglish.vue?raw';
|
9
|
-
import { extractSimpleExample } from '../../utils/component';
|
10
|
-
|
11
|
-
// 导出主组件
|
12
|
-
export { default as BlogList } from './BlogList.vue';
|
13
|
-
export type { IBlog } from './BlogList.vue';
|
14
|
-
|
15
|
-
// 将示例组件整合为一个对象导出
|
16
|
-
export const BlogListExamples = {
|
17
|
-
Basic,
|
18
|
-
Empty,
|
19
|
-
English,
|
20
|
-
EmptyEnglish,
|
21
|
-
};
|
22
|
-
|
23
|
-
// 导出示例组件的源代码(简化版本)
|
24
|
-
export const BlogListExampleCodes = {
|
25
|
-
Basic: extractSimpleExample(BasicSource, 'BlogList'),
|
26
|
-
Empty: extractSimpleExample(EmptySource, 'BlogList'),
|
27
|
-
English: extractSimpleExample(EnglishSource, 'BlogList'),
|
28
|
-
EmptyEnglish: extractSimpleExample(EmptyEnglishSource, 'BlogList'),
|
29
|
-
};
|
@@ -1,57 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
@component ConfirmDialog.Basic
|
3
|
-
|
4
|
-
@description
|
5
|
-
ConfirmDialog 组件的基础示例,展示最基本的确认对话框用法。
|
6
|
-
|
7
|
-
@usage
|
8
|
-
```vue
|
9
|
-
<ConfirmDialogExamples.Basic />
|
10
|
-
```
|
11
|
-
-->
|
12
|
-
|
13
|
-
<script lang="ts">
|
14
|
-
import '../../app.css'
|
15
|
-
import { ref, defineComponent } from 'vue'
|
16
|
-
import ConfirmDialog from './ConfirmDialog.vue'
|
17
|
-
|
18
|
-
export default defineComponent({
|
19
|
-
name: 'ConfirmDialogBasicExample',
|
20
|
-
components: {
|
21
|
-
ConfirmDialog
|
22
|
-
},
|
23
|
-
setup() {
|
24
|
-
const isShow = ref(false)
|
25
|
-
const result = ref('')
|
26
|
-
|
27
|
-
const handleConfirm = () => {
|
28
|
-
result.value = '用户已确认操作'
|
29
|
-
|
30
|
-
// 3秒后清除结果
|
31
|
-
setTimeout(() => {
|
32
|
-
result.value = ''
|
33
|
-
}, 3000)
|
34
|
-
}
|
35
|
-
|
36
|
-
return {
|
37
|
-
isShow,
|
38
|
-
result,
|
39
|
-
handleConfirm
|
40
|
-
}
|
41
|
-
}
|
42
|
-
})
|
43
|
-
</script>
|
44
|
-
|
45
|
-
<template>
|
46
|
-
<div class="cosy:flex cosy:flex-col cosy:gap-4">
|
47
|
-
<button @click="isShow = true" class="cosy:btn cosy:btn-primary">
|
48
|
-
显示确认对话框
|
49
|
-
</button>
|
50
|
-
|
51
|
-
<div v-if="result" class="cosy:alert cosy:alert-success cosy:shadow-lg">
|
52
|
-
<span>{{ result }}</span>
|
53
|
-
</div>
|
54
|
-
</div>
|
55
|
-
|
56
|
-
<ConfirmDialog v-model="isShow" title="确认操作" message="您确定要执行此操作吗?此操作无法撤销。" @confirm="handleConfirm" />
|
57
|
-
</template>
|
@@ -1,134 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
@component ConfirmDialog
|
3
|
-
|
4
|
-
@description
|
5
|
-
ConfirmDialog 组件用于显示确认对话框,带有标题、消息内容和两个按钮(确认和取消),支持自定义按钮文本,并带有淡入淡出动画效果。
|
6
|
-
|
7
|
-
@usage
|
8
|
-
基本用法:
|
9
|
-
```vue
|
10
|
-
<ConfirmDialog v-model="showDialog" title="确认操作" message="您确定要执行此操作吗?" @confirm="handleConfirm" />
|
11
|
-
```
|
12
|
-
|
13
|
-
自定义按钮文本:
|
14
|
-
```vue
|
15
|
-
<ConfirmDialog
|
16
|
-
v-model="showDialog"
|
17
|
-
title="删除确认"
|
18
|
-
message="您确定要删除此项目吗?此操作无法撤销。"
|
19
|
-
cancel-text="取消"
|
20
|
-
confirm-text="删除"
|
21
|
-
@confirm="handleDelete"
|
22
|
-
/>
|
23
|
-
```
|
24
|
-
|
25
|
-
组合使用:
|
26
|
-
```vue
|
27
|
-
<template>
|
28
|
-
<button @click="showDialog = true">删除项目</button>
|
29
|
-
<ConfirmDialog v-model="showDialog" title="删除确认" message="此操作无法撤销" @confirm="handleDelete" />
|
30
|
-
</template>
|
31
|
-
|
32
|
-
<script setup lang="ts">
|
33
|
-
import { ref } from 'vue';
|
34
|
-
import { ConfirmDialog } from 'cosy-ui';
|
35
|
-
|
36
|
-
const showDialog = ref(false);
|
37
|
-
const handleDelete = () => {
|
38
|
-
// 处理确认删除逻辑
|
39
|
-
};
|
40
|
-
</script>
|
41
|
-
```
|
42
|
-
|
43
|
-
@props
|
44
|
-
@prop {boolean} modelValue - 控制对话框显示状态,支持v-model双向绑定
|
45
|
-
@prop {string} [title='Confirm'] - 对话框标题
|
46
|
-
@prop {string} [message='Are you sure you want to confirm this action?'] - 对话框显示的消息内容
|
47
|
-
@prop {string} [cancel-text='取消'] - 取消按钮的文本
|
48
|
-
@prop {string} [confirm-text='确认'] - 确认按钮的文本
|
49
|
-
|
50
|
-
@emits
|
51
|
-
@emit {update:modelValue} - 当对话框关闭时触发,用于更新v-model绑定值
|
52
|
-
@emit {confirm} - 当用户点击确认按钮时触发
|
53
|
-
-->
|
54
|
-
|
55
|
-
<template>
|
56
|
-
<Transition name="fade" class="cosy:transition-opacity cosy:duration-200 cosy:ease-in-out">
|
57
|
-
<div v-if="modelValue"
|
58
|
-
class="cosy:fixed cosy:inset-0 cosy:z-50 cosy:flex cosy:items-center cosy:justify-center">
|
59
|
-
<!-- 背景遮罩 -->
|
60
|
-
<div class="cosy:absolute cosy:inset-0 cosy:bg-base-200/80 cosy:backdrop-blur-sm"
|
61
|
-
@click="$emit('update:modelValue', false)" />
|
62
|
-
|
63
|
-
<!-- 对话框 -->
|
64
|
-
<div
|
65
|
-
class="cosy:relative cosy:bg-base-100 cosy:rounded-xl cosy:shadow-xl cosy:w-[400px] cosy:transform cosy:transition-all">
|
66
|
-
<!-- 内容区域 -->
|
67
|
-
<div class="cosy:p-6">
|
68
|
-
<h3 class="cosy:text-lg cosy:font-medium cosy:text-base-content cosy:mb-2">
|
69
|
-
{{ title }}
|
70
|
-
</h3>
|
71
|
-
<p class="cosy:text-base-content/80">
|
72
|
-
{{ message }}
|
73
|
-
</p>
|
74
|
-
</div>
|
75
|
-
|
76
|
-
<!-- 按钮区域 -->
|
77
|
-
<div class="cosy:flex cosy:border-t cosy:border-base-300">
|
78
|
-
<button class="cosy:flex-1 cosy:btn cosy:btn-ghost cosy:rounded-none cosy:rounded-bl-xl"
|
79
|
-
@click="$emit('update:modelValue', false)">
|
80
|
-
{{ cancelText }}
|
81
|
-
</button>
|
82
|
-
<button
|
83
|
-
class="cosy:flex-1 cosy:btn cosy:btn-ghost cosy:text-primary cosy:rounded-none cosy:rounded-br-xl cosy:border-l cosy:border-base-300"
|
84
|
-
@click="handleConfirm">
|
85
|
-
{{ confirmText }}
|
86
|
-
</button>
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
</Transition>
|
91
|
-
</template>
|
92
|
-
|
93
|
-
<script setup lang="ts">
|
94
|
-
import '../../style'
|
95
|
-
|
96
|
-
defineProps({
|
97
|
-
modelValue: Boolean,
|
98
|
-
title: {
|
99
|
-
type: String,
|
100
|
-
default: 'Confirm'
|
101
|
-
},
|
102
|
-
message: {
|
103
|
-
type: String,
|
104
|
-
default: 'Are you sure you want to confirm this action?'
|
105
|
-
},
|
106
|
-
cancelText: {
|
107
|
-
type: String,
|
108
|
-
default: '取消'
|
109
|
-
},
|
110
|
-
confirmText: {
|
111
|
-
type: String,
|
112
|
-
default: '确认'
|
113
|
-
}
|
114
|
-
})
|
115
|
-
|
116
|
-
const emit = defineEmits(['update:modelValue', 'confirm'])
|
117
|
-
|
118
|
-
const handleConfirm = () => {
|
119
|
-
emit('update:modelValue', false)
|
120
|
-
emit('confirm')
|
121
|
-
}
|
122
|
-
</script>
|
123
|
-
|
124
|
-
<style scoped>
|
125
|
-
.fade-enter-active,
|
126
|
-
.fade-leave-active {
|
127
|
-
transition: opacity 0.2s ease;
|
128
|
-
}
|
129
|
-
|
130
|
-
.fade-enter-from,
|
131
|
-
.fade-leave-to {
|
132
|
-
opacity: 0;
|
133
|
-
}
|
134
|
-
</style>
|
@@ -1,69 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
@component ConfirmDialog.CustomButtons
|
3
|
-
|
4
|
-
@description
|
5
|
-
展示如何自定义 ConfirmDialog 组件的按钮文本。
|
6
|
-
|
7
|
-
@usage
|
8
|
-
```vue
|
9
|
-
<ConfirmDialogExamples.CustomButtons />
|
10
|
-
```
|
11
|
-
-->
|
12
|
-
|
13
|
-
<script lang="ts">
|
14
|
-
import '../../app.css'
|
15
|
-
import { ref, defineComponent } from 'vue'
|
16
|
-
import ConfirmDialog from './ConfirmDialog.vue'
|
17
|
-
|
18
|
-
export default defineComponent({
|
19
|
-
name: 'ConfirmDialogCustomButtonsExample',
|
20
|
-
components: {
|
21
|
-
ConfirmDialog
|
22
|
-
},
|
23
|
-
setup() {
|
24
|
-
const isShowDelete = ref(false)
|
25
|
-
const isShowSave = ref(false)
|
26
|
-
const result = ref('')
|
27
|
-
|
28
|
-
const handleConfirm = (action: string) => {
|
29
|
-
result.value = `用户已${action}`
|
30
|
-
|
31
|
-
// 3秒后清除结果
|
32
|
-
setTimeout(() => {
|
33
|
-
result.value = ''
|
34
|
-
}, 3000)
|
35
|
-
}
|
36
|
-
|
37
|
-
return {
|
38
|
-
isShowDelete,
|
39
|
-
isShowSave,
|
40
|
-
result,
|
41
|
-
handleConfirm
|
42
|
-
}
|
43
|
-
}
|
44
|
-
})
|
45
|
-
</script>
|
46
|
-
|
47
|
-
<template>
|
48
|
-
<div class="cosy:flex cosy:flex-col cosy:gap-4">
|
49
|
-
<div class="cosy:flex cosy:gap-4">
|
50
|
-
<button @click="isShowDelete = true" class="cosy:btn cosy:btn-error">
|
51
|
-
删除文件
|
52
|
-
</button>
|
53
|
-
|
54
|
-
<button @click="isShowSave = true" class="cosy:btn cosy:btn-success">
|
55
|
-
保存更改
|
56
|
-
</button>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div v-if="result" class="cosy:alert cosy:alert-info cosy:shadow-lg">
|
60
|
-
<span>{{ result }}</span>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<ConfirmDialog v-model="isShowDelete" title="警告" message="您确定要删除这个文件吗?此操作无法撤销。" cancel-text="取消" confirm-text="删除"
|
65
|
-
@confirm="handleConfirm('删除了文件')" />
|
66
|
-
|
67
|
-
<ConfirmDialog v-model="isShowSave" title="保存更改" message="您的更改尚未保存,确定要保存吗?" cancel-text="稍后再说" confirm-text="保存"
|
68
|
-
@confirm="handleConfirm('保存了更改')" />
|
69
|
-
</template>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import Basic from './Basic.vue';
|
2
|
-
import CustomButtons from './CustomButtons.vue';
|
3
|
-
import BasicSource from './Basic.vue?raw';
|
4
|
-
import CustomButtonsSource from './CustomButtons.vue?raw';
|
5
|
-
import { extractSimpleExample } from '../../utils/component';
|
6
|
-
|
7
|
-
// 导出主组件
|
8
|
-
export { default as ConfirmDialog } from './ConfirmDialog.vue';
|
9
|
-
|
10
|
-
// 导出示例组件
|
11
|
-
export const ConfirmDialogExamples = {
|
12
|
-
Basic,
|
13
|
-
CustomButtons,
|
14
|
-
};
|
15
|
-
|
16
|
-
// 导出示例源代码
|
17
|
-
export const ConfirmDialogExampleCodes = {
|
18
|
-
Basic: extractSimpleExample(BasicSource, 'ConfirmDialog'),
|
19
|
-
CustomButtons: extractSimpleExample(CustomButtonsSource, 'ConfirmDialog'),
|
20
|
-
};
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="alertTriangle" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="calendar" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="checkCircle" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="check" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="chevronDown" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="clipboard" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="close" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="inboxArchive" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="infoCircle" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="info" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="link" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import Icon from './VueIcon.vue';
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
/**
|
6
|
-
* 图标的大小
|
7
|
-
* @default "24px"
|
8
|
-
*/
|
9
|
-
size?: string;
|
10
|
-
/**
|
11
|
-
* 图标的颜色
|
12
|
-
* @default "currentColor"
|
13
|
-
*/
|
14
|
-
color?: string;
|
15
|
-
/**
|
16
|
-
* 自定义类名
|
17
|
-
*/
|
18
|
-
class?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
size: '24px',
|
23
|
-
color: 'currentColor',
|
24
|
-
class: ''
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
|
28
|
-
<template>
|
29
|
-
<Icon name="menu" :size="size" :color="color" :class="props.class" />
|
30
|
-
</template>
|