-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use vite as builder and demo runtime (#312)
- Loading branch information
Showing
50 changed files
with
856 additions
and
4,876 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 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 |
---|---|---|
@@ -1,55 +1,21 @@ | ||
<template> | ||
<div class="text-center m-64"> | ||
<button @click="showToast">Show toast</button> | ||
</div> | ||
<img alt="Vue logo" src="./assets/logo.png" /> | ||
<HelloWorld msg="Hello Vue 3 + TypeScript + Vite" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { ref } from "vue" | ||
import { useToast } from "./vue-toastification" | ||
<script setup lang="ts"> | ||
// This starter template is using Vue 3 <script setup> SFCs | ||
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup | ||
import HelloWorld from "./components/HelloWorld.vue" | ||
</script> | ||
|
||
import VRadio from "./components/ui/Radio/index" | ||
import VSwitch from "./components/ui/Switch/index" | ||
import VSlider from "./components/ui/Slider/index" | ||
import VInput from "./components/ui/Input" | ||
import VSelect from "./components/ui/Select" | ||
import VButton from "./components/ui/Button" | ||
import VCode from "./components/ui/Code" | ||
export default { | ||
name: "App", | ||
components: { | ||
HelloWorld, | ||
VRadio, | ||
VSlider, | ||
VSwitch, | ||
VInput, | ||
VSelect, | ||
VButton, | ||
VCode, | ||
}, | ||
setup() { | ||
const toast = useToast() | ||
const myData = ref(true) | ||
const slider = ref(0) | ||
const input = ref("hey") | ||
const disable = ref(false) | ||
const choices = ref([ | ||
{ text: "hey", value: "1" }, | ||
{ text: "oh", value: "2" }, | ||
]) | ||
const choice = ref(choices.value[0]) | ||
const showToast = () => toast.success("hey") | ||
return { toast, myData, choices, choice, slider, input, disable, showToast } | ||
}, | ||
<style> | ||
#app { | ||
font-family: Avenir, Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
text-align: center; | ||
color: #2c3e50; | ||
margin-top: 60px; | ||
} | ||
</script> | ||
</style> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.