@dckj-npm/dc-material 0.1.11 → 0.1.13

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 (212) hide show
  1. package/README.md +17 -17
  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 +1 -1
  8. package/build/lowcode/render/default/view.css +1 -1
  9. package/build/lowcode/render/default/view.js +2 -2
  10. package/build/lowcode/view.css +1 -1
  11. package/build/lowcode/view.js +1 -1
  12. package/lowcode/d-c-slider/meta.ts +1 -15
  13. package/lowcode/position/meta.ts +211 -211
  14. package/lowcode/search-bar/meta.ts +4 -4
  15. package/lowcode/tag-c/meta.ts +75 -75
  16. package/lowcode_es/d-c-slider/meta.d.ts +1 -13
  17. package/lowcode_es/d-c-slider/meta.js +1 -16
  18. package/lowcode_es/meta.js +11 -11
  19. package/lowcode_es/search-bar/meta.js +4 -4
  20. package/lowcode_es/view.js +3 -3
  21. package/lowcode_lib/d-c-slider/meta.d.ts +1 -13
  22. package/lowcode_lib/d-c-slider/meta.js +1 -16
  23. package/lowcode_lib/meta.js +11 -11
  24. package/lowcode_lib/search-bar/meta.js +4 -4
  25. package/lowcode_lib/view.js +2 -2
  26. package/package.json +3 -3
  27. package/build/index.css +0 -2
  28. package/build/index.html +0 -1
  29. package/build/index.js +0 -60
  30. package/dist/BizComps.css +0 -1
  31. package/dist/BizComps.js +0 -7
  32. package/dist/BizComps.js.map +0 -1
  33. package/es/assets/icon/navigation/index-selected.png +0 -0
  34. package/es/assets/icon/navigation/index.png +0 -0
  35. package/es/assets/icon/navigation/message-selected.png +0 -0
  36. package/es/assets/icon/navigation/message.png +0 -0
  37. package/es/assets/icon/navigation/mine-selected.png +0 -0
  38. package/es/assets/icon/navigation/mine.png +0 -0
  39. package/es/assets/icon/position/arror.png +0 -0
  40. package/es/components/bottom-navigation/bottom-navigation.d.ts +0 -13
  41. package/es/components/bottom-navigation/bottom-navigation.js +0 -39
  42. package/es/components/bottom-navigation/index.d.ts +0 -3
  43. package/es/components/bottom-navigation/index.js +0 -2
  44. package/es/components/bottom-navigation/index.scss +0 -19
  45. package/es/components/colorful-button/colorful-button.d.ts +0 -12
  46. package/es/components/colorful-button/colorful-button.js +0 -25
  47. package/es/components/colorful-button/index.d.ts +0 -3
  48. package/es/components/colorful-button/index.js +0 -2
  49. package/es/components/colorful-button/index.scss +0 -5
  50. package/es/components/colorful-input/colorful-input.d.ts +0 -8
  51. package/es/components/colorful-input/colorful-input.js +0 -19
  52. package/es/components/colorful-input/index.d.ts +0 -3
  53. package/es/components/colorful-input/index.js +0 -2
  54. package/es/components/colorful-input/index.scss +0 -5
  55. package/es/components/dc-slider/index.d.ts +0 -3
  56. package/es/components/dc-slider/index.js +0 -2
  57. package/es/components/dc-slider/index.scss +0 -8
  58. package/es/components/dc-slider/slider.d.ts +0 -32
  59. package/es/components/dc-slider/slider.js +0 -14
  60. package/es/components/grid-nav/grid-nav.d.ts +0 -13
  61. package/es/components/grid-nav/grid-nav.js +0 -91
  62. package/es/components/grid-nav/index.d.ts +0 -3
  63. package/es/components/grid-nav/index.js +0 -2
  64. package/es/components/grid-nav/index.scss +0 -36
  65. package/es/components/menu-list/index.d.ts +0 -6
  66. package/es/components/menu-list/index.js +0 -6
  67. package/es/components/menu-list/index.scss +0 -16
  68. package/es/components/menu-list/menu-list-item.d.ts +0 -5
  69. package/es/components/menu-list/menu-list-item.js +0 -32
  70. package/es/components/menu-list/menu-list-item.scss +0 -49
  71. package/es/components/menu-list/menu-list.d.ts +0 -5
  72. package/es/components/menu-list/menu-list.js +0 -25
  73. package/es/components/menu-list/types.d.ts +0 -23
  74. package/es/components/menu-list/types.js +0 -1
  75. package/es/components/position/entity.d.ts +0 -5
  76. package/es/components/position/entity.js +0 -1
  77. package/es/components/position/index.d.ts +0 -3
  78. package/es/components/position/index.js +0 -2
  79. package/es/components/position/index.scss +0 -21
  80. package/es/components/position/position-left.d.ts +0 -9
  81. package/es/components/position/position-left.js +0 -28
  82. package/es/components/position/position-list.d.ts +0 -12
  83. package/es/components/position/position-list.js +0 -30
  84. package/es/components/position/position.d.ts +0 -8
  85. package/es/components/position/position.js +0 -47
  86. package/es/components/search-bar/index.d.ts +0 -3
  87. package/es/components/search-bar/index.js +0 -2
  88. package/es/components/search-bar/index.scss +0 -3
  89. package/es/components/search-bar/search-bar.d.ts +0 -7
  90. package/es/components/search-bar/search-bar.js +0 -21
  91. package/es/components/tag/index.d.ts +0 -6
  92. package/es/components/tag/index.js +0 -5
  93. package/es/components/tag/index.scss +0 -17
  94. package/es/components/tag/tag.d.ts +0 -14
  95. package/es/components/tag/tag.js +0 -14
  96. package/es/components/teletext-list/index.d.ts +0 -6
  97. package/es/components/teletext-list/index.js +0 -6
  98. package/es/components/teletext-list/index.scss +0 -16
  99. package/es/components/teletext-list/teletext-list-item.d.ts +0 -42
  100. package/es/components/teletext-list/teletext-list-item.js +0 -35
  101. package/es/components/teletext-list/teletext-list-item.scss +0 -74
  102. package/es/components/teletext-list/teletext-list.d.ts +0 -57
  103. package/es/components/teletext-list/teletext-list.js +0 -75
  104. package/es/components/title/index.d.ts +0 -8
  105. package/es/components/title/index.js +0 -7
  106. package/es/components/title/title-1.d.ts +0 -10
  107. package/es/components/title/title-1.js +0 -16
  108. package/es/components/title/title-1.scss +0 -25
  109. package/es/components/title/title-2.d.ts +0 -18
  110. package/es/components/title/title-2.js +0 -31
  111. package/es/components/title/title-2.scss +0 -22
  112. package/es/index.d.ts +0 -22
  113. package/es/index.js +0 -12
  114. package/es/index.scss +0 -5
  115. package/es/style.js +0 -4
  116. package/es/utils/children-node-handle.d.ts +0 -6
  117. package/es/utils/children-node-handle.js +0 -23
  118. package/es/utils/component-wrapper.d.ts +0 -9
  119. package/es/utils/component-wrapper.js +0 -38
  120. package/es/variables.d.ts +0 -2
  121. package/es/variables.js +0 -2
  122. package/es/variables.scss +0 -3
  123. package/lib/assets/icon/navigation/index-selected.png +0 -0
  124. package/lib/assets/icon/navigation/index.png +0 -0
  125. package/lib/assets/icon/navigation/message-selected.png +0 -0
  126. package/lib/assets/icon/navigation/message.png +0 -0
  127. package/lib/assets/icon/navigation/mine-selected.png +0 -0
  128. package/lib/assets/icon/navigation/mine.png +0 -0
  129. package/lib/assets/icon/position/arror.png +0 -0
  130. package/lib/components/bottom-navigation/bottom-navigation.d.ts +0 -13
  131. package/lib/components/bottom-navigation/bottom-navigation.js +0 -46
  132. package/lib/components/bottom-navigation/index.d.ts +0 -3
  133. package/lib/components/bottom-navigation/index.js +0 -7
  134. package/lib/components/bottom-navigation/index.scss +0 -19
  135. package/lib/components/colorful-button/colorful-button.d.ts +0 -12
  136. package/lib/components/colorful-button/colorful-button.js +0 -32
  137. package/lib/components/colorful-button/index.d.ts +0 -3
  138. package/lib/components/colorful-button/index.js +0 -7
  139. package/lib/components/colorful-button/index.scss +0 -5
  140. package/lib/components/colorful-input/colorful-input.d.ts +0 -8
  141. package/lib/components/colorful-input/colorful-input.js +0 -26
  142. package/lib/components/colorful-input/index.d.ts +0 -3
  143. package/lib/components/colorful-input/index.js +0 -7
  144. package/lib/components/colorful-input/index.scss +0 -5
  145. package/lib/components/dc-slider/index.d.ts +0 -3
  146. package/lib/components/dc-slider/index.js +0 -7
  147. package/lib/components/dc-slider/index.scss +0 -8
  148. package/lib/components/dc-slider/slider.d.ts +0 -32
  149. package/lib/components/dc-slider/slider.js +0 -21
  150. package/lib/components/grid-nav/grid-nav.d.ts +0 -13
  151. package/lib/components/grid-nav/grid-nav.js +0 -98
  152. package/lib/components/grid-nav/index.d.ts +0 -3
  153. package/lib/components/grid-nav/index.js +0 -7
  154. package/lib/components/grid-nav/index.scss +0 -36
  155. package/lib/components/menu-list/index.d.ts +0 -6
  156. package/lib/components/menu-list/index.js +0 -10
  157. package/lib/components/menu-list/index.scss +0 -16
  158. package/lib/components/menu-list/menu-list-item.d.ts +0 -5
  159. package/lib/components/menu-list/menu-list-item.js +0 -37
  160. package/lib/components/menu-list/menu-list-item.scss +0 -49
  161. package/lib/components/menu-list/menu-list.d.ts +0 -5
  162. package/lib/components/menu-list/menu-list.js +0 -30
  163. package/lib/components/menu-list/types.d.ts +0 -23
  164. package/lib/components/menu-list/types.js +0 -3
  165. package/lib/components/position/entity.d.ts +0 -5
  166. package/lib/components/position/entity.js +0 -3
  167. package/lib/components/position/index.d.ts +0 -3
  168. package/lib/components/position/index.js +0 -7
  169. package/lib/components/position/index.scss +0 -21
  170. package/lib/components/position/position-left.d.ts +0 -9
  171. package/lib/components/position/position-left.js +0 -35
  172. package/lib/components/position/position-list.d.ts +0 -12
  173. package/lib/components/position/position-list.js +0 -36
  174. package/lib/components/position/position.d.ts +0 -8
  175. package/lib/components/position/position.js +0 -54
  176. package/lib/components/search-bar/index.d.ts +0 -3
  177. package/lib/components/search-bar/index.js +0 -7
  178. package/lib/components/search-bar/index.scss +0 -3
  179. package/lib/components/search-bar/search-bar.d.ts +0 -7
  180. package/lib/components/search-bar/search-bar.js +0 -28
  181. package/lib/components/tag/index.d.ts +0 -6
  182. package/lib/components/tag/index.js +0 -10
  183. package/lib/components/tag/index.scss +0 -17
  184. package/lib/components/tag/tag.d.ts +0 -14
  185. package/lib/components/tag/tag.js +0 -21
  186. package/lib/components/teletext-list/index.d.ts +0 -6
  187. package/lib/components/teletext-list/index.js +0 -10
  188. package/lib/components/teletext-list/index.scss +0 -16
  189. package/lib/components/teletext-list/teletext-list-item.d.ts +0 -42
  190. package/lib/components/teletext-list/teletext-list-item.js +0 -39
  191. package/lib/components/teletext-list/teletext-list-item.scss +0 -74
  192. package/lib/components/teletext-list/teletext-list.d.ts +0 -57
  193. package/lib/components/teletext-list/teletext-list.js +0 -79
  194. package/lib/components/title/index.d.ts +0 -8
  195. package/lib/components/title/index.js +0 -8
  196. package/lib/components/title/title-1.d.ts +0 -10
  197. package/lib/components/title/title-1.js +0 -21
  198. package/lib/components/title/title-1.scss +0 -25
  199. package/lib/components/title/title-2.d.ts +0 -18
  200. package/lib/components/title/title-2.js +0 -36
  201. package/lib/components/title/title-2.scss +0 -22
  202. package/lib/index.d.ts +0 -22
  203. package/lib/index.js +0 -25
  204. package/lib/index.scss +0 -5
  205. package/lib/style.js +0 -4
  206. package/lib/utils/children-node-handle.d.ts +0 -6
  207. package/lib/utils/children-node-handle.js +0 -28
  208. package/lib/utils/component-wrapper.d.ts +0 -9
  209. package/lib/utils/component-wrapper.js +0 -45
  210. package/lib/variables.d.ts +0 -2
  211. package/lib/variables.js +0 -5
  212. package/lib/variables.scss +0 -3
