@dckj-npm/dc-material 0.1.1 → 0.1.4
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/build/index.js +19 -12
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +5 -5
- package/dist/BizComps.js.map +1 -1
- package/es/assets/icon/navigation/index-selected.png +0 -0
- package/es/assets/icon/navigation/index.png +0 -0
- package/es/assets/icon/navigation/message-selected.png +0 -0
- package/es/assets/icon/navigation/message.png +0 -0
- package/es/assets/icon/navigation/mine-selected.png +0 -0
- package/es/assets/icon/navigation/mine.png +0 -0
- package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -13
- package/es/components/bottom-navigation/bottom-navigation.js +5 -3
- package/es/components/bottom-navigation/index.d.ts +3 -3
- 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-input/colorful-input.d.ts +8 -8
- package/es/components/colorful-input/index.d.ts +3 -3
- package/es/components/dc-slider/index.d.ts +3 -3
- package/es/components/dc-slider/slider.d.ts +32 -32
- package/es/components/dc-slider/slider.js +1 -1
- package/es/components/position/index.d.ts +3 -0
- package/es/components/position/index.js +2 -0
- package/es/components/position/index.scss +16 -0
- package/es/components/position/position.d.ts +13 -0
- package/es/components/position/position.js +39 -0
- 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 +16 -114
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -0
- package/es/components/teletext-list/teletext-list-item.js +50 -0
- package/es/components/teletext-list/teletext-list-item.scss +74 -0
- package/es/components/teletext-list/teletext-list.d.ts +53 -48
- package/es/components/teletext-list/teletext-list.js +13 -33
- 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 +26 -26
- package/es/components/title/title-2.d.ts +18 -18
- package/es/components/title/title-2.js +1 -1
- package/es/components/title/title-2.scss +22 -22
- package/es/index.d.ts +12 -12
- package/es/index.scss +3 -3
- package/es/variables.d.ts +2 -2
- package/lib/assets/icon/navigation/index-selected.png +0 -0
- package/lib/assets/icon/navigation/index.png +0 -0
- package/lib/assets/icon/navigation/message-selected.png +0 -0
- package/lib/assets/icon/navigation/message.png +0 -0
- package/lib/assets/icon/navigation/mine-selected.png +0 -0
- package/lib/assets/icon/navigation/mine.png +0 -0
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -13
- package/lib/components/bottom-navigation/bottom-navigation.js +5 -3
- package/lib/components/bottom-navigation/index.d.ts +3 -3
- 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-input/colorful-input.d.ts +8 -8
- package/lib/components/colorful-input/index.d.ts +3 -3
- package/lib/components/dc-slider/index.d.ts +3 -3
- package/lib/components/dc-slider/slider.d.ts +32 -32
- package/lib/components/dc-slider/slider.js +1 -1
- package/lib/components/position/index.d.ts +3 -0
- package/lib/components/position/index.js +7 -0
- package/lib/components/position/index.scss +16 -0
- package/lib/components/position/position.d.ts +13 -0
- package/lib/components/position/position.js +46 -0
- package/lib/components/teletext-list/index.d.ts +6 -6
- package/lib/components/teletext-list/index.js +2 -2
- package/lib/components/teletext-list/index.scss +16 -114
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -0
- package/lib/components/teletext-list/teletext-list-item.js +54 -0
- package/lib/components/teletext-list/teletext-list-item.scss +74 -0
- package/lib/components/teletext-list/teletext-list.d.ts +53 -48
- package/lib/components/teletext-list/teletext-list.js +13 -33
- 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 +26 -26
- package/lib/components/title/title-2.d.ts +18 -18
- package/lib/components/title/title-2.js +1 -1
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.d.ts +12 -12
- package/lib/index.scss +3 -3
- package/lib/variables.d.ts +2 -2
- package/lowcode/d-c-slider/meta.ts +1 -1
- package/lowcode/d-c-slider/snippets.ts +42 -42
- package/lowcode/navigation/meta.ts +45 -11
- package/lowcode/teletext-list/meta.ts +300 -292
- package/lowcode/title1/meta.ts +59 -58
- package/lowcode/title2/meta.ts +93 -92
- package/lowcode_es/d-c-slider/meta.d.ts +140 -140
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_es/meta.js +6 -6
- package/lowcode_es/navigation/meta.d.ts +22 -22
- package/lowcode_es/navigation/meta.js +38 -8
- package/lowcode_es/teletext-list/meta.d.ts +22 -22
- package/lowcode_es/title1/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.js +2 -2
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/d-c-slider/meta.d.ts +140 -140
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_lib/meta.js +6 -6
- package/lowcode_lib/navigation/meta.d.ts +22 -22
- package/lowcode_lib/navigation/meta.js +38 -8
- package/lowcode_lib/teletext-list/meta.d.ts +22 -22
- package/lowcode_lib/title1/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.js +2 -2
- package/lowcode_lib/view.js +2 -2
- package/package.json +6 -6
- package/build/lowcode/assets-daily.json +0 -67
- package/build/lowcode/assets-dev.json +0 -67
- package/build/lowcode/assets-prod.json +0 -67
- package/build/lowcode/designer.html +0 -302
- package/build/lowcode/index.html +0 -304
- package/build/lowcode/index.js +0 -1
- package/build/lowcode/meta.js +0 -1
- package/build/lowcode/preview.css +0 -1
- package/build/lowcode/preview.html +0 -33
- package/build/lowcode/preview.js +0 -308
- package/build/lowcode/render/default/view.css +0 -1
- package/build/lowcode/render/default/view.js +0 -295
- package/build/lowcode/view.css +0 -1
- package/build/lowcode/view.js +0 -295
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './title-2.scss';
|
|
3
|
-
export interface Title2Props {
|
|
4
|
-
/**
|
|
5
|
-
* 标题
|
|
6
|
-
*/
|
|
7
|
-
title?: string;
|
|
8
|
-
/**
|
|
9
|
-
* 颜色
|
|
10
|
-
*/
|
|
11
|
-
color?: string;
|
|
12
|
-
/**
|
|
13
|
-
* tip颜色
|
|
14
|
-
*/
|
|
15
|
-
tipColor?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const Title2: React.FC<Title2Props>;
|
|
18
|
-
export default Title2;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './title-2.scss';
|
|
3
|
+
export interface Title2Props {
|
|
4
|
+
/**
|
|
5
|
+
* 标题
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 颜色
|
|
10
|
+
*/
|
|
11
|
+
color?: string;
|
|
12
|
+
/**
|
|
13
|
+
* tip颜色
|
|
14
|
+
*/
|
|
15
|
+
tipColor?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const Title2: React.FC<Title2Props>;
|
|
18
|
+
export default Title2;
|
|
@@ -21,7 +21,7 @@ var Title2 = function Title2(_ref) {
|
|
|
21
21
|
color: color
|
|
22
22
|
} : {};
|
|
23
23
|
var tipColorStyle = tipColor ? {
|
|
24
|
-
'
|
|
24
|
+
'backgroundColor': tipColor
|
|
25
25
|
} : {};
|
|
26
26
|
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
27
27
|
className: "custom-title-2"
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
@import '../../variables.scss';
|
|
2
|
-
|
|
3
|
-
.custom-title-2 {
|
|
4
|
-
|
|
5
|
-
& > div {
|
|
6
|
-
font-size: 16px;
|
|
7
|
-
font-weight: 500;
|
|
8
|
-
color: #144477;
|
|
9
|
-
display: flex;
|
|
10
|
-
gap: 3.5px;
|
|
11
|
-
align-items: center;
|
|
12
|
-
|
|
13
|
-
& > div.tips {
|
|
14
|
-
content: '';
|
|
15
|
-
display: inline-block;
|
|
16
|
-
width: 3.5px;
|
|
17
|
-
height: 14.5px;
|
|
18
|
-
background-color: #388AF7;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.custom-title-2 {
|
|
4
|
+
|
|
5
|
+
& > div {
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
color: #144477;
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 3.5px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
& > div.tips {
|
|
14
|
+
content: '';
|
|
15
|
+
display: inline-block;
|
|
16
|
+
width: 3.5px;
|
|
17
|
+
height: 14.5px;
|
|
18
|
+
background-color: #388AF7;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export type { ComponentProps } from './components/dc-slider';
|
|
2
|
-
export { default as DCSlider } from './components/dc-slider';
|
|
3
|
-
export type { NavigationProps } from './components/bottom-navigation';
|
|
4
|
-
export { default as Navigation } from './components/bottom-navigation';
|
|
5
|
-
export type { TeletextListProps } from './components/teletext-list';
|
|
6
|
-
export { default as TeletextList } from './components/teletext-list';
|
|
7
|
-
export type { Title1Props } from './components/title';
|
|
8
|
-
export { Title1 } from './components/title';
|
|
9
|
-
export type { Title2Props } from './components/title';
|
|
10
|
-
export { Title2 } from './components/title';
|
|
11
|
-
declare const bizCssPrefix = "bizpack";
|
|
12
|
-
export { bizCssPrefix };
|
|
1
|
+
export type { ComponentProps } from './components/dc-slider';
|
|
2
|
+
export { default as DCSlider } from './components/dc-slider';
|
|
3
|
+
export type { NavigationProps } from './components/bottom-navigation';
|
|
4
|
+
export { default as Navigation } from './components/bottom-navigation';
|
|
5
|
+
export type { TeletextListProps } from './components/teletext-list';
|
|
6
|
+
export { default as TeletextList } from './components/teletext-list';
|
|
7
|
+
export type { Title1Props } from './components/title';
|
|
8
|
+
export { Title1 } from './components/title';
|
|
9
|
+
export type { Title2Props } from './components/title';
|
|
10
|
+
export { Title2 } from './components/title';
|
|
11
|
+
declare const bizCssPrefix = "bizpack";
|
|
12
|
+
export { bizCssPrefix };
|
package/lib/index.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@import './components/colorful-button/index.scss';
|
|
2
|
-
@import './components/colorful-input/index.scss';
|
|
3
|
-
@import './components/teletext-list/index.scss';
|
|
1
|
+
@import './components/colorful-button/index.scss';
|
|
2
|
+
@import './components/colorful-input/index.scss';
|
|
3
|
+
@import './components/teletext-list/index.scss';
|
package/lib/variables.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const bizCssPrefix = "bizpack";
|
|
2
|
-
export { bizCssPrefix };
|
|
1
|
+
declare const bizCssPrefix = "bizpack";
|
|
2
|
+
export { bizCssPrefix };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export default [
|
|
2
|
-
{
|
|
3
|
-
title: '图片轮播',
|
|
4
|
-
screenshot:
|
|
5
|
-
'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_slider.png',
|
|
6
|
-
schema: {
|
|
7
|
-
componentName: 'DCSlider',
|
|
8
|
-
props: {
|
|
9
|
-
prefix: 'next-',
|
|
10
|
-
animation: 'slide',
|
|
11
|
-
arrows: true,
|
|
12
|
-
arrowSize: 'medium',
|
|
13
|
-
arrowPosition: 'inner',
|
|
14
|
-
arrowDirection: 'hoz',
|
|
15
|
-
autoplaySpeed: 3000,
|
|
16
|
-
dots: true,
|
|
17
|
-
dotsDirection: 'hoz',
|
|
18
|
-
draggable: true,
|
|
19
|
-
infinite: true,
|
|
20
|
-
slide: 'div',
|
|
21
|
-
slideDirection: 'hoz',
|
|
22
|
-
slidesToShow: 1,
|
|
23
|
-
slidesToScroll: 1,
|
|
24
|
-
speed: 600,
|
|
25
|
-
triggerType: 'click',
|
|
26
|
-
centerPadding: '50px',
|
|
27
|
-
cssEase: 'ease',
|
|
28
|
-
edgeFriction: 0.35,
|
|
29
|
-
swipe: true,
|
|
30
|
-
touchMove: true,
|
|
31
|
-
touchThreshold: 5,
|
|
32
|
-
useCSS: true,
|
|
33
|
-
waitForAnimate: true,
|
|
34
|
-
// 轮播路径
|
|
35
|
-
picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png',
|
|
36
|
-
'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg',
|
|
37
|
-
'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg',
|
|
38
|
-
'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg']
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
];
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '图片轮播',
|
|
4
|
+
screenshot:
|
|
5
|
+
'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_slider.png',
|
|
6
|
+
schema: {
|
|
7
|
+
componentName: 'DCSlider',
|
|
8
|
+
props: {
|
|
9
|
+
prefix: 'next-',
|
|
10
|
+
animation: 'slide',
|
|
11
|
+
arrows: true,
|
|
12
|
+
arrowSize: 'medium',
|
|
13
|
+
arrowPosition: 'inner',
|
|
14
|
+
arrowDirection: 'hoz',
|
|
15
|
+
autoplaySpeed: 3000,
|
|
16
|
+
dots: true,
|
|
17
|
+
dotsDirection: 'hoz',
|
|
18
|
+
draggable: true,
|
|
19
|
+
infinite: true,
|
|
20
|
+
slide: 'div',
|
|
21
|
+
slideDirection: 'hoz',
|
|
22
|
+
slidesToShow: 1,
|
|
23
|
+
slidesToScroll: 1,
|
|
24
|
+
speed: 600,
|
|
25
|
+
triggerType: 'click',
|
|
26
|
+
centerPadding: '50px',
|
|
27
|
+
cssEase: 'ease',
|
|
28
|
+
edgeFriction: 0.35,
|
|
29
|
+
swipe: true,
|
|
30
|
+
touchMove: true,
|
|
31
|
+
touchThreshold: 5,
|
|
32
|
+
useCSS: true,
|
|
33
|
+
waitForAnimate: true,
|
|
34
|
+
// 轮播路径
|
|
35
|
+
picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png',
|
|
36
|
+
'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg',
|
|
37
|
+
'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg',
|
|
38
|
+
'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg']
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
];
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import messageIcon from '../../src/assets/icon/navigation/message.png'
|
|
2
|
+
import messageIconSelected from '../../src/assets/icon/navigation/message-selected.png'
|
|
3
|
+
import indexIcon from '../../src/assets/icon/navigation/index.png'
|
|
4
|
+
import indexIconSelected from '../../src/assets/icon/navigation/index-selected.png'
|
|
5
|
+
import mineIcon from '../../src/assets/icon/navigation/mine.png'
|
|
6
|
+
import mineIconSelected from '../../src/assets/icon/navigation/mine-selected.png'
|
|
2
7
|
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
8
|
|
|
4
9
|
const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
5
10
|
"componentName": "Navigation",
|
|
6
|
-
"title": "
|
|
11
|
+
"title": "底部导航",
|
|
7
12
|
"docUrl": "",
|
|
8
13
|
"screenshot": "",
|
|
9
14
|
"devMode": "proCode",
|
|
10
15
|
"npm": {
|
|
11
|
-
"package": "dc-material",
|
|
12
|
-
"version": "0.1.
|
|
16
|
+
"package": "@dckj-npm/dc-material",
|
|
17
|
+
"version": "0.1.4",
|
|
13
18
|
"exportName": "Navigation",
|
|
14
19
|
"main": "src\\index.tsx",
|
|
15
20
|
"destructuring": true,
|
|
@@ -22,7 +27,7 @@ const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
|
22
27
|
"label": {
|
|
23
28
|
"type": "i18n",
|
|
24
29
|
"en-US": "itemArray",
|
|
25
|
-
"zh-CN": "
|
|
30
|
+
"zh-CN": "导航项"
|
|
26
31
|
}
|
|
27
32
|
},
|
|
28
33
|
"name": "itemArray",
|
|
@@ -39,7 +44,7 @@ const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
|
39
44
|
"label": {
|
|
40
45
|
"type": "i18n",
|
|
41
46
|
"en-US": "text",
|
|
42
|
-
"zh-CN": "
|
|
47
|
+
"zh-CN": "名称"
|
|
43
48
|
}
|
|
44
49
|
},
|
|
45
50
|
"name": "text",
|
|
@@ -54,7 +59,7 @@ const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
|
54
59
|
"label": {
|
|
55
60
|
"type": "i18n",
|
|
56
61
|
"en-US": "icon",
|
|
57
|
-
"zh-CN": "
|
|
62
|
+
"zh-CN": "图标"
|
|
58
63
|
}
|
|
59
64
|
},
|
|
60
65
|
"name": "icon",
|
|
@@ -69,7 +74,7 @@ const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
|
69
74
|
"label": {
|
|
70
75
|
"type": "i18n",
|
|
71
76
|
"en-US": "selectedIcon",
|
|
72
|
-
"zh-CN": "
|
|
77
|
+
"zh-CN": "选中图标"
|
|
73
78
|
}
|
|
74
79
|
},
|
|
75
80
|
"name": "selectedIcon",
|
|
@@ -92,6 +97,17 @@ const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
|
92
97
|
"isRequired": true,
|
|
93
98
|
"initialValue": []
|
|
94
99
|
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"title": {
|
|
103
|
+
"label": {
|
|
104
|
+
"type": "i18n",
|
|
105
|
+
"en-US": "selectedColor",
|
|
106
|
+
"zh-CN": "选中颜色"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"name": "selectedColor",
|
|
110
|
+
"setter": "ColorSetter"
|
|
95
111
|
}
|
|
96
112
|
],
|
|
97
113
|
"supports": {
|
|
@@ -102,13 +118,31 @@ const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
|
102
118
|
};
|
|
103
119
|
const snippets: IPublicTypeSnippet[] = [
|
|
104
120
|
{
|
|
105
|
-
"title": "
|
|
121
|
+
"title": "底部导航",
|
|
106
122
|
"screenshot": "",
|
|
107
123
|
"schema": {
|
|
108
124
|
"componentName": "Navigation",
|
|
109
|
-
"props": {
|
|
125
|
+
"props": {
|
|
126
|
+
"itemArray": [
|
|
127
|
+
{
|
|
128
|
+
"text": "首页",
|
|
129
|
+
"icon": indexIcon,
|
|
130
|
+
"selectedIcon": indexIconSelected
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"text": "消息",
|
|
134
|
+
"icon": messageIcon,
|
|
135
|
+
"selectedIcon": messageIconSelected
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"text": "我的",
|
|
139
|
+
"icon": mineIcon,
|
|
140
|
+
"selectedIcon": mineIconSelected
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
}
|
|
110
145
|
}
|
|
111
|
-
}
|
|
112
146
|
];
|
|
113
147
|
|
|
114
148
|
export default {
|