mirror of
				https://github.com/antd-tiny-vue/antd-tiny-vue.git
				synced 2025-10-31 16:51:45 +08:00 
			
		
		
		
	chore: add docs
This commit is contained in:
		
							
								
								
									
										13
									
								
								components/button/demos/basic.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								components/button/demos/basic.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| <docs> | ||||
| --- | ||||
| title: Basic | ||||
| --- | ||||
|  | ||||
| 这是基础按钮 | ||||
| </docs> | ||||
|  | ||||
| <script lang="ts" setup></script> | ||||
|  | ||||
| <template> | ||||
|   <div></div> | ||||
| </template> | ||||
							
								
								
									
										1
									
								
								components/button/index.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								components/button/index.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| # Button | ||||
							
								
								
									
										1
									
								
								components/button/index.zh-CN.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								components/button/index.zh-CN.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| # Button 按钮 | ||||
							
								
								
									
										12
									
								
								docs/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								docs/index.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| <head> | ||||
|   <meta charset="UTF-8"> | ||||
|   <title>Antd Tiny Vue</title> | ||||
|   <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
| </head> | ||||
| <body> | ||||
| <div id="app"></div> | ||||
| <script type="module" src="/src/main.ts"></script> | ||||
| </body> | ||||
| </html> | ||||
							
								
								
									
										5
									
								
								docs/src/App.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								docs/src/App.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| <script lang="ts" setup></script> | ||||
|  | ||||
| <template> | ||||
|   <router-view /> | ||||
| </template> | ||||
							
								
								
									
										5
									
								
								docs/src/main.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								docs/src/main.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| import { createApp } from 'vue' | ||||
| import App from './App.vue' | ||||
| const app = createApp(App) | ||||
|  | ||||
| app.mount('#app') | ||||
							
								
								
									
										7
									
								
								docs/src/pages/index.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								docs/src/pages/index.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| <script lang="ts" setup></script> | ||||
|  | ||||
| <template> | ||||
|   <div> | ||||
|     <!--        --> | ||||
|   </div> | ||||
| </template> | ||||
							
								
								
									
										6
									
								
								docs/vite.config.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								docs/vite.config.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| import { defineConfig } from 'vite' | ||||
| import vueJsxPlugin from '@vitejs/plugin-vue-jsx' | ||||
| import vue from '@vitejs/plugin-vue' | ||||
| export default defineConfig({ | ||||
|   plugins: [vue(), vueJsxPlugin()] | ||||
| }) | ||||
| @@ -28,6 +28,7 @@ | ||||
|     "@mistjs/tsconfig": "^1.0.0", | ||||
|     "@mistjs/tsconfig-vue": "^0.0.3", | ||||
|     "@types/node": "^18.15.9", | ||||
|     "@vitejs/plugin-vue": "^4.1.0", | ||||
|     "@vitejs/plugin-vue-jsx": "^3.0.1", | ||||
|     "eslint": "^8.36.0", | ||||
|     "husky": "^8.0.3", | ||||
| @@ -35,9 +36,10 @@ | ||||
|     "prettier": "^2.8.7", | ||||
|     "typescript": "^4.9.5", | ||||
|     "vite": "^4.2.1", | ||||
|     "vite-plugin-vitepress-demo": "2.0.0-alpha.8", | ||||
|     "vite-plugin-vitepress-demo": "2.0.0-beta.26", | ||||
|     "vitepress": "1.0.0-alpha.63", | ||||
|     "vitest": "^0.28.5" | ||||
|     "vitest": "^0.28.5", | ||||
|     "vue-router": "^4.1.6" | ||||
|   }, | ||||
|   "pnpm": { | ||||
|     "peerDependencyRules": { | ||||
|   | ||||
							
								
								
									
										1735
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1735
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,12 +1,7 @@ | ||||
| import { defineConfig } from 'vite' | ||||
| import vueJsxPlugin from '@vitejs/plugin-vue-jsx' | ||||
| import { VitePluginVitepressDemo } from 'vite-plugin-vitepress-demo' | ||||
| import VitePluginVitepressDemo from 'vite-plugin-vitepress-demo' | ||||
|  | ||||
| export default defineConfig({ | ||||
|   plugins: [ | ||||
|     vueJsxPlugin(), | ||||
|     VitePluginVitepressDemo({ | ||||
|       glob: ['**/demos/**/*.vue'] | ||||
|     }) | ||||
|   ] | ||||
|   plugins: [vueJsxPlugin(), VitePluginVitepressDemo()] | ||||
| }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user