@dckj-npm/dc-material 0.1.16 → 0.1.18

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 (320) hide show
  1. package/README.md +17 -17
  2. package/build/lowcode/assets-daily.json +13 -13
  3. package/build/lowcode/assets-dev.json +2 -2
  4. package/build/lowcode/assets-prod.json +13 -13
  5. package/build/lowcode/index.js +1 -1
  6. package/build/lowcode/meta.design.js +1 -1
  7. package/build/lowcode/meta.js +1 -1
  8. package/build/lowcode/preview.js +7 -7
  9. package/build/lowcode/render/default/view.css +1 -1
  10. package/build/lowcode/render/default/view.js +7 -7
  11. package/build/lowcode/view.css +1 -1
  12. package/build/lowcode/view.js +7 -7
  13. package/lowcode/button2/meta.ts +75 -75
  14. package/lowcode/grid-nav/meta.ts +3 -3
  15. package/lowcode/integral-task/meta.ts +211 -211
  16. package/lowcode/message-list/meta.ts +24 -6
  17. package/lowcode/navigation/meta.ts +23 -2
  18. package/lowcode/notice-bar/meta.ts +15 -3
  19. package/lowcode/position/meta.ts +161 -161
  20. package/lowcode/swiper/meta.ts +237 -0
  21. package/lowcode/tab-message/meta.ts +101 -101
  22. package/lowcode/teletext-list/meta.ts +0 -14
  23. package/lowcode_es/grid-nav/meta.js +3 -3
  24. package/lowcode_es/message-list/meta.js +19 -6
  25. package/lowcode_es/meta.js +20 -19
  26. package/lowcode_es/navigation/meta.js +21 -2
  27. package/lowcode_es/notice-bar/meta.js +12 -1
  28. package/lowcode_es/swiper/meta.d.ts +22 -0
  29. package/lowcode_es/swiper/meta.js +209 -0
  30. package/lowcode_es/teletext-list/meta.js +0 -10
  31. package/lowcode_es/view.js +3 -3
  32. package/lowcode_lib/grid-nav/meta.js +3 -3
  33. package/lowcode_lib/message-list/meta.js +19 -6
  34. package/lowcode_lib/meta.js +20 -19
  35. package/lowcode_lib/navigation/meta.js +21 -2
  36. package/lowcode_lib/notice-bar/meta.js +12 -1
  37. package/lowcode_lib/swiper/meta.d.ts +22 -0
  38. package/lowcode_lib/swiper/meta.js +214 -0
  39. package/lowcode_lib/teletext-list/meta.js +0 -10
  40. package/lowcode_lib/view.js +2 -2
  41. package/package.json +4 -3
  42. package/build/docs/colorful-button.html +0 -48
  43. package/build/docs/colorful-input.html +0 -48
  44. package/build/docs/index.html +0 -48
  45. package/build/docs/umi.172d0fea.js +0 -1
  46. package/build/docs/umi.2ce6bf4c.css +0 -8
  47. package/build/docs/~demos/colorful-button-demo.html +0 -47
  48. package/build/docs/~demos/colorful-input-demo.html +0 -47
  49. package/build/index.css +0 -2
  50. package/build/index.html +0 -1
  51. package/build/index.js +0 -60
  52. package/dist/BizComps.css +0 -1
  53. package/dist/BizComps.js +0 -16
  54. package/dist/BizComps.js.map +0 -1
  55. package/es/assets/icon/integral-task/icon1.png +0 -0
  56. package/es/assets/icon/navigation/index-selected.png +0 -0
  57. package/es/assets/icon/navigation/index.png +0 -0
  58. package/es/assets/icon/navigation/message-selected.png +0 -0
  59. package/es/assets/icon/navigation/message.png +0 -0
  60. package/es/assets/icon/navigation/mine-selected.png +0 -0
  61. package/es/assets/icon/navigation/mine.png +0 -0
  62. package/es/assets/icon/notice-bar/notice.png +0 -0
  63. package/es/assets/icon/position/arror.png +0 -0
  64. package/es/components/bottom-navigation/bottom-navigation.d.ts +0 -13
  65. package/es/components/bottom-navigation/bottom-navigation.js +0 -39
  66. package/es/components/bottom-navigation/index.d.ts +0 -3
  67. package/es/components/bottom-navigation/index.js +0 -2
  68. package/es/components/bottom-navigation/index.scss +0 -20
  69. package/es/components/button/button.d.ts +0 -14
  70. package/es/components/button/button.js +0 -14
  71. package/es/components/button/index.d.ts +0 -6
  72. package/es/components/button/index.js +0 -5
  73. package/es/components/button/index.scss +0 -16
  74. package/es/components/colorful-button/colorful-button.d.ts +0 -12
  75. package/es/components/colorful-button/colorful-button.js +0 -25
  76. package/es/components/colorful-button/index.d.ts +0 -3
  77. package/es/components/colorful-button/index.js +0 -2
  78. package/es/components/colorful-button/index.scss +0 -5
  79. package/es/components/colorful-input/colorful-input.d.ts +0 -8
  80. package/es/components/colorful-input/colorful-input.js +0 -19
  81. package/es/components/colorful-input/index.d.ts +0 -3
  82. package/es/components/colorful-input/index.js +0 -2
  83. package/es/components/colorful-input/index.scss +0 -5
  84. package/es/components/dc-slider/index.d.ts +0 -3
  85. package/es/components/dc-slider/index.js +0 -2
  86. package/es/components/dc-slider/index.scss +0 -8
  87. package/es/components/dc-slider/slider.d.ts +0 -33
  88. package/es/components/dc-slider/slider.js +0 -10
  89. package/es/components/grid-nav/grid-nav.d.ts +0 -13
  90. package/es/components/grid-nav/grid-nav.js +0 -91
  91. package/es/components/grid-nav/index.d.ts +0 -3
  92. package/es/components/grid-nav/index.js +0 -2
  93. package/es/components/grid-nav/index.scss +0 -36
  94. package/es/components/integral-task/index.d.ts +0 -6
  95. package/es/components/integral-task/index.js +0 -5
  96. package/es/components/integral-task/index.scss +0 -35
  97. package/es/components/integral-task/integral-task.d.ts +0 -40
  98. package/es/components/integral-task/integral-task.js +0 -53
  99. package/es/components/menu-list/index.d.ts +0 -6
  100. package/es/components/menu-list/index.js +0 -6
  101. package/es/components/menu-list/index.scss +0 -16
  102. package/es/components/menu-list/menu-list-item.d.ts +0 -5
  103. package/es/components/menu-list/menu-list-item.js +0 -32
  104. package/es/components/menu-list/menu-list-item.scss +0 -49
  105. package/es/components/menu-list/menu-list.d.ts +0 -5
  106. package/es/components/menu-list/menu-list.js +0 -25
  107. package/es/components/menu-list/types.d.ts +0 -23
  108. package/es/components/menu-list/types.js +0 -1
  109. package/es/components/message-list/index.d.ts +0 -6
  110. package/es/components/message-list/index.js +0 -6
  111. package/es/components/message-list/index.scss +0 -17
  112. package/es/components/message-list/message-list-item.d.ts +0 -29
  113. package/es/components/message-list/message-list-item.js +0 -38
  114. package/es/components/message-list/message-list-item.scss +0 -49
  115. package/es/components/message-list/message-list.d.ts +0 -28
  116. package/es/components/message-list/message-list.js +0 -47
  117. package/es/components/notice-bar/index.d.ts +0 -3
  118. package/es/components/notice-bar/index.js +0 -2
  119. package/es/components/notice-bar/index.scss +0 -26
  120. package/es/components/notice-bar/notice-bar-item.d.ts +0 -31
  121. package/es/components/notice-bar/notice-bar-item.js +0 -31
  122. package/es/components/notice-bar/notice-bar-item.scss +0 -23
  123. package/es/components/notice-bar/notice-bar.d.ts +0 -46
  124. package/es/components/notice-bar/notice-bar.js +0 -48
  125. package/es/components/position/entity.d.ts +0 -5
  126. package/es/components/position/entity.js +0 -1
  127. package/es/components/position/index.d.ts +0 -3
  128. package/es/components/position/index.js +0 -2
  129. package/es/components/position/index.scss +0 -21
  130. package/es/components/position/position-left.d.ts +0 -9
  131. package/es/components/position/position-left.js +0 -28
  132. package/es/components/position/position-list.d.ts +0 -12
  133. package/es/components/position/position-list.js +0 -30
  134. package/es/components/position/position.d.ts +0 -8
  135. package/es/components/position/position.js +0 -48
  136. package/es/components/search-bar/index.d.ts +0 -3
  137. package/es/components/search-bar/index.js +0 -2
  138. package/es/components/search-bar/index.scss +0 -6
  139. package/es/components/search-bar/search-bar.d.ts +0 -7
  140. package/es/components/search-bar/search-bar.js +0 -21
  141. package/es/components/tab/index.d.ts +0 -6
  142. package/es/components/tab/index.js +0 -5
  143. package/es/components/tab/index.scss +0 -21
  144. package/es/components/tab/tab.d.ts +0 -23
  145. package/es/components/tab/tab.js +0 -46
  146. package/es/components/tab-container/index.d.ts +0 -3
  147. package/es/components/tab-container/index.js +0 -2
  148. package/es/components/tab-container/index.scss +0 -17
  149. package/es/components/tab-container/tab-container.d.ts +0 -9
  150. package/es/components/tab-container/tab-container.js +0 -14
  151. package/es/components/tab-container-item/index.d.ts +0 -3
  152. package/es/components/tab-container-item/index.js +0 -2
  153. package/es/components/tab-container-item/index.scss +0 -0
  154. package/es/components/tab-container-item/tab-container-item.d.ts +0 -9
  155. package/es/components/tab-container-item/tab-container-item.js +0 -14
  156. package/es/components/tag/index.d.ts +0 -6
  157. package/es/components/tag/index.js +0 -5
  158. package/es/components/tag/index.scss +0 -16
  159. package/es/components/tag/tag.d.ts +0 -14
  160. package/es/components/tag/tag.js +0 -14
  161. package/es/components/teletext-list/index.d.ts +0 -6
  162. package/es/components/teletext-list/index.js +0 -6
  163. package/es/components/teletext-list/index.scss +0 -17
  164. package/es/components/teletext-list/teletext-list-item.d.ts +0 -42
  165. package/es/components/teletext-list/teletext-list-item.js +0 -48
  166. package/es/components/teletext-list/teletext-list-item.scss +0 -74
  167. package/es/components/teletext-list/teletext-list.d.ts +0 -61
  168. package/es/components/teletext-list/teletext-list.js +0 -38
  169. package/es/components/title/index.d.ts +0 -8
  170. package/es/components/title/index.js +0 -7
  171. package/es/components/title/title-1.d.ts +0 -10
  172. package/es/components/title/title-1.js +0 -16
  173. package/es/components/title/title-1.scss +0 -25
  174. package/es/components/title/title-2.d.ts +0 -18
  175. package/es/components/title/title-2.js +0 -31
  176. package/es/components/title/title-2.scss +0 -22
  177. package/es/index.d.ts +0 -36
  178. package/es/index.js +0 -66
  179. package/es/index.scss +0 -6
  180. package/es/style.js +0 -5
  181. package/es/utils/children-node-handle.d.ts +0 -9
  182. package/es/utils/children-node-handle.js +0 -27
  183. package/es/utils/component-wrapper.d.ts +0 -9
  184. package/es/utils/component-wrapper.js +0 -38
  185. package/es/variables.d.ts +0 -2
  186. package/es/variables.js +0 -2
  187. package/es/variables.scss +0 -3
  188. package/lib/assets/icon/integral-task/icon1.png +0 -0
  189. package/lib/assets/icon/navigation/index-selected.png +0 -0
  190. package/lib/assets/icon/navigation/index.png +0 -0
  191. package/lib/assets/icon/navigation/message-selected.png +0 -0
  192. package/lib/assets/icon/navigation/message.png +0 -0
  193. package/lib/assets/icon/navigation/mine-selected.png +0 -0
  194. package/lib/assets/icon/navigation/mine.png +0 -0
  195. package/lib/assets/icon/notice-bar/notice.png +0 -0
  196. package/lib/assets/icon/position/arror.png +0 -0
  197. package/lib/components/bottom-navigation/bottom-navigation.d.ts +0 -13
  198. package/lib/components/bottom-navigation/bottom-navigation.js +0 -46
  199. package/lib/components/bottom-navigation/index.d.ts +0 -3
  200. package/lib/components/bottom-navigation/index.js +0 -7
  201. package/lib/components/bottom-navigation/index.scss +0 -20
  202. package/lib/components/button/button.d.ts +0 -14
  203. package/lib/components/button/button.js +0 -21
  204. package/lib/components/button/index.d.ts +0 -6
  205. package/lib/components/button/index.js +0 -10
  206. package/lib/components/button/index.scss +0 -16
  207. package/lib/components/colorful-button/colorful-button.d.ts +0 -12
  208. package/lib/components/colorful-button/colorful-button.js +0 -32
  209. package/lib/components/colorful-button/index.d.ts +0 -3
  210. package/lib/components/colorful-button/index.js +0 -7
  211. package/lib/components/colorful-button/index.scss +0 -5
  212. package/lib/components/colorful-input/colorful-input.d.ts +0 -8
  213. package/lib/components/colorful-input/colorful-input.js +0 -26
  214. package/lib/components/colorful-input/index.d.ts +0 -3
  215. package/lib/components/colorful-input/index.js +0 -7
  216. package/lib/components/colorful-input/index.scss +0 -5
  217. package/lib/components/dc-slider/index.d.ts +0 -3
  218. package/lib/components/dc-slider/index.js +0 -7
  219. package/lib/components/dc-slider/index.scss +0 -8
  220. package/lib/components/dc-slider/slider.d.ts +0 -33
  221. package/lib/components/dc-slider/slider.js +0 -17
  222. package/lib/components/grid-nav/grid-nav.d.ts +0 -13
  223. package/lib/components/grid-nav/grid-nav.js +0 -98
  224. package/lib/components/grid-nav/index.d.ts +0 -3
  225. package/lib/components/grid-nav/index.js +0 -7
  226. package/lib/components/grid-nav/index.scss +0 -36
  227. package/lib/components/integral-task/index.d.ts +0 -6
  228. package/lib/components/integral-task/index.js +0 -10
  229. package/lib/components/integral-task/index.scss +0 -35
  230. package/lib/components/integral-task/integral-task.d.ts +0 -40
  231. package/lib/components/integral-task/integral-task.js +0 -60
  232. package/lib/components/menu-list/index.d.ts +0 -6
  233. package/lib/components/menu-list/index.js +0 -10
  234. package/lib/components/menu-list/index.scss +0 -16
  235. package/lib/components/menu-list/menu-list-item.d.ts +0 -5
  236. package/lib/components/menu-list/menu-list-item.js +0 -37
  237. package/lib/components/menu-list/menu-list-item.scss +0 -49
  238. package/lib/components/menu-list/menu-list.d.ts +0 -5
  239. package/lib/components/menu-list/menu-list.js +0 -30
  240. package/lib/components/menu-list/types.d.ts +0 -23
  241. package/lib/components/menu-list/types.js +0 -3
  242. package/lib/components/message-list/index.d.ts +0 -6
  243. package/lib/components/message-list/index.js +0 -10
  244. package/lib/components/message-list/index.scss +0 -17
  245. package/lib/components/message-list/message-list-item.d.ts +0 -29
  246. package/lib/components/message-list/message-list-item.js +0 -42
  247. package/lib/components/message-list/message-list-item.scss +0 -49
  248. package/lib/components/message-list/message-list.d.ts +0 -28
  249. package/lib/components/message-list/message-list.js +0 -52
  250. package/lib/components/notice-bar/index.d.ts +0 -3
  251. package/lib/components/notice-bar/index.js +0 -7
  252. package/lib/components/notice-bar/index.scss +0 -26
  253. package/lib/components/notice-bar/notice-bar-item.d.ts +0 -31
  254. package/lib/components/notice-bar/notice-bar-item.js +0 -36
  255. package/lib/components/notice-bar/notice-bar-item.scss +0 -23
  256. package/lib/components/notice-bar/notice-bar.d.ts +0 -46
  257. package/lib/components/notice-bar/notice-bar.js +0 -53
  258. package/lib/components/position/entity.d.ts +0 -5
  259. package/lib/components/position/entity.js +0 -3
  260. package/lib/components/position/index.d.ts +0 -3
  261. package/lib/components/position/index.js +0 -7
  262. package/lib/components/position/index.scss +0 -21
  263. package/lib/components/position/position-left.d.ts +0 -9
  264. package/lib/components/position/position-left.js +0 -35
  265. package/lib/components/position/position-list.d.ts +0 -12
  266. package/lib/components/position/position-list.js +0 -36
  267. package/lib/components/position/position.d.ts +0 -8
  268. package/lib/components/position/position.js +0 -55
  269. package/lib/components/search-bar/index.d.ts +0 -3
  270. package/lib/components/search-bar/index.js +0 -7
  271. package/lib/components/search-bar/index.scss +0 -6
  272. package/lib/components/search-bar/search-bar.d.ts +0 -7
  273. package/lib/components/search-bar/search-bar.js +0 -28
  274. package/lib/components/tab/index.d.ts +0 -6
  275. package/lib/components/tab/index.js +0 -10
  276. package/lib/components/tab/index.scss +0 -21
  277. package/lib/components/tab/tab.d.ts +0 -23
  278. package/lib/components/tab/tab.js +0 -53
  279. package/lib/components/tab-container/index.d.ts +0 -3
  280. package/lib/components/tab-container/index.js +0 -6
  281. package/lib/components/tab-container/index.scss +0 -17
  282. package/lib/components/tab-container/tab-container.d.ts +0 -9
  283. package/lib/components/tab-container/tab-container.js +0 -19
  284. package/lib/components/tab-container-item/index.d.ts +0 -3
  285. package/lib/components/tab-container-item/index.js +0 -6
  286. package/lib/components/tab-container-item/index.scss +0 -0
  287. package/lib/components/tab-container-item/tab-container-item.d.ts +0 -9
  288. package/lib/components/tab-container-item/tab-container-item.js +0 -19
  289. package/lib/components/tag/index.d.ts +0 -6
  290. package/lib/components/tag/index.js +0 -10
  291. package/lib/components/tag/index.scss +0 -16
  292. package/lib/components/tag/tag.d.ts +0 -14
  293. package/lib/components/tag/tag.js +0 -21
  294. package/lib/components/teletext-list/index.d.ts +0 -6
  295. package/lib/components/teletext-list/index.js +0 -6
  296. package/lib/components/teletext-list/index.scss +0 -17
  297. package/lib/components/teletext-list/teletext-list-item.d.ts +0 -42
  298. package/lib/components/teletext-list/teletext-list-item.js +0 -52
  299. package/lib/components/teletext-list/teletext-list-item.scss +0 -74
  300. package/lib/components/teletext-list/teletext-list.d.ts +0 -61
  301. package/lib/components/teletext-list/teletext-list.js +0 -42
  302. package/lib/components/title/index.d.ts +0 -8
  303. package/lib/components/title/index.js +0 -8
  304. package/lib/components/title/title-1.d.ts +0 -10
  305. package/lib/components/title/title-1.js +0 -21
  306. package/lib/components/title/title-1.scss +0 -25
  307. package/lib/components/title/title-2.d.ts +0 -18
  308. package/lib/components/title/title-2.js +0 -36
  309. package/lib/components/title/title-2.scss +0 -22
  310. package/lib/index.d.ts +0 -36
  311. package/lib/index.js +0 -73
  312. package/lib/index.scss +0 -6
  313. package/lib/style.js +0 -5
  314. package/lib/utils/children-node-handle.d.ts +0 -9
  315. package/lib/utils/children-node-handle.js +0 -32
  316. package/lib/utils/component-wrapper.d.ts +0 -9
  317. package/lib/utils/component-wrapper.js +0 -45
  318. package/lib/variables.d.ts +0 -2
  319. package/lib/variables.js +0 -5
  320. package/lib/variables.scss +0 -3
