@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.
Files changed (139) hide show
  1. package/build/index.js +12 -19
  2. package/build/lowcode/assets-daily.json +11 -11
  3. package/build/lowcode/assets-dev.json +2 -2
  4. package/build/lowcode/assets-prod.json +11 -11
  5. package/build/lowcode/index.js +1 -1
  6. package/build/lowcode/meta.js +1 -1
  7. package/build/lowcode/preview.js +8 -8
  8. package/build/lowcode/render/default/view.css +1 -1
  9. package/build/lowcode/render/default/view.js +10 -10
  10. package/build/lowcode/view.css +1 -1
  11. package/build/lowcode/view.js +8 -8
  12. package/dist/BizComps.css +1 -1
  13. package/dist/BizComps.js +5 -5
  14. package/dist/BizComps.js.map +1 -1
  15. package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -13
  16. package/es/components/bottom-navigation/index.d.ts +3 -3
  17. package/es/components/colorful-button/colorful-button.d.ts +12 -12
  18. package/es/components/colorful-button/index.d.ts +3 -3
  19. package/es/components/colorful-input/colorful-input.d.ts +8 -8
  20. package/es/components/colorful-input/index.d.ts +3 -3
  21. package/es/components/dc-slider/index.d.ts +3 -3
  22. package/es/components/dc-slider/slider.d.ts +32 -32
  23. package/es/components/menu-list/index.d.ts +6 -0
  24. package/es/components/menu-list/index.js +6 -0
  25. package/es/components/menu-list/index.scss +16 -0
  26. package/es/components/menu-list/menu-list-item.d.ts +5 -0
  27. package/es/components/menu-list/menu-list-item.js +32 -0
  28. package/es/components/menu-list/menu-list-item.scss +49 -0
  29. package/es/components/menu-list/menu-list.d.ts +5 -0
  30. package/es/components/menu-list/menu-list.js +25 -0
  31. package/es/components/menu-list/types.d.ts +23 -0
  32. package/es/components/menu-list/types.js +1 -0
  33. package/es/components/teletext-list/index.d.ts +6 -6
  34. package/es/components/teletext-list/index.js +2 -2
  35. package/es/components/teletext-list/index.scss +16 -16
  36. package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
  37. package/es/components/teletext-list/teletext-list-item.js +2 -2
  38. package/es/components/teletext-list/teletext-list-item.scss +74 -74
  39. package/es/components/teletext-list/teletext-list.d.ts +53 -53
  40. package/es/components/teletext-list/teletext-list.js +2 -2
  41. package/es/components/title/index.d.ts +8 -8
  42. package/es/components/title/index.js +2 -2
  43. package/es/components/title/title-1.d.ts +10 -10
  44. package/es/components/title/title-1.scss +26 -26
  45. package/es/components/title/title-2.d.ts +18 -18
  46. package/es/components/title/title-2.scss +22 -22
  47. package/es/index.d.ts +14 -12
  48. package/es/index.js +1 -0
  49. package/es/index.scss +3 -3
  50. package/es/variables.d.ts +2 -2
  51. package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -13
  52. package/lib/components/bottom-navigation/index.d.ts +3 -3
  53. package/lib/components/colorful-button/colorful-button.d.ts +12 -12
  54. package/lib/components/colorful-button/index.d.ts +3 -3
  55. package/lib/components/colorful-input/colorful-input.d.ts +8 -8
  56. package/lib/components/colorful-input/index.d.ts +3 -3
  57. package/lib/components/dc-slider/index.d.ts +3 -3
  58. package/lib/components/dc-slider/slider.d.ts +32 -32
  59. package/lib/components/menu-list/index.d.ts +6 -0
  60. package/lib/components/{position → menu-list}/index.js +5 -2
  61. package/lib/components/menu-list/index.scss +16 -0
  62. package/lib/components/menu-list/menu-list-item.d.ts +5 -0
  63. package/lib/components/menu-list/menu-list-item.js +37 -0
  64. package/lib/components/menu-list/menu-list-item.scss +49 -0
  65. package/lib/components/menu-list/menu-list.d.ts +5 -0
  66. package/lib/components/menu-list/menu-list.js +30 -0
  67. package/lib/components/menu-list/types.d.ts +23 -0
  68. package/lib/components/menu-list/types.js +3 -0
  69. package/lib/components/teletext-list/index.d.ts +6 -6
  70. package/lib/components/teletext-list/index.js +2 -2
  71. package/lib/components/teletext-list/index.scss +16 -16
  72. package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
  73. package/lib/components/teletext-list/teletext-list-item.js +2 -2
  74. package/lib/components/teletext-list/teletext-list-item.scss +74 -74
  75. package/lib/components/teletext-list/teletext-list.d.ts +53 -53
  76. package/lib/components/teletext-list/teletext-list.js +2 -2
  77. package/lib/components/title/index.d.ts +8 -8
  78. package/lib/components/title/title-1.d.ts +10 -10
  79. package/lib/components/title/title-1.scss +26 -26
  80. package/lib/components/title/title-2.d.ts +18 -18
  81. package/lib/components/title/title-2.scss +22 -22
  82. package/lib/index.d.ts +14 -12
  83. package/lib/index.js +3 -1
  84. package/lib/index.scss +3 -3
  85. package/lib/variables.d.ts +2 -2
  86. package/lowcode/d-c-slider/meta.ts +1 -1
  87. package/lowcode/d-c-slider/snippets.ts +42 -42
  88. package/lowcode/menu-list/meta.ts +147 -0
  89. package/lowcode/navigation/meta.ts +1 -1
  90. package/lowcode/teletext-list/meta.ts +300 -300
  91. package/lowcode/title1/meta.ts +59 -59
  92. package/lowcode/title2/meta.ts +93 -93
  93. package/lowcode_es/d-c-slider/meta.d.ts +140 -140
  94. package/lowcode_es/d-c-slider/meta.js +1 -1
  95. package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
  96. package/lowcode_es/menu-list/meta.d.ts +22 -0
  97. package/lowcode_es/menu-list/meta.js +128 -0
  98. package/lowcode_es/meta.js +8 -7
  99. package/lowcode_es/navigation/meta.d.ts +22 -22
  100. package/lowcode_es/navigation/meta.js +1 -1
  101. package/lowcode_es/teletext-list/meta.d.ts +22 -22
  102. package/lowcode_es/teletext-list/meta.js +1 -1
  103. package/lowcode_es/title1/meta.d.ts +22 -22
  104. package/lowcode_es/title1/meta.js +1 -1
  105. package/lowcode_es/title2/meta.d.ts +22 -22
  106. package/lowcode_es/title2/meta.js +1 -1
  107. package/lowcode_es/view.js +3 -3
  108. package/lowcode_lib/d-c-slider/meta.d.ts +140 -140
  109. package/lowcode_lib/d-c-slider/meta.js +1 -1
  110. package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
  111. package/lowcode_lib/menu-list/meta.d.ts +22 -0
  112. package/lowcode_lib/menu-list/meta.js +133 -0
  113. package/lowcode_lib/meta.js +8 -7
  114. package/lowcode_lib/navigation/meta.d.ts +22 -22
  115. package/lowcode_lib/navigation/meta.js +1 -1
  116. package/lowcode_lib/teletext-list/meta.d.ts +22 -22
  117. package/lowcode_lib/teletext-list/meta.js +1 -1
  118. package/lowcode_lib/title1/meta.d.ts +22 -22
  119. package/lowcode_lib/title1/meta.js +1 -1
  120. package/lowcode_lib/title2/meta.d.ts +22 -22
  121. package/lowcode_lib/title2/meta.js +1 -1
  122. package/lowcode_lib/view.js +2 -2
  123. package/package.json +3 -3
  124. package/build/docs/colorful-button.html +0 -48
  125. package/build/docs/colorful-input.html +0 -48
  126. package/build/docs/index.html +0 -48
  127. package/build/docs/umi.7f7df875.css +0 -8
  128. package/build/docs/umi.7face50a.js +0 -1
  129. package/build/docs/~demos/colorful-button-demo.html +0 -47
  130. package/build/docs/~demos/colorful-input-demo.html +0 -47
  131. package/es/components/position/index.d.ts +0 -3
  132. package/es/components/position/index.js +0 -2
  133. package/es/components/position/index.scss +0 -16
  134. package/es/components/position/position.d.ts +0 -13
  135. package/es/components/position/position.js +0 -39
  136. package/lib/components/position/index.d.ts +0 -3
  137. package/lib/components/position/index.scss +0 -16
  138. package/lib/components/position/position.d.ts +0 -13
  139. package/lib/components/position/position.js +0 -46
