mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
32 lines
502 B
Vue
32 lines
502 B
Vue
<template>
|
|
<div>{{store.counter}}</div>
|
|
<FButton class="m-2" @click="store.increment">Button</FButton>
|
|
</template>
|
|
<config>
|
|
{
|
|
"name": "pinia",
|
|
"title": "pinia"
|
|
}
|
|
</config>
|
|
<script>
|
|
import { useStore } from '@/store/main';
|
|
import { FButton } from '@fesjs/fes-design';
|
|
|
|
export default {
|
|
components: {
|
|
FButton
|
|
},
|
|
setup() {
|
|
const store = useStore();
|
|
console.log(store);
|
|
return {
|
|
store
|
|
};
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style>
|