@dckj-npm/dc-material 0.1.39 → 0.1.40
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/README.md +17 -17
- package/build/index.js +8 -8
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.js +6 -6
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +4 -4
- package/dist/BizComps.js.map +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/es/components/bottom-navigation/index.d.ts +3 -3
- package/es/components/bottom-navigation/index.scss +24 -24
- package/es/components/button/button.d.ts +14 -14
- package/es/components/button/index.d.ts +6 -6
- package/es/components/button/index.js +2 -2
- package/es/components/button/index.scss +16 -16
- package/es/components/carousel/carousel.d.ts +14 -14
- package/es/components/carousel/carousel.scss +32 -32
- package/es/components/colorful-button/colorful-button.d.ts +12 -12
- package/es/components/colorful-button/index.d.ts +3 -3
- package/es/components/colorful-button/index.scss +5 -5
- package/es/components/colorful-input/colorful-input.d.ts +8 -8
- package/es/components/colorful-input/index.d.ts +3 -3
- package/es/components/colorful-input/index.scss +5 -5
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/es/components/goods-card-list/goods-card-list.scss +112 -112
- package/es/components/goods-card-list/index.d.ts +3 -3
- package/es/components/goods-card-list/types.d.ts +45 -45
- package/es/components/grid-nav/grid-nav.d.ts +13 -13
- package/es/components/grid-nav/index.d.ts +3 -3
- package/es/components/grid-nav/index.scss +41 -37
- package/es/components/integral-task/index.d.ts +6 -6
- package/es/components/integral-task/index.js +2 -2
- package/es/components/integral-task/index.scss +35 -35
- package/es/components/integral-task/integral-task.d.ts +40 -40
- package/es/components/menu-list/index.d.ts +6 -6
- package/es/components/menu-list/index.js +2 -2
- package/es/components/menu-list/index.scss +16 -16
- package/es/components/menu-list/menu-list-item.d.ts +5 -5
- package/es/components/menu-list/menu-list-item.scss +49 -49
- package/es/components/menu-list/menu-list.d.ts +5 -5
- package/es/components/menu-list/types.d.ts +23 -23
- package/es/components/message-list/index.d.ts +6 -6
- package/es/components/message-list/index.js +2 -2
- package/es/components/message-list/index.scss +22 -22
- package/es/components/message-list/message-list-item.d.ts +29 -29
- package/es/components/message-list/message-list-item.js +2 -2
- package/es/components/message-list/message-list-item.scss +50 -50
- package/es/components/message-list/message-list.d.ts +32 -32
- package/es/components/notice-bar/index.d.ts +3 -3
- package/es/components/notice-bar/index.scss +29 -29
- package/es/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/es/components/notice-bar/notice-bar-item.scss +26 -26
- package/es/components/notice-bar/notice-bar.d.ts +37 -37
- package/es/components/position/entity.d.ts +5 -5
- package/es/components/position/index.d.ts +3 -3
- package/es/components/position/index.scss +27 -27
- package/es/components/position/position-left.d.ts +9 -9
- package/es/components/position/position-list.d.ts +12 -12
- package/es/components/position/position.d.ts +8 -8
- package/es/components/radio-group/index.d.ts +8 -8
- package/es/components/radio-group/index.js +2 -2
- package/es/components/radio-group/index.scss +40 -40
- package/es/components/radio-group/radio-group-item.d.ts +48 -48
- package/es/components/radio-group/radio-group.d.ts +52 -52
- package/es/components/rich-text/index.d.ts +6 -0
- package/es/components/rich-text/index.js +6 -0
- package/es/components/rich-text/index.scss +8 -0
- package/es/components/rich-text/rich-text.d.ts +14 -0
- package/es/components/rich-text/rich-text.js +28 -0
- package/es/components/search-bar/index.d.ts +3 -3
- package/es/components/search-bar/index.scss +13 -13
- package/es/components/search-bar/search-bar.d.ts +7 -7
- package/es/components/swiper/index.d.ts +3 -3
- package/es/components/swiper/index.scss +12 -12
- package/es/components/swiper/swiper.d.ts +47 -47
- package/es/components/tab/index.d.ts +6 -6
- package/es/components/tab/index.js +2 -2
- package/es/components/tab/index.scss +23 -23
- package/es/components/tab/tab.d.ts +23 -23
- package/es/components/tab-container/index.d.ts +3 -3
- package/es/components/tab-container/index.scss +47 -47
- package/es/components/tab-container/tab-container.d.ts +10 -10
- package/es/components/tab-container-item/index.d.ts +3 -3
- package/es/components/tab-container-item/tab-container-item.d.ts +11 -9
- package/es/components/tab-container-item/tab-container-item.js +7 -2
- package/es/components/tag/index.d.ts +6 -6
- package/es/components/tag/index.js +2 -2
- package/es/components/tag/index.scss +24 -24
- package/es/components/tag/tag.d.ts +14 -14
- package/es/components/teletext-list/index.d.ts +6 -6
- package/es/components/teletext-list/index.js +2 -2
- package/es/components/teletext-list/index.scss +19 -19
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/es/components/teletext-list/teletext-list-item.js +8 -4
- package/es/components/teletext-list/teletext-list-item.scss +55 -55
- package/es/components/teletext-list/teletext-list.d.ts +61 -61
- package/es/components/teletext-list/teletext-list.js +2 -2
- package/es/components/title/index.d.ts +8 -8
- package/es/components/title/index.js +2 -2
- package/es/components/title/title-1.d.ts +10 -10
- package/es/components/title/title-1.scss +25 -25
- package/es/components/title/title-2.d.ts +18 -18
- package/es/components/title/title-2.scss +22 -22
- package/es/index.d.ts +42 -40
- package/es/index.js +4 -0
- package/es/index.scss +5 -5
- package/es/utils/children-node-handle.d.ts +9 -9
- package/es/utils/children-node-handle.js +7 -7
- package/es/utils/component-wrapper.d.ts +9 -9
- package/es/utils/debounce.d.ts +1 -1
- package/es/variables.d.ts +2 -2
- package/es/variables.scss +3 -3
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/lib/components/bottom-navigation/index.d.ts +3 -3
- package/lib/components/bottom-navigation/index.scss +24 -24
- package/lib/components/button/button.d.ts +14 -14
- package/lib/components/button/index.d.ts +6 -6
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/index.scss +16 -16
- package/lib/components/carousel/carousel.d.ts +14 -14
- package/lib/components/carousel/carousel.scss +32 -32
- package/lib/components/colorful-button/colorful-button.d.ts +12 -12
- package/lib/components/colorful-button/index.d.ts +3 -3
- package/lib/components/colorful-button/index.scss +5 -5
- package/lib/components/colorful-input/colorful-input.d.ts +8 -8
- package/lib/components/colorful-input/index.d.ts +3 -3
- package/lib/components/colorful-input/index.scss +5 -5
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/lib/components/goods-card-list/goods-card-list.scss +112 -112
- package/lib/components/goods-card-list/index.d.ts +3 -3
- package/lib/components/goods-card-list/types.d.ts +45 -45
- package/lib/components/grid-nav/grid-nav.d.ts +13 -13
- package/lib/components/grid-nav/index.d.ts +3 -3
- package/lib/components/grid-nav/index.scss +41 -37
- package/lib/components/integral-task/index.d.ts +6 -6
- package/lib/components/integral-task/index.js +2 -2
- package/lib/components/integral-task/index.scss +35 -35
- package/lib/components/integral-task/integral-task.d.ts +40 -40
- package/lib/components/menu-list/index.d.ts +6 -6
- package/lib/components/menu-list/index.js +2 -2
- package/lib/components/menu-list/index.scss +16 -16
- package/lib/components/menu-list/menu-list-item.d.ts +5 -5
- package/lib/components/menu-list/menu-list-item.scss +49 -49
- package/lib/components/menu-list/menu-list.d.ts +5 -5
- package/lib/components/menu-list/types.d.ts +23 -23
- package/lib/components/message-list/index.d.ts +6 -6
- package/lib/components/message-list/index.js +2 -2
- package/lib/components/message-list/index.scss +22 -22
- package/lib/components/message-list/message-list-item.d.ts +29 -29
- package/lib/components/message-list/message-list-item.js +2 -2
- package/lib/components/message-list/message-list-item.scss +50 -50
- package/lib/components/message-list/message-list.d.ts +32 -32
- package/lib/components/notice-bar/index.d.ts +3 -3
- package/lib/components/notice-bar/index.scss +29 -29
- package/lib/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/lib/components/notice-bar/notice-bar-item.scss +26 -26
- package/lib/components/notice-bar/notice-bar.d.ts +37 -37
- package/lib/components/position/entity.d.ts +5 -5
- package/lib/components/position/index.d.ts +3 -3
- package/lib/components/position/index.scss +27 -27
- package/lib/components/position/position-left.d.ts +9 -9
- package/lib/components/position/position-list.d.ts +12 -12
- package/lib/components/position/position.d.ts +8 -8
- package/lib/components/radio-group/index.d.ts +8 -8
- package/lib/components/radio-group/index.scss +40 -40
- package/lib/components/radio-group/radio-group-item.d.ts +48 -48
- package/lib/components/radio-group/radio-group.d.ts +52 -52
- package/lib/components/rich-text/index.d.ts +6 -0
- package/lib/components/rich-text/index.js +6 -0
- package/lib/components/rich-text/index.scss +8 -0
- package/lib/components/rich-text/rich-text.d.ts +14 -0
- package/lib/components/rich-text/rich-text.js +33 -0
- package/lib/components/search-bar/index.d.ts +3 -3
- package/lib/components/search-bar/index.scss +13 -13
- package/lib/components/search-bar/search-bar.d.ts +7 -7
- package/lib/components/swiper/index.d.ts +3 -3
- package/lib/components/swiper/index.scss +12 -12
- package/lib/components/swiper/swiper.d.ts +47 -47
- package/lib/components/tab/index.d.ts +6 -6
- package/lib/components/tab/index.js +2 -2
- package/lib/components/tab/index.scss +23 -23
- package/lib/components/tab/tab.d.ts +23 -23
- package/lib/components/tab-container/index.d.ts +3 -3
- package/lib/components/tab-container/index.scss +47 -47
- package/lib/components/tab-container/tab-container.d.ts +10 -10
- package/lib/components/tab-container-item/index.d.ts +3 -3
- package/lib/components/tab-container-item/tab-container-item.d.ts +11 -9
- package/lib/components/tab-container-item/tab-container-item.js +7 -2
- package/lib/components/tag/index.d.ts +6 -6
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/index.scss +24 -24
- package/lib/components/tag/tag.d.ts +14 -14
- package/lib/components/teletext-list/index.d.ts +6 -6
- package/lib/components/teletext-list/index.scss +19 -19
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/lib/components/teletext-list/teletext-list-item.js +8 -4
- package/lib/components/teletext-list/teletext-list-item.scss +55 -55
- package/lib/components/teletext-list/teletext-list.d.ts +61 -61
- package/lib/components/teletext-list/teletext-list.js +2 -2
- package/lib/components/title/index.d.ts +8 -8
- package/lib/components/title/title-1.d.ts +10 -10
- package/lib/components/title/title-1.scss +25 -25
- package/lib/components/title/title-2.d.ts +18 -18
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.d.ts +42 -40
- package/lib/index.js +5 -1
- package/lib/index.scss +5 -5
- package/lib/utils/children-node-handle.d.ts +9 -9
- package/lib/utils/children-node-handle.js +7 -7
- package/lib/utils/component-wrapper.d.ts +9 -9
- package/lib/utils/debounce.d.ts +1 -1
- package/lib/variables.d.ts +2 -2
- package/lib/variables.scss +3 -3
- package/lowcode/button2/meta.ts +75 -75
- package/lowcode/custom-radio-group/meta.ts +310 -310
- package/lowcode/custom-radio-group-item/meta.ts +229 -229
- package/lowcode/d-c-slider/meta.design.ts +173 -173
- package/lowcode/d-c-slider/meta.ts +342 -342
- package/lowcode/d-c-slider/snippets.ts +68 -68
- package/lowcode/goods-card-list/meta.ts +268 -268
- package/lowcode/grid-nav/meta.ts +212 -212
- package/lowcode/integral-task/meta.ts +211 -211
- package/lowcode/menu-list/meta.ts +147 -147
- package/lowcode/message-list/meta.ts +202 -202
- package/lowcode/navigation/meta.ts +165 -165
- package/lowcode/notice-bar/meta.ts +229 -229
- package/lowcode/position/meta.ts +161 -161
- package/lowcode/search-bar/meta.ts +54 -54
- package/lowcode/swiper/meta.ts +237 -237
- package/lowcode/tab-container/meta.ts +70 -70
- package/lowcode/tab-container/props.ts +194 -194
- package/lowcode/tab-container-item/meta.ts +195 -195
- package/lowcode/tab-message/meta.ts +101 -101
- package/lowcode/tag-c/meta.ts +75 -75
- package/lowcode/teletext-list/meta.ts +329 -329
- package/lowcode/title1/meta.ts +59 -59
- package/lowcode/title2/meta.ts +93 -93
- package/lowcode_es/button2/meta.d.ts +22 -22
- package/lowcode_es/custom-radio-group/meta.d.ts +22 -22
- package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -23
- package/lowcode_es/d-c-slider/meta.d.ts +148 -148
- package/lowcode_es/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_es/goods-card-list/meta.d.ts +22 -22
- package/lowcode_es/grid-nav/meta.d.ts +22 -22
- package/lowcode_es/integral-task/meta.d.ts +22 -22
- package/lowcode_es/menu-list/meta.d.ts +22 -22
- package/lowcode_es/message-list/meta.d.ts +22 -22
- package/lowcode_es/meta.js +23 -23
- package/lowcode_es/navigation/meta.d.ts +22 -22
- package/lowcode_es/notice-bar/meta.d.ts +22 -22
- package/lowcode_es/position/meta.d.ts +22 -22
- package/lowcode_es/rich-text/meta.d.ts +22 -22
- package/lowcode_es/search-bar/meta.d.ts +22 -22
- package/lowcode_es/swiper/meta.d.ts +22 -22
- package/lowcode_es/tab-container/meta.d.ts +22 -22
- package/lowcode_es/tab-container/meta.js +4 -4
- package/lowcode_es/tab-container/props.d.ts +90 -90
- package/lowcode_es/tab-container/props.js +12 -12
- package/lowcode_es/tab-container-item/meta.d.ts +22 -22
- package/lowcode_es/tab-container-item/meta.js +1 -1
- package/lowcode_es/tab-message/meta.d.ts +22 -22
- package/lowcode_es/tag-c/meta.d.ts +22 -22
- package/lowcode_es/teletext-list/meta.d.ts +22 -22
- package/lowcode_es/teletext-list/meta.js +1 -1
- package/lowcode_es/title1/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.d.ts +22 -22
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/button2/meta.d.ts +22 -22
- package/lowcode_lib/custom-radio-group/meta.d.ts +22 -22
- package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -23
- package/lowcode_lib/d-c-slider/meta.d.ts +148 -148
- package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_lib/goods-card-list/meta.d.ts +22 -22
- package/lowcode_lib/grid-nav/meta.d.ts +22 -22
- package/lowcode_lib/integral-task/meta.d.ts +22 -22
- package/lowcode_lib/menu-list/meta.d.ts +22 -22
- package/lowcode_lib/message-list/meta.d.ts +22 -22
- package/lowcode_lib/meta.js +23 -23
- package/lowcode_lib/navigation/meta.d.ts +22 -22
- package/lowcode_lib/notice-bar/meta.d.ts +22 -22
- package/lowcode_lib/position/meta.d.ts +22 -22
- package/lowcode_lib/rich-text/meta.d.ts +22 -22
- package/lowcode_lib/search-bar/meta.d.ts +22 -22
- package/lowcode_lib/swiper/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/meta.js +4 -4
- package/lowcode_lib/tab-container/props.d.ts +90 -90
- package/lowcode_lib/tab-container/props.js +12 -12
- package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
- package/lowcode_lib/tab-container-item/meta.js +1 -1
- package/lowcode_lib/tab-message/meta.d.ts +22 -22
- package/lowcode_lib/tag-c/meta.d.ts +22 -22
- package/lowcode_lib/teletext-list/meta.d.ts +22 -22
- package/lowcode_lib/teletext-list/meta.js +1 -1
- package/lowcode_lib/title1/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.d.ts +22 -22
- package/lowcode_lib/view.js +2 -2
- package/package.json +4 -4
|
@@ -1,202 +1,202 @@
|
|
|
1
|
-
|
|
2
|
-
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
-
|
|
4
|
-
const MessageListMeta: IPublicTypeComponentMetadata = {
|
|
5
|
-
"componentName": "MessageList",
|
|
6
|
-
"title": "消息列表",
|
|
7
|
-
"docUrl": "",
|
|
8
|
-
"screenshot": "",
|
|
9
|
-
"devMode": "proCode",
|
|
10
|
-
"npm": {
|
|
11
|
-
"package": "@dckj-npm/dc-material",
|
|
12
|
-
"version": "0.1.13",
|
|
13
|
-
"exportName": "MessageList",
|
|
14
|
-
"main": "src\\index.tsx",
|
|
15
|
-
"destructuring": true,
|
|
16
|
-
"subName": ""
|
|
17
|
-
},
|
|
18
|
-
"configure": {
|
|
19
|
-
"props": [
|
|
20
|
-
{
|
|
21
|
-
"title": "图片",
|
|
22
|
-
"name": "images",
|
|
23
|
-
"description": "图片",
|
|
24
|
-
"setter": {
|
|
25
|
-
"componentName": "ArraySetter",
|
|
26
|
-
"props": {
|
|
27
|
-
"itemSetter": "StringSetter"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: '数据源绑定',
|
|
33
|
-
setter: {
|
|
34
|
-
componentName: 'SetterFormVariable',
|
|
35
|
-
props: {
|
|
36
|
-
attributes: [
|
|
37
|
-
{
|
|
38
|
-
label: '消息数据',
|
|
39
|
-
value: 'dataList',
|
|
40
|
-
children: [
|
|
41
|
-
{ label: '标题', value: 'title' },
|
|
42
|
-
{ label: '说明', value: 'description' },
|
|
43
|
-
{ label: '发布时间', value: 'gmtCreate' }
|
|
44
|
-
],
|
|
45
|
-
// 发送不同参数的请求
|
|
46
|
-
mapping: [
|
|
47
|
-
{
|
|
48
|
-
label: '全部数据',
|
|
49
|
-
name: 'dataList'
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
value: '已读数据',
|
|
53
|
-
name: 'readDataList'
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
value: '未读数据',
|
|
57
|
-
name: 'unReadDataList'
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"title": {
|
|
67
|
-
"label": {
|
|
68
|
-
"type": "i18n",
|
|
69
|
-
"en-US": "onClick",
|
|
70
|
-
"zh-CN": "点击事件"
|
|
71
|
-
},
|
|
72
|
-
"tip": "onClick | 点击事件"
|
|
73
|
-
},
|
|
74
|
-
"name": "onClick",
|
|
75
|
-
"description": "点击事件",
|
|
76
|
-
"setter": {
|
|
77
|
-
"componentName": "FunctionSetter"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"supports": {
|
|
82
|
-
"style": true
|
|
83
|
-
},
|
|
84
|
-
"component": {}
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
const snippets: IPublicTypeSnippet[] = [
|
|
88
|
-
{
|
|
89
|
-
"title": "消息列表",
|
|
90
|
-
"screenshot": "",
|
|
91
|
-
"schema": {
|
|
92
|
-
"componentName": "MessageList",
|
|
93
|
-
"props": {
|
|
94
|
-
images: [
|
|
95
|
-
'https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240930/1038087407058161664.png',
|
|
96
|
-
'https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240930/1038087477308559360.png'
|
|
97
|
-
],
|
|
98
|
-
dataList: [
|
|
99
|
-
{
|
|
100
|
-
"title": "权益信息",
|
|
101
|
-
"description": "这里是消息 为小官时皆尝有之。” 金·元好问《为橄子醵金》诗之一:“明珠评价敌连城,弃掷泥涂意未平。” 清黄六鸿《福惠全",
|
|
102
|
-
"gmtCreate": "2024-05-24 09:24"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"title": "审核信息",
|
|
106
|
-
"description": "这里是消息 为小官时皆尝有之。” 金·元好问《为橄子醵金》诗之一:“明珠评价敌连城,弃掷泥涂意未平。” 清黄六鸿《福惠全",
|
|
107
|
-
"gmtCreate": "2024-05-24 09:24"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"title": "权益信息",
|
|
111
|
-
"description": "这里是消息 为小官时皆尝有之。” 金·元好问《为橄子醵金》诗之一:“明珠评价敌连城,弃掷泥涂意未平。” 清黄六鸿《福惠全",
|
|
112
|
-
"gmtCreate": "2024-05-24 09:24"
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
readDataList: [
|
|
116
|
-
{
|
|
117
|
-
"title": "已读标题名称",
|
|
118
|
-
"description": "已读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
|
|
119
|
-
"gmtCreate": "2024-05-24 09:24"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"title": "已读标题名称",
|
|
123
|
-
"description": "已读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
|
|
124
|
-
"gmtCreate": "2024-05-24 09:24"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
unReadDataList: [
|
|
128
|
-
{
|
|
129
|
-
"title": "未读标题名称",
|
|
130
|
-
"description": "未读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
|
|
131
|
-
"gmtCreate": "2024-05-24 09:24"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"title": "未读标题名称",
|
|
135
|
-
"description": "未读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
|
|
136
|
-
"gmtCreate": "2024-05-24 09:24"
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
|
|
140
|
-
},
|
|
141
|
-
children: [
|
|
142
|
-
{
|
|
143
|
-
componentName: 'Image',
|
|
144
|
-
props: {
|
|
145
|
-
key: 'image',
|
|
146
|
-
width: 44,
|
|
147
|
-
height: 44,
|
|
148
|
-
style: {
|
|
149
|
-
borderRadius: '50%'
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
componentName: 'NextText',
|
|
155
|
-
props: {
|
|
156
|
-
type: 'h5',
|
|
157
|
-
key: 'title',
|
|
158
|
-
'style': {
|
|
159
|
-
fontSize: '15px',
|
|
160
|
-
color: '#333',
|
|
161
|
-
fontWeght: 'bold'
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
componentName: 'NextText',
|
|
167
|
-
props: {
|
|
168
|
-
type: 'inherit',
|
|
169
|
-
key: 'content',
|
|
170
|
-
'style': {
|
|
171
|
-
fontSize: '13px',
|
|
172
|
-
color: '#333',
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
componentName: 'NextText',
|
|
178
|
-
props: {
|
|
179
|
-
type: 'inherit',
|
|
180
|
-
key: 'gmtCreate',
|
|
181
|
-
'style': {
|
|
182
|
-
fontSize: '10px',
|
|
183
|
-
color: '#999',
|
|
184
|
-
marginBottom: '5px'
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
componentName: 'TabMessage',
|
|
190
|
-
props: {
|
|
191
|
-
key: 'tabMessage',
|
|
192
|
-
},
|
|
193
|
-
}
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
];
|
|
198
|
-
|
|
199
|
-
export default {
|
|
200
|
-
...MessageListMeta,
|
|
201
|
-
snippets
|
|
202
|
-
};
|
|
1
|
+
|
|
2
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const MessageListMeta: IPublicTypeComponentMetadata = {
|
|
5
|
+
"componentName": "MessageList",
|
|
6
|
+
"title": "消息列表",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "@dckj-npm/dc-material",
|
|
12
|
+
"version": "0.1.13",
|
|
13
|
+
"exportName": "MessageList",
|
|
14
|
+
"main": "src\\index.tsx",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"title": "图片",
|
|
22
|
+
"name": "images",
|
|
23
|
+
"description": "图片",
|
|
24
|
+
"setter": {
|
|
25
|
+
"componentName": "ArraySetter",
|
|
26
|
+
"props": {
|
|
27
|
+
"itemSetter": "StringSetter"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: '数据源绑定',
|
|
33
|
+
setter: {
|
|
34
|
+
componentName: 'SetterFormVariable',
|
|
35
|
+
props: {
|
|
36
|
+
attributes: [
|
|
37
|
+
{
|
|
38
|
+
label: '消息数据',
|
|
39
|
+
value: 'dataList',
|
|
40
|
+
children: [
|
|
41
|
+
{ label: '标题', value: 'title' },
|
|
42
|
+
{ label: '说明', value: 'description' },
|
|
43
|
+
{ label: '发布时间', value: 'gmtCreate' }
|
|
44
|
+
],
|
|
45
|
+
// 发送不同参数的请求
|
|
46
|
+
mapping: [
|
|
47
|
+
{
|
|
48
|
+
label: '全部数据',
|
|
49
|
+
name: 'dataList'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
value: '已读数据',
|
|
53
|
+
name: 'readDataList'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
value: '未读数据',
|
|
57
|
+
name: 'unReadDataList'
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"title": {
|
|
67
|
+
"label": {
|
|
68
|
+
"type": "i18n",
|
|
69
|
+
"en-US": "onClick",
|
|
70
|
+
"zh-CN": "点击事件"
|
|
71
|
+
},
|
|
72
|
+
"tip": "onClick | 点击事件"
|
|
73
|
+
},
|
|
74
|
+
"name": "onClick",
|
|
75
|
+
"description": "点击事件",
|
|
76
|
+
"setter": {
|
|
77
|
+
"componentName": "FunctionSetter"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"supports": {
|
|
82
|
+
"style": true
|
|
83
|
+
},
|
|
84
|
+
"component": {}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
88
|
+
{
|
|
89
|
+
"title": "消息列表",
|
|
90
|
+
"screenshot": "",
|
|
91
|
+
"schema": {
|
|
92
|
+
"componentName": "MessageList",
|
|
93
|
+
"props": {
|
|
94
|
+
images: [
|
|
95
|
+
'https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240930/1038087407058161664.png',
|
|
96
|
+
'https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240930/1038087477308559360.png'
|
|
97
|
+
],
|
|
98
|
+
dataList: [
|
|
99
|
+
{
|
|
100
|
+
"title": "权益信息",
|
|
101
|
+
"description": "这里是消息 为小官时皆尝有之。” 金·元好问《为橄子醵金》诗之一:“明珠评价敌连城,弃掷泥涂意未平。” 清黄六鸿《福惠全",
|
|
102
|
+
"gmtCreate": "2024-05-24 09:24"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"title": "审核信息",
|
|
106
|
+
"description": "这里是消息 为小官时皆尝有之。” 金·元好问《为橄子醵金》诗之一:“明珠评价敌连城,弃掷泥涂意未平。” 清黄六鸿《福惠全",
|
|
107
|
+
"gmtCreate": "2024-05-24 09:24"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"title": "权益信息",
|
|
111
|
+
"description": "这里是消息 为小官时皆尝有之。” 金·元好问《为橄子醵金》诗之一:“明珠评价敌连城,弃掷泥涂意未平。” 清黄六鸿《福惠全",
|
|
112
|
+
"gmtCreate": "2024-05-24 09:24"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
readDataList: [
|
|
116
|
+
{
|
|
117
|
+
"title": "已读标题名称",
|
|
118
|
+
"description": "已读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
|
|
119
|
+
"gmtCreate": "2024-05-24 09:24"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"title": "已读标题名称",
|
|
123
|
+
"description": "已读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
|
|
124
|
+
"gmtCreate": "2024-05-24 09:24"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
unReadDataList: [
|
|
128
|
+
{
|
|
129
|
+
"title": "未读标题名称",
|
|
130
|
+
"description": "未读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
|
|
131
|
+
"gmtCreate": "2024-05-24 09:24"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"title": "未读标题名称",
|
|
135
|
+
"description": "未读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
|
|
136
|
+
"gmtCreate": "2024-05-24 09:24"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
|
|
140
|
+
},
|
|
141
|
+
children: [
|
|
142
|
+
{
|
|
143
|
+
componentName: 'Image',
|
|
144
|
+
props: {
|
|
145
|
+
key: 'image',
|
|
146
|
+
width: 44,
|
|
147
|
+
height: 44,
|
|
148
|
+
style: {
|
|
149
|
+
borderRadius: '50%'
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
componentName: 'NextText',
|
|
155
|
+
props: {
|
|
156
|
+
type: 'h5',
|
|
157
|
+
key: 'title',
|
|
158
|
+
'style': {
|
|
159
|
+
fontSize: '15px',
|
|
160
|
+
color: '#333',
|
|
161
|
+
fontWeght: 'bold'
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
componentName: 'NextText',
|
|
167
|
+
props: {
|
|
168
|
+
type: 'inherit',
|
|
169
|
+
key: 'content',
|
|
170
|
+
'style': {
|
|
171
|
+
fontSize: '13px',
|
|
172
|
+
color: '#333',
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
componentName: 'NextText',
|
|
178
|
+
props: {
|
|
179
|
+
type: 'inherit',
|
|
180
|
+
key: 'gmtCreate',
|
|
181
|
+
'style': {
|
|
182
|
+
fontSize: '10px',
|
|
183
|
+
color: '#999',
|
|
184
|
+
marginBottom: '5px'
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
componentName: 'TabMessage',
|
|
190
|
+
props: {
|
|
191
|
+
key: 'tabMessage',
|
|
192
|
+
},
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
];
|
|
198
|
+
|
|
199
|
+
export default {
|
|
200
|
+
...MessageListMeta,
|
|
201
|
+
snippets
|
|
202
|
+
};
|