@@ -0,0 +1,30 @@
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("./index.scss");
10
+ var _menuListItem = _interopRequireDefault(require("./menu-list-item"));
11
+ var _excluded = ["dataList"];
12
+ var MenuList = function MenuList(_ref) {
13
+ var dataList = _ref.dataList,
14
+ otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
15
+ var _otherProps = otherProps || {};
16
+ return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
17
+ className: "menu-list__panel"
18
+ }, _otherProps), /*#__PURE__*/_react["default"].createElement("div", {
19
+ className: "menu-list__panel__item-list"
20
+ }, dataList.map(function (item, index) {
21
+ return /*#__PURE__*/_react["default"].createElement(_menuListItem["default"], {
22
+ key: index,
23
+ title: item.title,
24
+ iconUrl: item.iconUrl,
25
+ handleClick: item.handleClick
26
+ });
27
+ })));
28
+ };
29
+ MenuList.displayName = 'MenuList';
30
+ var _default = exports["default"] = MenuList;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 数据
3
+ */
4
+ export interface MenuListDataProps {
5
+ /**
6
+ * 菜单名称
7
+ */
8
+ title: string;
9
+ /**
10
+ * 菜单图标地址
11
+ */
12
+ iconUrl?: string;
13
+ /**
14
+ * 点击事件
15
+ */
16
+ handleClick?: Function;
17
+ }
18
+ export interface MenuListProps {
19
+ /**
20
+ * 数据
21
+ */
22
+ dataList?: MenuListDataProps[];
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
@@ -1,6 +1,6 @@
1
- /**
2
- * 图文列表
3
- */
4
- import TeletextList from './teletext-list';
5
- export type { TeletextListProps } from './teletext-list';
6
- export default TeletextList;
1
+ /**
2
+ * 图文列表
3
+ */
4
+ import TeletextList from './teletext-list';
5
+ export type { TeletextListProps } from './teletext-list';
6
+ export default TeletextList;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  exports.__esModule = true;
5
5
  exports["default"] = void 0;
6
6
  var _teletextList = _interopRequireDefault(require("./teletext-list"));
7
- /**
8
- * 图文列表
7
+ /**
8
+ * 图文列表
9
9
  */
10
10
  var _default = exports["default"] = _teletextList["default"];
@@ -1,16 +1,16 @@
1
- @import '../../variables.scss';
2
-
3
- .teletext-list__panel {
4
- display: flex;
5
- flex-direction: column;
6
- gap: 10px;
7
-
8
- .teletext-list__panel__item-list {
9
- display: flex;
10
- flex-direction: column;
11
- gap: 10px;
12
- }
13
-
14
- }
15
-
16
-
1
+ @import '../../variables.scss';
2
+
3
+ .teletext-list__panel {
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 10px;
7
+
8
+ .teletext-list__panel__item-list {
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: 10px;
12
+ }
13
+
14
+ }
15
+
16
+
@@ -1,42 +1,42 @@
1
- import React from 'react';
2
- import './teletext-list-item.scss';
3
- /**
4
- * 数据
5
- */
6
- interface TeletextListItemProps {
7
- /**
8
- * 点击事件
9
- */
10
- onClick?: (e: any) => void;
11
- /**
12
- * 标题
13
- */
14
- title?: string;
15
- /**
16
- * 图片地址
17
- */
18
- image?: string;
19
- /**
20
- * 图片位置
21
- */
22
- imagePlacement?: "left" | "right" | "none";
23
- /**
24
- * 说明
25
- */
26
- description?: string;
27
- /**
28
- * 标签列表
29
- */
30
- tags?: {
31
- /**
32
- * 标签名称
33
- */
34
- name: string;
35
- /**
36
- * 标签颜色
37
- */
38
- color: string;
39
- }[];
40
- }
41
- declare const TeletextListItem: React.FC<TeletextListItemProps>;
42
- export default TeletextListItem;
1
+ import React from 'react';
2
+ import './teletext-list-item.scss';
3
+ /**
4
+ * 数据
5
+ */
6
+ interface TeletextListItemProps {
7
+ /**
8
+ * 点击事件
9
+ */
10
+ onClick?: (e: any) => void;
11
+ /**
12
+ * 标题
13
+ */
14
+ title?: string;
15
+ /**
16
+ * 图片地址
17
+ */
18
+ image?: string;
19
+ /**
20
+ * 图片位置
21
+ */
22
+ imagePlacement?: "left" | "right" | "none";
23
+ /**
24
+ * 说明
25
+ */
26
+ description?: string;
27
+ /**
28
+ * 标签列表
29
+ */
30
+ tags?: {
31
+ /**
32
+ * 标签名称
33
+ */
34
+ name: string;
35
+ /**
36
+ * 标签颜色
37
+ */
38
+ color: string;
39
+ }[];
40
+ }
41
+ declare const TeletextListItem: React.FC<TeletextListItemProps>;
42
+ export default TeletextListItem;
@@ -8,8 +8,8 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  require("./teletext-list-item.scss");
10
10
  var _excluded = ["onClick", "title", "image", "imagePlacement", "description", "tags"];
11
- /**
12
- * 数据
11
+ /**
12
+ * 数据
13
13
  */
14
14
 
15
15
  var TeletextListItem = function TeletextListItem(_ref) {
@@ -1,74 +1,74 @@
1
- @import '../../variables.scss';
2
-
3
- .teletext-list__panel__item {
4
- display: flex;
5
- gap: 5px;
6
- padding-bottom: 10px;
7
- justify-content: space-between;
8
-
9
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
10
-
11
- .teletext-list__panel__item_image {
12
- width: 90px;
13
- height: 71px;
14
- border-radius: 5px;
15
- flex: 0 0 auto;
16
- overflow: hidden;
17
-
18
- & > img {
19
- width: 100%;
20
- height: 100%;
21
- object-fit: cover;
22
- }
23
-
24
- }
25
-
26
- .teletext-list__panel__item__text {
27
- display: flex;
28
- flex-direction: column;
29
- gap: 3px;
30
-
31
- .teletext-list__panel__item__text__title {
32
- font-size: 15px;
33
- font-weight: 500;
34
- color: #000000;
35
- }
36
-
37
- .teletext-list__panel__item__text__description {
38
- -webkit-line-clamp: 1;
39
- overflow: hidden;
40
- color: #686868;
41
- -webkit-box-orient: vertical;
42
- display: -webkit-box;
43
- font-size: 12px;
44
- text-overflow: ellipsis;
45
- }
46
-
47
- .teletext-list__panel__item__text__tags {
48
- display: flex;
49
- gap: 6px;
50
-
51
- & > span {
52
- padding: 2px 6px;
53
- border-radius: 4px;
54
- background-color: black;
55
- color: white;
56
- font-size: 11px;
57
-
58
- &.orange {
59
- color: #F1770E;
60
- background-color: rgba(241, 119, 14, 0.1);
61
- }
62
-
63
- &.blue {
64
- color: #2972DD;
65
- background-color: rgba(41, 114, 221, 0.1);
66
- }
67
-
68
- }
69
-
70
- }
71
-
72
- }
73
-
74
- }
1
+ @import '../../variables.scss';
2
+
3
+ .teletext-list__panel__item {
4
+ display: flex;
5
+ gap: 5px;
6
+ padding-bottom: 10px;
7
+ justify-content: space-between;
8
+
9
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
10
+
11
+ .teletext-list__panel__item_image {
12
+ width: 90px;
13
+ height: 71px;
14
+ border-radius: 5px;
15
+ flex: 0 0 auto;
16
+ overflow: hidden;
17
+
18
+ & > img {
19
+ width: 100%;
20
+ height: 100%;
21
+ object-fit: cover;
22
+ }
23
+
24
+ }
25
+
26
+ .teletext-list__panel__item__text {
27
+ display: flex;
28
+ flex-direction: column;
29
+ gap: 3px;
30
+
31
+ .teletext-list__panel__item__text__title {
32
+ font-size: 15px;
33
+ font-weight: 500;
34
+ color: #000000;
35
+ }
36
+
37
+ .teletext-list__panel__item__text__description {
38
+ -webkit-line-clamp: 1;
39
+ overflow: hidden;
40
+ color: #686868;
41
+ -webkit-box-orient: vertical;
42
+ display: -webkit-box;
43
+ font-size: 12px;
44
+ text-overflow: ellipsis;
45
+ }
46
+
47
+ .teletext-list__panel__item__text__tags {
48
+ display: flex;
49
+ gap: 6px;
50
+
51
+ & > span {
52
+ padding: 2px 6px;
53
+ border-radius: 4px;
54
+ background-color: black;
55
+ color: white;
56
+ font-size: 11px;
57
+
58
+ &.orange {
59
+ color: #F1770E;
60
+ background-color: rgba(241, 119, 14, 0.1);
61
+ }
62
+
63
+ &.blue {
64
+ color: #2972DD;
65
+ background-color: rgba(41, 114, 221, 0.1);
66
+ }
67
+
68
+ }
69
+
70
+ }
71
+
72
+ }
73
+
74
+ }
@@ -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;
@@ -10,8 +10,8 @@ require("./index.scss");
10
10
  var _title = require("../title");
11
11
  var _teletextListItem = _interopRequireDefault(require("./teletext-list-item"));
12
12
  var _excluded = ["title", "dataList", "onClick"];
13
- /**
14
- * 数据
13
+ /**
14
+ * 数据
15
15
  */
16
16
 
17
17
  var DEFAULT_DATA_1 = {
@@ -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
+ }