@@ -1,28 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["currentLocation", "clickHandle"];
4
- import * as React from 'react';
5
- import "./index.scss";
6
- import arror from "../../assets/icon/position/arror.png";
7
- var NavigationLeft = function navigationLeft(_ref) {
8
- var currentLocation = _ref.currentLocation,
9
- clickHandle = _ref.clickHandle,
10
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
11
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", _extends({
12
- className: "location"
13
- }, otherProps, {
14
- onClick: function onClick() {
15
- return clickHandle();
16
- }
17
- }), /*#__PURE__*/React.createElement("div", {
18
- className: "location-address"
19
- }, currentLocation.address), /*#__PURE__*/React.createElement("div", {
20
- className: "location-icon"
21
- }, /*#__PURE__*/React.createElement("img", {
22
- src: arror,
23
- width: "10",
24
- height: "5",
25
- alt: "icon"
26
- }))));
27
- };
28
- export default NavigationLeft;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- import { Location } from "./position";
4
- interface LocationProps {
5
- itemArray: Location[];
6
- currentLocation: Location;
7
- open: boolean;
8
- setIsOpen: () => void;
9
- setCurrent: (data: Location) => void;
10
- }
11
- declare const ContentList: React.FC<LocationProps>;
12
- export default ContentList;
@@ -1,30 +0,0 @@
1
- import * as React from 'react';
2
- import "./index.scss";
3
- var ContentList = function navigationList(_ref) {
4
- var open = _ref.open,
5
- itemArray = _ref.itemArray,
6
- currentLocation = _ref.currentLocation,
7
- setIsOpen = _ref.setIsOpen,
8
- setCurrent = _ref.setCurrent;
9
- var changeHandle = function changeHandle(position) {
10
- console.log('changeHandle', position);
11
- // 设置当前选中位置
12
- setCurrent(position);
13
- // 关闭位置列表
14
- setIsOpen();
15
- };
16
- return /*#__PURE__*/React.createElement("div", {
17
- className: "location-list",
18
- style: {
19
- display: open ? 'block' : 'none'
20
- }
21
- }, itemArray.map(function (item) {
22
- return /*#__PURE__*/React.createElement("div", {
23
- onClick: function onClick() {
24
- return changeHandle(item);
25
- },
26
- className: "location-list-item"
27
- }, item.address);
28
- }));
29
- };
30
- export default ContentList;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { Location } from "./entity";
3
- export interface LocationProps {
4
- itemArray: Location[];
5
- defaultLocation: Location;
6
- }
7
- declare const Navigation: React.FC<LocationProps>;
8
- export default Navigation;
@@ -1,48 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["itemArray", "defaultLocation", "__designMode"];
4
- import * as React from 'react';
5
- import { default as List } from "./position-list";
6
- import { default as Position } from "./position-left";
7
- var Navigation = function bottomNavigation(_ref) {
8
- var itemArray = _ref.itemArray,
9
- defaultLocation = _ref.defaultLocation,
10
- __designMode = _ref.__designMode,
11
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
12
- var _React$useState = React.useState(defaultLocation),
13
- current = _React$useState[0],
14
- _setCurrent = _React$useState[1];
15
- var _React$useState2 = React.useState(false),
16
- isOpen = _React$useState2[0],
17
- setIsOpen = _React$useState2[1];
18
- var openList = function openList() {
19
- if (__designMode == 'design') {
20
- // 设计态不打开列表
21
- return;
22
- }
23
- setIsOpen(!isOpen);
24
- console.log('isopen', isOpen);
25
- };
26
- // React.useEffect(() => {
27
- // console.log('defaultLocation', defaultLocation)
28
- // if (defaultLocation) {
29
- // setCurrent(defaultLocation)
30
- // }
31
- // })
32
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Position, _extends({
33
- currentLocation: current
34
- }, otherProps, {
35
- clickHandle: function clickHandle() {
36
- return openList();
37
- }
38
- })), /*#__PURE__*/React.createElement(List, {
39
- open: isOpen,
40
- currentLocation: current,
41
- itemArray: itemArray,
42
- setIsOpen: openList,
43
- setCurrent: function setCurrent(value) {
44
- return _setCurrent(value);
45
- }
46
- }));
47
- };
48
- export default Navigation;
@@ -1,3 +0,0 @@
1
- import SearchBar from "./search-bar";
2
- export type { SearchBarProps } from './search-bar';
3
- export default SearchBar;
@@ -1,2 +0,0 @@
1
- import SearchBar from "./search-bar";
2
- export default SearchBar;
@@ -1,6 +0,0 @@
1
- .search-bar-box {
2
- width: 260px;
3
- .next-search {
4
- width: 260px;
5
- }
6
- }
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export interface SearchBarProps {
3
- defaultValue: string;
4
- onSearch: () => void;
5
- }
6
- declare const SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<any>>;
7
- export default SearchBar;
@@ -1,21 +0,0 @@
1
- import _Search from "@alifd/next/es/search";
2
- import * as React from 'react';
3
- import { forwardRef } from "react";
4
- var ExampleComponent = function ExampleComponent(props, ref) {
5
- var defaultValue = props.defaultValue,
6
- onSearch = props.onSearch;
7
- return /*#__PURE__*/React.createElement("div", {
8
- ref: ref,
9
- className: "search-bar-box",
10
- onClick: function onClick() {
11
- onSearch();
12
- }
13
- }, /*#__PURE__*/React.createElement(_Search, {
14
- size: "medium",
15
- shape: "simple",
16
- placeholder: defaultValue
17
- }));
18
- };
19
- var SearchBar = /*#__PURE__*/forwardRef(ExampleComponent);
20
- SearchBar.displayName = 'SearchBar';
21
- export default SearchBar;
@@ -1,6 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tab from './tab';
5
- export type { TabProps } from './tab';
6
- export default Tab;
@@ -1,5 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tab from "./tab";
5
- export default Tab;
@@ -1,21 +0,0 @@
1
- .tabs__container {
2
- display: inline-block;
3
- padding: 7px 15px;
4
- border-radius: 14px;
5
- background-color: #FFFFFF;
6
- color: #666666;
7
- font-size: 15px;
8
- cursor: pointer;
9
- &--selected {
10
- background-color: #ED794A;
11
- color: #FFFFFF;
12
- }
13
- &--small {
14
- padding: 7px 15px;
15
- border-radius: 14px;
16
- }
17
- &--large {
18
- padding: 14px 30px;
19
- border-radius: 28px;
20
- }
21
- }
@@ -1,23 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface TabProps {
4
- /**
5
- * 选中背景颜色
6
- */
7
- selectedBGColor: string;
8
- /**
9
- * 选中字体颜色
10
- */
11
- selectedFontColor: string;
12
- /**
13
- * 尺寸 small | large
14
- */
15
- size: string;
16
- /**
17
- * 点击事件
18
- * @param e
19
- */
20
- onClickHandle?: (e: string) => void;
21
- }
22
- declare const Tab: React.FC<TabProps>;
23
- export default Tab;
@@ -1,46 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["selectedBGColor", "selectedFontColor", "size", "onClickHandle"];
4
- import * as React from 'react';
5
- import "./index.scss";
6
- var Tab = function Tab(_ref) {
7
- var selectedBGColor = _ref.selectedBGColor,
8
- selectedFontColor = _ref.selectedFontColor,
9
- size = _ref.size,
10
- onClickHandle = _ref.onClickHandle,
11
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
12
- var tabList = [{
13
- key: 'all',
14
- label: '全部'
15
- }, {
16
- key: 'read',
17
- label: '已读'
18
- }, {
19
- key: 'unRead',
20
- label: '未读'
21
- }];
22
- var _React$useState = React.useState('all'),
23
- tab = _React$useState[0],
24
- setTab = _React$useState[1];
25
- var handleClick = function handleClick(key) {
26
- console.log(key);
27
- // 切换tab
28
- setTab(key);
29
- // 触发父组件传递的点击处理函数
30
- onClickHandle && onClickHandle(key);
31
- };
32
- return tabList.map(function (item) {
33
- return /*#__PURE__*/React.createElement("span", _extends({
34
- className: "tabs__container\n " + (tab === item.key ? 'tabs__container--selected' : '') + "\n " + (size == 'large' ? 'tabs__container--large' : 'tabs__container--small')
35
- }, otherProps, {
36
- onClick: function onClick() {
37
- return handleClick(item.key);
38
- },
39
- style: {
40
- backgroundColor: tab === item.key ? selectedBGColor : '',
41
- color: tab === item.key ? selectedFontColor : ''
42
- }
43
- }), item.label);
44
- });
45
- };
46
- export default Tab;
@@ -1,3 +0,0 @@
1
- import { TabContainer } from '../tab-container/tab-container';
2
- export type { TabContainerProps } from '../tab-container/tab-container';
3
- export default TabContainer;
@@ -1,2 +0,0 @@
1
- import { TabContainer } from "../tab-container/tab-container";
2
- export default TabContainer;
@@ -1,17 +0,0 @@
1
- .fusion-ui-tab {
2
- display: block;
3
- background-color: #fff;
4
-
5
- &.next-medium {
6
- .next-tabs-content {
7
- padding: 16px;
8
- }
9
- }
10
-
11
- &.next-small {
12
- .next-tabs-content {
13
- padding: 12px;
14
- }
15
- }
16
- }
17
-
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Tab } from '@alifd/next';
3
- export interface TabContainerProps extends React.ComponentProps<typeof Tab> {
4
- className?: string;
5
- }
6
- export declare const TabContainer: {
7
- (props: TabContainerProps): JSX.Element;
8
- displayName: string;
9
- };
@@ -1,14 +0,0 @@
1
- import _Tab from "@alifd/next/es/tab";
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
- var _excluded = ["className"];
5
- import React from 'react';
6
- import cx from 'classnames';
7
- export var TabContainer = function TabContainer(props) {
8
- var className = props.className,
9
- restProps = _objectWithoutPropertiesLoose(props, _excluded);
10
- return /*#__PURE__*/React.createElement(_Tab, _extends({
11
- className: cx(className, 'fusion-ui-tab')
12
- }, restProps));
13
- };
14
- TabContainer.displayName = 'TabContainer';
@@ -1,3 +0,0 @@
1
- import { TabContainerItem } from './tab-container-item';
2
- export type { TabContainerItemProps } from './tab-container-item';
3
- export default TabContainerItem;
@@ -1,2 +0,0 @@
1
- import { TabContainerItem } from "./tab-container-item";
2
- export default TabContainerItem;
File without changes
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Tab } from '@alifd/next';
3
- export interface TabContainerItemProps extends React.ComponentProps<typeof Tab> {
4
- className?: string;
5
- }
6
- export declare const TabContainerItem: {
7
- (props: TabContainerItemProps): JSX.Element;
8
- displayName: string;
9
- };
@@ -1,14 +0,0 @@
1
- import _Tab from "@alifd/next/es/tab";
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
- var _excluded = ["className"];
5
- import React from 'react';
6
- import cx from 'classnames';
7
- export var TabContainerItem = function TabContainerItem(props) {
8
- var className = props.className,
9
- restProps = _objectWithoutPropertiesLoose(props, _excluded);
10
- return /*#__PURE__*/React.createElement(_Tab.Item, _extends({
11
- className: cx(className, 'fusion-ui-tab')
12
- }, restProps));
13
- };
14
- TabContainerItem.displayName = 'TabContainerItem';
@@ -1,6 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tag from './tag';
5
- export type { TagProps } from './tag';
6
- export default Tag;
@@ -1,5 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tag from "./tag";
5
- export default Tag;
@@ -1,16 +0,0 @@
1
- .tags__container {
2
- padding: 2px 6px;
3
- border-radius: 4px;
4
- color: white;
5
- font-size: 11px;
6
-
7
- }
8
- .orange {
9
- color: #F1770E;
10
- background-color: rgba(241, 119, 14, 0.1);
11
- }
12
-
13
- .blue {
14
- color: #2972DD;
15
- background-color: rgba(41, 114, 221, 0.1);
16
- }
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface TagProps {
4
- /**
5
- * 标签名称
6
- */
7
- name: string;
8
- /**
9
- * 标签颜色
10
- */
11
- color: string;
12
- }
13
- declare const Tag: React.FC<TagProps>;
14
- export default Tag;
@@ -1,14 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["name", "color"];
4
- import * as React from 'react';
5
- import "./index.scss";
6
- var Tag = function Tag(_ref) {
7
- var name = _ref.name,
8
- color = _ref.color,
9
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
10
- return /*#__PURE__*/React.createElement("span", _extends({
11
- className: "tags__container " + (color ? color : '')
12
- }, otherProps), name);
13
- };
14
- export default Tag;
@@ -1,6 +0,0 @@
1
- /**
2
- * 图文列表
3
- */
4
- import TeletextList from './teletext-list';
5
- export type { TeletextListProps } from './teletext-list';
6
- export { TeletextList, };
@@ -1,6 +0,0 @@
1
- /**
2
- * 图文列表
3
- */
4
-
5
- import TeletextList from "./teletext-list";
6
- export { TeletextList };
@@ -1,17 +0,0 @@
1
- @import '../../variables.scss';
2
-
3
- .teletext-list__panel {
4
- display: flex;
5
- flex-direction: column;
6
- gap: 10px;
7
- padding: 0 12px;
8
-
9
- .teletext-list__panel__item-list {
10
- display: flex;
11
- flex-direction: column;
12
- gap: 10px;
13
- }
14
-
15
- }
16
-
17
-
@@ -1,42 +0,0 @@
1
- import React from 'react';
2
- import './teletext-list-item.scss';
3
- /**
4
- * 数据
5
- */
6
- export 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
- }[] | string;
40
- }
41
- declare const TeletextListItem: React.FC<TeletextListItemProps>;
42
- export default TeletextListItem;
@@ -1,48 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["onClick", "title", "image", "children", "imagePlacement", "description", "tags"];
4
- import React from 'react';
5
- import "./teletext-list-item.scss";
6
- import { convertChildren } from "../../utils/children-node-handle";
7
-
8
- /**
9
- * 数据
10
- */
11
-
12
- var TeletextListItem = function TeletextListItem(_ref) {
13
- var _ref$onClick = _ref.onClick,
14
- onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
15
- title = _ref.title,
16
- image = _ref.image,
17
- children = _ref.children,
18
- imagePlacement = _ref.imagePlacement,
19
- description = _ref.description,
20
- tags = _ref.tags,
21
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
22
- var _otherProps = otherProps || {};
23
- return /*#__PURE__*/React.createElement("div", _extends({
24
- className: "teletext-list__panel__item",
25
- onClick: onClick
26
- }, _otherProps), image && imagePlacement === 'left' ? convertChildren(children, 'image', {
27
- src: image,
28
- className: 'teletext-list__panel__item_image'
29
- }) : null, /*#__PURE__*/React.createElement("div", {
30
- className: "teletext-list__panel__item__text"
31
- }, convertChildren(children, 'title', {
32
- children: [title]
33
- }), convertChildren(children, 'content', {
34
- children: [description]
35
- }), tags ? /*#__PURE__*/React.createElement("div", {
36
- className: "teletext-list__panel__item__text__tags"
37
- }, (Array.isArray(tags) ? tags : tags.split(',')).map(function (tag, tagIndex) {
38
- return convertChildren(children, 'teletext-tagc-1', {
39
- name: tag.name,
40
- key: tagIndex
41
- });
42
- })) : null), image && imagePlacement === 'right' ? convertChildren(children, 'image', {
43
- src: image,
44
- className: 'teletext-list__panel__item_image'
45
- }) : null);
46
- };
47
- TeletextListItem.displayName = 'TeletextListItem';
48
- export default TeletextListItem;
@@ -1,74 +0,0 @@
1
- @import '../../variables.scss';
2
-
3
- .teletext-list__panel__item {
4
- display: flex;
5
- gap: 5px;
6
- padding-bottom: 10px;
7
- justify-content: flex-start;
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
- }