feat:增加vant组件库
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
<bill-daily-list v-if="billStore.billDateType === 'year'"/>
|
||||
<bill-calendar v-if="billStore.billDateType === 'month'" />
|
||||
|
||||
<el-button type="primary" :icon="Plus" circle size="large"
|
||||
@click="addNewBillRecordClick" class="add-new" />
|
||||
<van-floating-bubble icon="plus" @click="addClick" style="top: -60px;"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -15,7 +14,6 @@ import BillCalendar from '@/components/Bill/BillCalendar.vue'
|
||||
import BillDailyList from '@/components/Bill/BillDailyList.vue'
|
||||
import { onMounted } from 'vue'
|
||||
import { useBillStore } from '@/store/bill.ts'
|
||||
import { Plus } from '@element-plus/icons-vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { getCurrentMonth, getCurrentYear } from 'vue3-common/utils/dateUtil'
|
||||
|
||||
@@ -41,7 +39,7 @@ onMounted(async () => {
|
||||
await billStore.refreshInfo()
|
||||
})
|
||||
|
||||
const addNewBillRecordClick = () => {
|
||||
const addClick = () => {
|
||||
billStore.billApiType = 'ADD'
|
||||
billStore.currentBillRecord = billStore.getEmptyBillRecord()
|
||||
router.push({ name: 'BillDetailId', params: { id: 0 } })
|
||||
|
||||
Reference in New Issue
Block a user