feat 制定eslint规则
This commit is contained in:
@@ -1,15 +1,37 @@
|
||||
<script setup lang="ts">
|
||||
import { useDialog } from '@wot-ui/ui'
|
||||
|
||||
import { mockData } from '@/mock/index'
|
||||
|
||||
definePage({
|
||||
layout: false,
|
||||
})
|
||||
|
||||
const dialog = useDialog()
|
||||
|
||||
function openConfirm() {
|
||||
dialog
|
||||
.confirm({
|
||||
title: '提示',
|
||||
msg: '确认执行此操作吗?',
|
||||
})
|
||||
.then(() => {
|
||||
console.log('点击了确认')
|
||||
})
|
||||
.catch(() => {
|
||||
console.log('点击了取消')
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view>首页</view>
|
||||
<view>消息:{{ mockData.message }}</view>
|
||||
<view>时间:{{ mockData.time }}</view>
|
||||
<wd-dialog />
|
||||
<wd-button @click="openConfirm">
|
||||
打开 Confirm
|
||||
</wd-button>
|
||||
</template>
|
||||
|
||||
<style></style>
|
||||
|
||||
Reference in New Issue
Block a user