pb-sxp-ui 1.0.102 → 1.0.103

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.
@@ -10,7 +10,7 @@ const Nudge = ({ nudge }) => {
10
10
  borderRadius: (_f = nudge === null || nudge === void 0 ? void 0 : nudge.borderRadius) !== null && _f !== void 0 ? _f : 4
11
11
  } },
12
12
  (nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? (React.createElement("img", { src: nudge.icon, alt: 'nudge icon', style: { height: '100%', objectFit: 'cover', flexShrink: 0 } })) : null,
13
- React.createElement("p", { style: Object.assign(Object.assign({}, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle), { textWrap: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', flex: 1, marginBottom: 0 }), dangerouslySetInnerHTML: {
13
+ React.createElement("p", { style: Object.assign(Object.assign({}, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle), { textWrap: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', flex: 1, marginBottom: 0, marginTop: 0 }), dangerouslySetInnerHTML: {
14
14
  __html: setFontForText(nudge === null || nudge === void 0 ? void 0 : nudge.content, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle)
15
15
  } })))));
16
16
  };
@@ -3,8 +3,9 @@ import { Autoplay, Pagination } from 'swiper/modules';
3
3
  import { Swiper, SwiperSlide, useSwiperSlide } from 'swiper/react';
4
4
  import Picture from './Picture';
5
5
  import { useSxpDataSource } from '../../../../core/hooks';
6
+ import { css } from '@emotion/css';
6
7
  const PictureGroup = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
7
- var _a;
8
+ var _a, _b;
8
9
  const ref = useRef();
9
10
  const { isActive } = useSwiperSlide();
10
11
  const { sxpParameter, openHashtag } = useSxpDataSource();
@@ -28,7 +29,14 @@ const PictureGroup = ({ imgUrls, width, height, rec, index, onReportViewImageEnd
28
29
  setIsLoad(true);
29
30
  }
30
31
  }, [isLoad]);
31
- return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: { clickable: true, bulletActiveClass: 'swipe-item-active-bullet' }, height: height, loop: true, autoplay: { delay: ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.delay) !== null && _a !== void 0 ? _a : 3) * 1000 } }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url, index) => {
32
+ return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
33
+ clickable: true,
34
+ bulletActiveClass: 'swipe-item-active-bullet'
35
+ }, className: css(Object.assign({}, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) && {
36
+ '.swiper-pagination': {
37
+ bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0
38
+ }
39
+ }))), height: height, loop: true, autoplay: { delay: ((_b = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.delay) !== null && _b !== void 0 ? _b : 3) * 1000 } }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url, index) => {
32
40
  return (React.createElement(SwiperSlide, { key: index },
33
41
  React.createElement(Picture, { src: !isLoad && index > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
34
42
  })));
@@ -7,6 +7,7 @@ export type postConfigType = {
7
7
  delay?: number;
8
8
  bgWay?: '1' | '2';
9
9
  bgColor?: string;
10
+ marginBottom?: number;
10
11
  };
11
12
  export interface ISxpPageRenderProps {
12
13
  globalConfig?: {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { ICtaTempStylesType } from '../components/typing';
3
3
  import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
4
4
  export interface ILinkProps {
@@ -9,6 +9,11 @@ export interface ILinkProps {
9
9
  bottom_image?: string;
10
10
  ctaTempStyles?: ICtaTempStylesType;
11
11
  index?: number;
12
+ customTitle?: {
13
+ style?: CSSProperties;
14
+ display?: boolean;
15
+ text?: string;
16
+ };
12
17
  }
13
18
  declare const _default: React.NamedExoticComponent<ILinkProps>;
14
19
  export default _default;
@@ -8,8 +8,8 @@ import { useEventReport } from '../../../../core/hooks/useEventReport';
8
8
  import Img from '../components/Img';
9
9
  import { setFontForText } from '../../../../core/utils/tool';
10
10
  const Link = (_a) => {
11
- var _b, _c, _d, _e, _f, _g, _h;
12
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index"]);
11
+ var _b, _c, _d, _e, _f, _g, _h, _j;
12
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
13
13
  const { sxpParameter, bffEventReport } = useSxpDataSource();
14
14
  const { jumpToWeb } = useEventReport();
15
15
  const cta = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindCta;
@@ -29,8 +29,12 @@ const Link = (_a) => {
29
29
  width: '100%',
30
30
  overflow: 'hidden'
31
31
  }) },
32
- React.createElement("div", { className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
33
- __html: setFontForText((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
34
- } }))));
32
+ React.createElement("div", null,
33
+ React.createElement("div", { className: (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) ? styles['one-line-ellipsis'] : styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
34
+ __html: setFontForText((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
35
+ } }),
36
+ (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_j = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _j === void 0 ? void 0 : _j.height) + 'px' }), className: styles['one-line-ellipsis'], dangerouslySetInnerHTML: {
37
+ __html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
38
+ } }))))));
35
39
  };
