feat: finish curd table

This commit is contained in:
张传龙
2022-09-03 22:28:37 +08:00
parent d1dd58215d
commit b59e47b5dd
7 changed files with 292 additions and 91 deletions

View File

@@ -5,7 +5,7 @@
<footer flex justify-end>
<slot name="footer">
<n-button @click="show = false">取消</n-button>
<n-button ml-20 type="primary" @click="emit('onSave')">保存</n-button>
<n-button :loading="loading" ml-20 type="primary" @click="emit('onSave')">保存</n-button>
</slot>
</footer>
</template>
@@ -30,6 +30,10 @@ const props = defineProps({
type: Boolean,
required: true,
},
loading: {
type: Boolean,
default: false,
},
})
const emit = defineEmits(['update:visible', 'onSave'])