feat: 首次提交

This commit is contained in:
2023-06-21 12:04:22 +08:00
commit e2d9a227c0
44 changed files with 11977 additions and 0 deletions

37
.storybook/main.ts Normal file
View File

@ -0,0 +1,37 @@
/*
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-06-15 13:22:59
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-06-21 11:18:51
* @FilePath: \vue3\.storybook\main.ts
* @Description:
*/
import type { StorybookConfig } from "@storybook/vue3-vite"
import Unocss from 'unocss/vite'
const config: StorybookConfig = {
stories: ["../stories/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
core: {
builder: '@storybook/builder-vite', // 👈 The builder enabled here.
},
framework: {
name: "@storybook/vue3-vite",
options: {},
},
docs: {
autodocs: "tag",
defaultName: '文档',
},
viteFinal(config) {
config.plugins?.push(Unocss())
// Add other configuration here depending on your use case
return config
},
}
export default config

26
.storybook/preview.ts Normal file
View File

@ -0,0 +1,26 @@
/*
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-06-15 13:22:59
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-06-21 10:16:53
* @FilePath: \tianheng-design\.storybook\preview.ts
* @Description:
*
*/
import type { Preview } from "@storybook/vue3"
import 'uno.css'
const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
}
export default preview