@dckj-npm/dc-material 0.1.0 → 0.1.1

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.
Files changed (88) hide show
  1. package/build/lowcode/assets-daily.json +12 -12
  2. package/build/lowcode/assets-dev.json +3 -3
  3. package/build/lowcode/assets-prod.json +12 -12
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +144 -144
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +295 -1
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +295 -1
  11. package/dist/BizComps.css +1 -1
  12. package/dist/BizComps.js +6 -1
  13. package/dist/BizComps.js.map +1 -1
  14. package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -0
  15. package/es/components/bottom-navigation/bottom-navigation.js +37 -0
  16. package/es/components/bottom-navigation/index.d.ts +3 -0
  17. package/es/components/bottom-navigation/index.js +2 -0
  18. package/es/components/bottom-navigation/index.scss +16 -0
  19. package/es/components/dc-slider/index.d.ts +3 -0
  20. package/es/components/dc-slider/index.js +2 -0
  21. package/es/components/dc-slider/index.scss +8 -0
  22. package/es/components/dc-slider/slider.d.ts +32 -0
  23. package/es/components/dc-slider/slider.js +14 -0
  24. package/es/components/title/index.d.ts +8 -0
  25. package/es/components/title/index.js +7 -0
  26. package/es/components/title/title-1.d.ts +10 -0
  27. package/es/components/title/title-1.js +16 -0
  28. package/es/components/title/title-1.scss +26 -0
  29. package/es/components/title/title-2.d.ts +18 -0
  30. package/es/components/title/title-2.js +31 -0
  31. package/es/components/title/title-2.scss +22 -0
  32. package/es/index.d.ts +8 -4
  33. package/es/index.js +4 -2
  34. package/es/style.js +2 -2
  35. package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -0
  36. package/lib/components/bottom-navigation/bottom-navigation.js +44 -0
  37. package/lib/components/bottom-navigation/index.d.ts +3 -0
  38. package/lib/components/bottom-navigation/index.js +7 -0
  39. package/lib/components/bottom-navigation/index.scss +16 -0
  40. package/lib/components/dc-slider/index.d.ts +3 -0
  41. package/lib/components/dc-slider/index.js +7 -0
  42. package/lib/components/dc-slider/index.scss +8 -0
  43. package/lib/components/dc-slider/slider.d.ts +32 -0
  44. package/lib/components/dc-slider/slider.js +21 -0
  45. package/lib/components/title/index.d.ts +8 -0
  46. package/lib/components/title/index.js +8 -0
  47. package/lib/components/title/title-1.d.ts +10 -0
  48. package/lib/components/title/title-1.js +21 -0
  49. package/lib/components/title/title-1.scss +26 -0
  50. package/lib/components/title/title-2.d.ts +18 -0
  51. package/lib/components/title/title-2.js +36 -0
  52. package/lib/components/title/title-2.scss +22 -0
  53. package/lib/index.d.ts +8 -4
  54. package/lib/index.js +8 -5
  55. package/lib/style.js +2 -2
  56. package/lowcode/d-c-slider/meta.ts +331 -0
  57. package/lowcode/d-c-slider/snippets.ts +42 -0
  58. package/lowcode/navigation/meta.ts +117 -0
  59. package/lowcode/teletext-list/meta.ts +2 -2
  60. package/lowcode/{colorful-input → title1}/meta.ts +14 -12
  61. package/lowcode/title2/meta.ts +92 -0
  62. package/lowcode_es/d-c-slider/meta.d.ts +140 -0
  63. package/lowcode_es/d-c-slider/meta.js +298 -0
  64. package/lowcode_es/d-c-slider/snippets.d.ts +36 -0
  65. package/lowcode_es/d-c-slider/snippets.js +36 -0
  66. package/lowcode_es/meta.js +7 -5
  67. package/lowcode_es/navigation/meta.js +105 -0
  68. package/lowcode_es/teletext-list/meta.js +3 -3
  69. package/lowcode_es/{colorful-input → title1}/meta.js +15 -13
  70. package/lowcode_es/title2/meta.js +82 -0
  71. package/lowcode_lib/d-c-slider/meta.d.ts +140 -0
  72. package/lowcode_lib/d-c-slider/meta.js +303 -0
  73. package/lowcode_lib/d-c-slider/snippets.d.ts +36 -0
  74. package/lowcode_lib/d-c-slider/snippets.js +40 -0
  75. package/lowcode_lib/meta.js +7 -5
  76. package/lowcode_lib/navigation/meta.js +110 -0
  77. package/lowcode_lib/teletext-list/meta.js +3 -3
  78. package/lowcode_lib/title1/meta.d.ts +22 -0
  79. package/lowcode_lib/{colorful-input → title1}/meta.js +15 -13
  80. package/lowcode_lib/title2/meta.d.ts +22 -0
  81. package/lowcode_lib/{colorful-button → title2}/meta.js +37 -40
  82. package/package.json +6 -5
  83. package/lowcode/colorful-button/meta.ts +0 -102
  84. package/lowcode_es/colorful-button/meta.js +0 -85
  85. /package/lowcode_es/{colorful-button → navigation}/meta.d.ts +0 -0
  86. /package/lowcode_es/{colorful-input → title1}/meta.d.ts +0 -0
  87. /package/{lowcode_lib/colorful-button → lowcode_es/title2}/meta.d.ts +0 -0
  88. /package/lowcode_lib/{colorful-input → navigation}/meta.d.ts +0 -0
