面包屑导航

This commit is contained in:
gary.fu
2024-01-02 17:10:45 +08:00
parent cb4e3110ca
commit 7689b58b13
18 changed files with 165 additions and 48 deletions

View File

@@ -27,7 +27,8 @@ const props = defineProps({
default: '100px'
},
model: {
type: Object
type: Object,
default: null
},
showButtons: {
type: Boolean,
@@ -40,10 +41,6 @@ const props = defineProps({
showReset: {
type: Boolean,
default: true
},
submitForm: {
type: Function,
default () {}
}
})
@@ -77,6 +74,8 @@ const rules = computed(() => {
return ruleResult
})
defineEmits(['submitForm'])
const form = ref()
</script>
@@ -99,7 +98,7 @@ const form = ref()
<el-button
v-if="showSubmit"
type="primary"
@click="submitForm(form)"
@click="$emit('submitForm', form)"
>
{{ $t('common.label.submit') }}
</el-button>