@ebiz/designer-components 0.0.18-beta.19 → 0.0.18-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/router/index.js
CHANGED
@@ -240,6 +240,12 @@ const routes = [
|
|
240
240
|
name: 'TableDemo',
|
241
241
|
component: () => import('../views/TableDemo.vue'),
|
242
242
|
meta: { title: 'Ebiz表格组件示例' }
|
243
|
+
},
|
244
|
+
{
|
245
|
+
path: '/ebiz-detail-block',
|
246
|
+
name: 'EbizDetailBlock',
|
247
|
+
component: () => import('../views/EbizDetailBlockDemo.vue'),
|
248
|
+
meta: { title: 'Ebiz详情块组件示例' }
|
243
249
|
}
|
244
250
|
]
|
245
251
|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<ebiz-route-breadcrumb />
|
4
|
+
<ebiz-detail-block :model="model" :labelMap="labelMap"/>
|
5
|
+
</div>
|
6
|
+
</template>
|
7
|
+
|
8
|
+
<script>
|
9
|
+
import { EbizDetailBlock } from '@/index.js'
|
10
|
+
|
11
|
+
export default {
|
12
|
+
name: 'EbizDetailBlockDemo',
|
13
|
+
components: {
|
14
|
+
EbizDetailBlock
|
15
|
+
},
|
16
|
+
data() {
|
17
|
+
return {
|
18
|
+
model: {
|
19
|
+
"name": "张三",
|
20
|
+
"sex": "男"
|
21
|
+
},
|
22
|
+
labelMap:{
|
23
|
+
"name": "姓名",
|
24
|
+
"sex": "性别"
|
25
|
+
}
|
26
|
+
}
|
27
|
+
},
|
28
|
+
}
|
29
|
+
</script>
|
30
|
+
|
31
|
+
<style scoped></style>
|
package/src/views/Home.vue
CHANGED
@@ -54,7 +54,8 @@ export default {
|
|
54
54
|
{ path: '/ebiz-employee-info', title: 'Ebiz员工信息组件示例' },
|
55
55
|
{ path: '/tdesign-alert', title: 'TDesign提示组件示例' },
|
56
56
|
{ path: '/tdesign-dialog', title: 'TDesign对话框组件示例' },
|
57
|
-
{ path: '/table-demo', title: 'Ebiz表格组件示例' }
|
57
|
+
{ path: '/table-demo', title: 'Ebiz表格组件示例' },
|
58
|
+
{ path: '/ebiz-detail-block', title: 'Ebiz详情块组件示例' }
|
58
59
|
]
|
59
60
|
|
60
61
|
return {
|