@@ -0,0 +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;
@@ -0,0 +1,37 @@
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
2
+ var _excluded = ["itemArray", "selectedColor"];
3
+ import * as React from 'react';
4
+ import { Image } from '@alilc/lowcode-materials';
5
+ import "./index.scss";
6
+ var Navigation = function bottomNavigation(_ref) {
7
+ var itemArray = _ref.itemArray,
8
+ selectedColor = _ref.selectedColor,
9
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
10
+ var _React$useState = React.useState(0),
11
+ activeNum = _React$useState[0],
12
+ setActiveNum = _React$useState[1];
13
+ var clickHandle = function clickHandle(index) {
14
+ // 更新激活tab
15
+ setActiveNum(index);
16
+ };
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: "navigation"
19
+ }, itemArray.map(function (item, index) {
20
+ return /*#__PURE__*/React.createElement("div", {
21
+ className: "navigation-item",
22
+ onClick: function onClick() {
23
+ return clickHandle(index);
24
+ },
25
+ style: {
26
+ color: activeNum === index ? selectedColor !== null && selectedColor !== void 0 ? selectedColor : '#4598FF' : ''
27
+ }
28
+ }, /*#__PURE__*/React.createElement(Image, {
29
+ src: item.icon,
30
+ style: {
31
+ width: '24.5px',
32
+ height: '24.5px'
33
+ }
34
+ }), /*#__PURE__*/React.createElement("span", null, item.text));
35
+ }));
36
+ };
37
+ export default Navigation;
@@ -0,0 +1,3 @@
1
+ import Navigation from './bottom-navigation';
2
+ export type { NavigationProps } from './bottom-navigation';
3
+ export default Navigation;
@@ -0,0 +1,2 @@
1
+ import Navigation from "./bottom-navigation";
2
+ export default Navigation;
@@ -0,0 +1,16 @@
1
+ .navigation {
2
+ width: 100%;
3
+ display: flex;
4
+ justify-content: space-between;
5
+ align-items: center;
6
+ padding: 9px 50px 6px 50px;
7
+ position: fixed;
8
+ bottom: 0;
9
+ &-item {
10
+ display: flex;
11
+ flex-direction: column;
12
+ justify-content: center;
13
+ align-items: center;
14
+ cursor: pointer;
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ import DCSlider from './slider';
2
+ export type { ComponentProps } from './slider';
3
+ export default DCSlider;
@@ -0,0 +1,2 @@
1
+ import DCSlider from "./slider";
2
+ export default DCSlider;
@@ -0,0 +1,8 @@
1
+ /* write style here */
2
+ .ExampleComponent {
3
+
4
+ }
5
+ .img{
6
+ width: 100%;
7
+ height: 100%;
8
+ }
@@ -0,0 +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;
@@ -0,0 +1,14 @@
1
+ import _Slider from "@alifd/next/es/slider";
2
+ import * as React from 'react';
3
+ import { Image } from '@alilc/lowcode-materials';
4
+ import "./index.scss";
5
+ var DCSlider = function DCSlider(props) {
6
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Slider, props, props.picUrls && props.picUrls.length > 0 ? props.picUrls.map(function (url, index) {
7
+ return /*#__PURE__*/React.createElement(Image, {
8
+ src: url,
9
+ alt: "Slide",
10
+ key: index
11
+ });
12
+ }) : /*#__PURE__*/React.createElement("div", null, "\u56FE\u7247\u4E3A\u7A7A")));
13
+ };
14
+ export default DCSlider;
@@ -0,0 +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 };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 标题
3
+ */
4
+
5
+ import Title1 from "./title-1";
6
+ import Title2 from "./title-2";
7
+ export { Title1, Title2 };
@@ -0,0 +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;
@@ -0,0 +1,16 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
+ var _excluded = ["title"];
4
+ import React from 'react';
5
+ import "./title-1.scss";
6
+ var Title1 = function Title1(_ref) {
7
+ var _ref$title = _ref.title,
8
+ title = _ref$title === void 0 ? '标题标题' : _ref$title,
9
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
10
+ var _otherProps = otherProps || {};
11
+ return /*#__PURE__*/React.createElement("div", _extends({
12
+ className: "custom-title-1"
13
+ }, _otherProps), /*#__PURE__*/React.createElement("span", null, title));
14
+ };
15
+ Title1.displayName = 'Title1';
16
+ export default Title1;
@@ -0,0 +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
+ }
@@ -0,0 +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;
@@ -0,0 +1,31 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
+ var _excluded = ["title", "color", "tipColor"];
4
+ import React from 'react';
5
+ import "./title-2.scss";
6
+ var Title2 = function Title2(_ref) {
7
+ var _ref$title = _ref.title,
8
+ title = _ref$title === void 0 ? '标题标题' : _ref$title,
9
+ _ref$color = _ref.color,
10
+ color = _ref$color === void 0 ? '#144477' : _ref$color,
11
+ _ref$tipColor = _ref.tipColor,
12
+ tipColor = _ref$tipColor === void 0 ? '#388AF7' : _ref$tipColor,
13
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
14
+ var _otherProps = otherProps || {};
15
+ var colorStyle = color ? {
16
+ color: color
17
+ } : {};
18
+ var tipColorStyle = tipColor ? {
19
+ 'background-color': tipColor
20
+ } : {};
21
+ return /*#__PURE__*/React.createElement("div", _extends({
22
+ className: "custom-title-2"
23
+ }, _otherProps), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
24
+ className: "tips",
25
+ style: tipColorStyle
26
+ }), /*#__PURE__*/React.createElement("span", {
27
+ style: colorStyle
28
+ }, title)));
29
+ };
30
+ Title2.displayName = 'Title2';
31
+ export default Title2;
@@ -0,0 +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
+ }
package/es/index.d.ts CHANGED
@@ -1,8 +1,12 @@
1
- export type { ColorfulButtonProps } from './components/colorful-button';
2
- export { default as ColorfulButton } from './components/colorful-button';
3
- export type { ColorfulInputProps } from './components/colorful-input';
4
- export { default as ColorfulInput } from './components/colorful-input';
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
5
  export type { TeletextListProps } from './components/teletext-list';
