@dckj-npm/dc-material 0.1.147 → 0.1.149
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/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/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +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/button/button.d.ts +14 -0
- package/es/components/button/index.d.ts +6 -0
- package/es/components/carousel/carousel.d.ts +14 -0
- 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-input/colorful-input.d.ts +8 -0
- package/es/components/colorful-input/index.d.ts +3 -0
- package/es/components/form/form-item.d.ts +42 -0
- package/es/components/form/form.d.ts +57 -0
- package/es/components/form/form.js +46 -0
- package/es/components/form/index.d.ts +6 -0
- package/es/components/form/index.js +6 -0
- package/es/components/form/index.scss +22 -0
- package/es/components/form/next-wrapper.d.ts +54 -0
- package/es/components/form/next-wrapper.js +43 -0
- package/es/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list-common.js +60 -0
- package/es/components/goods-card-list/goods-card-list-common.scss +118 -0
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list.js +156 -0
- package/es/components/goods-card-list/goods-card-list.scss +112 -0
- package/es/components/goods-card-list/index.d.ts +4 -0
- package/es/components/goods-card-list/index.js +3 -0
- package/es/components/goods-card-list/types.d.ts +45 -0
- package/es/components/goods-card-list/types.js +1 -0
- package/es/components/grid-nav/grid-nav.d.ts +13 -0
- package/es/components/grid-nav/grid-nav.js +102 -0
- package/es/components/grid-nav/index.d.ts +3 -0
- package/es/components/grid-nav/index.js +2 -0
- package/es/components/grid-nav/index.scss +50 -0
- package/es/components/integral-task/index.d.ts +6 -0
- package/es/components/integral-task/index.js +5 -0
- package/es/components/integral-task/index.scss +35 -0
- package/es/components/integral-task/integral-task.d.ts +40 -0
- package/es/components/integral-task/integral-task.js +54 -0
- 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/message-list/index.d.ts +6 -0
- package/es/components/message-list/index.js +6 -0
- package/es/components/message-list/index.scss +22 -0
- package/es/components/message-list/message-list-item.d.ts +33 -0
- package/es/components/message-list/message-list-item.js +41 -0
- package/es/components/message-list/message-list-item.scss +60 -0
- package/es/components/message-list/message-list.d.ts +28 -0
- package/es/components/message-list/message-list.js +53 -0
- package/es/components/notice-bar/index.d.ts +3 -0
- package/es/components/notice-bar/index.js +2 -0
- package/es/components/notice-bar/index.scss +84 -0
- package/es/components/notice-bar/notice-bar-item.d.ts +18 -0
- package/es/components/notice-bar/notice-bar-item.js +30 -0
- package/es/components/notice-bar/notice-bar-item.scss +26 -0
- package/es/components/notice-bar/notice-bar.d.ts +46 -0
- package/es/components/notice-bar/notice-bar.js +57 -0
- package/es/components/position/entity.d.ts +5 -0
- package/es/components/position/entity.js +1 -0
- package/es/components/position/index.d.ts +3 -0
- package/es/components/position/index.js +2 -0
- package/es/components/position/index.scss +27 -0
- package/es/components/position/position-left.d.ts +9 -0
- package/es/components/position/position-left.js +28 -0
- package/es/components/position/position-list.d.ts +11 -0
- package/es/components/position/position-list.js +29 -0
- package/es/components/position/position.d.ts +8 -0
- package/es/components/position/position.js +48 -0
- package/es/components/radio-group/index.d.ts +8 -0
- package/es/components/radio-group/index.js +7 -0
- package/es/components/radio-group/index.scss +40 -0
- package/es/components/radio-group/radio-group-item.d.ts +48 -0
- package/es/components/radio-group/radio-group-item.js +74 -0
- package/es/components/radio-group/radio-group.d.ts +52 -0
- package/es/components/radio-group/radio-group.js +80 -0
- 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 +19 -0
- package/es/components/rich-text/rich-text.d.ts +14 -0
- package/es/components/rich-text/rich-text.js +37 -0
- package/es/components/search-bar/index.d.ts +3 -0
- package/es/components/search-bar/index.js +2 -0
- package/es/components/search-bar/index.scss +39 -0
- package/es/components/search-bar/search-bar.d.ts +10 -0
- package/es/components/search-bar/search-bar.js +73 -0
- package/es/components/stream-list/index.d.ts +6 -0
- package/es/components/stream-list/index.js +6 -0
- package/es/components/stream-list/index.scss +26 -0
- package/es/components/stream-list/stream-list.d.ts +54 -0
- package/es/components/stream-list/stream-list.js +159 -0
- package/es/components/swiper/index.d.ts +3 -0
- package/es/components/swiper/index.js +2 -0
- package/es/components/swiper/index.scss +33 -0
- package/es/components/swiper/swiper.d.ts +26 -0
- package/es/components/swiper/swiper.js +77 -0
- package/es/components/tab/index.d.ts +6 -0
- package/es/components/tab/index.js +5 -0
- package/es/components/tab/index.scss +39 -0
- package/es/components/tab/tab.d.ts +27 -0
- package/es/components/tab/tab.js +50 -0
- package/es/components/tab-container/index.d.ts +3 -0
- package/es/components/tab-container/index.js +2 -0
- package/es/components/tab-container/index.scss +48 -0
- package/es/components/tab-container/tab-container.d.ts +10 -0
- package/es/components/tab-container/tab-container.js +26 -0
- package/es/components/tab-container-item/index.d.ts +3 -0
- package/es/components/tab-container-item/index.js +2 -0
- package/es/components/tab-container-item/index.scss +0 -0
- package/es/components/tab-container-item/tab-container-item.d.ts +11 -0
- package/es/components/tab-container-item/tab-container-item.js +19 -0
- package/es/components/tag/index.d.ts +6 -0
- package/es/components/tag/index.js +5 -0
- package/es/components/tag/index.scss +24 -0
- package/es/components/tag/tag.d.ts +14 -0
- package/es/components/tag/tag.js +14 -0
- package/es/components/teletext-list/index.d.ts +6 -0
- package/es/components/teletext-list/index.js +6 -0
- package/es/components/teletext-list/index.scss +40 -0
- package/es/components/teletext-list/teletext-list-item.d.ts +33 -0
- package/es/components/teletext-list/teletext-list-item.js +61 -0
- package/es/components/teletext-list/teletext-list-item.scss +57 -0
- package/es/components/teletext-list/teletext-list.d.ts +61 -0
- package/es/components/teletext-list/teletext-list.js +48 -0
- package/es/components/title/index.d.ts +8 -0
- package/es/components/title/index.js +7 -0
- package/es/components/title/title-1.d.ts +10 -0
- package/es/components/title/title-1.js +16 -0
- package/es/components/title/title-1.scss +25 -0
- package/es/components/title/title-2.d.ts +18 -0
- package/es/components/title/title-2.js +31 -0
- package/es/components/title/title-2.scss +22 -0
- package/es/entity/dynamic-column-data-type.d.ts +47 -0
- package/es/entity/dynamic-column-data-type.js +165 -0
- package/es/index.d.ts +46 -0
- package/es/index.js +86 -0
- package/es/index.scss +6 -0
- package/es/style.js +4 -0
- package/es/utils/children-node-handle.d.ts +9 -0
- package/es/utils/children-node-handle.js +25 -0
- package/es/utils/component-wrapper.d.ts +9 -0
- package/es/utils/component-wrapper.js +38 -0
- package/es/utils/debounce.d.ts +1 -0
- package/es/utils/debounce.js +14 -0
- package/es/utils/textUtil.d.ts +10 -0
- package/es/utils/textUtil.js +51 -0
- package/es/utils/time-util.d.ts +5 -0
- package/es/utils/time-util.js +18 -0
- package/es/variables.d.ts +2 -0
- package/es/variables.js +2 -0
- package/es/variables.scss +3 -0
- package/lib/assets/icon/grid-nav/right.png +0 -0
- package/lib/assets/icon/position/img.png +0 -0
- package/lib/assets/icon/position/location.png +0 -0
- package/lib/assets/icon/search/delete.png +0 -0
- package/lib/assets/icon/search/search.png +0 -0
- package/lib/assets/icon/teletext-list/arr.png +0 -0
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -0
- package/lib/components/bottom-navigation/index.d.ts +3 -0
- package/lib/components/button/button.d.ts +14 -0
- package/lib/components/button/index.d.ts +6 -0
- package/lib/components/carousel/carousel.d.ts +14 -0
- 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-input/colorful-input.d.ts +8 -0
- package/lib/components/colorful-input/index.d.ts +3 -0
- package/lib/components/form/form-item.d.ts +42 -0
- package/lib/components/form/form-item.js +86 -0
- package/lib/components/form/form-item.scss +20 -0
- package/lib/components/form/form.d.ts +57 -0
- package/lib/components/form/form.js +49 -0
- package/lib/components/form/index.d.ts +6 -0
- package/lib/components/form/index.js +6 -0
- package/lib/components/form/index.scss +22 -0
- package/lib/components/form/next-wrapper.d.ts +54 -0
- package/lib/components/form/next-wrapper.js +49 -0
- package/lib/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -0
- 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/grid-nav.js +15 -4
- package/lib/components/grid-nav/index.d.ts +3 -0
- package/lib/components/grid-nav/index.scss +27 -18
- package/lib/components/integral-task/index.d.ts +6 -0
- 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/menu-list-item.d.ts +5 -0
- 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/message-list-item.d.ts +33 -0
- package/lib/components/message-list/message-list-item.scss +1 -1
- 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 +56 -14
- package/lib/components/notice-bar/notice-bar-item.d.ts +18 -0
- package/lib/components/notice-bar/notice-bar-item.js +6 -5
- package/lib/components/notice-bar/notice-bar-item.scss +1 -1
- package/lib/components/notice-bar/notice-bar.d.ts +46 -0
- package/lib/components/notice-bar/notice-bar.js +28 -56
- package/lib/components/position/entity.d.ts +5 -0
- package/lib/components/position/index.d.ts +3 -0
- package/lib/components/position/position-left.d.ts +9 -0
- package/lib/components/position/position-list.d.ts +11 -0
- package/lib/components/position/position-list.js +2 -3
- package/lib/components/position/position.d.ts +8 -0
- package/lib/components/radio-group/index.d.ts +8 -0
- 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/rich-text.d.ts +14 -0
- package/lib/components/search-bar/index.d.ts +3 -0
- package/lib/components/search-bar/index.scss +36 -10
- package/lib/components/search-bar/search-bar.d.ts +10 -0
- package/lib/components/search-bar/search-bar.js +67 -27
- package/lib/components/stream-list/index.d.ts +6 -0
- package/lib/components/stream-list/index.js +6 -0
- package/lib/components/stream-list/index.scss +26 -0
- package/lib/components/stream-list/stream-list.d.ts +54 -0
- package/lib/components/stream-list/stream-list.js +166 -0
- package/lib/components/swiper/index.d.ts +3 -0
- package/lib/components/swiper/index.scss +29 -8
- package/lib/components/swiper/swiper.d.ts +26 -0
- package/lib/components/swiper/swiper.js +60 -19
- package/lib/components/tab/index.d.ts +6 -0
- package/lib/components/tab/tab.d.ts +27 -0
- package/lib/components/tab-container/index.d.ts +3 -0
- 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/tag.d.ts +14 -0
- package/lib/components/teletext-list/index.d.ts +6 -0
- package/lib/components/teletext-list/index.scss +21 -0
- package/lib/components/teletext-list/teletext-list-item.d.ts +33 -0
- package/lib/components/teletext-list/teletext-list-item.scss +4 -2
- package/lib/components/teletext-list/teletext-list.d.ts +61 -0
- package/lib/components/teletext-list/teletext-list.js +17 -7
- package/lib/components/title/index.d.ts +8 -0
- package/lib/components/title/title-1.d.ts +10 -0
- package/lib/components/title/title-2.d.ts +18 -0
- package/lib/entity/dynamic-column-data-type.d.ts +47 -0
- package/lib/entity/dynamic-column-data-type.js +169 -0
- package/lib/index.d.ts +46 -0
- package/lib/index.js +9 -1
- package/lib/style.js +1 -2
- package/lib/utils/children-node-handle.d.ts +9 -0
- package/lib/utils/component-wrapper.d.ts +9 -0
- package/lib/utils/debounce.d.ts +1 -0
- package/lib/utils/textUtil.d.ts +10 -0
- package/lib/utils/textUtil.js +55 -0
- package/lib/utils/time-util.d.ts +5 -0
- package/lib/variables.d.ts +2 -0
- package/lowcode/{d-c-form → form}/meta.ts +6 -6
- package/lowcode_es/{d-c-form → form}/meta.js +6 -6
- package/lowcode_es/meta.js +3 -3
- package/lowcode_lib/{d-c-form → form}/meta.js +6 -6
- package/lowcode_lib/meta.js +3 -3
- package/package.json +3 -3
- package/lib/components/notice-bar/components/ScrollSwitcher.js +0 -52
- package/lib/components/notice-bar/components/ScrollSwitcher.scss +0 -17
- /package/lowcode_es/{d-c-form → form}/meta.d.ts +0 -0
- /package/lowcode_lib/{d-c-form → form}/meta.d.ts +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
interface Navigation {
|
|
4
|
+
text: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
selectedIcon: string;
|
|
7
|
+
pageId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface NavigationProps {
|
|
10
|
+
itemArray: Navigation[];
|
|
11
|
+
selectedColor: string;
|
|
12
|
+
onClick?: (pageId: string) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const Navigation: React.FC<NavigationProps>;
|
|
15
|
+
export default Navigation;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './carousel.scss';
|
|
3
|
+
export interface CarouselProps {
|
|
4
|
+
/**
|
|
5
|
+
* 图片列表
|
|
6
|
+
*/
|
|
7
|
+
images: string[];
|
|
8
|
+
/**
|
|
9
|
+
* 定时播放的时间
|
|
10
|
+
*/
|
|
11
|
+
interval?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const Carousel: React.FC<CarouselProps>;
|
|
14
|
+
export default Carousel;
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import './form-item.scss';
|
|
2
|
+
import { DynamicColumnDataType } from 'src/entity/dynamic-column-data-type';
|
|
3
|
+
export interface DCFormItemProps {
|
|
4
|
+
/**
|
|
5
|
+
* 字段名称
|
|
6
|
+
*/
|
|
7
|
+
columnComment?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 字段类型
|
|
10
|
+
*/
|
|
11
|
+
columnType?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 表单项组件类型
|
|
14
|
+
*/
|
|
15
|
+
columnKeyType?: number;
|
|
16
|
+
/**
|
|
17
|
+
*列键类型的枚举
|
|
18
|
+
*/
|
|
19
|
+
columnKeyTypeEnum?: DynamicColumnDataType;
|
|
20
|
+
/**
|
|
21
|
+
* 是否只读
|
|
22
|
+
*/
|
|
23
|
+
isOnlyRead?: string;
|
|
24
|
+
/**
|
|
25
|
+
* 是否必填
|
|
26
|
+
*/
|
|
27
|
+
isRequired?: number;
|
|
28
|
+
/**
|
|
29
|
+
* 默认值
|
|
30
|
+
*/
|
|
31
|
+
defaultValue?: string;
|
|
32
|
+
/**
|
|
33
|
+
* 指示词
|
|
34
|
+
*/
|
|
35
|
+
guideWords?: string;
|
|
36
|
+
/**
|
|
37
|
+
* 点击事件
|
|
38
|
+
*/
|
|
39
|
+
onClick?: (e: any) => void;
|
|
40
|
+
}
|
|
41
|
+
declare const RefDCFormItem: any;
|
|
42
|
+
export default RefDCFormItem;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
import { DynamicColumnDataType } from '../../entity/dynamic-column-data-type';
|
|
4
|
+
/**
|
|
5
|
+
* 数据
|
|
6
|
+
*/
|
|
7
|
+
interface DataProps {
|
|
8
|
+
/**
|
|
9
|
+
* 字段名称
|
|
10
|
+
*/
|
|
11
|
+
columnComment?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 字段类型
|
|
14
|
+
*/
|
|
15
|
+
columnType?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 表单项组件类型
|
|
18
|
+
*/
|
|
19
|
+
columnKeyType?: number;
|
|
20
|
+
/**
|
|
21
|
+
*列键类型的枚举
|
|
22
|
+
*/
|
|
23
|
+
columnKeyTypeEnum?: DynamicColumnDataType;
|
|
24
|
+
/**
|
|
25
|
+
* 是否只读
|
|
26
|
+
*/
|
|
27
|
+
isOnlyRead?: string;
|
|
28
|
+
/**
|
|
29
|
+
* 是否必填
|
|
30
|
+
*/
|
|
31
|
+
isRequired?: number;
|
|
32
|
+
/**
|
|
33
|
+
* 默认值
|
|
34
|
+
*/
|
|
35
|
+
defaultValue?: string;
|
|
36
|
+
/**
|
|
37
|
+
* 指示词
|
|
38
|
+
*/
|
|
39
|
+
guideWords?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface FormProps {
|
|
42
|
+
/**
|
|
43
|
+
* 数据
|
|
44
|
+
*/
|
|
45
|
+
dataList?: DataProps[];
|
|
46
|
+
/**
|
|
47
|
+
* 点击事件
|
|
48
|
+
* @param e
|
|
49
|
+
*/
|
|
50
|
+
onClick?: (e: any) => void;
|
|
51
|
+
/**
|
|
52
|
+
* 子节点
|
|
53
|
+
*/
|
|
54
|
+
children: React.ReactChild;
|
|
55
|
+
}
|
|
56
|
+
declare const DCForm: React.FC<FormProps>;
|
|
57
|
+
export default DCForm;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
import _Form from "@alifd/next/es/form";
|
|
4
|
+
var _excluded = ["dataList", "onClick", "children"];
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import "./index.scss";
|
|
7
|
+
// import { default as FormItem } from './form-item'
|
|
8
|
+
|
|
9
|
+
import { DYNAMIC_COLUMN_DATA_TYPE_BUTTON, DYNAMIC_COLUMN_DATA_TYPE_AUTO } from "../../entity/dynamic-column-data-type";
|
|
10
|
+
var FormItem = _Form.Item;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 数据
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
var DCForm = function DCForm(_ref) {
|
|
17
|
+
var dataList = _ref.dataList,
|
|
18
|
+
_ref$onClick = _ref.onClick,
|
|
19
|
+
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
20
|
+
children = _ref.children,
|
|
21
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
22
|
+
var _otherProps = otherProps || {};
|
|
23
|
+
|
|
24
|
+
// 筛选字段(去除按钮类型和自动生成的类型)
|
|
25
|
+
dataList = dataList ? dataList.filter(function (item) {
|
|
26
|
+
return item.columnKeyType !== DYNAMIC_COLUMN_DATA_TYPE_BUTTON.code && item.columnKeyType !== DYNAMIC_COLUMN_DATA_TYPE_AUTO.code && item.columnComment !== '乐观锁' && item.columnComment !== '是否删除';
|
|
27
|
+
}) : [];
|
|
28
|
+
console.log('dataList', dataList);
|
|
29
|
+
return /*#__PURE__*/React.createElement(_Form, _extends({
|
|
30
|
+
className: "form__panel",
|
|
31
|
+
isPreview: "false"
|
|
32
|
+
}, _otherProps), dataList ? dataList.map(function (item, index) {
|
|
33
|
+
var labelAlign = item.columnKeyTypeEnum.name === '图片' || item.columnKeyTypeEnum.name === '多行文本' ? 'top' : 'left';
|
|
34
|
+
var isFlexStyle = labelAlign === 'top' ? {} : {
|
|
35
|
+
display: 'flex'
|
|
36
|
+
};
|
|
37
|
+
return /*#__PURE__*/React.createElement(FormItem, {
|
|
38
|
+
key: index,
|
|
39
|
+
label: item.columnComment,
|
|
40
|
+
labelAlign: labelAlign,
|
|
41
|
+
style: isFlexStyle
|
|
42
|
+
});
|
|
43
|
+
}) : /*#__PURE__*/React.createElement("div", null, "\u6682\u65E0\u8868\u5355\u9879"));
|
|
44
|
+
};
|
|
45
|
+
DCForm.displayName = 'DCForm';
|
|
46
|
+
export default DCForm;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.form__panel {
|
|
2
|
+
background-color: #FAFAFA;
|
|
3
|
+
.next-left {
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
.next-form-item {
|
|
7
|
+
// display: flex;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
align-items: center;
|
|
10
|
+
// min-height: 44px;
|
|
11
|
+
background-color: #fff;
|
|
12
|
+
border-radius: 8px;
|
|
13
|
+
padding: 10px 15px;
|
|
14
|
+
margin-bottom: 14px;
|
|
15
|
+
.next-form-item-label {
|
|
16
|
+
font-size: 15px;
|
|
17
|
+
color: #333333;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const FormCascaderSelect: {
|
|
3
|
+
(props: any): JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
declare const FormCheckboxGroup: {
|
|
7
|
+
(props: any): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const FormDatePicker: {
|
|
11
|
+
(props: any): JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
declare const FormInput: {
|
|
15
|
+
(props: any): JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
declare const FormNumberPicker: {
|
|
19
|
+
(props: any): JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
declare const FormRadioGroup: {
|
|
23
|
+
(props: any): JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
declare const FormRangePicker: {
|
|
27
|
+
(props: any): JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
declare const FormRating: {
|
|
31
|
+
(props: any): JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
declare const FormSelect: {
|
|
35
|
+
(props: any): JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
declare const FormTreeSelect: {
|
|
39
|
+
(props: any): JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
declare const FormUpload: {
|
|
43
|
+
(props: any): JSX.Element;
|
|
44
|
+
displayName: string;
|
|
45
|
+
};
|
|
46
|
+
declare const FormTextArea: {
|
|
47
|
+
(props: any): JSX.Element;
|
|
48
|
+
displayName: string;
|
|
49
|
+
};
|
|
50
|
+
declare const FormPassword: {
|
|
51
|
+
(props: any): JSX.Element;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
54
|
+
export { FormCascaderSelect, FormCheckboxGroup, FormDatePicker, FormInput, FormNumberPicker, FormRadioGroup, FormRangePicker, FormRating, FormSelect, FormTreeSelect, FormUpload, FormTextArea, FormPassword, };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
2
|
+
import _Upload from "@alifd/next/es/upload";
|
|
3
|
+
import _TreeSelect from "@alifd/next/es/tree-select";
|
|
4
|
+
import _Select from "@alifd/next/es/select";
|
|
5
|
+
import _Rating from "@alifd/next/es/rating";
|
|
6
|
+
import _NumberPicker from "@alifd/next/es/number-picker";
|
|
7
|
+
import _CascaderSelect from "@alifd/next/es/cascader-select";
|
|
8
|
+
import _Input from "@alifd/next/es/input";
|
|
9
|
+
import _DatePicker from "@alifd/next/es/date-picker";
|
|
10
|
+
import _Checkbox from "@alifd/next/es/checkbox";
|
|
11
|
+
import _Radio from "@alifd/next/es/radio";
|
|
12
|
+
var _excluded = ["formItemProps"];
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import FormItem from "./form-item";
|
|
15
|
+
var RadioGroup = _Radio.Group;
|
|
16
|
+
var CheckboxGroup = _Checkbox.Group;
|
|
17
|
+
var RangePicker = _DatePicker.RangePicker;
|
|
18
|
+
var TextArea = _Input.TextArea,
|
|
19
|
+
Password = _Input.Password;
|
|
20
|
+
var FormCascaderSelect = wrapper(_CascaderSelect, 'FormCascaderSelect');
|
|
21
|
+
var FormCheckboxGroup = wrapper(CheckboxGroup, 'FormCheckboxGroup');
|
|
22
|
+
var FormDatePicker = wrapper(_DatePicker, 'FormDatePicker');
|
|
23
|
+
var FormInput = wrapper(_Input, 'FormInput');
|
|
24
|
+
var FormNumberPicker = wrapper(_NumberPicker, 'FormNumberPicker');
|
|
25
|
+
var FormRadioGroup = wrapper(RadioGroup, 'FormRadioGroup');
|
|
26
|
+
var FormRangePicker = wrapper(RangePicker, 'FormRangePicker');
|
|
27
|
+
var FormRating = wrapper(_Rating, 'FormRating');
|
|
28
|
+
var FormSelect = wrapper(_Select, 'FormSelect');
|
|
29
|
+
var FormTreeSelect = wrapper(_TreeSelect, 'FormTreeSelect');
|
|
30
|
+
var FormUpload = wrapper(_Upload, 'FormUpload');
|
|
31
|
+
var FormTextArea = wrapper(TextArea, 'FormTextArea');
|
|
32
|
+
var FormPassword = wrapper(Password, 'FormPassword');
|
|
33
|
+
function wrapper(NextFormComponent, displayName) {
|
|
34
|
+
var WrappedComponent = function WrappedComponent(props) {
|
|
35
|
+
var _props$formItemProps = props.formItemProps,
|
|
36
|
+
formItemProps = _props$formItemProps === void 0 ? {} : _props$formItemProps,
|
|
37
|
+
componentProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
38
|
+
return /*#__PURE__*/React.createElement(FormItem, formItemProps, /*#__PURE__*/React.createElement(NextFormComponent, componentProps));
|
|
39
|
+
};
|
|
40
|
+
WrappedComponent.displayName = displayName;
|
|
41
|
+
return WrappedComponent;
|
|
42
|
+
}
|
|
43
|
+
export { FormCascaderSelect, FormCheckboxGroup, FormDatePicker, FormInput, FormNumberPicker, FormRadioGroup, FormRangePicker, FormRating, FormSelect, FormTreeSelect, FormUpload, FormTextArea, FormPassword };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["dataList", "maxSales", "onClick"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import Carousel from "../carousel/carousel";
|
|
6
|
+
import "./goods-card-list-common.scss";
|
|
7
|
+
var GoodsCardListCommon = function GoodsCardListCommon(_ref) {
|
|
8
|
+
var _ref$dataList = _ref.dataList,
|
|
9
|
+
dataList = _ref$dataList === void 0 ? [] : _ref$dataList,
|
|
10
|
+
_ref$maxSales = _ref.maxSales,
|
|
11
|
+
maxSales = _ref$maxSales === void 0 ? 1000 : _ref$maxSales,
|
|
12
|
+
_ref$onClick = _ref.onClick,
|
|
13
|
+
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
14
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
|
+
var _otherProps = otherProps || {};
|
|
16
|
+
var resolveResultDesc = function resolveResultDesc(desc) {
|
|
17
|
+
var htmlString = "<div>" + desc + "</div>";
|
|
18
|
+
// 创建一个虚拟的 DOM 容器
|
|
19
|
+
var tempDiv = document.createElement('div');
|
|
20
|
+
tempDiv.innerHTML = htmlString;
|
|
21
|
+
// 提取文本
|
|
22
|
+
return tempDiv.textContent || tempDiv.innerText;
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
25
|
+
className: "card-list-goods-common__container"
|
|
26
|
+
}, _otherProps), dataList.map(function (item) {
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
key: item.key,
|
|
29
|
+
className: "card-list-goods__item",
|
|
30
|
+
onClick: function onClick() {
|
|
31
|
+
return _onClick(item);
|
|
32
|
+
}
|
|
33
|
+
}, item.imageList && item.imageList.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
className: "card-list-goods__image"
|
|
35
|
+
}, /*#__PURE__*/React.createElement(Carousel, {
|
|
36
|
+
images: item.imageList,
|
|
37
|
+
interval: 3000
|
|
38
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
className: "card-list-goods__content"
|
|
40
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: "card-list-goods__title"
|
|
42
|
+
}, item.title), /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: "card-list-goods__desc"
|
|
44
|
+
}, resolveResultDesc(item.desc)), /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "card-list-goods__bottom"
|
|
46
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: "card-list-goods__unit"
|
|
48
|
+
}, "\uFFE5"), /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: "card-list-goods__price"
|
|
50
|
+
}, item.activePrice || item.price), item.activePrice && /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: "card-list-goods__unit__delete"
|
|
52
|
+
}, "\uFFE5"), item.activePrice && /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: "card-list-goods__price__delete"
|
|
54
|
+
}, item.price), /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
className: "card-list-goods__sales"
|
|
56
|
+
}, "\u5DF2\u552E", item.sales > maxSales ? maxSales + "+" : item.sales))));
|
|
57
|
+
}));
|
|
58
|
+
};
|
|
59
|
+
GoodsCardListCommon.displayName = 'GoodsCardListCommon';
|
|
60
|
+
export default GoodsCardListCommon;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
.card-list-goods-common__container {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns:repeat(2, minmax(0, 1fr));
|
|
4
|
+
row-gap: 12px;
|
|
5
|
+
column-gap: 10px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
|
|
8
|
+
& > .card-list-goods__item {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
transition: top 0.35s ease, left 0.35s ease, width 0.35s ease;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
border-radius: 8px;
|
|
13
|
+
box-shadow: 0 3px 9px 1px rgba(204, 204, 204, 0.35);
|
|
14
|
+
|
|
15
|
+
& > .card-list-goods__image {
|
|
16
|
+
height: 200px;
|
|
17
|
+
width: 100%;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
display: flex;
|
|
20
|
+
|
|
21
|
+
& > img {
|
|
22
|
+
height: 100%;
|
|
23
|
+
width: 100%;
|
|
24
|
+
object-fit: cover;
|
|
25
|
+
//object-position: center;
|
|
26
|
+
object-position: 50% 50%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& > .card-list-goods__content {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
padding: 0.5rem;
|
|
35
|
+
|
|
36
|
+
.card-list-goods__title {
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
display: -webkit-box;
|
|
39
|
+
-webkit-box-orient: vertical;
|
|
40
|
+
-webkit-line-clamp: 2;
|
|
41
|
+
line-clamp: 2;
|
|
42
|
+
margin-top: 0.25rem;
|
|
43
|
+
margin-bottom: 0.25rem;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.card-list-goods__desc {
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
line-clamp: 2;
|
|
53
|
+
margin-top: 0.25rem;
|
|
54
|
+
margin-bottom: 0.25rem;
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
color: #333333;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.card-list-goods__bottom {
|
|
60
|
+
margin-top: 0.25rem;
|
|
61
|
+
margin-bottom: 0.25rem;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: baseline;
|
|
64
|
+
flex-wrap: wrap;
|
|
65
|
+
row-gap: 0.5rem;
|
|
66
|
+
|
|
67
|
+
& > div {
|
|
68
|
+
display: flex;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.card-list-goods__unit {
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
color: #F57D51;
|
|
74
|
+
font-weight: 700;
|
|
75
|
+
line-height: 1;
|
|
76
|
+
|
|
77
|
+
&__delete {
|
|
78
|
+
margin-left: 0;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
color: #666666;
|
|
81
|
+
line-height: 1;
|
|
82
|
+
text-decoration: line-through
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.card-list-goods__price {
|
|
88
|
+
font-size: 17px;
|
|
89
|
+
color: #F57D51;
|
|
90
|
+
font-weight: 700;
|
|
91
|
+
line-height: 1;
|
|
92
|
+
|
|
93
|
+
&__delete {
|
|
94
|
+
margin-left: 0;
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
color: #666666;
|
|
97
|
+
line-height: 1;
|
|
98
|
+
text-decoration: line-through
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.card-list-goods__sales {
|
|
103
|
+
margin-left: 3px;
|
|
104
|
+
font-size: 12px;
|
|
105
|
+
color: #666666;
|
|
106
|
+
line-height: 1;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|