36
40
  export default memo(Link);
@@ -1,4 +1,6 @@
1
+ var _a;
1
2
  import settingRender from '../components/settingRender';
3
+ import linkSettingRender from './settingRender';
2
4
  import LinkComponent from '.';
3
5
  import { createMaterial } from '../../../../core/create';
4
6
  const Link = createMaterial(LinkComponent, {
@@ -7,7 +9,7 @@ const Link = createMaterial(LinkComponent, {
7
9
  category: 'template',
8
10
  type: 'Link',
9
11
  related: {
10
- settingRender: settingRender === null || settingRender === void 0 ? void 0 : settingRender.filter((i) => i.type !== 'commodityTitle'),
12
+ settingRender: (_a = settingRender === null || settingRender === void 0 ? void 0 : settingRender.filter((i) => i.type !== 'commodityTitle')) === null || _a === void 0 ? void 0 : _a.concat(linkSettingRender),
11
13
  bindableProps: []
12
14
  },
13
15
  defaulSetting: {
@@ -26,6 +28,18 @@ const Link = createMaterial(LinkComponent, {
26
28
  width: 130,
27
29
  height: 20
28
30
  }
31
+ },
32
+ customTitle: {
33
+ style: {
34
+ textAlign: 'left',
35
+ textDecoration: 'underline',
36
+ fontWeight: 'bold',
37
+ width: 130,
38
+ height: 20,
39
+ fontSize: 12,
40
+ color: '#000'
41
+ },
42
+ text: '探索更多'
29
43
  }
30
44
  },
31
45
  style: {
@@ -0,0 +1,57 @@
1
+ declare const _default: {
2
+ title: string;
3
+ child: ({
4
+ type: string;
5
+ label: string;
6
+ name: string[];
7
+ child?: undefined;
8
+ addonAfter?: undefined;
9
+ } | {
10
+ type: string;
11
+ label: string;
12
+ child: ({
13
+ type: string;
14
+ name: string[];
15
+ max: number;
16
+ addonAfter?: undefined;
17
+ } | {
18
+ type: string;
19
+ name: string[];
20
+ addonAfter: string;
21
+ max: number;
22
+ })[];
23
+ name?: undefined;
24
+ addonAfter?: undefined;
25
+ } | {
26
+ type: string;
27
+ label: string;
28
+ child: {
29
+ type: string;
30
+ name: string[];
31
+ bottomText: string;
32
+ }[];
33
+ name?: undefined;
34
+ addonAfter?: undefined;
35
+ } | {
36
+ type: string;
37
+ label: string;
38
+ child: ({
39
+ type: string;
40
+ name: string[];
41
+ addonAfter?: undefined;
42
+ } | {
43
+ type: string;
44
+ addonAfter: string;
45
+ name: string[];
46
+ })[];
47
+ name?: undefined;
48
+ addonAfter?: undefined;
49
+ } | {
50
+ label: string;
51
+ type: string;
52
+ name: string[];
53
+ addonAfter: string;
54
+ child?: undefined;
55
+ })[];
56
+ }[];
57
+ export default _default;
@@ -0,0 +1,102 @@
1
+ export default [
2
+ {
3
+ title: '自定义标题',
4
+ child: [
5
+ {
6
+ type: 'Switch',
7
+ label: '自定义标题开关',
8
+ name: ['props', 'customTitle', 'display']
9
+ },
10
+ {
11
+ type: 'Text',
12
+ label: '标题文案',
13
+ name: ['props', 'customTitle', 'text']
14
+ },
15
+ {
16
+ type: 'Group',
17
+ label: '尺寸',
18
+ child: [
19
+ {
20
+ type: 'Number',
21
+ name: ['props', 'customTitle', 'style', 'width'],
22
+ addonAfter: 'W'
23
+ },
24
+ {
25
+ type: 'Number',
26
+ name: ['props', 'customTitle', 'style', 'height'],
27
+ addonAfter: 'H'
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ type: 'Group',
33
+ label: '圆角',
34
+ child: [
35
+ {
36
+ type: 'Slider',
37
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
38
+ max: 100
39
+ },
40
+ {
41
+ type: 'Number',
42
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
43
+ addonAfter: 'px',
44
+ max: 100
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ type: 'Color',
50
+ label: '背景色',
51
+ name: ['props', 'customTitle', 'style', 'backgroundColor']
52
+ },
53
+ {
54
+ type: 'Group',
55
+ label: '字体',
56
+ child: [
57
+ {
58
+ type: 'Select',
59
+ name: ['props', 'customTitle', 'style', 'fontFamily-cn'],
60
+ bottomText: '中文字体'
61
+ },
62
+ {
63
+ type: 'Select',
64
+ name: ['props', 'customTitle', 'style', 'fontFamily-en'],
65
+ bottomText: '英文/其他字体'
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ type: 'Group',
71
+ label: '',
72
+ child: [
73
+ {
74
+ type: 'Color',
75
+ name: ['props', 'customTitle', 'style', 'color']
76
+ },
77
+ {
78
+ type: 'Number',
79
+ addonAfter: 'px',
80
+ name: ['props', 'customTitle', 'style', 'fontSize']
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ label: '样式',
86
+ type: 'TextStyle',
87
+ name: ['props', 'customTitle', 'style']
88
+ },
89
+ {
90
+ label: '对齐',
91
+ type: 'TextAlign',
92
+ name: ['props', 'customTitle', 'style']
93
+ },
94
+ {
95
+ label: '上边距',
96
+ type: 'Number',
97
+ name: ['props', 'customTitle', 'style', 'marginTop'],
98
+ addonAfter: 'px'
99
+ }
100
+ ]
101
+ }
102
+ ];
@@ -13,7 +13,7 @@ const Nudge = ({ nudge }) => {
13
13
  borderRadius: (_f = nudge === null || nudge === void 0 ? void 0 : nudge.borderRadius) !== null && _f !== void 0 ? _f : 4
14
14
  } },
15
15
  (nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? (react_1.default.createElement("img", { src: nudge.icon, alt: 'nudge icon', style: { height: '100%', objectFit: 'cover', flexShrink: 0 } })) : null,
16
- react_1.default.createElement("p", { style: Object.assign(Object.assign({}, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle), { textWrap: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', flex: 1, marginBottom: 0 }), dangerouslySetInnerHTML: {
16
+ react_1.default.createElement("p", { style: Object.assign(Object.assign({}, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle), { textWrap: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', flex: 1, marginBottom: 0, marginTop: 0 }), dangerouslySetInnerHTML: {
17
17
  __html: (0, tool_1.setFontForText)(nudge === null || nudge === void 0 ? void 0 : nudge.content, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle)
18
18
  } })))));
19
19
  };
@@ -6,8 +6,9 @@ const modules_1 = require("swiper/modules");
6
6
  const react_2 = require("swiper/react");
7
7
  const Picture_1 = tslib_1.__importDefault(require("./Picture"));
8
8
  const hooks_1 = require("../../../../core/hooks");
9
+ const css_1 = require("@emotion/css");
9
10
  const PictureGroup = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
10
- var _a;
11
+ var _a, _b;
11
12
  const ref = (0, react_1.useRef)();
12
13
  const { isActive } = (0, react_2.useSwiperSlide)();
13
14
  const { sxpParameter, openHashtag } = (0, hooks_1.useSxpDataSource)();
@@ -31,7 +32,14 @@ const PictureGroup = ({ imgUrls, width, height, rec, index, onReportViewImageEnd
31
32
  setIsLoad(true);
32
33
  }
33
34
  }, [isLoad]);
34
- return (react_1.default.createElement(react_2.Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [modules_1.Pagination, modules_1.Autoplay], pagination: { clickable: true, bulletActiveClass: 'swipe-item-active-bullet' }, height: height, loop: true, autoplay: { delay: ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.delay) !== null && _a !== void 0 ? _a : 3) * 1000 } }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url, index) => {
35
+ return (react_1.default.createElement(react_2.Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [modules_1.Pagination, modules_1.Autoplay], pagination: {
36
+ clickable: true,
37
+ bulletActiveClass: 'swipe-item-active-bullet'
38
+ }, className: (0, css_1.css)(Object.assign({}, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) && {
39
+ '.swiper-pagination': {
40
+ bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0
41
+ }
42
+ }))), height: height, loop: true, autoplay: { delay: ((_b = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.delay) !== null && _b !== void 0 ? _b : 3) * 1000 } }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url, index) => {
35
43
  return (react_1.default.createElement(react_2.SwiperSlide, { key: index },
36
44
  react_1.default.createElement(Picture_1.default, { src: !isLoad && index > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
37
45
  })));
@@ -7,6 +7,7 @@ export type postConfigType = {
7
7
  delay?: number;
8
8
  bgWay?: '1' | '2';
9
9
  bgColor?: string;
10
+ marginBottom?: number;
10
11
  };
11
12
  export interface ISxpPageRenderProps {
12
13
  globalConfig?: {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { ICtaTempStylesType } from '../components/typing';
3
3
  import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
4
4
  export interface ILinkProps {
@@ -9,6 +9,11 @@ export interface ILinkProps {
9
9
  bottom_image?: string;
10
10
  ctaTempStyles?: ICtaTempStylesType;
11
11
  index?: number;
12
+ customTitle?: {
13
+ style?: CSSProperties;
14
+ display?: boolean;
15
+ text?: string;
16
+ };
12
17
  }
13
18
  declare const _default: React.NamedExoticComponent<ILinkProps>;
14
19
  export default _default;
@@ -10,8 +10,8 @@ const useEventReport_1 = require("../../../../core/hooks/useEventReport");
10
10
  const Img_1 = tslib_1.__importDefault(require("../components/Img"));
11
11
  const tool_1 = require("../../../../core/utils/tool");
12
12
  const Link = (_a) => {
13
- var _b, _c, _d, _e, _f, _g, _h;
14
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index"]);
13
+ var _b, _c, _d, _e, _f, _g, _h, _j;
14
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
15
15
  const { sxpParameter, bffEventReport } = (0, hooks_1.useSxpDataSource)();
16
16
  const { jumpToWeb } = (0, useEventReport_1.useEventReport)();
17
17
  const cta = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindCta;
@@ -31,8 +31,12 @@ const Link = (_a) => {
31
31
  width: '100%',
32
32
  overflow: 'hidden'
33
33
  }) },
34
- react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
35
- __html: (0, tool_1.setFontForText)((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
36
- } }))));
34
+ react_1.default.createElement("div", null,
35
+ react_1.default.createElement("div", { className: (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) ? index_module_less_1.default['one-line-ellipsis'] : index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
36
+ __html: (0, tool_1.setFontForText)((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
37
+ } }),
38
+ (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (react_1.default.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_j = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _j === void 0 ? void 0 : _j.height) + 'px' }), className: index_module_less_1.default['one-line-ellipsis'], dangerouslySetInnerHTML: {
39
+ __html: (0, tool_1.setFontForText)(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
40
+ } }))))));
37
41
  };
38
42
  exports.default = (0, react_1.memo)(Link);
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
+ var _a;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.Link = void 0;
4
5
  const tslib_1 = require("tslib");
5
6
  const settingRender_1 = tslib_1.__importDefault(require("../components/settingRender"));
7
+ const settingRender_2 = tslib_1.__importDefault(require("./settingRender"));
6
8
  const _1 = tslib_1.__importDefault(require("."));
7
9
  const create_1 = require("../../../../core/create");
8
10
  const Link = (0, create_1.createMaterial)(_1.default, {
@@ -11,7 +13,7 @@ const Link = (0, create_1.createMaterial)(_1.default, {
11
13
  category: 'template',
12
14
  type: 'Link',
13
15
  related: {
14
- settingRender: settingRender_1.default === null || settingRender_1.default === void 0 ? void 0 : settingRender_1.default.filter((i) => i.type !== 'commodityTitle'),
16
+ settingRender: (_a = settingRender_1.default === null || settingRender_1.default === void 0 ? void 0 : settingRender_1.default.filter((i) => i.type !== 'commodityTitle')) === null || _a === void 0 ? void 0 : _a.concat(settingRender_2.default),
15
17
  bindableProps: []
16
18
  },
17
19
  defaulSetting: {
@@ -30,6 +32,18 @@ const Link = (0, create_1.createMaterial)(_1.default, {
30
32
  width: 130,
31
33
  height: 20
32
34
  }
35
+ },
36
+ customTitle: {
37
+ style: {
38
+ textAlign: 'left',
39
+ textDecoration: 'underline',
40
+ fontWeight: 'bold',
41
+ width: 130,
42
+ height: 20,
43
+ fontSize: 12,
44
+ color: '#000'
45
+ },
46
+ text: '探索更多'
33
47
  }
34
48
  },
35
49
  style: {
@@ -0,0 +1,57 @@
1
+ declare const _default: {
2
+ title: string;
3
+ child: ({
4
+ type: string;
5
+ label: string;
6
+ name: string[];
7
+ child?: undefined;
8
+ addonAfter?: undefined;
9
+ } | {
10
+ type: string;
11
+ label: string;
12
+ child: ({
13
+ type: string;
14
+ name: string[];
15
+ max: number;
16
+ addonAfter?: undefined;
17
+ } | {
18
+ type: string;
19
+ name: string[];
20
+ addonAfter: string;
21
+ max: number;
22
+ })[];
23
+ name?: undefined;
24
+ addonAfter?: undefined;
25
+ } | {
26
+ type: string;
27
+ label: string;
28
+ child: {
29
+ type: string;
30
+ name: string[];
31
+ bottomText: string;
32
+ }[];
33
+ name?: undefined;
34
+ addonAfter?: undefined;
35
+ } | {
36
+ type: string;
37
+ label: string;
38
+ child: ({
39
+ type: string;
40
+ name: string[];
41
+ addonAfter?: undefined;
42
+ } | {
43
+ type: string;
44
+ addonAfter: string;
45
+ name: string[];
46
+ })[];
47
+ name?: undefined;
48
+ addonAfter?: undefined;
49
+ } | {
50
+ label: string;
51
+ type: string;
52
+ name: string[];
53
+ addonAfter: string;
54
+ child?: undefined;
55
+ })[];
56
+ }[];
57
+ export default _default;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = [
4
+ {
5
+ title: '自定义标题',
6
+ child: [
7
+ {
8
+ type: 'Switch',
9
+ label: '自定义标题开关',
10
+ name: ['props', 'customTitle', 'display']
11
+ },
12
+ {
13
+ type: 'Text',
14
+ label: '标题文案',
15
+ name: ['props', 'customTitle', 'text']
16
+ },
17
+ {
18
+ type: 'Group',
19
+ label: '尺寸',
20
+ child: [
21
+ {
22
+ type: 'Number',
23
+ name: ['props', 'customTitle', 'style', 'width'],
24
+ addonAfter: 'W'
25
+ },
26
+ {
27
+ type: 'Number',
28
+ name: ['props', 'customTitle', 'style', 'height'],
29
+ addonAfter: 'H'
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ type: 'Group',
35
+ label: '圆角',
36
+ child: [
37
+ {
38
+ type: 'Slider',
39
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
40
+ max: 100
41
+ },
42
+ {
43
+ type: 'Number',
44
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
45
+ addonAfter: 'px',
46
+ max: 100
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ type: 'Color',
52
+ label: '背景色',
53
+ name: ['props', 'customTitle', 'style', 'backgroundColor']
54
+ },
55
+ {
56
+ type: 'Group',
57
+ label: '字体',
58
+ child: [
59
+ {
60
+ type: 'Select',
61
+ name: ['props', 'customTitle', 'style', 'fontFamily-cn'],
62
+ bottomText: '中文字体'
63
+ },
64
+ {
65
+ type: 'Select',
66
+ name: ['props', 'customTitle', 'style', 'fontFamily-en'],
67
+ bottomText: '英文/其他字体'
68
+ }
69
+ ]
70
+ },
71
+ {
72
+ type: 'Group',
73
+ label: '',
74
+ child: [
75
+ {
76
+ type: 'Color',
77
+ name: ['props', 'customTitle', 'style', 'color']
78
+ },
79
+ {
80
+ type: 'Number',
81
+ addonAfter: 'px',
82
+ name: ['props', 'customTitle', 'style', 'fontSize']
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ label: '样式',
88
+ type: 'TextStyle',
89
+ name: ['props', 'customTitle', 'style']
90
+ },
91
+ {
92
+ label: '对齐',
93
+ type: 'TextAlign',
94
+ name: ['props', 'customTitle', 'style']
95
+ },
96
+ {
97
+ label: '上边距',
98
+ type: 'Number',
99
+ name: ['props', 'customTitle', 'style', 'marginTop'],
100
+ addonAfter: 'px'
101
+ }
102
+ ]
103
+ }
104
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",