Open OfirD1 opened 3 years ago
same here ,
一样的
dtto
solution:
<!DOCTYPE html>
<html>
<head>
<link
href="https://unpkg.com/vuesax-alpha/theme-chalk/index.css"
rel="stylesheet"
/>
<meta
name="viewport"
content="initial-scale=1, maximum-scale=1, user-scalable=no"
/>
</head>
<body>
<div id="app">
<vs-button>Hello World</vs-button>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="https://unpkg.com/vuesax-alpha/dist/index.full.min.js"></script>
<script>
const {createApp} = Vue
const {VsButton, VsCard} = VuesaxAlpha
createApp({
components: {VsButton, VsCard}
}).mount('#app')
</script>
</body>
</html>
In the following codepen, I use the
js
andcss
files provided on the Getting Started page and the sidebar template, but get errors:Note that this codepen has a
vs-button
, which works fine - it's only thevs-sidebar
components that seem to not work.What should be done to fix it?