diff --git a/.gitignore b/.gitignore index cb0da3d6e8958e846850ff66ae5dab6335175d80..c65d1ad6f293b843f028ae10ab549934a8d970d4 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ dist-ssr *.njsproj *.sln *.sw? + + +.history diff --git a/index.html b/index.html index 795e4fbadb8831b5265039102fa28dd7e1c6a6a0..a5f2f19c0e72ae55bab322d11a43b6e5f8fce121 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,16 @@ - - - - - Vite + Vue - - -
- - + + + + + + BG-UI Demos + + + +
+ + + diff --git a/src/App.vue b/src/App.vue index 1b9f73bc1e09ddc1f5c84bc407a9ffebf0044595..8d2516966dbaa1c1ca9133838d51060737855da8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,23 @@ - diff --git a/src/assets/reset.css b/src/assets/reset.css new file mode 100644 index 0000000000000000000000000000000000000000..e1a6f0a931f6a140ba122b23e09a7ffbf660d38c --- /dev/null +++ b/src/assets/reset.css @@ -0,0 +1,75 @@ +/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */ +html, +body, +p, +ol, +ul, +li, +dl, +dt, +dd, +blockquote, +figure, +fieldset, +legend, +textarea, +pre, +iframe, +hr, +h1, +h2, +h3, +h4, +h5, +h6 { + margin: 0; + padding: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-size: 100%; + font-weight: normal; +} + +ul { + list-style: none; +} + +button, +input, +select { + margin: 0; +} + +html { + box-sizing: border-box; +} + +*, *::before, *::after { + box-sizing: inherit; +} + +img, +video { + height: auto; + max-width: 100%; +} + +iframe { + border: 0; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} diff --git a/src/components/componentWrapper.vue b/src/components/componentWrapper.vue new file mode 100644 index 0000000000000000000000000000000000000000..68f2af784df2dafff120317e463844149f6fe0b3 --- /dev/null +++ b/src/components/componentWrapper.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/main.js b/src/main.js index ebea13567d0fe20fe8a745cc1bc37c8fc923d694..e0cf48d881e0cc31e845bce02cb44c981bb87043 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,12 @@ import { createApp } from "vue"; +import ElementPlus from "element-plus"; +import "element-plus/dist/index.css"; +import locale from "element-plus/lib/locale/lang/zh-cn"; + import App from "./App.vue"; +import "@/assets/reset.css"; import bgui from "@/bg-ui"; import "@/bg-ui/index.scss"; -createApp(App).use(bgui).mount("#app"); +createApp(App).use(ElementPlus, { locale, size: "small" }).use(bgui).mount("#app");