forked from vueComponent/pro-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: breadcrumbRender and props breadcrumb vueComponent#10
- Loading branch information
Showing
14 changed files
with
308 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<template> | ||
<page-header-wrapper | ||
:tab-list="tabList" | ||
:tab-active-key="tabActiveKey" | ||
:tab-change="(key) => { | ||
this.tabActiveKey = key | ||
console.log('PageHeader::tabChange', key) | ||
}" | ||
@back="() => { | ||
console.log('PageHeader::@back') | ||
}" | ||
:back="() => { | ||
// 自定义 back,不会覆盖 onBack 事件 | ||
console.log('PageHeader::.back') | ||
}" | ||
> | ||
<template v-slot:content> | ||
<span>{{ $t('pages.form.basicform.content') }}</span> | ||
</template> | ||
<template v-slot:extraContent> | ||
<div><a-button>{{ $t('pages.form.basicform.headers.btn1') }}</a-button></div> | ||
</template> | ||
<div> | ||
<strong>Advanced Form</strong> | ||
</div> | ||
</page-header-wrapper> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'AdvancedForm', | ||
data () { | ||
return { | ||
console: window.console, | ||
tabList: [ | ||
{ tab: 'pages.form.basicform.tabs.tab1', key: 'tab1' }, | ||
{ tab: 'pages.form.basicform.tabs.tab2', key: 'tab2' }, | ||
{ tab: 'pages.form.basicform.tabs.tab3', key: 'tab3' } | ||
], | ||
tabActiveKey: 'tab1' | ||
} | ||
}, | ||
methods: { | ||
handleTabChange (key) { | ||
this.tabActiveKey = key | ||
console.log('PageHeader::tabChange', key) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<template> | ||
<page-header-wrapper | ||
:tab-list="tabList" | ||
:tab-active-key="tabActiveKey" | ||
:tab-change="(key) => { | ||
this.tabActiveKey = key | ||
console.log('PageHeader::tabChange', key) | ||
}" | ||
@back="() => { | ||
console.log('PageHeader::@back') | ||
}" | ||
:back="() => { | ||
// 自定义 back,不会覆盖 onBack 事件 | ||
console.log('PageHeader::.back') | ||
}" | ||
> | ||
<template v-slot:content> | ||
<span>{{ $t('pages.form.basicform.content') }}</span> | ||
</template> | ||
<template v-slot:extraContent> | ||
<div><a-button>{{ $t('pages.form.basicform.headers.btn1') }}</a-button></div> | ||
</template> | ||
<div> | ||
<strong>Basic Form</strong> | ||
</div> | ||
</page-header-wrapper> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'BasicForm', | ||
data () { | ||
return { | ||
console: window.console, | ||
tabList: [ | ||
{ tab: 'pages.form.basicform.tabs.tab1', key: 'tab1' }, | ||
{ tab: 'pages.form.basicform.tabs.tab2', key: 'tab2' }, | ||
{ tab: 'pages.form.basicform.tabs.tab3', key: 'tab3' } | ||
], | ||
tabActiveKey: 'tab1' | ||
} | ||
}, | ||
methods: { | ||
handleTabChange (key) { | ||
this.tabActiveKey = key | ||
console.log('PageHeader::tabChange', key) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
Oops, something went wrong.