4.1.7一些小细节更新

This commit is contained in:
XiaoDaiGua-Ray 2023-08-11 22:48:39 +08:00
parent 018f4a9aca
commit a9c7e6589f
2 changed files with 26 additions and 4 deletions

View File

@ -77,13 +77,31 @@ const MockDemo = defineComponent({
render: (row: Person) => { render: (row: Person) => {
return ( return (
<NSpace align="center"> <NSpace align="center">
<NButton type="primary" text> <NButton
type="primary"
text
onClick={() => {
window.$message.info('查看')
}}
>
</NButton> </NButton>
<NButton type="primary" text> <NButton
type="primary"
text
onClick={() => {
window.$message.warning('编辑')
}}
>
</NButton> </NButton>
<NButton type="error" text> <NButton
type="error"
text
onClick={() => {
window.$message.error('删除')
}}
>
</NButton> </NButton>
</NSpace> </NSpace>
@ -129,7 +147,10 @@ const MockDemo = defineComponent({
return ( return (
<NSpace vertical wrapItem={false}> <NSpace vertical wrapItem={false}>
<NCard title="Mock 数据"> <NCard title="Mock 数据">
<h2> mock 使</h2> <h2>
mock
使
</h2>
</NCard> </NCard>
<NCard title="提示"> <NCard title="提示">
<h2> <h2>

View File

@ -170,6 +170,7 @@ export default defineConfig(async ({ mode }) => {
'mock/shared/**', 'mock/shared/**',
], ],
reload: true, reload: true,
build: true,
}), }),
], ],
optimizeDeps: { optimizeDeps: {