@dckj-npm/dc-material 0.1.10 → 0.1.11

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 (253) hide show
  1. package/README.md +17 -17
  2. package/build/index.css +2 -0
  3. package/build/index.html +1 -0
  4. package/build/index.js +60 -0
  5. package/build/lowcode/assets-daily.json +67 -0
  6. package/build/lowcode/assets-dev.json +67 -0
  7. package/build/lowcode/assets-prod.json +67 -0
  8. package/build/lowcode/designer.html +302 -0
  9. package/build/lowcode/index.html +304 -0
  10. package/build/lowcode/index.js +1 -0
  11. package/build/lowcode/meta.js +1 -0
  12. package/build/lowcode/preview.css +1 -0
  13. package/build/lowcode/preview.html +33 -0
  14. package/build/lowcode/preview.js +308 -0
  15. package/build/lowcode/render/default/view.css +1 -0
  16. package/build/lowcode/render/default/view.js +295 -0
  17. package/build/lowcode/view.css +1 -0
  18. package/build/lowcode/view.js +295 -0
  19. package/dist/BizComps.css +1 -0
  20. package/dist/BizComps.js +7 -0
  21. package/dist/BizComps.js.map +1 -0
  22. package/es/assets/icon/navigation/index-selected.png +0 -0
  23. package/es/assets/icon/navigation/index.png +0 -0
  24. package/es/assets/icon/navigation/message-selected.png +0 -0
  25. package/es/assets/icon/navigation/message.png +0 -0
  26. package/es/assets/icon/navigation/mine-selected.png +0 -0
  27. package/es/assets/icon/navigation/mine.png +0 -0
  28. package/es/assets/icon/position/arror.png +0 -0
  29. package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -0
  30. package/es/components/bottom-navigation/bottom-navigation.js +39 -0
  31. package/es/components/bottom-navigation/index.d.ts +3 -0
  32. package/es/components/bottom-navigation/index.js +2 -0
  33. package/es/components/bottom-navigation/index.scss +19 -0
  34. package/es/components/colorful-button/colorful-button.d.ts +12 -0
  35. package/es/components/colorful-button/colorful-button.js +25 -0
  36. package/es/components/colorful-button/index.d.ts +3 -0
  37. package/es/components/colorful-button/index.js +2 -0
  38. package/es/components/colorful-button/index.scss +5 -0
  39. package/es/components/colorful-input/colorful-input.d.ts +8 -0
  40. package/es/components/colorful-input/colorful-input.js +19 -0
  41. package/es/components/colorful-input/index.d.ts +3 -0
  42. package/es/components/colorful-input/index.js +2 -0
  43. package/es/components/colorful-input/index.scss +5 -0
  44. package/es/components/dc-slider/index.d.ts +3 -0
  45. package/es/components/dc-slider/index.js +2 -0
  46. package/es/components/dc-slider/index.scss +8 -0
  47. package/es/components/dc-slider/slider.d.ts +32 -0
  48. package/es/components/dc-slider/slider.js +14 -0
  49. package/es/components/grid-nav/grid-nav.d.ts +13 -0
  50. package/es/components/grid-nav/grid-nav.js +91 -0
  51. package/es/components/grid-nav/index.d.ts +3 -0
  52. package/es/components/grid-nav/index.js +2 -0
  53. package/es/components/grid-nav/index.scss +36 -0
  54. package/es/components/menu-list/index.d.ts +6 -0
  55. package/es/components/menu-list/index.js +6 -0
  56. package/es/components/menu-list/index.scss +16 -0
  57. package/es/components/menu-list/menu-list-item.d.ts +5 -0
  58. package/es/components/menu-list/menu-list-item.js +32 -0
  59. package/es/components/menu-list/menu-list-item.scss +49 -0
  60. package/es/components/menu-list/menu-list.d.ts +5 -0
  61. package/es/components/menu-list/menu-list.js +25 -0
  62. package/es/components/menu-list/types.d.ts +23 -0
  63. package/es/components/menu-list/types.js +1 -0
  64. package/es/components/position/entity.d.ts +5 -0
  65. package/es/components/position/entity.js +1 -0
  66. package/es/components/position/index.d.ts +3 -0
  67. package/es/components/position/index.js +2 -0
  68. package/es/components/position/index.scss +21 -0
  69. package/es/components/position/position-left.d.ts +9 -0
  70. package/es/components/position/position-left.js +28 -0
  71. package/es/components/position/position-list.d.ts +12 -0
  72. package/es/components/position/position-list.js +30 -0
  73. package/es/components/position/position.d.ts +8 -0
  74. package/es/components/position/position.js +47 -0
  75. package/es/components/search-bar/index.d.ts +3 -0
  76. package/es/components/search-bar/index.js +2 -0
  77. package/es/components/search-bar/index.scss +3 -0
  78. package/es/components/search-bar/search-bar.d.ts +7 -0
  79. package/es/components/search-bar/search-bar.js +21 -0
  80. package/es/components/tag/index.d.ts +6 -0
  81. package/es/components/tag/index.js +5 -0
  82. package/es/components/tag/index.scss +17 -0
  83. package/es/components/tag/tag.d.ts +14 -0
  84. package/es/components/tag/tag.js +14 -0
  85. package/es/components/teletext-list/index.d.ts +6 -0
  86. package/es/components/teletext-list/index.js +6 -0
  87. package/es/components/teletext-list/index.scss +16 -0
  88. package/es/components/teletext-list/teletext-list-item.d.ts +42 -0
  89. package/es/components/teletext-list/teletext-list-item.js +35 -0
  90. package/es/components/teletext-list/teletext-list-item.scss +74 -0
  91. package/es/components/teletext-list/teletext-list.d.ts +57 -0
  92. package/es/components/teletext-list/teletext-list.js +75 -0
  93. package/es/components/title/index.d.ts +8 -0
  94. package/es/components/title/index.js +7 -0
  95. package/es/components/title/title-1.d.ts +10 -0
  96. package/es/components/title/title-1.js +16 -0
  97. package/es/components/title/title-1.scss +25 -0
  98. package/es/components/title/title-2.d.ts +18 -0
  99. package/es/components/title/title-2.js +31 -0
  100. package/es/components/title/title-2.scss +22 -0
  101. package/es/index.d.ts +22 -0
  102. package/es/index.js +12 -0
  103. package/es/index.scss +5 -0
  104. package/es/style.js +4 -0
  105. package/es/utils/children-node-handle.d.ts +6 -0
  106. package/es/utils/children-node-handle.js +23 -0
  107. package/es/utils/component-wrapper.d.ts +9 -0
  108. package/es/utils/component-wrapper.js +38 -0
  109. package/es/variables.d.ts +2 -0
  110. package/es/variables.js +2 -0
  111. package/es/variables.scss +3 -0
  112. package/lib/assets/icon/navigation/index-selected.png +0 -0
  113. package/lib/assets/icon/navigation/index.png +0 -0
  114. package/lib/assets/icon/navigation/message-selected.png +0 -0
  115. package/lib/assets/icon/navigation/message.png +0 -0
  116. package/lib/assets/icon/navigation/mine-selected.png +0 -0
  117. package/lib/assets/icon/navigation/mine.png +0 -0
  118. package/lib/assets/icon/position/arror.png +0 -0
  119. package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -0
  120. package/lib/components/bottom-navigation/bottom-navigation.js +46 -0
  121. package/lib/components/bottom-navigation/index.d.ts +3 -0
  122. package/lib/components/bottom-navigation/index.js +7 -0
  123. package/lib/components/bottom-navigation/index.scss +19 -0
  124. package/lib/components/colorful-button/colorful-button.d.ts +12 -0
  125. package/lib/components/colorful-button/colorful-button.js +32 -0
  126. package/lib/components/colorful-button/index.d.ts +3 -0
  127. package/lib/components/colorful-button/index.js +7 -0
  128. package/lib/components/colorful-button/index.scss +5 -0
  129. package/lib/components/colorful-input/colorful-input.d.ts +8 -0
  130. package/lib/components/colorful-input/colorful-input.js +26 -0
  131. package/lib/components/colorful-input/index.d.ts +3 -0
  132. package/lib/components/colorful-input/index.js +7 -0
  133. package/lib/components/colorful-input/index.scss +5 -0
  134. package/lib/components/dc-slider/index.d.ts +3 -0
  135. package/lib/components/dc-slider/index.js +7 -0
  136. package/lib/components/dc-slider/index.scss +8 -0
  137. package/lib/components/dc-slider/slider.d.ts +32 -0
  138. package/lib/components/dc-slider/slider.js +21 -0
  139. package/lib/components/grid-nav/grid-nav.d.ts +13 -0
  140. package/lib/components/grid-nav/grid-nav.js +98 -0
  141. package/lib/components/grid-nav/index.d.ts +3 -0
  142. package/lib/components/grid-nav/index.js +7 -0
  143. package/lib/components/grid-nav/index.scss +36 -0
  144. package/lib/components/menu-list/index.d.ts +6 -0
  145. package/lib/components/menu-list/index.js +10 -0
  146. package/lib/components/menu-list/index.scss +16 -0
  147. package/lib/components/menu-list/menu-list-item.d.ts +5 -0
  148. package/lib/components/menu-list/menu-list-item.js +37 -0
  149. package/lib/components/menu-list/menu-list-item.scss +49 -0
  150. package/lib/components/menu-list/menu-list.d.ts +5 -0
  151. package/lib/components/menu-list/menu-list.js +30 -0
  152. package/lib/components/menu-list/types.d.ts +23 -0
  153. package/lib/components/menu-list/types.js +3 -0
  154. package/lib/components/position/entity.d.ts +5 -0
  155. package/lib/components/position/entity.js +3 -0
  156. package/lib/components/position/index.d.ts +3 -0
  157. package/lib/components/position/index.js +7 -0
  158. package/lib/components/position/index.scss +21 -0
  159. package/lib/components/position/position-left.d.ts +9 -0
  160. package/lib/components/position/position-left.js +35 -0
  161. package/lib/components/position/position-list.d.ts +12 -0
  162. package/lib/components/position/position-list.js +36 -0
  163. package/lib/components/position/position.d.ts +8 -0
  164. package/lib/components/position/position.js +54 -0
  165. package/lib/components/search-bar/index.d.ts +3 -0
  166. package/lib/components/search-bar/index.js +7 -0
  167. package/lib/components/search-bar/index.scss +3 -0
  168. package/lib/components/search-bar/search-bar.d.ts +7 -0
  169. package/lib/components/search-bar/search-bar.js +28 -0
  170. package/lib/components/tag/index.d.ts +6 -0
  171. package/lib/components/tag/index.js +10 -0
  172. package/lib/components/tag/index.scss +17 -0
  173. package/lib/components/tag/tag.d.ts +14 -0
  174. package/lib/components/tag/tag.js +21 -0
  175. package/lib/components/teletext-list/index.d.ts +6 -0
  176. package/lib/components/teletext-list/index.js +10 -0
  177. package/lib/components/teletext-list/index.scss +16 -0
  178. package/lib/components/teletext-list/teletext-list-item.d.ts +42 -0
  179. package/lib/components/teletext-list/teletext-list-item.js +39 -0
  180. package/lib/components/teletext-list/teletext-list-item.scss +74 -0
  181. package/lib/components/teletext-list/teletext-list.d.ts +57 -0
  182. package/lib/components/teletext-list/teletext-list.js +79 -0
  183. package/lib/components/title/index.d.ts +8 -0
  184. package/lib/components/title/index.js +8 -0
  185. package/lib/components/title/title-1.d.ts +10 -0
  186. package/lib/components/title/title-1.js +21 -0
  187. package/lib/components/title/title-1.scss +25 -0
  188. package/lib/components/title/title-2.d.ts +18 -0
  189. package/lib/components/title/title-2.js +36 -0
  190. package/lib/components/title/title-2.scss +22 -0
  191. package/lib/index.d.ts +22 -0
  192. package/lib/index.js +25 -0
  193. package/lib/index.scss +5 -0
  194. package/lib/style.js +4 -0
  195. package/lib/utils/children-node-handle.d.ts +6 -0
  196. package/lib/utils/children-node-handle.js +28 -0
  197. package/lib/utils/component-wrapper.d.ts +9 -0
  198. package/lib/utils/component-wrapper.js +45 -0
  199. package/lib/variables.d.ts +2 -0
  200. package/lib/variables.js +5 -0
  201. package/lib/variables.scss +3 -0
  202. package/lowcode/d-c-slider/meta.ts +15 -1
  203. package/lowcode/position/meta.ts +211 -211
  204. package/lowcode/tag-c/meta.ts +75 -75
  205. package/lowcode_es/d-c-slider/meta.d.ts +152 -0
  206. package/lowcode_es/d-c-slider/meta.js +313 -0
  207. package/lowcode_es/d-c-slider/snippets.d.ts +36 -0
  208. package/lowcode_es/d-c-slider/snippets.js +36 -0
  209. package/lowcode_es/grid-nav/meta.d.ts +22 -0
  210. package/lowcode_es/grid-nav/meta.js +152 -0
  211. package/lowcode_es/menu-list/meta.d.ts +22 -0
  212. package/lowcode_es/menu-list/meta.js +128 -0
  213. package/lowcode_es/meta.js +173 -0
  214. package/lowcode_es/navigation/meta.d.ts +22 -0
  215. package/lowcode_es/navigation/meta.js +136 -0
  216. package/lowcode_es/position/meta.d.ts +22 -0
  217. package/lowcode_es/position/meta.js +190 -0
  218. package/lowcode_es/search-bar/meta.d.ts +22 -0
  219. package/lowcode_es/search-bar/meta.js +46 -0
  220. package/lowcode_es/tag-c/meta.d.ts +22 -0
  221. package/lowcode_es/tag-c/meta.js +66 -0
  222. package/lowcode_es/teletext-list/meta.d.ts +22 -0
  223. package/lowcode_es/teletext-list/meta.js +294 -0
  224. package/lowcode_es/title1/meta.d.ts +22 -0
  225. package/lowcode_es/title1/meta.js +51 -0
  226. package/lowcode_es/title2/meta.d.ts +22 -0
  227. package/lowcode_es/title2/meta.js +83 -0
  228. package/lowcode_es/view.js +18 -0
  229. package/lowcode_lib/d-c-slider/meta.d.ts +152 -0
  230. package/lowcode_lib/d-c-slider/meta.js +318 -0
  231. package/lowcode_lib/d-c-slider/snippets.d.ts +36 -0
  232. package/lowcode_lib/d-c-slider/snippets.js +40 -0
  233. package/lowcode_lib/grid-nav/meta.d.ts +22 -0
  234. package/lowcode_lib/grid-nav/meta.js +157 -0
  235. package/lowcode_lib/menu-list/meta.d.ts +22 -0
  236. package/lowcode_lib/menu-list/meta.js +133 -0
  237. package/lowcode_lib/meta.js +177 -0
  238. package/lowcode_lib/navigation/meta.d.ts +22 -0
  239. package/lowcode_lib/navigation/meta.js +141 -0
  240. package/lowcode_lib/position/meta.d.ts +22 -0
  241. package/lowcode_lib/position/meta.js +195 -0
  242. package/lowcode_lib/search-bar/meta.d.ts +22 -0
  243. package/lowcode_lib/search-bar/meta.js +51 -0
  244. package/lowcode_lib/tag-c/meta.d.ts +22 -0
  245. package/lowcode_lib/tag-c/meta.js +71 -0
  246. package/lowcode_lib/teletext-list/meta.d.ts +22 -0
  247. package/lowcode_lib/teletext-list/meta.js +299 -0
  248. package/lowcode_lib/title1/meta.d.ts +22 -0
  249. package/lowcode_lib/title1/meta.js +56 -0
  250. package/lowcode_lib/title2/meta.d.ts +22 -0
  251. package/lowcode_lib/title2/meta.js +88 -0
  252. package/lowcode_lib/view.js +29 -0
  253. package/package.json +110 -110
