@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebiz/designer-components",
3
- "version": "0.0.18-beta.19",
3
+ "version": "0.0.18-beta.20",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -44,11 +44,12 @@ const detailItems = computed(() => {
44
44
 
45
45
  .label {
46
46
  color: #86909C;
47
- text-align: right;
47
+ width: 50%;
48
48
  padding-right: 16px;
49
49
  }
50
50
 
51
51
  .value {
52
52
  color: #0A0A0A;
53
+ width: 50%;
53
54
  }
54
55
  </style>
@@ -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>
@@ -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 {