@@ -1,31 +0,0 @@
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
- 'backgroundColor': 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;
@@ -1,22 +0,0 @@
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 DELETED
@@ -1,22 +0,0 @@
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
- export type { MenuListDataProps, MenuListProps } from './components/menu-list';
6
- export { default as MenuList } from './components/menu-list';
7
- export type { TeletextListProps } from './components/teletext-list';
8
- export { default as TeletextList } from './components/teletext-list';
9
- export type { Title1Props } from './components/title';
10
- export { Title1 } from './components/title';
11
- export type { Title2Props } from './components/title';
12
- export { Title2 } from './components/title';
13
- export type { GridNavProps } from './components/grid-nav';
14
- export { default as GridNav } from './components/grid-nav';
15
- export type { SearchBarProps } from './components/search-bar';
16
- export { default as SearchBar } from './components/search-bar';
17
- export type { LocationProps } from './components/position';
18
- export { default as Position } from './components/position';
19
- export type { TagProps } from './components/tag';
20
- export { default as TagC } from './components/tag';
21
- declare const bizCssPrefix = "bizpack";
22
- export { bizCssPrefix };
package/es/index.js DELETED
@@ -1,12 +0,0 @@
1
- export { default as DCSlider } from "./components/dc-slider";
2
- export { default as Navigation } from "./components/bottom-navigation";
3
- export { default as MenuList } from "./components/menu-list";
4
- export { default as TeletextList } from "./components/teletext-list";
5
- export { Title1 } from "./components/title";
6
- export { Title2 } from "./components/title";
7
- export { default as GridNav } from "./components/grid-nav";
8
- export { default as SearchBar } from "./components/search-bar";
9
- export { default as Position } from "./components/position";
10
- export { default as TagC } from "./components/tag";
11
- var bizCssPrefix = 'bizpack';
12
- export { bizCssPrefix };
package/es/index.scss DELETED
@@ -1,5 +0,0 @@
1
- @import './components/colorful-button/index.scss';
2
- @import './components/colorful-input/index.scss';
3
- @import './components/teletext-list/index.scss';
4
- @import './components/grid-nav/index.scss';
5
- @import './components/search-bar/index.scss';
package/es/style.js DELETED
@@ -1,4 +0,0 @@
1
- import '@alifd/next/es/slider/style';
2
- import '@alilc/lowcode-materials/lib/style.js';
3
- import '@alifd/next/es/search/style';
4
- import './index.scss';
@@ -1,6 +0,0 @@
1
- /**
2
- * 从children数组中获取指定组件
3
- * @author ZhuGangMin
4
- * @date 2024-09-21 14:07:02
5
- */
6
- export declare function convertChildren(children: any, key: string): any;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * 从children数组中获取指定组件
4
- * @author ZhuGangMin
5
- * @date 2024-09-21 14:07:02
6
- */
7
- export function convertChildren(children, key) {
8
- var node;
9
- console.log('key', key);
10
- if (Array.isArray(children)) {
11
- for (var i = 0; i < children.length; i++) {
12
- var child = children[i];
13
- console.log('child', child);
14
- console.log('props', child.key);
15
- if (child.key === key) {
16
- node = /*#__PURE__*/React.cloneElement(child, child.props);
17
- break;
18
- }
19
- }
20
- }
21
- console.log('node', node);
22
- return node;
23
- }
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- export declare const ValueWrapper: (NextFormComponent: React.ElementType, displayName: string) => {
3
- (props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
4
- displayName: string;
5
- };
6
- export declare const DynamicPropWrapper: (prop: string, NextFormComponent: React.ElementType, displayName: string) => {
7
- (props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
8
- displayName: string;
9
- };
@@ -1,38 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["__designMode", "value", "defaultValue"],
4
- _excluded2 = ["__designMode"];
5
- import * as React from 'react';
6
- var createElement = React.createElement;
7
- export var ValueWrapper = function ValueWrapper(NextFormComponent, displayName) {
8
- var WrappedComponent = function WrappedComponent(props) {
9
- var __designMode = props.__designMode,
10
- value = props.value,
11
- defaultValue = props.defaultValue,
12
- otherProps = _objectWithoutPropertiesLoose(props, _excluded);
13
- var finalValue = __designMode === 'design' ? defaultValue : value;
14
- if (typeof finalValue !== 'undefined') {
15
- otherProps.value = finalValue;
16
- }
17
- return createElement(NextFormComponent, _extends({}, otherProps));
18
- };
19
- WrappedComponent.displayName = displayName;
20
- return WrappedComponent;
21
- };
22
- export var DynamicPropWrapper = function DynamicPropWrapper(prop, NextFormComponent, displayName) {
23
- var WrappedComponent = function WrappedComponent(props) {
24
- var dynamicProp = prop;
25
- var defaultDynamicProp = "default" + prop.slice(0, 1).toUpperCase() + prop.slice(1);
26
- var __designMode = props.__designMode,
27
- otherProps = _objectWithoutPropertiesLoose(props, _excluded2);
28
- var dynamicPropValueValue = props[dynamicProp];
29
- var defaultDynamicPropValue = props[defaultDynamicProp];
30
- var finalValue = __designMode === 'design' ? defaultDynamicPropValue : dynamicPropValueValue;
31
- if (typeof finalValue !== 'undefined') {
32
- otherProps[dynamicProp] = finalValue;
33
- }
34
- return createElement(NextFormComponent, _extends({}, otherProps));
35
- };
36
- WrappedComponent.displayName = displayName;
37
- return WrappedComponent;
38
- };
package/es/variables.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const bizCssPrefix = "bizpack";
2
- export { bizCssPrefix };
package/es/variables.js DELETED
@@ -1,2 +0,0 @@
1
- var bizCssPrefix = 'bizpack';
2
- export { bizCssPrefix };
package/es/variables.scss DELETED
@@ -1,3 +0,0 @@
1
- @import '~@alifd/next/variables.scss';
2
-
3
- $biz-css-prefix: '.bizpack';
Binary file
Binary file
@@ -1,13 +0,0 @@
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;
@@ -1,46 +0,0 @@
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 = _interopRequireWildcard(require("react"));
9
- var _lowcodeMaterials = require("@alilc/lowcode-materials");
10
- require("./index.scss");
11
- var _excluded = ["itemArray", "selectedColor"];
12
- 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); }
13
- 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; }
14
- var Navigation = function bottomNavigation(_ref) {
15
- var itemArray = _ref.itemArray,
16
- selectedColor = _ref.selectedColor,
17
- otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
18
- var _React$useState = React.useState(0),
19
- activeNum = _React$useState[0],
20
- setActiveNum = _React$useState[1];
21
- var clickHandle = function clickHandle(index) {
22
- // 更新激活tab
23
- setActiveNum(index);
24
- };
25
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
26
- className: "navigation-panel"
27
- }, otherProps), itemArray.map(function (item, index) {
28
- var _item$selectedIcon;
29
- return /*#__PURE__*/React.createElement("div", {
30
- className: "navigation-panel-item",
31
- onClick: function onClick() {
32
- return clickHandle(index);
33
- },
34
- style: {
35
- color: activeNum === index ? selectedColor !== null && selectedColor !== void 0 ? selectedColor : '#4598FF' : ''
36
- }
37
- }, /*#__PURE__*/React.createElement(_lowcodeMaterials.Image, {
38
- src: activeNum === index ? (_item$selectedIcon = item.selectedIcon) !== null && _item$selectedIcon !== void 0 ? _item$selectedIcon : item.icon : item.icon,
39
- style: {
40
- width: '24.5px',
41
- height: '24.5px'
42
- }
43
- }), /*#__PURE__*/React.createElement("span", null, item.text));
44
- }));
45
- };
46
- var _default = exports["default"] = Navigation;
@@ -1,3 +0,0 @@
1
- import Navigation from './bottom-navigation';
2
- export type { NavigationProps } from './bottom-navigation';
3
- export default Navigation;
@@ -1,7 +0,0 @@
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"];
@@ -1,19 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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;
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
7
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
9
- var React = _interopRequireWildcard(require("react"));
10
- require("./index.scss");
11
- var _excluded = ["type", "color", "style"];
12
- 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); }
13
- 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; }
14
- var ColorfulButton = function ColorfulButton(_ref) {
15
- var _ref$type = _ref.type,
16
- type = _ref$type === void 0 ? 'primary' : _ref$type,
17
- color = _ref.color,
18
- _ref$style = _ref.style,
19
- style = _ref$style === void 0 ? {} : _ref$style,
20
- otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
21
- var _style = style || {};
22
- if (color) {
23
- _style.backgroundColor = color;
24
- }
25
- var _otherProps = otherProps || {};
26
- _otherProps.style = _style;
27
- return /*#__PURE__*/React.createElement(_button["default"], (0, _extends2["default"])({
28
- type: type
29
- }, _otherProps), "fusion button");
30
- };
31
- ColorfulButton.displayName = 'ColorfulButton';
32
- var _default = exports["default"] = ColorfulButton;
@@ -1,3 +0,0 @@
1
- import ColorfulButton from './colorful-button';
2
- export type { ColorfulButtonProps } from './colorful-button';
3
- export default ColorfulButton;
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _colorfulButton = _interopRequireDefault(require("./colorful-button"));
7
- var _default = exports["default"] = _colorfulButton["default"];
@@ -1,5 +0,0 @@
1
- @import '../../variables.scss';
2
-
3
- #{$biz-css-prefix}-colorful-button {
4
- border: 2px dashed blue;
5
- }
@@ -1,8 +0,0 @@
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;
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _input = _interopRequireDefault(require("@alifd/next/lib/input"));
7
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
8
- var React = _interopRequireWildcard(require("react"));
9
- require("./index.scss");
10
- var _excluded = ["color", "style"];
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 ColorfulInput = function ColorfulInput(_ref) {
14
- var color = _ref.color,
15
- _ref$style = _ref.style,
16
- style = _ref$style === void 0 ? {} : _ref$style,
17
- otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
18
- var _style = style || {};
19
- if (color) {
20
- _style.backgroundColor = color;
21
- }
22
- var _otherProps = otherProps || {};
23
- _otherProps.style = _style;
24
- return /*#__PURE__*/React.createElement(_input["default"], _otherProps);
25
- };
26
- var _default = exports["default"] = ColorfulInput;
@@ -1,3 +0,0 @@
1
- import ColorfulInput from './colorful-input';
2
- export type { ColorfulInputProps } from './colorful-input';
3
- export default ColorfulInput;
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _colorfulInput = _interopRequireDefault(require("./colorful-input"));
7
- var _default = exports["default"] = _colorfulInput["default"];
@@ -1,5 +0,0 @@
1
- @import '../../variables.scss';
2
-
3
- #{$biz-css-prefix}-colorful-button {
4
- border: 2px dashed blue;
5
- }
@@ -1,3 +0,0 @@
1
- import DCSlider from './slider';
2
- export type { ComponentProps } from './slider';
3
- export default DCSlider;
@@ -1,7 +0,0 @@
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"];
@@ -1,8 +0,0 @@
1
- /* write style here */
2
- .ExampleComponent {
3
-
4
- }
5
- .img{
6
- width: 100%;
7
- height: 100%;
8
- }
@@ -1,32 +0,0 @@
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;
@@ -1,21 +0,0 @@
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", props, /*#__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;
@@ -1,13 +0,0 @@
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;
@@ -1,98 +0,0 @@
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 _react = _interopRequireWildcard(require("react"));
8
- var React = _react;
9
- 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); }
10
- 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; }
11
- var ExampleComponent = function ExampleComponent(props, ref) {
12
- var columns = props.columns,
13
- _props$iconSize = props.iconSize,
14
- iconSize = _props$iconSize === void 0 ? 'medium' : _props$iconSize,
15
- _props$fontWeight = props.fontWeight,
16
- fontWeight = _props$fontWeight === void 0 ? 'normal' : _props$fontWeight,
17
- _props$fontSize = props.fontSize,
18
- fontSize = _props$fontSize === void 0 ? 14 : _props$fontSize,
19
- _props$fontColor = props.fontColor,
20
- fontColor = _props$fontColor === void 0 ? '#333' : _props$fontColor,
21
- _props$lineHeight = props.lineHeight,
22
- lineHeight = _props$lineHeight === void 0 ? 'auto' : _props$lineHeight,
23
- _props$lineNum = props.lineNum,
24
- lineNum = _props$lineNum === void 0 ? 1 : _props$lineNum,
25
- dataSourceSetting = props.dataSourceSetting;
26
- console.log('dataSourceSetting的值为', dataSourceSetting);
27
-
28
- // 设置图标尺寸
29
- var iconStyle = {};
30
- switch (iconSize) {
31
- case 'large':
32
- iconStyle = {
33
- width: '64px',
34
- height: '64px'
35
- };
36
- break;
37
- case 'medium':
38
- iconStyle = {
39
- width: '48px',
40
- height: '48px'
41
- };
42
- break;
43
- case 'small':
44
- iconStyle = {
45
- width: '32px',
46
- height: '32px'
47
- };
48
- break;
49
- default:
50
- iconStyle = {
51
- width: '48px',
52
- height: '48px'
53
- };
54
- }
55
-
56
- // 设置字重
57
- var fontStyle = {
58
- fontWeight: fontWeight,
59
- fontSize: fontSize,
60
- color: fontColor,
61
- lineHeight: lineHeight
62
- };
63
-
64
- // 设置行数
65
- var fontLineStyle = {};
66
- fontLineStyle = {
67
- maxWidth: '80px',
68
- overflow: 'hidden',
69
- // whiteSpace: lineNum === 1 ? 'nowrap' : 'none',
70
- textOverflow: 'ellipsis',
71
- display: '-webkit-box',
72
- WebkitLineClamp: lineNum,
73
- WebkitBoxOrient: 'vertical'
74
- };
75
- var fontAllStyle = (0, _extends2["default"])({}, fontStyle, fontLineStyle);
76
- return /*#__PURE__*/React.createElement("div", {
77
- ref: ref,
78
- className: "grid-navigation",
79
- style: {
80
- gridTemplateColumns: "repeat(" + columns + ", 1fr)"
81
- }
82
- }, dataSourceSetting.map(function (item, index) {
83
- return item ? /*#__PURE__*/React.createElement("a", {
84
- key: index,
85
- href: item.link || '#',
86
- className: "grid-item"
87
- }, /*#__PURE__*/React.createElement("img", {
88
- src: item.icon || 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png',
89
- alt: item.title || '导航',
90
- style: iconStyle
91
- }), /*#__PURE__*/React.createElement("span", {
92
- style: fontAllStyle
93
- }, item.title || '无标题')) : null;
94
- }));
95
- };
96
- var GridNav = /*#__PURE__*/(0, _react.forwardRef)(ExampleComponent);
97
- GridNav.displayName = 'GridNav';
98
- var _default = exports["default"] = GridNav;
@@ -1,3 +0,0 @@
1
- import GridNav from "./grid-nav";
2
- export type { GridNavProps } from './grid-nav';
3
- export default GridNav;