@@ -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,39 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
+ var _excluded = ["itemArray", "selectedColor"];
4
+ import * as React from 'react';
5
+ import { Image } from '@alilc/lowcode-materials';
6
+ import "./index.scss";
7
+ var Navigation = function bottomNavigation(_ref) {
8
+ var itemArray = _ref.itemArray,
9
+ selectedColor = _ref.selectedColor,
10
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
11
+ var _React$useState = React.useState(0),
12
+ activeNum = _React$useState[0],
13
+ setActiveNum = _React$useState[1];
14
+ var clickHandle = function clickHandle(index) {
15
+ // 更新激活tab
16
+ setActiveNum(index);
17
+ };
18
+ return /*#__PURE__*/React.createElement("div", _extends({
19
+ className: "navigation-panel"
20
+ }, otherProps), itemArray.map(function (item, index) {
21
+ var _item$selectedIcon;
22
+ return /*#__PURE__*/React.createElement("div", {
23
+ className: "navigation-panel-item",
24
+ onClick: function onClick() {
25
+ return clickHandle(index);
26
+ },
27
+ style: {
28
+ color: activeNum === index ? selectedColor !== null && selectedColor !== void 0 ? selectedColor : '#4598FF' : ''
29
+ }
30
+ }, /*#__PURE__*/React.createElement(Image, {
31
+ src: activeNum === index ? (_item$selectedIcon = item.selectedIcon) !== null && _item$selectedIcon !== void 0 ? _item$selectedIcon : item.icon : item.icon,
32
+ style: {
33
+ width: '24.5px',
34
+ height: '24.5px'
35
+ }
36
+ }), /*#__PURE__*/React.createElement("span", null, item.text));
37
+ }));
38
+ };
39
+ 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,19 @@
1
+ .navigation-panel {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ align-items: center;
5
+ padding: 9px 0px 6px 0px;
6
+ width: 100%;
7
+ position: fixed;
8
+ bottom: 0;
9
+ background-color: #fff;
10
+ box-sizing: border-box;
11
+ &-item {
12
+ display: flex;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ align-items: center;
16
+ cursor: pointer;
17
+ flex: 1;
18
+ }
19
+ }
@@ -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,25 @@
1
+ import _Button from "@alifd/next/es/button";
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
+ var _excluded = ["type", "color", "style"];
5
+ import * as React from 'react';
6
+ import "./index.scss";
7
+ var ColorfulButton = function ColorfulButton(_ref) {
8
+ var _ref$type = _ref.type,
9
+ type = _ref$type === void 0 ? 'primary' : _ref$type,
10
+ color = _ref.color,
11
+ _ref$style = _ref.style,
12
+ style = _ref$style === void 0 ? {} : _ref$style,
13
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
14
+ var _style = style || {};
15
+ if (color) {
16
+ _style.backgroundColor = color;
17
+ }
18
+ var _otherProps = otherProps || {};
19
+ _otherProps.style = _style;
20
+ return /*#__PURE__*/React.createElement(_Button, _extends({
21
+ type: type
22
+ }, _otherProps), "fusion button");
23
+ };
24
+ ColorfulButton.displayName = 'ColorfulButton';
25
+ export default ColorfulButton;
@@ -0,0 +1,3 @@
1
+ import ColorfulButton from './colorful-button';
2
+ export type { ColorfulButtonProps } from './colorful-button';
3
+ export default ColorfulButton;
@@ -0,0 +1,2 @@
1
+ import ColorfulButton from "./colorful-button";
2
+ export default ColorfulButton;
@@ -0,0 +1,5 @@
1
+ @import '../../variables.scss';
2
+
3
+ #{$biz-css-prefix}-colorful-button {
4
+ border: 2px dashed blue;
5
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import './index.scss';
3
+ export interface ColorfulInputProps {
4
+ color?: string;
5
+ style?: object;
6
+ }
7
+ declare const ColorfulInput: React.FC<ColorfulInputProps>;
8
+ export default ColorfulInput;
@@ -0,0 +1,19 @@
1
+ import _Input from "@alifd/next/es/input";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
+ var _excluded = ["color", "style"];
4
+ import * as React from 'react';
5
+ import "./index.scss";
6
+ var ColorfulInput = function ColorfulInput(_ref) {
7
+ var color = _ref.color,
8
+ _ref$style = _ref.style,
9
+ style = _ref$style === void 0 ? {} : _ref$style,
10
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
11
+ var _style = style || {};
12
+ if (color) {
13
+ _style.backgroundColor = color;
14
+ }
15
+ var _otherProps = otherProps || {};
16
+ _otherProps.style = _style;
17
+ return /*#__PURE__*/React.createElement(_Input, _otherProps);
18
+ };
19
+ export default ColorfulInput;
@@ -0,0 +1,3 @@
1
+ import ColorfulInput from './colorful-input';
2
+ export type { ColorfulInputProps } from './colorful-input';
3
+ export default ColorfulInput;
@@ -0,0 +1,2 @@
1
+ import ColorfulInput from "./colorful-input";
2
+ export default ColorfulInput;
@@ -0,0 +1,5 @@
1
+ @import '../../variables.scss';
2
+
3
+ #{$biz-css-prefix}-colorful-button {
4
+ border: 2px dashed blue;
5
+ }
@@ -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", props, /*#__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,13 @@
1
+ import * as React from 'react';
2
+ export interface GridNavProps {
3
+ dataSourceSetting: [];
4
+ columns: number;
5
+ iconSize: string;
6
+ fontWeight: string;
7
+ fontSize: number;
8
+ fontColor: string;
9
+ lineHeight: string;
10
+ lineNum: number;
11
+ }
12
+ declare const GridNav: React.ForwardRefExoticComponent<GridNavProps & React.RefAttributes<any>>;
13
+ export default GridNav;
@@ -0,0 +1,91 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import * as React from 'react';
3
+ import { forwardRef } from 'react';
4
+ var ExampleComponent = function ExampleComponent(props, ref) {
5
+ var columns = props.columns,
6
+ _props$iconSize = props.iconSize,
7
+ iconSize = _props$iconSize === void 0 ? 'medium' : _props$iconSize,
8
+ _props$fontWeight = props.fontWeight,
9
+ fontWeight = _props$fontWeight === void 0 ? 'normal' : _props$fontWeight,
10
+ _props$fontSize = props.fontSize,
11
+ fontSize = _props$fontSize === void 0 ? 14 : _props$fontSize,
12
+ _props$fontColor = props.fontColor,
13
+ fontColor = _props$fontColor === void 0 ? '#333' : _props$fontColor,
14
+ _props$lineHeight = props.lineHeight,
15
+ lineHeight = _props$lineHeight === void 0 ? 'auto' : _props$lineHeight,
16
+ _props$lineNum = props.lineNum,
17
+ lineNum = _props$lineNum === void 0 ? 1 : _props$lineNum,
18
+ dataSourceSetting = props.dataSourceSetting;
19
+ console.log('dataSourceSetting的值为', dataSourceSetting);
20
+
21
+ // 设置图标尺寸
22
+ var iconStyle = {};
23
+ switch (iconSize) {
24
+ case 'large':
25
+ iconStyle = {
26
+ width: '64px',
27
+ height: '64px'
28
+ };
29
+ break;
30
+ case 'medium':
31
+ iconStyle = {
32
+ width: '48px',
33
+ height: '48px'
34
+ };
35
+ break;
36
+ case 'small':
37
+ iconStyle = {
38
+ width: '32px',
39
+ height: '32px'
40
+ };
41
+ break;
42
+ default:
43
+ iconStyle = {
44
+ width: '48px',
45
+ height: '48px'
46
+ };
47
+ }
48
+
49
+ // 设置字重
50
+ var fontStyle = {
51
+ fontWeight: fontWeight,
52
+ fontSize: fontSize,
53
+ color: fontColor,
54
+ lineHeight: lineHeight
55
+ };
56
+
57
+ // 设置行数
58
+ var fontLineStyle = {};
59
+ fontLineStyle = {
60
+ maxWidth: '80px',
61
+ overflow: 'hidden',
62
+ // whiteSpace: lineNum === 1 ? 'nowrap' : 'none',
63
+ textOverflow: 'ellipsis',
64
+ display: '-webkit-box',
65
+ WebkitLineClamp: lineNum,
66
+ WebkitBoxOrient: 'vertical'
67
+ };
68
+ var fontAllStyle = _extends({}, fontStyle, fontLineStyle);
69
+ return /*#__PURE__*/React.createElement("div", {
70
+ ref: ref,
71
+ className: "grid-navigation",
72
+ style: {
73
+ gridTemplateColumns: "repeat(" + columns + ", 1fr)"
74
+ }
75
+ }, dataSourceSetting.map(function (item, index) {
76
+ return item ? /*#__PURE__*/React.createElement("a", {
77
+ key: index,
78
+ href: item.link || '#',
79
+ className: "grid-item"
80
+ }, /*#__PURE__*/React.createElement("img", {
81
+ src: item.icon || 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png',
82
+ alt: item.title || '导航',
83
+ style: iconStyle
84
+ }), /*#__PURE__*/React.createElement("span", {
85
+ style: fontAllStyle
86
+ }, item.title || '无标题')) : null;
87
+ }));
88
+ };
89
+ var GridNav = /*#__PURE__*/forwardRef(ExampleComponent);
90
+ GridNav.displayName = 'GridNav';
91
+ export default GridNav;
@@ -0,0 +1,3 @@
1
+ import GridNav from "./grid-nav";
2
+ export type { GridNavProps } from './grid-nav';
3
+ export default GridNav;
@@ -0,0 +1,2 @@
1
+ import GridNav from "./grid-nav";
2
+ export default GridNav;
@@ -0,0 +1,36 @@
1
+ /* write style here */
2
+ .grid-navigation {
3
+ padding: 10px;
4
+ width: 100%;
5
+ display: grid;
6
+ gap: 16px; /* 宫格之间的间距 */
7
+ // grid-template-columns: repeat(60px, minmax(1fr));
8
+ }
9
+
10
+ .grid-item {
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: center;
14
+ text-align: center;
15
+ text-decoration: none;
16
+ color: #333;
17
+ position: relative;
18
+ img {
19
+ width: 48px;
20
+ height: 48px;
21
+ margin-bottom: 4px;
22
+ }
23
+
24
+ span {
25
+ font-size: 14px;
26
+ // overflow: hidden;
27
+ // text-overflow: ellipsis;
28
+ // white-space: nowrap;
29
+ // max-width: 60px;
30
+ }
31
+
32
+ &:hover {
33
+ color: #007bff;
34
+ }
35
+ }
36
+
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 菜单列表
3
+ */
4
+ import MenuList from './menu-list';
5
+ export type { MenuListDataProps, MenuListProps } from './types';
6
+ export default MenuList;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 菜单列表
3
+ */
4
+
5
+ import MenuList from "./menu-list";
6
+ export default MenuList;
@@ -0,0 +1,16 @@
1
+ @import '../../variables.scss';
2
+
3
+ .menu-list__panel {
4
+ border-radius: 10px;
5
+ background-color: white;
6
+
7
+ .menu-list__panel__item-list {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 2px;
11
+ padding: 1px 22px;
12
+ }
13
+
14
+ }
15
+
16
+
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { MenuListDataProps } from "./types";
3
+ import "./menu-list-item.scss";
4
+ declare const MenuListItem: React.FC<MenuListDataProps>;
5
+ export default MenuListItem;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import "./menu-list-item.scss";
3
+ var MenuListItem = function MenuListItem(_ref) {
4
+ var _ref$title = _ref.title,
5
+ title = _ref$title === void 0 ? '菜单名称' : _ref$title,
6
+ _ref$iconUrl = _ref.iconUrl,
7
+ iconUrl = _ref$iconUrl === void 0 ? '' : _ref$iconUrl,
8
+ handleClick = _ref.handleClick;
9
+ return /*#__PURE__*/React.createElement("div", {
10
+ className: "menu-list__panel__item",
11
+ onClick: handleClick
12
+ }, iconUrl ? /*#__PURE__*/React.createElement("div", {
13
+ className: "menu-list__panel__item_icon"
14
+ }, /*#__PURE__*/React.createElement("img", {
15
+ alt: "",
16
+ src: iconUrl
17
+ })) : null, /*#__PURE__*/React.createElement("div", {
18
+ className: "menu-list__panel__item_title"
19
+ }, title), /*#__PURE__*/React.createElement("div", {
20
+ className: "menu-list__panel__item_right"
21
+ }, /*#__PURE__*/React.createElement("svg", {
22
+ xmlns: "http://www.w3.org/2000/svg",
23
+ width: "32",
24
+ height: "32",
25
+ viewBox: "0 0 32 32"
26
+ }, /*#__PURE__*/React.createElement("path", {
27
+ fill: "currentColor",
28
+ d: "M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z"
29
+ }))));
30
+ };
31
+ MenuListItem.displayName = 'MenuListItem';
32
+ export default MenuListItem;
@@ -0,0 +1,49 @@
1
+ @import '../../variables.scss';
2
+
3
+ .menu-list__panel__item {
4
+ display: flex;
5
+ gap: 7px;
6
+ justify-content: space-between;
7
+ align-items: center;
8
+ height: 45px;
9
+
10
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
11
+
12
+ &:last-child {
13
+ border-bottom: none;
14
+ }
15
+
16
+ .menu-list__panel__item_icon {
17
+ height: 100%;
18
+ display: flex;
19
+ align-items: center;
20
+
21
+ & > img {
22
+ height: 15px;
23
+ }
24
+ }
25
+
26
+ .menu-list__panel__item_title {
27
+ font-size: 15px;
28
+ color: #666666;
29
+ font-weight: 500;
30
+ margin-right: auto;
31
+ }
32
+
33
+ .menu-list__panel__item_right {
34
+ height: 100%;
35
+ display: flex;
36
+ align-items: center;
37
+
38
+ & > svg {
39
+ height: 16px;
40
+ font-size: 12px;
41
+ color: #666666;
42
+ font-weight: 500;
43
+ }
44
+
45
+
46
+ }
47
+
48
+
49
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './index.scss';
3
+ import { MenuListProps } from "./types";
4
+ declare const MenuList: React.FC<MenuListProps>;
5
+ export default MenuList;
@@ -0,0 +1,25 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
+ var _excluded = ["dataList"];
4
+ import React from 'react';
5
+ import "./index.scss";
6
+ import MenuListItem from "./menu-list-item";
7
+ var MenuList = function MenuList(_ref) {
8
+ var dataList = _ref.dataList,
9
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
10
+ var _otherProps = otherProps || {};
11
+ return /*#__PURE__*/React.createElement("div", _extends({
12
+ className: "menu-list__panel"
13
+ }, _otherProps), /*#__PURE__*/React.createElement("div", {
14
+ className: "menu-list__panel__item-list"
15
+ }, dataList.map(function (item, index) {
16
+ return /*#__PURE__*/React.createElement(MenuListItem, {
17
+ key: index,
18
+ title: item.title,
19
+ iconUrl: item.iconUrl,
20
+ handleClick: item.handleClick
21
+ });
22
+ })));
23
+ };
24
+ MenuList.displayName = 'MenuList';
25
+ export 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 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface Location {
2
+ lat: string;
3
+ lng: string;
4
+ address: string;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import Position from './position';
2
+ export type { LocationProps } from './position';
3
+ export default Position;
@@ -0,0 +1,2 @@
1
+ import Position from "./position";
2
+ export default Position;
@@ -0,0 +1,21 @@
1
+ .location {
2
+ display: flex;
3
+ cursor: pointer;
4
+ &-address {
5
+ margin-right: 7px;
6
+ }
7
+ }
8
+ .location-list {
9
+ position: fixed;
10
+ top: 0;
11
+ left: 0;
12
+ width: 100vw;
13
+ height: 100vh;
14
+ background-color: #fff;
15
+ padding: 10px 15px;
16
+ z-index: 999;
17
+ &-item {
18
+ padding: 10px 0;
19
+ border-bottom: solid 1px #eee;
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import './index.scss';
3
+ import { Location } from "./entity";
4
+ export interface LocationProps {
5
+ currentLocation: Location;
6
+ clickHandle: () => void;
7
+ }
8
+ declare const NavigationLeft: React.FC<LocationProps>;
9
+ export default NavigationLeft;