6
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';
7
11
  declare const bizCssPrefix = "bizpack";
8
12
  export { bizCssPrefix };
package/es/index.js CHANGED
@@ -1,5 +1,7 @@
1
- export { default as ColorfulButton } from "./components/colorful-button";
2
- export { default as ColorfulInput } from "./components/colorful-input";
1
+ export { default as DCSlider } from "./components/dc-slider";
2
+ export { default as Navigation } from "./components/bottom-navigation";
3
3
  export { default as TeletextList } from "./components/teletext-list";
4
+ export { Title1 } from "./components/title";
5
+ export { Title2 } from "./components/title";
4
6
  var bizCssPrefix = 'bizpack';
5
7
  export { bizCssPrefix };
package/es/style.js CHANGED
@@ -1,3 +1,3 @@
1
- import '@alifd/next/es/button/style';
2
- import '@alifd/next/es/input/style';
1
+ import '@alifd/next/es/slider/style';
2
+ import '@alilc/lowcode-materials/lib/style.js';
3
3
  import './index.scss';
@@ -0,0 +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;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _lowcodeMaterials = require("@alilc/lowcode-materials");
9
+ require("./index.scss");
10
+ var _excluded = ["itemArray", "selectedColor"];
11
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
+ var Navigation = function bottomNavigation(_ref) {
14
+ var itemArray = _ref.itemArray,
15
+ selectedColor = _ref.selectedColor,
16
+ otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
17
+ var _React$useState = React.useState(0),
18
+ activeNum = _React$useState[0],
19
+ setActiveNum = _React$useState[1];
20
+ var clickHandle = function clickHandle(index) {
21
+ // 更新激活tab
22
+ setActiveNum(index);
23
+ };
24
+ return /*#__PURE__*/React.createElement("div", {
25
+ className: "navigation"
26
+ }, itemArray.map(function (item, index) {
27
+ return /*#__PURE__*/React.createElement("div", {
28
+ className: "navigation-item",
29
+ onClick: function onClick() {
30
+ return clickHandle(index);
31
+ },
32
+ style: {
33
+ color: activeNum === index ? selectedColor !== null && selectedColor !== void 0 ? selectedColor : '#4598FF' : ''
34
+ }
35
+ }, /*#__PURE__*/React.createElement(_lowcodeMaterials.Image, {
36
+ src: item.icon,
37
+ style: {
38
+ width: '24.5px',
39
+ height: '24.5px'
40
+ }
41
+ }), /*#__PURE__*/React.createElement("span", null, item.text));
42
+ }));
43
+ };
44
+ var _default = exports["default"] = Navigation;
@@ -0,0 +1,3 @@
1
+ import Navigation from './bottom-navigation';
2
+ export type { NavigationProps } from './bottom-navigation';
3
+ export default Navigation;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _bottomNavigation = _interopRequireDefault(require("./bottom-navigation"));
7
+ var _default = exports["default"] = _bottomNavigation["default"];
@@ -0,0 +1,16 @@
1
+ .navigation {
2
+ width: 100%;
3
+ display: flex;
4
+ justify-content: space-between;
5
+ align-items: center;
6
+ padding: 9px 50px 6px 50px;
7
+ position: fixed;
8
+ bottom: 0;
9
+ &-item {
10
+ display: flex;
11
+ flex-direction: column;
12
+ justify-content: center;
13
+ align-items: center;
14
+ cursor: pointer;
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ import DCSlider from './slider';
2
+ export type { ComponentProps } from './slider';
3
+ export default DCSlider;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _slider = _interopRequireDefault(require("./slider"));
7
+ var _default = exports["default"] = _slider["default"];
@@ -0,0 +1,8 @@
1
+ /* write style here */
2
+ .ExampleComponent {
3
+
4
+ }
5
+ .img{
6
+ width: 100%;
7
+ height: 100%;
8
+ }
@@ -0,0 +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;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _slider = _interopRequireDefault(require("@alifd/next/lib/slider"));
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _lowcodeMaterials = require("@alilc/lowcode-materials");
9
+ require("./index.scss");
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
+ var DCSlider = function DCSlider(props) {
13
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_slider["default"], props, props.picUrls && props.picUrls.length > 0 ? props.picUrls.map(function (url, index) {
14
+ return /*#__PURE__*/React.createElement(_lowcodeMaterials.Image, {
15
+ src: url,
16
+ alt: "Slide",
17
+ key: index
18
+ });
19
+ }) : /*#__PURE__*/React.createElement("div", null, "\u56FE\u7247\u4E3A\u7A7A")));
20
+ };
21
+ var _default = exports["default"] = DCSlider;
@@ -0,0 +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 };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ var _title = _interopRequireDefault(require("./title-1"));
6
+ exports.Title1 = _title["default"];
7
+ var _title2 = _interopRequireDefault(require("./title-2"));
8
+ exports.Title2 = _title2["default"];
@@ -0,0 +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;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
8
+ var _react = _interopRequireDefault(require("react"));
9
+ require("./title-1.scss");
10
+ var _excluded = ["title"];
11
+ var Title1 = function Title1(_ref) {
12
+ var _ref$title = _ref.title,
13
+ title = _ref$title === void 0 ? '标题标题' : _ref$title,
14
+ otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
15
+ var _otherProps = otherProps || {};
16
+ return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
17
+ className: "custom-title-1"
18
+ }, _otherProps), /*#__PURE__*/_react["default"].createElement("span", null, title));
19
+ };
20
+ Title1.displayName = 'Title1';
21
+ var _default = exports["default"] = Title1;
@@ -0,0 +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
+ }
@@ -0,0 +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;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
8
+ var _react = _interopRequireDefault(require("react"));
9
+ require("./title-2.scss");
10
+ var _excluded = ["title", "color", "tipColor"];
11
+ var Title2 = function Title2(_ref) {
12
+ var _ref$title = _ref.title,
13
+ title = _ref$title === void 0 ? '标题标题' : _ref$title,
14
+ _ref$color = _ref.color,
15
+ color = _ref$color === void 0 ? '#144477' : _ref$color,
16
+ _ref$tipColor = _ref.tipColor,
17
+ tipColor = _ref$tipColor === void 0 ? '#388AF7' : _ref$tipColor,
18
+ otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
19
+ var _otherProps = otherProps || {};
20
+ var colorStyle = color ? {
21
+ color: color
22
+ } : {};
23
+ var tipColorStyle = tipColor ? {
24
+ 'background-color': tipColor
25
+ } : {};
26
+ return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
27
+ className: "custom-title-2"
28
+ }, _otherProps), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
29
+ className: "tips",
30
+ style: tipColorStyle
31
+ }), /*#__PURE__*/_react["default"].createElement("span", {
32
+ style: colorStyle
33
+ }, title)));
34
+ };
35
+ Title2.displayName = 'Title2';
36
+ var _default = exports["default"] = Title2;