@luck-design-biz/luckda 0.0.26-2 → 0.0.26-3

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 (260) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/es/components/Builder/index.js +0 -0
  4. package/es/components/LdAutoForm/index.js +0 -0
  5. package/es/components/LdCard/index.js +0 -0
  6. package/es/components/LdCard/model.js +0 -0
  7. package/es/components/LdCom/index.js +0 -0
  8. package/es/components/LdFormList/index.js +0 -0
  9. package/es/components/LdFormList/model.js +0 -0
  10. package/es/components/LdGrid/index.js +0 -0
  11. package/es/components/LdGrid/model.js +0 -0
  12. package/es/components/LdGridForm/index.js +0 -0
  13. package/es/components/LdGridForm/index.less +0 -0
  14. package/es/components/LdInfoPanel/index.js +0 -0
  15. package/es/components/LdPop/index.js +0 -0
  16. package/es/components/LdRuntimeCom/index.js +0 -0
  17. package/es/components/LdTree/index.js +0 -0
  18. package/es/components/LdTree/index.less +0 -0
  19. package/es/helper/FromItems.js +0 -0
  20. package/es/helper/action.js +0 -0
  21. package/es/helper/form.js +0 -0
  22. package/es/helper/index.less +0 -0
  23. package/es/helper/ldBuilder.js +0 -0
  24. package/es/helper/ldComBuild.js +0 -0
  25. package/es/index.js +0 -0
  26. package/es/lowcode/constants/api-url.js +0 -0
  27. package/es/lowcode/constants/event-topics.js +0 -0
  28. package/es/lowcode/constants/index.js +0 -0
  29. package/es/lowcode/engine/factory/DataFactory.js +0 -0
  30. package/es/lowcode/engine/meta/button.props.default.json +0 -0
  31. package/es/lowcode/engine/meta/cardlist.props.default.json +0 -0
  32. package/es/lowcode/engine/meta/components/button.json +0 -0
  33. package/es/lowcode/engine/meta/components/card-list.json +0 -0
  34. package/es/lowcode/engine/meta/components/drawer.json +0 -0
  35. package/es/lowcode/engine/meta/components/form.json +0 -0
  36. package/es/lowcode/engine/meta/components/iframe.json +0 -0
  37. package/es/lowcode/engine/meta/components/image.json +0 -0
  38. package/es/lowcode/engine/meta/components/imex.json +0 -0
  39. package/es/lowcode/engine/meta/components/jsx.json +0 -0
  40. package/es/lowcode/engine/meta/components/layout.json +0 -0
  41. package/es/lowcode/engine/meta/components/link.json +0 -0
  42. package/es/lowcode/engine/meta/components/modal.json +0 -0
  43. package/es/lowcode/engine/meta/components/section.json +0 -0
  44. package/es/lowcode/engine/meta/components/split.json +0 -0
  45. package/es/lowcode/engine/meta/components/table.json +0 -0
  46. package/es/lowcode/engine/meta/components/tabs.json +0 -0
  47. package/es/lowcode/engine/meta/components/text.json +0 -0
  48. package/es/lowcode/engine/meta/components/tree.json +0 -0
  49. package/es/lowcode/engine/meta/components-list.json +0 -0
  50. package/es/lowcode/engine/meta/drawer.props.default.json +0 -0
  51. package/es/lowcode/engine/meta/form.props.default.json +0 -0
  52. package/es/lowcode/engine/meta/iframe.props.default.json +0 -0
  53. package/es/lowcode/engine/meta/image.props.default.json +0 -0
  54. package/es/lowcode/engine/meta/imex.props.default.json +0 -0
  55. package/es/lowcode/engine/meta/jsx.props.default.json +0 -0
  56. package/es/lowcode/engine/meta/layout.props.default.json +0 -0
  57. package/es/lowcode/engine/meta/link.props.default.json +0 -0
  58. package/es/lowcode/engine/meta/modal.props.default.json +0 -0
  59. package/es/lowcode/engine/meta/section.props.default.json +0 -0
  60. package/es/lowcode/engine/meta/split.props.default.json +0 -0
  61. package/es/lowcode/engine/meta/table.props.default.json +0 -0
  62. package/es/lowcode/engine/meta/tabs.props.default.json +0 -0
  63. package/es/lowcode/engine/meta/text.props.default.json +0 -0
  64. package/es/lowcode/engine/meta/tree.props.default.json +0 -0
  65. package/es/lowcode/engine/provider/ContextProvider.js +0 -0
  66. package/es/lowcode/engine/provider/EventBusProvider.js +0 -0
  67. package/es/lowcode/engine/tools/dataProcess.js +0 -0
  68. package/es/lowcode/engine/tools/helper.js +0 -0
  69. package/es/lowcode/engine/tools/lcid.js +0 -0
  70. package/es/lowcode/index.js +0 -0
  71. package/es/lowcode/painter/Components.js +0 -0
  72. package/es/lowcode/painter/Design.js +0 -0
  73. package/es/lowcode/painter/I18n.js +0 -0
  74. package/es/lowcode/painter/Outline.js +0 -0
  75. package/es/lowcode/painter/Panel.js +0 -0
  76. package/es/lowcode/painter/Ribbon.js +0 -0
  77. package/es/lowcode/painter/components/PanelItem.js +0 -0
  78. package/es/lowcode/painter/components/RuleInput.js +0 -0
  79. package/es/lowcode/painter/index.js +0 -0
  80. package/es/lowcode/painter/panel-section/LayoutRatio.js +0 -0
  81. package/es/lowcode/painter/panel-section/Radio.js +0 -0
  82. package/es/lowcode/painter/style/components.less +0 -0
  83. package/es/lowcode/painter/style/design.less +0 -0
  84. package/es/lowcode/painter/style/index.less +0 -0
  85. package/es/lowcode/painter/style/layout-ratio.less +0 -0
  86. package/es/lowcode/painter/style/outline.less +0 -0
  87. package/es/lowcode/painter/style/panel-item.less +0 -0
  88. package/es/lowcode/painter/style/panel.less +0 -0
  89. package/es/lowcode/painter/style/radio.less +0 -0
  90. package/es/lowcode/painter/style/ribbon.less +0 -0
  91. package/es/lowcode/painter/style/rule-input.less +0 -0
  92. package/es/lowcode/view/Canvas.js +0 -0
  93. package/es/lowcode/view/Loading.js +0 -0
  94. package/es/lowcode/view/Page.js +0 -0
  95. package/es/lowcode/view/index.js +0 -0
  96. package/es/lowcode/view/lc-components/Box/index.js +0 -0
  97. package/es/lowcode/view/lc-components/Button/index.js +0 -0
  98. package/es/lowcode/view/lc-components/CardList/index.js +0 -0
  99. package/es/lowcode/view/lc-components/Dialog/index.js +0 -0
  100. package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
  101. package/es/lowcode/view/lc-components/Drawer/index.js +0 -0
  102. package/es/lowcode/view/lc-components/Form/index.js +0 -0
  103. package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
  104. package/es/lowcode/view/lc-components/ImEx/index.js +0 -0
  105. package/es/lowcode/view/lc-components/Image/index.js +0 -0
  106. package/es/lowcode/view/lc-components/JSX/index.js +0 -0
  107. package/es/lowcode/view/lc-components/Layout/index.js +0 -0
  108. package/es/lowcode/view/lc-components/Link/index.js +0 -0
  109. package/es/lowcode/view/lc-components/Section/index.js +0 -0
  110. package/es/lowcode/view/lc-components/Split/index.js +0 -0
  111. package/es/lowcode/view/lc-components/Table/index.js +0 -0
  112. package/es/lowcode/view/lc-components/Tabs/index.js +0 -0
  113. package/es/lowcode/view/lc-components/Text/index.js +0 -0
  114. package/es/lowcode/view/lc-components/Tree/index.js +0 -0
  115. package/es/lowcode/view/lc-components/Wrapper.js +0 -0
  116. package/es/lowcode/view/style/canvas.less +0 -0
  117. package/es/lowcode/view/style/loading.less +0 -0
  118. package/es/lowcode/view/style/page.less +0 -0
  119. package/es/services.js +0 -0
  120. package/es/upload/Form/gridForm.js +3 -1
  121. package/es/upload/Form/index.js +0 -0
  122. package/es/upload/Form/index.less +0 -0
  123. package/es/upload/FormItem/index.js +5 -6
  124. package/es/upload/GridCell/index.js +0 -0
  125. package/es/upload/index.js +0 -0
  126. package/es/utils/action.js +0 -0
  127. package/es/utils/form.js +0 -0
  128. package/es/utils/grid.js +0 -0
  129. package/es/utils/index.js +0 -0
  130. package/lib/components/Builder/index.js +0 -0
  131. package/lib/components/LdAutoForm/index.js +0 -0
  132. package/lib/components/LdCard/index.js +0 -0
  133. package/lib/components/LdCard/model.js +0 -0
  134. package/lib/components/LdCom/index.js +0 -0
  135. package/lib/components/LdFormList/index.js +0 -0
  136. package/lib/components/LdFormList/model.js +0 -0
  137. package/lib/components/LdGrid/index.js +0 -0
  138. package/lib/components/LdGrid/model.js +0 -0
  139. package/lib/components/LdGridForm/index.js +0 -0
  140. package/lib/components/LdGridForm/index.less +0 -0
  141. package/lib/components/LdInfoPanel/index.js +0 -0
  142. package/lib/components/LdPop/index.js +0 -0
  143. package/lib/components/LdRuntimeCom/index.js +0 -0
  144. package/lib/components/LdTree/index.js +0 -0
  145. package/lib/components/LdTree/index.less +0 -0
  146. package/lib/helper/FromItems.js +0 -0
  147. package/lib/helper/action.js +0 -0
  148. package/lib/helper/form.js +0 -0
  149. package/lib/helper/index.less +0 -0
  150. package/lib/helper/ldBuilder.js +0 -0
  151. package/lib/helper/ldComBuild.js +0 -0
  152. package/lib/index.js +0 -0
  153. package/lib/lowcode/constants/api-url.js +0 -0
  154. package/lib/lowcode/constants/event-topics.js +0 -0
  155. package/lib/lowcode/constants/index.js +0 -0
  156. package/lib/lowcode/engine/factory/DataFactory.js +0 -0
  157. package/lib/lowcode/engine/meta/button.props.default.json +0 -0
  158. package/lib/lowcode/engine/meta/cardlist.props.default.json +0 -0
  159. package/lib/lowcode/engine/meta/components/button.json +0 -0
  160. package/lib/lowcode/engine/meta/components/card-list.json +0 -0
  161. package/lib/lowcode/engine/meta/components/drawer.json +0 -0
  162. package/lib/lowcode/engine/meta/components/form.json +0 -0
  163. package/lib/lowcode/engine/meta/components/iframe.json +0 -0
  164. package/lib/lowcode/engine/meta/components/image.json +0 -0
  165. package/lib/lowcode/engine/meta/components/imex.json +0 -0
  166. package/lib/lowcode/engine/meta/components/jsx.json +0 -0
  167. package/lib/lowcode/engine/meta/components/layout.json +0 -0
  168. package/lib/lowcode/engine/meta/components/link.json +0 -0
  169. package/lib/lowcode/engine/meta/components/modal.json +0 -0
  170. package/lib/lowcode/engine/meta/components/section.json +0 -0
  171. package/lib/lowcode/engine/meta/components/split.json +0 -0
  172. package/lib/lowcode/engine/meta/components/table.json +0 -0
  173. package/lib/lowcode/engine/meta/components/tabs.json +0 -0
  174. package/lib/lowcode/engine/meta/components/text.json +0 -0
  175. package/lib/lowcode/engine/meta/components/tree.json +0 -0
  176. package/lib/lowcode/engine/meta/components-list.json +0 -0
  177. package/lib/lowcode/engine/meta/drawer.props.default.json +0 -0
  178. package/lib/lowcode/engine/meta/form.props.default.json +0 -0
  179. package/lib/lowcode/engine/meta/iframe.props.default.json +0 -0
  180. package/lib/lowcode/engine/meta/image.props.default.json +0 -0
  181. package/lib/lowcode/engine/meta/imex.props.default.json +0 -0
  182. package/lib/lowcode/engine/meta/jsx.props.default.json +0 -0
  183. package/lib/lowcode/engine/meta/layout.props.default.json +0 -0
  184. package/lib/lowcode/engine/meta/link.props.default.json +0 -0
  185. package/lib/lowcode/engine/meta/modal.props.default.json +0 -0
  186. package/lib/lowcode/engine/meta/section.props.default.json +0 -0
  187. package/lib/lowcode/engine/meta/split.props.default.json +0 -0
  188. package/lib/lowcode/engine/meta/table.props.default.json +0 -0
  189. package/lib/lowcode/engine/meta/tabs.props.default.json +0 -0
  190. package/lib/lowcode/engine/meta/text.props.default.json +0 -0
  191. package/lib/lowcode/engine/meta/tree.props.default.json +0 -0
  192. package/lib/lowcode/engine/provider/ContextProvider.js +0 -0
  193. package/lib/lowcode/engine/provider/EventBusProvider.js +0 -0
  194. package/lib/lowcode/engine/tools/dataProcess.js +0 -0
  195. package/lib/lowcode/engine/tools/helper.js +0 -0
  196. package/lib/lowcode/engine/tools/lcid.js +0 -0
  197. package/lib/lowcode/index.js +0 -0
  198. package/lib/lowcode/painter/Components.js +0 -0
  199. package/lib/lowcode/painter/Design.js +0 -0
  200. package/lib/lowcode/painter/I18n.js +0 -0
  201. package/lib/lowcode/painter/Outline.js +0 -0
  202. package/lib/lowcode/painter/Panel.js +0 -0
  203. package/lib/lowcode/painter/Ribbon.js +0 -0
  204. package/lib/lowcode/painter/components/PanelItem.js +0 -0
  205. package/lib/lowcode/painter/components/RuleInput.js +0 -0
  206. package/lib/lowcode/painter/index.js +0 -0
  207. package/lib/lowcode/painter/panel-section/LayoutRatio.js +0 -0
  208. package/lib/lowcode/painter/panel-section/Radio.js +0 -0
  209. package/lib/lowcode/painter/style/components.less +0 -0
  210. package/lib/lowcode/painter/style/design.less +0 -0
  211. package/lib/lowcode/painter/style/index.less +0 -0
  212. package/lib/lowcode/painter/style/layout-ratio.less +0 -0
  213. package/lib/lowcode/painter/style/outline.less +0 -0
  214. package/lib/lowcode/painter/style/panel-item.less +0 -0
  215. package/lib/lowcode/painter/style/panel.less +0 -0
  216. package/lib/lowcode/painter/style/radio.less +0 -0
  217. package/lib/lowcode/painter/style/ribbon.less +0 -0
  218. package/lib/lowcode/painter/style/rule-input.less +0 -0
  219. package/lib/lowcode/view/Canvas.js +0 -0
  220. package/lib/lowcode/view/Loading.js +0 -0
  221. package/lib/lowcode/view/Page.js +0 -0
  222. package/lib/lowcode/view/index.js +0 -0
  223. package/lib/lowcode/view/lc-components/Box/index.js +0 -0
  224. package/lib/lowcode/view/lc-components/Button/index.js +0 -0
  225. package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
  226. package/lib/lowcode/view/lc-components/Dialog/index.js +0 -0
  227. package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
  228. package/lib/lowcode/view/lc-components/Drawer/index.js +0 -0
  229. package/lib/lowcode/view/lc-components/Form/index.js +0 -0
  230. package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
  231. package/lib/lowcode/view/lc-components/ImEx/index.js +0 -0
  232. package/lib/lowcode/view/lc-components/Image/index.js +0 -0
  233. package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
  234. package/lib/lowcode/view/lc-components/Layout/index.js +0 -0
  235. package/lib/lowcode/view/lc-components/Link/index.js +0 -0
  236. package/lib/lowcode/view/lc-components/Section/index.js +0 -0
  237. package/lib/lowcode/view/lc-components/Split/index.js +0 -0
  238. package/lib/lowcode/view/lc-components/Table/index.js +0 -0
  239. package/lib/lowcode/view/lc-components/Tabs/index.js +0 -0
  240. package/lib/lowcode/view/lc-components/Text/index.js +0 -0
  241. package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
  242. package/lib/lowcode/view/lc-components/Wrapper.js +0 -0
  243. package/lib/lowcode/view/style/canvas.less +0 -0
  244. package/lib/lowcode/view/style/loading.less +0 -0
  245. package/lib/lowcode/view/style/page.less +0 -0
  246. package/lib/services.js +0 -0
  247. package/lib/upload/Form/gridForm.js +3 -1
  248. package/lib/upload/Form/index.js +0 -0
  249. package/lib/upload/Form/index.less +0 -0
  250. package/lib/upload/FormItem/index.js +5 -6
  251. package/lib/upload/GridCell/index.js +0 -0
  252. package/lib/upload/index.js +0 -0
  253. package/lib/utils/action.js +0 -0
  254. package/lib/utils/form.js +0 -0
  255. package/lib/utils/grid.js +0 -0
  256. package/lib/utils/index.js +0 -0
  257. package/lowcode.js +0 -0
  258. package/package.json +1 -1
  259. package/upload.js +0 -0
  260. package/utils.js +0 -0
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/es/helper/form.js CHANGED
File without changes
File without changes
File without changes
File without changes
package/es/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/es/services.js CHANGED
File without changes
@@ -55,7 +55,8 @@ var UploadGridForm = function UploadGridForm(_ref) {
55
55
  operates = _ref$operates === void 0 ? ['read', 'add', 'delete', 'download'] : _ref$operates,
56
56
  loading = _ref.loading,
57
57
  uploadUrl = _ref.uploadUrl,
58
- supportTypes = _ref.supportTypes,
58
+ _ref$supportTypes = _ref.supportTypes,
59
+ supportTypes = _ref$supportTypes === void 0 ? [] : _ref$supportTypes,
59
60
  _ref$forbiddenTypes = _ref.forbiddenTypes,
60
61
  forbiddenTypes = _ref$forbiddenTypes === void 0 ? [] : _ref$forbiddenTypes,
61
62
  _beforeUpload = _ref.beforeUpload,
@@ -373,6 +374,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
373
374
  directory: false,
374
375
  num: 99,
375
376
  multiple: true,
377
+ autoUpload: false,
376
378
  beforeUpload: function beforeUpload(file, fileList) {
377
379
  return _beforeUpload2({
378
380
  file: file,
File without changes
File without changes
@@ -5,7 +5,6 @@ var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "
5
5
  import React from 'react';
6
6
  import { BasicFormItem } from 'luck-design';
7
7
  import { formatMessage, beforeUpload as _beforeUpload, getSupportUploadTypes } from '@luck-design-biz/base/utils';
8
- import { useCreation } from 'ahooks';
9
8
 
10
9
  /**
11
10
  * 表单类型富文本上传
@@ -35,8 +34,10 @@ function buildComponent(props) {
35
34
  note = _props$note === void 0 ? '' : _props$note,
36
35
  _props$config = props.config,
37
36
  config = _props$config === void 0 ? {} : _props$config,
38
- supportTypes = props.supportTypes,
39
- forbiddenTypes = props.forbiddenTypes,
37
+ _props$supportTypes = props.supportTypes,
38
+ supportTypes = _props$supportTypes === void 0 ? [] : _props$supportTypes,
39
+ _props$forbiddenTypes = props.forbiddenTypes,
40
+ forbiddenTypes = _props$forbiddenTypes === void 0 ? [] : _props$forbiddenTypes,
40
41
  children = props.children,
41
42
  dataFormat = props.dataFormat,
42
43
  listType = props.listType,
@@ -44,9 +45,7 @@ function buildComponent(props) {
44
45
  var getUrl = function getUrl(behaviorKey) {
45
46
  return "".concat(window.appConfig.OSS_HOST_V3, "?moduleCode=").concat(moduleCode, "&behaviorKey=").concat(behaviorKey, "&bucket=").concat(bucket, "&tag=").concat(tag, "&note=").concat(note);
46
47
  };
47
- var supportUploadTypes = useCreation(function () {
48
- return getSupportUploadTypes(forbiddenTypes, supportTypes);
49
- }, [forbiddenTypes, supportTypes]);
48
+ var supportUploadTypes = getSupportUploadTypes(forbiddenTypes, supportTypes);
50
49
  return /*#__PURE__*/React.createElement(BasicFormItem, _extends({
51
50
  extra: "".concat(formatMessage({
52
51
  id: 'app.upload.supportUpload',
File without changes
File without changes
File without changes
package/es/utils/form.js CHANGED
File without changes
package/es/utils/grid.js CHANGED
File without changes
package/es/utils/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/services.js CHANGED
File without changes
@@ -63,7 +63,8 @@ var UploadGridForm = function UploadGridForm(_ref) {
63
63
  operates = _ref$operates === void 0 ? ['read', 'add', 'delete', 'download'] : _ref$operates,
64
64
  loading = _ref.loading,
65
65
  uploadUrl = _ref.uploadUrl,
66
- supportTypes = _ref.supportTypes,
66
+ _ref$supportTypes = _ref.supportTypes,
67
+ supportTypes = _ref$supportTypes === void 0 ? [] : _ref$supportTypes,
67
68
  _ref$forbiddenTypes = _ref.forbiddenTypes,
68
69
  forbiddenTypes = _ref$forbiddenTypes === void 0 ? [] : _ref$forbiddenTypes,
69
70
  _beforeUpload = _ref.beforeUpload,
@@ -381,6 +382,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
381
382
  directory: false,
382
383
  num: 99,
383
384
  multiple: true,
385
+ autoUpload: false,
384
386
  beforeUpload: function beforeUpload(file, fileList) {
385
387
  return (0, _utils.beforeUpload)({
386
388
  file: file,
File without changes
File without changes
@@ -11,7 +11,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
  var _react = _interopRequireDefault(require("react"));
12
12
  var _luckDesign = require("luck-design");
13
13
  var _utils = require("@luck-design-biz/base/utils");
14
- var _ahooks = require("ahooks");
15
14
  var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "supportTypes", "forbiddenTypes", "children", "dataFormat", "listType"];
16
15
  /**
17
16
  * 表单类型富文本上传
@@ -41,8 +40,10 @@ function buildComponent(props) {
41
40
  note = _props$note === void 0 ? '' : _props$note,
42
41
  _props$config = props.config,
43
42
  config = _props$config === void 0 ? {} : _props$config,
44
- supportTypes = props.supportTypes,
45
- forbiddenTypes = props.forbiddenTypes,
43
+ _props$supportTypes = props.supportTypes,
44
+ supportTypes = _props$supportTypes === void 0 ? [] : _props$supportTypes,
45
+ _props$forbiddenTypes = props.forbiddenTypes,
46
+ forbiddenTypes = _props$forbiddenTypes === void 0 ? [] : _props$forbiddenTypes,
46
47
  children = props.children,
47
48
  dataFormat = props.dataFormat,
48
49
  listType = props.listType,
@@ -50,9 +51,7 @@ function buildComponent(props) {
50
51
  var getUrl = function getUrl(behaviorKey) {
51
52
  return "".concat(window.appConfig.OSS_HOST_V3, "?moduleCode=").concat(moduleCode, "&behaviorKey=").concat(behaviorKey, "&bucket=").concat(bucket, "&tag=").concat(tag, "&note=").concat(note);
52
53
  };
53
- var supportUploadTypes = (0, _ahooks.useCreation)(function () {
54
- return (0, _utils.getSupportUploadTypes)(forbiddenTypes, supportTypes);
55
- }, [forbiddenTypes, supportTypes]);
54
+ var supportUploadTypes = (0, _utils.getSupportUploadTypes)(forbiddenTypes, supportTypes);
56
55
  return /*#__PURE__*/_react.default.createElement(_luckDesign.BasicFormItem, (0, _extends2.default)({
57
56
  extra: "".concat((0, _utils.formatMessage)({
58
57
  id: 'app.upload.supportUpload',
File without changes
File without changes
File without changes
package/lib/utils/form.js CHANGED
File without changes
package/lib/utils/grid.js CHANGED
File without changes
File without changes
package/lowcode.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "0.0.26-2",
3
+ "version": "0.0.26-3",
4
4
  "description": "前端配置管理中心业务组件库",
5
5
  "scripts": {
6
6
  "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
package/upload.js CHANGED
File without changes
package/utils.js CHANGED
File without changes