Skip to content

Commit

Permalink
fix(breadcrumb): [breadcrumb] resolve the issue of separator not swit…
Browse files Browse the repository at this point in the history
…ching (#1783)
  • Loading branch information
wuyiping0628 authored Jul 26, 2024
1 parent b0f0035 commit f2d1a8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/renderless/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentiny/vue-renderless",
"version": "3.17.5",
"version": "3.17.6",
"private": true,
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
"author": "OpenTiny Team",
Expand Down
9 changes: 3 additions & 6 deletions packages/renderless/src/breadcrumb-item/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,15 @@ export const api = ['linkClick', 'state']

export const renderless = (
props: IBreadcrumbItemProps,
{ reactive, inject }: ISharedRenderlessParamHooks,
{ designConfig },
{ refs, router, emit }: IBreadcrumbItemRenderlessParamUtils
{ reactive, inject, computed }: ISharedRenderlessParamHooks,
{ refs, router, emit, designConfig }: IBreadcrumbItemRenderlessParamUtils
) => {
const breadcrumbEmitter = inject('breadcrumbEmitter')
const breadcrumb = inject('breadcrumb')
const constants = breadcrumb._constants
// separator
const separator = breadcrumb.separator || designConfig?.separator || '>'
const state = reactive({
size: inject('size', null),
separator
separator: computed(() => breadcrumb.separator || designConfig?.separator || '>')
})
const api: IBreadcrumbItemApi = {
state,
Expand Down

0 comments on commit f2d1a8d

Please sign in to comment.