@dckj-npm/dc-material 0.1.7 → 0.1.8
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 +12 -19
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- 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 +13 -13
- 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/menu-list/index.d.ts +6 -0
- package/es/components/menu-list/index.js +6 -0
- package/es/components/menu-list/index.scss +16 -0
- package/es/components/menu-list/menu-list-item.d.ts +5 -0
- package/es/components/menu-list/menu-list-item.js +32 -0
- package/es/components/menu-list/menu-list-item.scss +49 -0
- package/es/components/menu-list/menu-list.d.ts +5 -0
- package/es/components/menu-list/menu-list.js +25 -0
- package/es/components/menu-list/types.d.ts +23 -0
- package/es/components/menu-list/types.js +1 -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 -16
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/es/components/teletext-list/teletext-list-item.js +2 -2
- package/es/components/teletext-list/teletext-list-item.scss +74 -74
- package/es/components/teletext-list/teletext-list.d.ts +53 -53
- 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 +26 -26
- package/es/components/title/title-2.d.ts +18 -18
- package/es/components/title/title-2.scss +22 -22
- package/es/index.d.ts +14 -12
- package/es/index.js +1 -0
- package/es/index.scss +3 -3
- package/es/variables.d.ts +2 -2
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -13
- 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/menu-list/index.d.ts +6 -0
- package/lib/components/{position → menu-list}/index.js +5 -2
- package/lib/components/menu-list/index.scss +16 -0
- package/lib/components/menu-list/menu-list-item.d.ts +5 -0
- package/lib/components/menu-list/menu-list-item.js +37 -0
- package/lib/components/menu-list/menu-list-item.scss +49 -0
- package/lib/components/menu-list/menu-list.d.ts +5 -0
- package/lib/components/menu-list/menu-list.js +30 -0
- package/lib/components/menu-list/types.d.ts +23 -0
- package/lib/components/menu-list/types.js +3 -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 -16
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/lib/components/teletext-list/teletext-list-item.js +2 -2
- package/lib/components/teletext-list/teletext-list-item.scss +74 -74
- package/lib/components/teletext-list/teletext-list.d.ts +53 -53
- 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 +26 -26
- package/lib/components/title/title-2.d.ts +18 -18
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.d.ts +14 -12
- package/lib/index.js +3 -1
- 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/menu-list/meta.ts +147 -0
- package/lowcode/navigation/meta.ts +1 -1
- package/lowcode/teletext-list/meta.ts +300 -300
- package/lowcode/title1/meta.ts +59 -59
- package/lowcode/title2/meta.ts +93 -93
- package/lowcode_es/d-c-slider/meta.d.ts +140 -140
- package/lowcode_es/d-c-slider/meta.js +1 -1
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_es/menu-list/meta.d.ts +22 -0
- package/lowcode_es/menu-list/meta.js +128 -0
- package/lowcode_es/meta.js +8 -7
- package/lowcode_es/navigation/meta.d.ts +22 -22
- package/lowcode_es/navigation/meta.js +1 -1
- 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/title1/meta.js +1 -1
- package/lowcode_es/title2/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.js +1 -1
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/d-c-slider/meta.d.ts +140 -140
- package/lowcode_lib/d-c-slider/meta.js +1 -1
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_lib/menu-list/meta.d.ts +22 -0
- package/lowcode_lib/menu-list/meta.js +133 -0
- package/lowcode_lib/meta.js +8 -7
- package/lowcode_lib/navigation/meta.d.ts +22 -22
- package/lowcode_lib/navigation/meta.js +1 -1
- 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/title1/meta.js +1 -1
- package/lowcode_lib/title2/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.js +1 -1
- package/lowcode_lib/view.js +2 -2
- package/package.json +3 -3
- package/build/docs/colorful-button.html +0 -48
- package/build/docs/colorful-input.html +0 -48
- package/build/docs/index.html +0 -48
- package/build/docs/umi.7f7df875.css +0 -8
- package/build/docs/umi.7face50a.js +0 -1
- package/build/docs/~demos/colorful-button-demo.html +0 -47
- package/build/docs/~demos/colorful-input-demo.html +0 -47
- package/es/components/position/index.d.ts +0 -3
- package/es/components/position/index.js +0 -2
- package/es/components/position/index.scss +0 -16
- package/es/components/position/position.d.ts +0 -13
- package/es/components/position/position.js +0 -39
- package/lib/components/position/index.d.ts +0 -3
- package/lib/components/position/index.scss +0 -16
- package/lib/components/position/position.d.ts +0 -13
- package/lib/components/position/position.js +0 -46
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
/**
|
|
4
|
-
* 数据
|
|
5
|
-
*/
|
|
6
|
-
interface DataProps {
|
|
7
|
-
/**
|
|
8
|
-
* 标题
|
|
9
|
-
*/
|
|
10
|
-
title?: string;
|
|
11
|
-
/**
|
|
12
|
-
* 图片地址
|
|
13
|
-
*/
|
|
14
|
-
image?: string;
|
|
15
|
-
/**
|
|
16
|
-
* 图片位置
|
|
17
|
-
*/
|
|
18
|
-
imagePlacement?: "left" | "right" | "none";
|
|
19
|
-
/**
|
|
20
|
-
* 说明
|
|
21
|
-
*/
|
|
22
|
-
description?: string;
|
|
23
|
-
/**
|
|
24
|
-
* 标签列表
|
|
25
|
-
*/
|
|
26
|
-
tags?: {
|
|
27
|
-
/**
|
|
28
|
-
* 标签名称
|
|
29
|
-
*/
|
|
30
|
-
name: string;
|
|
31
|
-
/**
|
|
32
|
-
* 标签颜色
|
|
33
|
-
*/
|
|
34
|
-
color: string;
|
|
35
|
-
}[];
|
|
36
|
-
}
|
|
37
|
-
export interface TeletextListProps {
|
|
38
|
-
/**
|
|
39
|
-
* 标题
|
|
40
|
-
*/
|
|
41
|
-
title?: string;
|
|
42
|
-
/**
|
|
43
|
-
* 数据
|
|
44
|
-
*/
|
|
45
|
-
dataList?: DataProps[];
|
|
46
|
-
/**
|
|
47
|
-
* 点击事件
|
|
48
|
-
* @param e
|
|
49
|
-
*/
|
|
50
|
-
onClick?: (e: any) => void;
|
|
51
|
-
}
|
|
52
|
-
declare const TeletextList: React.FC<TeletextListProps>;
|
|
53
|
-
export default TeletextList;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
/**
|
|
4
|
+
* 数据
|
|
5
|
+
*/
|
|
6
|
+
interface DataProps {
|
|
7
|
+
/**
|
|
8
|
+
* 标题
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 图片地址
|
|
13
|
+
*/
|
|
14
|
+
image?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 图片位置
|
|
17
|
+
*/
|
|
18
|
+
imagePlacement?: "left" | "right" | "none";
|
|
19
|
+
/**
|
|
20
|
+
* 说明
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 标签列表
|
|
25
|
+
*/
|
|
26
|
+
tags?: {
|
|
27
|
+
/**
|
|
28
|
+
* 标签名称
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* 标签颜色
|
|
33
|
+
*/
|
|
34
|
+
color: string;
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
37
|
+
export interface TeletextListProps {
|
|
38
|
+
/**
|
|
39
|
+
* 标题
|
|
40
|
+
*/
|
|
41
|
+
title?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 数据
|
|
44
|
+
*/
|
|
45
|
+
dataList?: DataProps[];
|
|
46
|
+
/**
|
|
47
|
+
* 点击事件
|
|
48
|
+
* @param e
|
|
49
|
+
*/
|
|
50
|
+
onClick?: (e: any) => void;
|
|
51
|
+
}
|
|
52
|
+
declare const TeletextList: React.FC<TeletextListProps>;
|
|
53
|
+
export default TeletextList;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 标题
|
|
3
|
-
*/
|
|
4
|
-
import Title1 from './title-1';
|
|
5
|
-
import Title2 from './title-2';
|
|
6
|
-
export type { Title1Props } from './title-1';
|
|
7
|
-
export type { Title2Props } from './title-2';
|
|
8
|
-
export { Title1, Title2 };
|
|
1
|
+
/**
|
|
2
|
+
* 标题
|
|
3
|
+
*/
|
|
4
|
+
import Title1 from './title-1';
|
|
5
|
+
import Title2 from './title-2';
|
|
6
|
+
export type { Title1Props } from './title-1';
|
|
7
|
+
export type { Title2Props } from './title-2';
|
|
8
|
+
export { Title1, Title2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './title-1.scss';
|
|
3
|
-
export interface Title1Props {
|
|
4
|
-
/**
|
|
5
|
-
* 标题
|
|
6
|
-
*/
|
|
7
|
-
title?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Title1: React.FC<Title1Props>;
|
|
10
|
-
export default Title1;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './title-1.scss';
|
|
3
|
+
export interface Title1Props {
|
|
4
|
+
/**
|
|
5
|
+
* 标题
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Title1: React.FC<Title1Props>;
|
|
10
|
+
export default Title1;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
@import '../../variables.scss';
|
|
2
|
-
|
|
3
|
-
.custom-title-1 {
|
|
4
|
-
|
|
5
|
-
& > span {
|
|
6
|
-
position: relative;
|
|
7
|
-
font-size: 17px;
|
|
8
|
-
font-weight: 500;
|
|
9
|
-
color: #000000;
|
|
10
|
-
z-index: 1;
|
|
11
|
-
|
|
12
|
-
&::after {
|
|
13
|
-
content: '';
|
|
14
|
-
position: absolute;
|
|
15
|
-
bottom: -2px;
|
|
16
|
-
left: 0;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 5px;
|
|
19
|
-
background: linear-gradient(-30deg, #95CDFE, #61A0FE);
|
|
20
|
-
border-radius: 5px;
|
|
21
|
-
opacity: 0.6;
|
|
22
|
-
z-index: 0;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.custom-title-1 {
|
|
4
|
+
|
|
5
|
+
& > span {
|
|
6
|
+
position: relative;
|
|
7
|
+
font-size: 17px;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
color: #000000;
|
|
10
|
+
z-index: 1;
|
|
11
|
+
|
|
12
|
+
&::after {
|
|
13
|
+
content: '';
|
|
14
|
+
position: absolute;
|
|
15
|
+
bottom: -2px;
|
|
16
|
+
left: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 5px;
|
|
19
|
+
background: linear-gradient(-30deg, #95CDFE, #61A0FE);
|
|
20
|
+
border-radius: 5px;
|
|
21
|
+
opacity: 0.6;
|
|
22
|
+
z-index: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
@@ -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;
|
|
@@ -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/es/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
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 {
|
|
6
|
-
export { default as
|
|
7
|
-
export type {
|
|
8
|
-
export {
|
|
9
|
-
export type {
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
export {
|
|
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 { MenuListDataProps, MenuListProps } from './components/menu-list';
|
|
6
|
+
export { default as MenuList } from './components/menu-list';
|
|
7
|
+
export type { TeletextListProps } from './components/teletext-list';
|
|
8
|
+
export { default as TeletextList } from './components/teletext-list';
|
|
9
|
+
export type { Title1Props } from './components/title';
|
|
10
|
+
export { Title1 } from './components/title';
|
|
11
|
+
export type { Title2Props } from './components/title';
|
|
12
|
+
export { Title2 } from './components/title';
|
|
13
|
+
declare const bizCssPrefix = "bizpack";
|
|
14
|
+
export { bizCssPrefix };
|
package/es/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as DCSlider } from "./components/dc-slider";
|
|
2
2
|
export { default as Navigation } from "./components/bottom-navigation";
|
|
3
|
+
export { default as MenuList } from "./components/menu-list";
|
|
3
4
|
export { default as TeletextList } from "./components/teletext-list";
|
|
4
5
|
export { Title1 } from "./components/title";
|
|
5
6
|
export { Title2 } from "./components/title";
|
package/es/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/es/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,13 +1,13 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
interface Navigation {
|
|
4
|
-
text: string;
|
|
5
|
-
icon: string;
|
|
6
|
-
selectedIcon: string;
|
|
7
|
-
}
|
|
8
|
-
export interface NavigationProps {
|
|
9
|
-
itemArray: Navigation[];
|
|
10
|
-
selectedColor: string;
|
|
11
|
-
}
|
|
12
|
-
declare const Navigation: React.FC<NavigationProps>;
|
|
13
|
-
export default Navigation;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
interface Navigation {
|
|
4
|
+
text: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
selectedIcon: string;
|
|
7
|
+
}
|
|
8
|
+
export interface NavigationProps {
|
|
9
|
+
itemArray: Navigation[];
|
|
10
|
+
selectedColor: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Navigation: React.FC<NavigationProps>;
|
|
13
|
+
export default Navigation;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Navigation from './bottom-navigation';
|
|
2
|
-
export type { NavigationProps } from './bottom-navigation';
|
|
3
|
-
export default Navigation;
|
|
1
|
+
import Navigation from './bottom-navigation';
|
|
2
|
+
export type { NavigationProps } from './bottom-navigation';
|
|
3
|
+
export default Navigation;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ColorfulButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* 类型
|
|
6
|
-
*/
|
|
7
|
-
type?: "primary" | "secondary" | "normal";
|
|
8
|
-
color?: string;
|
|
9
|
-
style?: object;
|
|
10
|
-
}
|
|
11
|
-
declare const ColorfulButton: React.FC<ColorfulButtonProps>;
|
|
12
|
-
export default ColorfulButton;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ColorfulButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* 类型
|
|
6
|
+
*/
|
|
7
|
+
type?: "primary" | "secondary" | "normal";
|
|
8
|
+
color?: string;
|
|
9
|
+
style?: object;
|
|
10
|
+
}
|
|
11
|
+
declare const ColorfulButton: React.FC<ColorfulButtonProps>;
|
|
12
|
+
export default ColorfulButton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ColorfulButton from './colorful-button';
|
|
2
|
-
export type { ColorfulButtonProps } from './colorful-button';
|
|
3
|
-
export default ColorfulButton;
|
|
1
|
+
import ColorfulButton from './colorful-button';
|
|
2
|
+
export type { ColorfulButtonProps } from './colorful-button';
|
|
3
|
+
export default ColorfulButton;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ColorfulInputProps {
|
|
4
|
-
color?: string;
|
|
5
|
-
style?: object;
|
|
6
|
-
}
|
|
7
|
-
declare const ColorfulInput: React.FC<ColorfulInputProps>;
|
|
8
|
-
export default ColorfulInput;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ColorfulInputProps {
|
|
4
|
+
color?: string;
|
|
5
|
+
style?: object;
|
|
6
|
+
}
|
|
7
|
+
declare const ColorfulInput: React.FC<ColorfulInputProps>;
|
|
8
|
+
export default ColorfulInput;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ColorfulInput from './colorful-input';
|
|
2
|
-
export type { ColorfulInputProps } from './colorful-input';
|
|
3
|
-
export default ColorfulInput;
|
|
1
|
+
import ColorfulInput from './colorful-input';
|
|
2
|
+
export type { ColorfulInputProps } from './colorful-input';
|
|
3
|
+
export default ColorfulInput;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import DCSlider from './slider';
|
|
2
|
-
export type { ComponentProps } from './slider';
|
|
3
|
-
export default DCSlider;
|
|
1
|
+
import DCSlider from './slider';
|
|
2
|
+
export type { ComponentProps } from './slider';
|
|
3
|
+
export default DCSlider;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ComponentProps {
|
|
4
|
-
prefix: string;
|
|
5
|
-
animation: string;
|
|
6
|
-
arrows: true;
|
|
7
|
-
arrowSize: string;
|
|
8
|
-
arrowPosition: string;
|
|
9
|
-
arrowDirection: string;
|
|
10
|
-
autoplaySpeed: number;
|
|
11
|
-
dots: boolean;
|
|
12
|
-
dotsDirection: string;
|
|
13
|
-
draggable: boolean;
|
|
14
|
-
infinite: boolean;
|
|
15
|
-
slide: string;
|
|
16
|
-
slideDirection: string;
|
|
17
|
-
slidesToShow: number;
|
|
18
|
-
slidesToScroll: number;
|
|
19
|
-
speed: number;
|
|
20
|
-
triggerType: string;
|
|
21
|
-
centerPadding: string;
|
|
22
|
-
cssEase: string;
|
|
23
|
-
edgeFriction: number;
|
|
24
|
-
swipe: boolean;
|
|
25
|
-
touchMove: boolean;
|
|
26
|
-
touchThreshold: number;
|
|
27
|
-
useCSS: boolean;
|
|
28
|
-
waitForAnimate: boolean;
|
|
29
|
-
picUrls: string[];
|
|
30
|
-
}
|
|
31
|
-
declare const DCSlider: React.FC<ComponentProps>;
|
|
32
|
-
export default DCSlider;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ComponentProps {
|
|
4
|
+
prefix: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
arrows: true;
|
|
7
|
+
arrowSize: string;
|
|
8
|
+
arrowPosition: string;
|
|
9
|
+
arrowDirection: string;
|
|
10
|
+
autoplaySpeed: number;
|
|
11
|
+
dots: boolean;
|
|
12
|
+
dotsDirection: string;
|
|
13
|
+
draggable: boolean;
|
|
14
|
+
infinite: boolean;
|
|
15
|
+
slide: string;
|
|
16
|
+
slideDirection: string;
|
|
17
|
+
slidesToShow: number;
|
|
18
|
+
slidesToScroll: number;
|
|
19
|
+
speed: number;
|
|
20
|
+
triggerType: string;
|
|
21
|
+
centerPadding: string;
|
|
22
|
+
cssEase: string;
|
|
23
|
+
edgeFriction: number;
|
|
24
|
+
swipe: boolean;
|
|
25
|
+
touchMove: boolean;
|
|
26
|
+
touchThreshold: number;
|
|
27
|
+
useCSS: boolean;
|
|
28
|
+
waitForAnimate: boolean;
|
|
29
|
+
picUrls: string[];
|
|
30
|
+
}
|
|
31
|
+
declare const DCSlider: React.FC<ComponentProps>;
|
|
32
|
+
export default DCSlider;
|
|
@@ -3,5 +3,8 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
|
-
var
|
|
7
|
-
|
|
6
|
+
var _menuList = _interopRequireDefault(require("./menu-list"));
|
|
7
|
+
/**
|
|
8
|
+
* 菜单列表
|
|
9
|
+
*/
|
|
10
|
+
var _default = exports["default"] = _menuList["default"];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
require("./menu-list-item.scss");
|
|
8
|
+
var MenuListItem = function MenuListItem(_ref) {
|
|
9
|
+
var _ref$title = _ref.title,
|
|
10
|
+
title = _ref$title === void 0 ? '菜单名称' : _ref$title,
|
|
11
|
+
_ref$iconUrl = _ref.iconUrl,
|
|
12
|
+
iconUrl = _ref$iconUrl === void 0 ? '' : _ref$iconUrl,
|
|
13
|
+
handleClick = _ref.handleClick;
|
|
14
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
15
|
+
className: "menu-list__panel__item",
|
|
16
|
+
onClick: handleClick
|
|
17
|
+
}, iconUrl ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
18
|
+
className: "menu-list__panel__item_icon"
|
|
19
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
20
|
+
alt: "",
|
|
21
|
+
src: iconUrl
|
|
22
|
+
})) : null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
|
+
className: "menu-list__panel__item_title"
|
|
24
|
+
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
25
|
+
className: "menu-list__panel__item_right"
|
|
26
|
+
}, /*#__PURE__*/_react["default"].createElement("svg", {
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
width: "32",
|
|
29
|
+
height: "32",
|
|
30
|
+
viewBox: "0 0 32 32"
|
|
31
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
32
|
+
fill: "currentColor",
|
|
33
|
+
d: "M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z"
|
|
34
|
+
}))));
|
|
35
|
+
};
|
|
36
|
+
MenuListItem.displayName = 'MenuListItem';
|
|
37
|
+
var _default = exports["default"] = MenuListItem;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.menu-list__panel__item {
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: 7px;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
height: 45px;
|
|
9
|
+
|
|
10
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
11
|
+
|
|
12
|
+
&:last-child {
|
|
13
|
+
border-bottom: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.menu-list__panel__item_icon {
|
|
17
|
+
height: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
|
|
21
|
+
& > img {
|
|
22
|
+
height: 15px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.menu-list__panel__item_title {
|
|
27
|
+
font-size: 15px;
|
|
28
|
+
color: #666666;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
margin-right: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.menu-list__panel__item_right {
|
|
34
|
+
height: 100%;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
|
|
38
|
+
& > svg {
|
|
39
|
+
height: 16px;
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
color: #666666;
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
}
|