@dckj-npm/dc-material 0.1.122 → 0.1.124
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.css +1 -1
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +5 -5
- package/dist/BizComps.js.map +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -0
- package/es/components/bottom-navigation/index.d.ts +3 -0
- package/es/components/bottom-navigation/index.scss +24 -24
- package/es/components/button/button.d.ts +14 -0
- package/es/components/button/index.d.ts +6 -0
- package/es/components/button/index.js +2 -2
- package/es/components/button/index.scss +16 -16
- package/es/components/carousel/carousel.d.ts +14 -0
- package/es/components/carousel/carousel.scss +32 -32
- package/es/components/colorful-button/colorful-button.d.ts +12 -0
- package/es/components/colorful-button/index.d.ts +3 -0
- package/es/components/colorful-button/index.scss +5 -5
- package/es/components/colorful-input/colorful-input.d.ts +8 -0
- package/es/components/colorful-input/index.d.ts +3 -0
- package/es/components/colorful-input/index.scss +5 -5
- package/es/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list-common.scss +118 -118
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list.scss +112 -112
- package/es/components/goods-card-list/index.d.ts +4 -0
- package/es/components/goods-card-list/types.d.ts +45 -0
- package/es/components/grid-nav/grid-nav.d.ts +13 -0
- package/es/components/grid-nav/index.d.ts +3 -0
- package/es/components/grid-nav/index.scss +41 -41
- package/es/components/integral-task/index.d.ts +6 -0
- 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 -0
- package/es/components/menu-list/index.d.ts +6 -0
- 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 -0
- package/es/components/menu-list/menu-list-item.scss +49 -49
- package/es/components/menu-list/menu-list.d.ts +5 -0
- package/es/components/menu-list/types.d.ts +23 -0
- package/es/components/message-list/index.d.ts +6 -0
- 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 +33 -0
- package/es/components/message-list/message-list-item.js +2 -2
- package/es/components/message-list/message-list-item.scss +60 -60
- package/es/components/message-list/message-list.d.ts +28 -0
- package/es/components/notice-bar/index.d.ts +3 -0
- package/es/components/notice-bar/index.scss +59 -42
- package/es/components/notice-bar/notice-bar-item.d.ts +18 -0
- package/es/components/notice-bar/notice-bar-item.js +5 -2
- package/es/components/notice-bar/notice-bar-item.scss +26 -26
- package/es/components/notice-bar/notice-bar.d.ts +37 -0
- package/es/components/notice-bar/notice-bar.js +15 -51
- package/es/components/position/entity.d.ts +5 -0
- package/es/components/position/index.d.ts +3 -0
- package/es/components/position/index.scss +27 -27
- package/es/components/position/position-left.d.ts +9 -0
- package/es/components/position/position-list.d.ts +12 -0
- package/es/components/position/position.d.ts +8 -0
- package/es/components/radio-group/index.d.ts +8 -0
- 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 -0
- package/es/components/radio-group/radio-group.d.ts +52 -0
- package/es/components/rich-text/index.d.ts +6 -0
- package/es/components/rich-text/index.js +2 -2
- package/es/components/rich-text/index.scss +19 -19
- package/es/components/rich-text/rich-text.d.ts +14 -0
- package/es/components/search-bar/index.d.ts +3 -0
- package/es/components/search-bar/index.scss +14 -13
- package/es/components/search-bar/search-bar.d.ts +7 -0
- package/es/components/swiper/index.d.ts +3 -0
- package/es/components/swiper/index.scss +12 -12
- package/es/components/swiper/swiper.d.ts +47 -0
- package/es/components/tab/index.d.ts +6 -0
- package/es/components/tab/index.js +2 -2
- package/es/components/tab/index.scss +39 -39
- package/es/components/tab/tab.d.ts +27 -0
- package/es/components/tab-container/index.d.ts +3 -0
- package/es/components/tab-container/index.scss +47 -47
- package/es/components/tab-container/tab-container.d.ts +10 -0
- package/es/components/tab-container-item/index.d.ts +3 -0
- package/es/components/tab-container-item/tab-container-item.d.ts +11 -0
- package/es/components/tag/index.d.ts +6 -0
- package/es/components/tag/index.js +2 -2
- package/es/components/tag/index.scss +24 -24
- package/es/components/tag/tag.d.ts +14 -0
- package/es/components/teletext-list/index.d.ts +6 -0
- 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 +33 -0
- package/es/components/teletext-list/teletext-list-item.js +2 -2
- package/es/components/teletext-list/teletext-list-item.scss +55 -55
- package/es/components/teletext-list/teletext-list.d.ts +52 -0
- package/es/components/teletext-list/teletext-list.js +2 -2
- package/es/components/title/index.d.ts +8 -0
- package/es/components/title/index.js +2 -2
- package/es/components/title/title-1.d.ts +10 -0
- package/es/components/title/title-1.scss +25 -25
- package/es/components/title/title-2.d.ts +18 -0
- package/es/components/title/title-2.scss +22 -22
- package/es/index.d.ts +42 -0
- package/es/index.scss +5 -5
- package/es/utils/children-node-handle.d.ts +9 -0
- package/es/utils/children-node-handle.js +7 -7
- package/es/utils/component-wrapper.d.ts +9 -0
- package/es/utils/debounce.d.ts +1 -0
- package/es/utils/time-util.d.ts +5 -0
- package/es/utils/time-util.js +3 -3
- package/es/variables.d.ts +2 -0
- package/es/variables.scss +3 -3
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -0
- package/lib/components/bottom-navigation/index.d.ts +3 -0
- package/lib/components/bottom-navigation/index.scss +24 -24
- package/lib/components/button/button.d.ts +14 -0
- package/lib/components/button/index.d.ts +6 -0
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/index.scss +16 -16
- package/lib/components/carousel/carousel.d.ts +14 -0
- package/lib/components/carousel/carousel.scss +32 -32
- package/lib/components/colorful-button/colorful-button.d.ts +12 -0
- package/lib/components/colorful-button/index.d.ts +3 -0
- package/lib/components/colorful-button/index.scss +5 -5
- package/lib/components/colorful-input/colorful-input.d.ts +8 -0
- package/lib/components/colorful-input/index.d.ts +3 -0
- package/lib/components/colorful-input/index.scss +5 -5
- package/lib/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/lib/components/goods-card-list/goods-card-list-common.scss +118 -118
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -0
- package/lib/components/goods-card-list/goods-card-list.scss +112 -112
- package/lib/components/goods-card-list/index.d.ts +4 -0
- package/lib/components/goods-card-list/types.d.ts +45 -0
- package/lib/components/grid-nav/grid-nav.d.ts +13 -0
- package/lib/components/grid-nav/index.d.ts +3 -0
- package/lib/components/grid-nav/index.scss +41 -41
- package/lib/components/integral-task/index.d.ts +6 -0
- 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 -0
- package/lib/components/menu-list/index.d.ts +6 -0
- 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 -0
- package/lib/components/menu-list/menu-list-item.scss +49 -49
- package/lib/components/menu-list/menu-list.d.ts +5 -0
- package/lib/components/menu-list/types.d.ts +23 -0
- package/lib/components/message-list/index.d.ts +6 -0
- 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 +33 -0
- package/lib/components/message-list/message-list-item.js +2 -2
- package/lib/components/message-list/message-list-item.scss +60 -60
- package/lib/components/message-list/message-list.d.ts +28 -0
- package/lib/components/notice-bar/index.d.ts +3 -0
- package/lib/components/notice-bar/index.scss +59 -42
- package/lib/components/notice-bar/notice-bar-item.d.ts +18 -0
- package/lib/components/notice-bar/notice-bar-item.js +5 -2
- package/lib/components/notice-bar/notice-bar-item.scss +26 -26
- package/lib/components/notice-bar/notice-bar.d.ts +37 -0
- package/lib/components/notice-bar/notice-bar.js +15 -53
- package/lib/components/position/entity.d.ts +5 -0
- package/lib/components/position/index.d.ts +3 -0
- package/lib/components/position/index.scss +27 -27
- package/lib/components/position/position-left.d.ts +9 -0
- package/lib/components/position/position-list.d.ts +12 -0
- package/lib/components/position/position.d.ts +8 -0
- package/lib/components/radio-group/index.d.ts +8 -0
- package/lib/components/radio-group/index.scss +40 -40
- package/lib/components/radio-group/radio-group-item.d.ts +48 -0
- package/lib/components/radio-group/radio-group.d.ts +52 -0
- package/lib/components/rich-text/index.d.ts +6 -0
- package/lib/components/rich-text/index.scss +19 -19
- package/lib/components/rich-text/rich-text.d.ts +14 -0
- package/lib/components/search-bar/index.d.ts +3 -0
- package/lib/components/search-bar/index.scss +14 -13
- package/lib/components/search-bar/search-bar.d.ts +7 -0
- package/lib/components/swiper/index.d.ts +3 -0
- package/lib/components/swiper/index.scss +12 -12
- package/lib/components/swiper/swiper.d.ts +47 -0
- package/lib/components/tab/index.d.ts +6 -0
- package/lib/components/tab/index.js +2 -2
- package/lib/components/tab/index.scss +39 -39
- package/lib/components/tab/tab.d.ts +27 -0
- package/lib/components/tab-container/index.d.ts +3 -0
- package/lib/components/tab-container/index.scss +47 -47
- package/lib/components/tab-container/tab-container.d.ts +10 -0
- package/lib/components/tab-container-item/index.d.ts +3 -0
- package/lib/components/tab-container-item/tab-container-item.d.ts +11 -0
- package/lib/components/tag/index.d.ts +6 -0
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/index.scss +24 -24
- package/lib/components/tag/tag.d.ts +14 -0
- package/lib/components/teletext-list/index.d.ts +6 -0
- package/lib/components/teletext-list/index.scss +19 -19
- package/lib/components/teletext-list/teletext-list-item.d.ts +33 -0
- package/lib/components/teletext-list/teletext-list-item.js +2 -2
- package/lib/components/teletext-list/teletext-list-item.scss +55 -55
- package/lib/components/teletext-list/teletext-list.d.ts +52 -0
- package/lib/components/teletext-list/teletext-list.js +2 -2
- package/lib/components/title/index.d.ts +8 -0
- package/lib/components/title/title-1.d.ts +10 -0
- package/lib/components/title/title-1.scss +25 -25
- package/lib/components/title/title-2.d.ts +18 -0
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.d.ts +42 -0
- package/lib/index.scss +5 -5
- package/lib/utils/children-node-handle.d.ts +9 -0
- package/lib/utils/children-node-handle.js +7 -7
- package/lib/utils/component-wrapper.d.ts +9 -0
- package/lib/utils/debounce.d.ts +1 -0
- package/lib/utils/time-util.d.ts +5 -0
- package/lib/utils/time-util.js +3 -3
- package/lib/variables.d.ts +2 -0
- 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/goods-card-list-common/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 +228 -228
- 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 +338 -338
- 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/goods-card-list-common/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 +24 -24
- 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/props.d.ts +90 -90
- package/lowcode_es/tab-container-item/meta.d.ts +22 -22
- 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/goods-card-list-common/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 +24 -24
- 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/props.d.ts +90 -90
- package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
- 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 +3 -3
- package/es/components/notice-bar/components/ScrollSwitcher.js +0 -45
- package/es/components/notice-bar/components/ScrollSwitcher.scss +0 -17
- package/lib/components/notice-bar/components/ScrollSwitcher.js +0 -52
- package/lib/components/notice-bar/components/ScrollSwitcher.scss +0 -17
|
@@ -1,228 +1,228 @@
|
|
|
1
|
-
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'
|
|
2
|
-
|
|
3
|
-
const NoticeBarMeta: IPublicTypeComponentMetadata = {
|
|
4
|
-
group: '低代码组件',
|
|
5
|
-
componentName: 'NoticeBar',
|
|
6
|
-
title: '公告栏',
|
|
7
|
-
docUrl: '',
|
|
8
|
-
screenshot: '',
|
|
9
|
-
devMode: 'proCode',
|
|
10
|
-
npm: {
|
|
11
|
-
package: '@dckj-npm/dc-material',
|
|
12
|
-
version: '0.1.13',
|
|
13
|
-
exportName: 'NoticeBar',
|
|
14
|
-
main: 'src\\index.tsx',
|
|
15
|
-
destructuring: true,
|
|
16
|
-
subName: '',
|
|
17
|
-
},
|
|
18
|
-
configure: {
|
|
19
|
-
props: [
|
|
20
|
-
{
|
|
21
|
-
title: '图标',
|
|
22
|
-
name: 'icon',
|
|
23
|
-
description: '图标',
|
|
24
|
-
setter: {
|
|
25
|
-
componentName: 'StringSetter',
|
|
26
|
-
isRequired: true,
|
|
27
|
-
initialValue: '',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: '数据源绑定',
|
|
32
|
-
setter: {
|
|
33
|
-
componentName: 'SetterFormVariable',
|
|
34
|
-
props: {
|
|
35
|
-
attributes: [
|
|
36
|
-
{
|
|
37
|
-
label: '公告数据',
|
|
38
|
-
value: 'dataList',
|
|
39
|
-
children: [
|
|
40
|
-
{ label: '公告内容', value: 'content' },
|
|
41
|
-
{ label: '是否置顶', value: 'isTop' },
|
|
42
|
-
{ label: '发布时间', value: 'releaseTime' },
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
title: {
|
|
51
|
-
label: {
|
|
52
|
-
type: 'i18n',
|
|
53
|
-
'en-US': 'dataList',
|
|
54
|
-
'zh-CN': '数据',
|
|
55
|
-
},
|
|
56
|
-
tip: 'dataList | 数据',
|
|
57
|
-
},
|
|
58
|
-
name: 'dataList',
|
|
59
|
-
description: '数据',
|
|
60
|
-
setter: {
|
|
61
|
-
componentName: 'ArraySetter',
|
|
62
|
-
props: {
|
|
63
|
-
itemSetter: {
|
|
64
|
-
componentName: 'ObjectSetter',
|
|
65
|
-
props: {
|
|
66
|
-
config: {
|
|
67
|
-
items: [
|
|
68
|
-
{
|
|
69
|
-
title: {
|
|
70
|
-
label: {
|
|
71
|
-
type: 'i18n',
|
|
72
|
-
'en-US': 'content',
|
|
73
|
-
'zh-CN': '公告内容',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
name: 'content',
|
|
77
|
-
setter: {
|
|
78
|
-
componentName: 'StringSetter',
|
|
79
|
-
isRequired: false,
|
|
80
|
-
initialValue: '',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
title: {
|
|
85
|
-
label: {
|
|
86
|
-
type: 'i18n',
|
|
87
|
-
'en-US': 'releaseTime',
|
|
88
|
-
'zh-CN': '发布时间',
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
name: 'releaseTime',
|
|
92
|
-
setter: {
|
|
93
|
-
componentName: 'StringSetter',
|
|
94
|
-
isRequired: false,
|
|
95
|
-
initialValue: '',
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
title: '是否置顶',
|
|
100
|
-
name: 'isTop',
|
|
101
|
-
setter: {
|
|
102
|
-
componentName: 'SelectSetter',
|
|
103
|
-
initialValue: 0,
|
|
104
|
-
props: {
|
|
105
|
-
defaultValue: 0,
|
|
106
|
-
options: [
|
|
107
|
-
{
|
|
108
|
-
title: '是',
|
|
109
|
-
value: 0,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
title: '否',
|
|
113
|
-
value: 1,
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
extraSetter: {
|
|
121
|
-
componentName: 'MixedSetter',
|
|
122
|
-
isRequired: false,
|
|
123
|
-
props: {},
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
initialValue: [
|
|
130
|
-
{
|
|
131
|
-
content: '按需招聘,智能推荐附件测试测试测试测试测试测试测试',
|
|
132
|
-
isTop: 0,
|
|
133
|
-
releaseTime: '1小时前',
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
content: '近期,有关部门相继部署有关部门相继部署有关部门相继部署',
|
|
137
|
-
isTop: 1,
|
|
138
|
-
releaseTime: '2024-03-26',
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
content: '测试测试测试测试测试测测试测试测试测试测试测测试测试测试测试测试测',
|
|
142
|
-
isTop: 1,
|
|
143
|
-
releaseTime: '2023-10-15',
|
|
144
|
-
},
|
|
145
|
-
],
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
supports: {
|
|
150
|
-
style: true,
|
|
151
|
-
events: [
|
|
152
|
-
{
|
|
153
|
-
name: 'onClick',
|
|
154
|
-
template: "onClick(key,${extParams}){\n// 点击项目的事件\nconsole.log('onClick', key);}",
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
|
-
},
|
|
158
|
-
component: {},
|
|
159
|
-
},
|
|
160
|
-
}
|
|
161
|
-
const snippets: IPublicTypeSnippet[] = [
|
|
162
|
-
{
|
|
163
|
-
title: '公告栏',
|
|
164
|
-
screenshot: '',
|
|
165
|
-
schema: {
|
|
166
|
-
componentName: 'NoticeBar',
|
|
167
|
-
props: {
|
|
168
|
-
icon:
|
|
169
|
-
'https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240930/1038129927842566144.png',
|
|
170
|
-
},
|
|
171
|
-
children: [
|
|
172
|
-
{
|
|
173
|
-
componentName: 'Title1',
|
|
174
|
-
props: {
|
|
175
|
-
type: 'h5',
|
|
176
|
-
children: '列表标题',
|
|
177
|
-
key: 'box-title',
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
componentName: 'Image',
|
|
182
|
-
props: {
|
|
183
|
-
src: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
|
|
184
|
-
key: 'image',
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
componentName: 'NextText',
|
|
189
|
-
props: {
|
|
190
|
-
type: 'h5',
|
|
191
|
-
children: '标题标题',
|
|
192
|
-
key: 'title',
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
componentName: 'NextText',
|
|
197
|
-
props: {
|
|
198
|
-
type: 'inherit',
|
|
199
|
-
children:
|
|
200
|
-
'基于 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
|
|
201
|
-
key: 'content',
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
componentName: 'TagC',
|
|
206
|
-
props: {
|
|
207
|
-
name: '报名火热',
|
|
208
|
-
color: 'orange',
|
|
209
|
-
key: 'teletext-tagc-1',
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
componentName: 'TagC',
|
|
214
|
-
props: {
|
|
215
|
-
name: '报名火热',
|
|
216
|
-
color: 'green',
|
|
217
|
-
key: 'teletext-tagc-2',
|
|
218
|
-
},
|
|
219
|
-
},
|
|
220
|
-
],
|
|
221
|
-
},
|
|
222
|
-
},
|
|
223
|
-
]
|
|
224
|
-
|
|
225
|
-
export default {
|
|
226
|
-
...NoticeBarMeta,
|
|
227
|
-
snippets,
|
|
228
|
-
}
|
|
1
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'
|
|
2
|
+
|
|
3
|
+
const NoticeBarMeta: IPublicTypeComponentMetadata = {
|
|
4
|
+
group: '低代码组件',
|
|
5
|
+
componentName: 'NoticeBar',
|
|
6
|
+
title: '公告栏',
|
|
7
|
+
docUrl: '',
|
|
8
|
+
screenshot: '',
|
|
9
|
+
devMode: 'proCode',
|
|
10
|
+
npm: {
|
|
11
|
+
package: '@dckj-npm/dc-material',
|
|
12
|
+
version: '0.1.13',
|
|
13
|
+
exportName: 'NoticeBar',
|
|
14
|
+
main: 'src\\index.tsx',
|
|
15
|
+
destructuring: true,
|
|
16
|
+
subName: '',
|
|
17
|
+
},
|
|
18
|
+
configure: {
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
title: '图标',
|
|
22
|
+
name: 'icon',
|
|
23
|
+
description: '图标',
|
|
24
|
+
setter: {
|
|
25
|
+
componentName: 'StringSetter',
|
|
26
|
+
isRequired: true,
|
|
27
|
+
initialValue: '',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: '数据源绑定',
|
|
32
|
+
setter: {
|
|
33
|
+
componentName: 'SetterFormVariable',
|
|
34
|
+
props: {
|
|
35
|
+
attributes: [
|
|
36
|
+
{
|
|
37
|
+
label: '公告数据',
|
|
38
|
+
value: 'dataList',
|
|
39
|
+
children: [
|
|
40
|
+
{ label: '公告内容', value: 'content' },
|
|
41
|
+
{ label: '是否置顶', value: 'isTop' },
|
|
42
|
+
{ label: '发布时间', value: 'releaseTime' },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
title: {
|
|
51
|
+
label: {
|
|
52
|
+
type: 'i18n',
|
|
53
|
+
'en-US': 'dataList',
|
|
54
|
+
'zh-CN': '数据',
|
|
55
|
+
},
|
|
56
|
+
tip: 'dataList | 数据',
|
|
57
|
+
},
|
|
58
|
+
name: 'dataList',
|
|
59
|
+
description: '数据',
|
|
60
|
+
setter: {
|
|
61
|
+
componentName: 'ArraySetter',
|
|
62
|
+
props: {
|
|
63
|
+
itemSetter: {
|
|
64
|
+
componentName: 'ObjectSetter',
|
|
65
|
+
props: {
|
|
66
|
+
config: {
|
|
67
|
+
items: [
|
|
68
|
+
{
|
|
69
|
+
title: {
|
|
70
|
+
label: {
|
|
71
|
+
type: 'i18n',
|
|
72
|
+
'en-US': 'content',
|
|
73
|
+
'zh-CN': '公告内容',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
name: 'content',
|
|
77
|
+
setter: {
|
|
78
|
+
componentName: 'StringSetter',
|
|
79
|
+
isRequired: false,
|
|
80
|
+
initialValue: '',
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
title: {
|
|
85
|
+
label: {
|
|
86
|
+
type: 'i18n',
|
|
87
|
+
'en-US': 'releaseTime',
|
|
88
|
+
'zh-CN': '发布时间',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
name: 'releaseTime',
|
|
92
|
+
setter: {
|
|
93
|
+
componentName: 'StringSetter',
|
|
94
|
+
isRequired: false,
|
|
95
|
+
initialValue: '',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
title: '是否置顶',
|
|
100
|
+
name: 'isTop',
|
|
101
|
+
setter: {
|
|
102
|
+
componentName: 'SelectSetter',
|
|
103
|
+
initialValue: 0,
|
|
104
|
+
props: {
|
|
105
|
+
defaultValue: 0,
|
|
106
|
+
options: [
|
|
107
|
+
{
|
|
108
|
+
title: '是',
|
|
109
|
+
value: 0,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: '否',
|
|
113
|
+
value: 1,
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
extraSetter: {
|
|
121
|
+
componentName: 'MixedSetter',
|
|
122
|
+
isRequired: false,
|
|
123
|
+
props: {},
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
initialValue: [
|
|
130
|
+
{
|
|
131
|
+
content: '按需招聘,智能推荐附件测试测试测试测试测试测试测试',
|
|
132
|
+
isTop: 0,
|
|
133
|
+
releaseTime: '1小时前',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
content: '近期,有关部门相继部署有关部门相继部署有关部门相继部署',
|
|
137
|
+
isTop: 1,
|
|
138
|
+
releaseTime: '2024-03-26',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
content: '测试测试测试测试测试测测试测试测试测试测试测测试测试测试测试测试测',
|
|
142
|
+
isTop: 1,
|
|
143
|
+
releaseTime: '2023-10-15',
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
supports: {
|
|
150
|
+
style: true,
|
|
151
|
+
events: [
|
|
152
|
+
{
|
|
153
|
+
name: 'onClick',
|
|
154
|
+
template: "onClick(key,${extParams}){\n// 点击项目的事件\nconsole.log('onClick', key);}",
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
component: {},
|
|
159
|
+
},
|
|
160
|
+
}
|
|
161
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
162
|
+
{
|
|
163
|
+
title: '公告栏',
|
|
164
|
+
screenshot: '',
|
|
165
|
+
schema: {
|
|
166
|
+
componentName: 'NoticeBar',
|
|
167
|
+
props: {
|
|
168
|
+
icon:
|
|
169
|
+
'https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240930/1038129927842566144.png',
|
|
170
|
+
},
|
|
171
|
+
children: [
|
|
172
|
+
{
|
|
173
|
+
componentName: 'Title1',
|
|
174
|
+
props: {
|
|
175
|
+
type: 'h5',
|
|
176
|
+
children: '列表标题',
|
|
177
|
+
key: 'box-title',
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
componentName: 'Image',
|
|
182
|
+
props: {
|
|
183
|
+
src: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
|
|
184
|
+
key: 'image',
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
componentName: 'NextText',
|
|
189
|
+
props: {
|
|
190
|
+
type: 'h5',
|
|
191
|
+
children: '标题标题',
|
|
192
|
+
key: 'title',
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
componentName: 'NextText',
|
|
197
|
+
props: {
|
|
198
|
+
type: 'inherit',
|
|
199
|
+
children:
|
|
200
|
+
'基于 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
|
|
201
|
+
key: 'content',
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
componentName: 'TagC',
|
|
206
|
+
props: {
|
|
207
|
+
name: '报名火热',
|
|
208
|
+
color: 'orange',
|
|
209
|
+
key: 'teletext-tagc-1',
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
componentName: 'TagC',
|
|
214
|
+
props: {
|
|
215
|
+
name: '报名火热',
|
|
216
|
+
color: 'green',
|
|
217
|
+
key: 'teletext-tagc-2',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
]
|
|
224
|
+
|
|
225
|
+
export default {
|
|
226
|
+
...NoticeBarMeta,
|
|
227
|
+
snippets,
|
|
228
|
+
}
|