fix: 修复Breadcrumb配置textField的demo不显示面包屑内容 #207 (#210)

This commit is contained in:
ing 2023-05-12 20:43:16 -07:00 committed by GitHub
parent 969550b2d6
commit 437d1e6177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -22,11 +22,11 @@
"defaultValue": "[]"
},
{
"name": "textField",
"name": "text-field",
"sample": "options",
"type": "Array",
"type": "String",
"desc": "Specify the breadcrumb display field. This field is used together with options. The component defaults to label.",
"defaultValue": "[]"
"defaultValue": "label"
}
],
"events": [

View File

@ -22,11 +22,11 @@
"defaultValue": "[]"
},
{
"name": "textField",
"name": "text-field",
"sample": "options",
"type": "Array",
"type": "String",
"desc": "指定面包屑的显示字段,结合 options 使用,组件默认 label ",
"defaultValue": "[]"
"defaultValue": "label"
}
],
"events": [

View File

@ -1,7 +1,7 @@
<template>
<div>
<tiny-breadcrumb :options="options" @select="itemClick"></tiny-breadcrumb>
<tiny-breadcrumb :options="options1" textField="name" @select="itemClick"></tiny-breadcrumb>
<tiny-breadcrumb :options="options1" text-field="name" @select="itemClick"></tiny-breadcrumb>
</div>
</template>