amis 2.7.0 → 2.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. package/esm/compat.js +1 -1
  2. package/esm/index.js +1 -1
  3. package/esm/preset.js +1 -1
  4. package/esm/renderers/Action.js +1 -1
  5. package/esm/renderers/Alert.js +1 -1
  6. package/esm/renderers/AnchorNav.js +1 -1
  7. package/esm/renderers/App.js +1 -1
  8. package/esm/renderers/Audio.js +1 -1
  9. package/esm/renderers/Avatar.js +1 -1
  10. package/esm/renderers/BarCode.js +1 -1
  11. package/esm/renderers/Breadcrumb.js +1 -1
  12. package/esm/renderers/ButtonGroup.js +1 -1
  13. package/esm/renderers/CRUD.js +1 -1
  14. package/esm/renderers/CRUD2.js +1 -1
  15. package/esm/renderers/Calendar.js +1 -1
  16. package/esm/renderers/Card.js +1 -1
  17. package/esm/renderers/Card2.js +1 -1
  18. package/esm/renderers/Cards.js +1 -1
  19. package/esm/renderers/Carousel.js +1 -1
  20. package/esm/renderers/Chart.js +1 -1
  21. package/esm/renderers/Code.js +1 -1
  22. package/esm/renderers/Collapse.js +1 -1
  23. package/esm/renderers/CollapseGroup.js +1 -1
  24. package/esm/renderers/Color.js +1 -1
  25. package/esm/renderers/Container.js +1 -1
  26. package/esm/renderers/Copyable.js +1 -1
  27. package/esm/renderers/Custom.js +1 -1
  28. package/esm/renderers/Date.js +1 -1
  29. package/esm/renderers/DateRange.js +1 -1
  30. package/esm/renderers/Dialog.js +1 -1
  31. package/esm/renderers/Divider.js +1 -1
  32. package/esm/renderers/Drawer.js +1 -1
  33. package/esm/renderers/DropDownButton.js +1 -1
  34. package/esm/renderers/Each.js +1 -1
  35. package/esm/renderers/Flex.js +1 -1
  36. package/esm/renderers/Form/ButtonGroupSelect.js +1 -1
  37. package/esm/renderers/Form/ButtonToolbar.js +1 -1
  38. package/esm/renderers/Form/ChainedSelect.js +1 -1
  39. package/esm/renderers/Form/ChartRadios.js +1 -1
  40. package/esm/renderers/Form/Checkbox.js +1 -1
  41. package/esm/renderers/Form/Checkboxes.js +1 -1
  42. package/esm/renderers/Form/Combo.js +1 -1
  43. package/esm/renderers/Form/ConditionBuilder.js +1 -1
  44. package/esm/renderers/Form/Control.js +1 -1
  45. package/esm/renderers/Form/DiffEditor.js +1 -1
  46. package/esm/renderers/Form/Editor.js +1 -1
  47. package/esm/renderers/Form/FieldSet.js +1 -1
  48. package/esm/renderers/Form/Formula.js +1 -1
  49. package/esm/renderers/Form/Group.js +1 -1
  50. package/esm/renderers/Form/Hidden.js +1 -1
  51. package/esm/renderers/Form/IconPicker.js +1 -1
  52. package/esm/renderers/Form/IconPickerIcons.js +1 -1
  53. package/esm/renderers/Form/IconSelect.js +1 -1
  54. package/esm/renderers/Form/IconSelectStore.js +1 -1
  55. package/esm/renderers/Form/InputArray.js +1 -1
  56. package/esm/renderers/Form/InputCity.js +1 -1
  57. package/esm/renderers/Form/InputColor.js +1 -1
  58. package/esm/renderers/Form/InputDate.js +1 -1
  59. package/esm/renderers/Form/InputDateRange.js +1 -1
  60. package/esm/renderers/Form/InputExcel.js +1 -1
  61. package/esm/renderers/Form/InputFile.js +1 -1
  62. package/esm/renderers/Form/InputFormula.js +1 -1
  63. package/esm/renderers/Form/InputGroup.js +1 -1
  64. package/esm/renderers/Form/InputImage.js +1 -1
  65. package/esm/renderers/Form/InputMonthRange.js +1 -1
  66. package/esm/renderers/Form/InputNumber.js +1 -1
  67. package/esm/renderers/Form/InputQuarterRange.js +1 -1
  68. package/esm/renderers/Form/InputRange.js +1 -1
  69. package/esm/renderers/Form/InputRating.js +1 -1
  70. package/esm/renderers/Form/InputRepeat.js +1 -1
  71. package/esm/renderers/Form/InputRichText.js +1 -1
  72. package/esm/renderers/Form/InputSubForm.js +1 -1
  73. package/esm/renderers/Form/InputTable.js +1 -1
  74. package/esm/renderers/Form/InputTag.js +1 -1
  75. package/esm/renderers/Form/InputText.js +1 -1
  76. package/esm/renderers/Form/InputTree.js +1 -1
  77. package/esm/renderers/Form/InputYearRange.js +1 -1
  78. package/esm/renderers/Form/JSONSchema.js +1 -1
  79. package/esm/renderers/Form/JSONSchemaEditor.js +1 -1
  80. package/esm/renderers/Form/ListSelect.js +1 -1
  81. package/esm/renderers/Form/LocationPicker.js +1 -1
  82. package/esm/renderers/Form/MatrixCheckboxes.js +1 -1
  83. package/esm/renderers/Form/NestedSelect.js +1 -1
  84. package/esm/renderers/Form/Picker.js +1 -1
  85. package/esm/renderers/Form/Radios.js +1 -1
  86. package/esm/renderers/Form/Select.js +1 -1
  87. package/esm/renderers/Form/Static.js +1 -1
  88. package/esm/renderers/Form/StaticHoc.js +1 -1
  89. package/esm/renderers/Form/Switch.js +1 -1
  90. package/esm/renderers/Form/TabsTransfer.js +1 -1
  91. package/esm/renderers/Form/TabsTransferPicker.js +1 -1
  92. package/esm/renderers/Form/Textarea.js +1 -1
  93. package/esm/renderers/Form/Transfer.js +1 -1
  94. package/esm/renderers/Form/TransferPicker.js +1 -1
  95. package/esm/renderers/Form/TreeSelect.js +1 -1
  96. package/esm/renderers/Form/UUID.js +1 -1
  97. package/esm/renderers/Form/UserSelect.js +1 -1
  98. package/esm/renderers/Grid.js +1 -1
  99. package/esm/renderers/Grid2D.js +1 -1
  100. package/esm/renderers/GridNav.js +1 -1
  101. package/esm/renderers/HBox.js +1 -1
  102. package/esm/renderers/IFrame.js +1 -1
  103. package/esm/renderers/Icon.js +1 -1
  104. package/esm/renderers/Image.js +1 -1
  105. package/esm/renderers/Images.js +1 -1
  106. package/esm/renderers/Json.js +1 -1
  107. package/esm/renderers/Link.js +1 -1
  108. package/esm/renderers/List.js +1 -1
  109. package/esm/renderers/Log.js +1 -1
  110. package/esm/renderers/Mapping.js +1 -1
  111. package/esm/renderers/Markdown.js +1 -1
  112. package/esm/renderers/MultilineText.js +1 -1
  113. package/esm/renderers/Nav.js +1 -1
  114. package/esm/renderers/Operation.js +1 -1
  115. package/esm/renderers/Page.js +1 -1
  116. package/esm/renderers/Pagination.js +1 -1
  117. package/esm/renderers/PaginationWrapper.js +1 -1
  118. package/esm/renderers/Panel.js +1 -1
  119. package/esm/renderers/Password.js +1 -1
  120. package/esm/renderers/Plain.js +1 -1
  121. package/esm/renderers/PopOver.js +1 -1
  122. package/esm/renderers/Portlet.js +1 -1
  123. package/esm/renderers/Progress.js +1 -1
  124. package/esm/renderers/Property.js +1 -1
  125. package/esm/renderers/QRCode.js +1 -1
  126. package/esm/renderers/QuickEdit.js +1 -1
  127. package/esm/renderers/Remark.js +1 -1
  128. package/esm/renderers/SearchBox.js +1 -1
  129. package/esm/renderers/Service.js +1 -1
  130. package/esm/renderers/SparkLine.js +1 -1
  131. package/esm/renderers/Spinner.js +1 -1
  132. package/esm/renderers/Status.js +1 -1
  133. package/esm/renderers/Steps.js +1 -1
  134. package/esm/renderers/Table/ColumnToggler.js +1 -1
  135. package/esm/renderers/Table/HeadCellFilterDropdown.js +1 -1
  136. package/esm/renderers/Table/HeadCellSearchDropdown.js +1 -1
  137. package/esm/renderers/Table/ItemActionsWrapper.js +1 -1
  138. package/esm/renderers/Table/TableBody.js +1 -1
  139. package/esm/renderers/Table/TableCell.js +1 -1
  140. package/esm/renderers/Table/TableContent.js +1 -1
  141. package/esm/renderers/Table/TableRow.js +1 -1
  142. package/esm/renderers/Table/exportExcel.js +1 -1
  143. package/esm/renderers/Table/index.js +1 -1
  144. package/esm/renderers/Table2/ColumnToggler.js +1 -1
  145. package/esm/renderers/Table2/HeadCellSearchDropdown.js +1 -1
  146. package/esm/renderers/Table2/TableCell.js +1 -1
  147. package/esm/renderers/Table2/index.js +1 -1
  148. package/esm/renderers/TableView.js +1 -1
  149. package/esm/renderers/Tabs.js +1 -1
  150. package/esm/renderers/Tag.js +1 -1
  151. package/esm/renderers/Tasks.js +1 -1
  152. package/esm/renderers/Timeline.js +1 -1
  153. package/esm/renderers/TooltipWrapper.js +1 -1
  154. package/esm/renderers/Tpl.js +1 -1
  155. package/esm/renderers/VBox.js +1 -1
  156. package/esm/renderers/Video.js +1 -1
  157. package/esm/renderers/WebComponent.js +1 -1
  158. package/esm/renderers/Wizard.js +1 -1
  159. package/esm/renderers/Words.js +1 -1
  160. package/esm/renderers/Wrapper.js +1 -1
  161. package/esm/schemaExtend.js +1 -1
  162. package/lib/compat.js +1 -1
  163. package/lib/index.js +1 -1
  164. package/lib/preset.js +1 -1
  165. package/lib/renderers/Action.js +1 -1
  166. package/lib/renderers/Alert.js +1 -1
  167. package/lib/renderers/AnchorNav.js +1 -1
  168. package/lib/renderers/App.js +1 -1
  169. package/lib/renderers/Audio.js +1 -1
  170. package/lib/renderers/Avatar.js +1 -1
  171. package/lib/renderers/BarCode.js +1 -1
  172. package/lib/renderers/Breadcrumb.js +1 -1
  173. package/lib/renderers/ButtonGroup.js +1 -1
  174. package/lib/renderers/CRUD.js +1 -1
  175. package/lib/renderers/CRUD2.js +1 -1
  176. package/lib/renderers/Calendar.js +1 -1
  177. package/lib/renderers/Card.js +1 -1
  178. package/lib/renderers/Card2.js +1 -1
  179. package/lib/renderers/Cards.js +1 -1
  180. package/lib/renderers/Carousel.js +1 -1
  181. package/lib/renderers/Chart.js +1 -1
  182. package/lib/renderers/Code.js +1 -1
  183. package/lib/renderers/Collapse.js +1 -1
  184. package/lib/renderers/CollapseGroup.js +1 -1
  185. package/lib/renderers/Color.js +1 -1
  186. package/lib/renderers/Container.d.ts +1 -1
  187. package/lib/renderers/Container.js +1 -1
  188. package/lib/renderers/Copyable.js +1 -1
  189. package/lib/renderers/Custom.js +1 -1
  190. package/lib/renderers/Date.js +1 -1
  191. package/lib/renderers/DateRange.js +1 -1
  192. package/lib/renderers/Dialog.d.ts +40 -40
  193. package/lib/renderers/Dialog.js +1 -1
  194. package/lib/renderers/Divider.js +1 -1
  195. package/lib/renderers/Drawer.js +1 -1
  196. package/lib/renderers/DropDownButton.js +1 -1
  197. package/lib/renderers/Each.js +1 -1
  198. package/lib/renderers/Flex.js +1 -1
  199. package/lib/renderers/Form/ButtonGroupSelect.js +1 -1
  200. package/lib/renderers/Form/ButtonToolbar.js +1 -1
  201. package/lib/renderers/Form/ChainedSelect.js +1 -1
  202. package/lib/renderers/Form/ChartRadios.js +1 -1
  203. package/lib/renderers/Form/Checkbox.js +1 -1
  204. package/lib/renderers/Form/Checkboxes.js +1 -1
  205. package/lib/renderers/Form/Combo.js +1 -1
  206. package/lib/renderers/Form/ConditionBuilder.js +1 -1
  207. package/lib/renderers/Form/Control.js +1 -1
  208. package/lib/renderers/Form/DiffEditor.d.ts +17 -17
  209. package/lib/renderers/Form/DiffEditor.js +1 -1
  210. package/lib/renderers/Form/Editor.d.ts +5 -5
  211. package/lib/renderers/Form/Editor.js +1 -1
  212. package/lib/renderers/Form/FieldSet.js +1 -1
  213. package/lib/renderers/Form/Formula.js +1 -1
  214. package/lib/renderers/Form/Group.js +1 -1
  215. package/lib/renderers/Form/Hidden.js +1 -1
  216. package/lib/renderers/Form/IconPicker.js +1 -1
  217. package/lib/renderers/Form/IconPickerIcons.js +1 -1
  218. package/lib/renderers/Form/IconSelect.js +1 -1
  219. package/lib/renderers/Form/IconSelectStore.js +1 -1
  220. package/lib/renderers/Form/InputArray.js +1 -1
  221. package/lib/renderers/Form/InputCity.d.ts +40 -40
  222. package/lib/renderers/Form/InputCity.js +1 -1
  223. package/lib/renderers/Form/InputColor.d.ts +40 -40
  224. package/lib/renderers/Form/InputColor.js +1 -1
  225. package/lib/renderers/Form/InputDate.js +1 -1
  226. package/lib/renderers/Form/InputDateRange.js +1 -1
  227. package/lib/renderers/Form/InputExcel.js +1 -1
  228. package/lib/renderers/Form/InputFile.js +1 -1
  229. package/lib/renderers/Form/InputFormula.js +1 -1
  230. package/lib/renderers/Form/InputGroup.d.ts +1 -1
  231. package/lib/renderers/Form/InputGroup.js +1 -1
  232. package/lib/renderers/Form/InputImage.js +1 -1
  233. package/lib/renderers/Form/InputMonthRange.js +1 -1
  234. package/lib/renderers/Form/InputNumber.js +1 -1
  235. package/lib/renderers/Form/InputQuarterRange.js +1 -1
  236. package/lib/renderers/Form/InputRange.js +1 -1
  237. package/lib/renderers/Form/InputRating.js +1 -1
  238. package/lib/renderers/Form/InputRepeat.js +1 -1
  239. package/lib/renderers/Form/InputRichText.js +1 -1
  240. package/lib/renderers/Form/InputSubForm.js +1 -1
  241. package/lib/renderers/Form/InputTable.js +1 -1
  242. package/lib/renderers/Form/InputTag.js +1 -1
  243. package/lib/renderers/Form/InputText.js +1 -1
  244. package/lib/renderers/Form/InputTree.js +1 -1
  245. package/lib/renderers/Form/InputYearRange.js +1 -1
  246. package/lib/renderers/Form/JSONSchema.js +1 -1
  247. package/lib/renderers/Form/JSONSchemaEditor.js +1 -1
  248. package/lib/renderers/Form/ListSelect.js +1 -1
  249. package/lib/renderers/Form/LocationPicker.js +1 -1
  250. package/lib/renderers/Form/MatrixCheckboxes.js +1 -1
  251. package/lib/renderers/Form/NestedSelect.js +1 -1
  252. package/lib/renderers/Form/Picker.js +1 -1
  253. package/lib/renderers/Form/Radios.js +1 -1
  254. package/lib/renderers/Form/Select.js +1 -1
  255. package/lib/renderers/Form/Static.js +1 -1
  256. package/lib/renderers/Form/StaticHoc.js +1 -1
  257. package/lib/renderers/Form/Switch.js +1 -1
  258. package/lib/renderers/Form/TabsTransfer.js +1 -1
  259. package/lib/renderers/Form/TabsTransferPicker.js +1 -1
  260. package/lib/renderers/Form/Textarea.js +1 -1
  261. package/lib/renderers/Form/Transfer.js +1 -1
  262. package/lib/renderers/Form/TransferPicker.js +1 -1
  263. package/lib/renderers/Form/TreeSelect.js +1 -1
  264. package/lib/renderers/Form/UUID.js +1 -1
  265. package/lib/renderers/Form/UserSelect.js +1 -1
  266. package/lib/renderers/Grid.js +1 -1
  267. package/lib/renderers/Grid2D.js +1 -1
  268. package/lib/renderers/GridNav.js +1 -1
  269. package/lib/renderers/HBox.js +1 -1
  270. package/lib/renderers/IFrame.js +1 -1
  271. package/lib/renderers/Icon.js +1 -1
  272. package/lib/renderers/Image.js +1 -1
  273. package/lib/renderers/Images.js +1 -1
  274. package/lib/renderers/Json.js +1 -1
  275. package/lib/renderers/Link.js +1 -1
  276. package/lib/renderers/List.js +1 -1
  277. package/lib/renderers/Log.js +1 -1
  278. package/lib/renderers/Mapping.js +1 -1
  279. package/lib/renderers/Markdown.js +1 -1
  280. package/lib/renderers/MultilineText.js +1 -1
  281. package/lib/renderers/Nav.js +1 -1
  282. package/lib/renderers/Operation.js +1 -1
  283. package/lib/renderers/Page.js +1 -1
  284. package/lib/renderers/Pagination.js +1 -1
  285. package/lib/renderers/PaginationWrapper.js +1 -1
  286. package/lib/renderers/Panel.js +1 -1
  287. package/lib/renderers/Password.js +1 -1
  288. package/lib/renderers/Plain.js +1 -1
  289. package/lib/renderers/PopOver.js +1 -1
  290. package/lib/renderers/Portlet.js +1 -1
  291. package/lib/renderers/Progress.js +1 -1
  292. package/lib/renderers/Property.js +1 -1
  293. package/lib/renderers/QRCode.js +1 -1
  294. package/lib/renderers/QuickEdit.js +1 -1
  295. package/lib/renderers/Remark.d.ts +1 -1
  296. package/lib/renderers/Remark.js +1 -1
  297. package/lib/renderers/SearchBox.js +1 -1
  298. package/lib/renderers/Service.js +1 -1
  299. package/lib/renderers/SparkLine.js +1 -1
  300. package/lib/renderers/Spinner.js +1 -1
  301. package/lib/renderers/Status.js +1 -1
  302. package/lib/renderers/Steps.js +1 -1
  303. package/lib/renderers/Table/ColumnToggler.js +1 -1
  304. package/lib/renderers/Table/HeadCellFilterDropdown.js +1 -1
  305. package/lib/renderers/Table/HeadCellSearchDropdown.js +1 -1
  306. package/lib/renderers/Table/ItemActionsWrapper.js +1 -1
  307. package/lib/renderers/Table/TableBody.js +1 -1
  308. package/lib/renderers/Table/TableCell.js +1 -1
  309. package/lib/renderers/Table/TableContent.js +1 -1
  310. package/lib/renderers/Table/TableRow.js +1 -1
  311. package/lib/renderers/Table/exportExcel.js +1 -1
  312. package/lib/renderers/Table/index.js +1 -1
  313. package/lib/renderers/Table2/ColumnToggler.js +1 -1
  314. package/lib/renderers/Table2/HeadCellSearchDropdown.js +1 -1
  315. package/lib/renderers/Table2/TableCell.js +1 -1
  316. package/lib/renderers/Table2/index.js +1 -1
  317. package/lib/renderers/TableView.js +1 -1
  318. package/lib/renderers/Tabs.js +1 -1
  319. package/lib/renderers/Tag.js +1 -1
  320. package/lib/renderers/Tasks.js +1 -1
  321. package/lib/renderers/Timeline.js +1 -1
  322. package/lib/renderers/TooltipWrapper.js +1 -1
  323. package/lib/renderers/Tpl.js +1 -1
  324. package/lib/renderers/VBox.js +1 -1
  325. package/lib/renderers/Video.js +1 -1
  326. package/lib/renderers/WebComponent.js +1 -1
  327. package/lib/renderers/Wizard.js +1 -1
  328. package/lib/renderers/Words.js +1 -1
  329. package/lib/renderers/Wrapper.js +1 -1
  330. package/lib/schemaExtend.js +1 -1
  331. package/lib/themes/ang-ie11.css +8 -8
  332. package/lib/themes/ang.css +8 -8
  333. package/lib/themes/antd-ie11.css +8 -8
  334. package/lib/themes/antd.css +8 -8
  335. package/lib/themes/cxd-ie11.css +8 -8
  336. package/lib/themes/cxd.css +8 -8
  337. package/lib/themes/dark-ie11.css +8 -8
  338. package/lib/themes/dark.css +8 -8
  339. package/lib/themes/default-ie11.css +8 -8
  340. package/lib/themes/default.css +8 -8
  341. package/package.json +4 -4
  342. package/sdk/ang-ie11.css +8 -9
  343. package/sdk/ang.css +8 -9
  344. package/sdk/antd-ie11.css +8 -9
  345. package/sdk/antd.css +8 -9
  346. package/sdk/barcode.js +50 -50
  347. package/sdk/charts.js +15 -15
  348. package/sdk/codemirror.js +7 -7
  349. package/sdk/color-picker.js +65 -65
  350. package/sdk/cropperjs.js +2 -2
  351. package/sdk/cxd-ie11.css +8 -9
  352. package/sdk/cxd.css +8 -9
  353. package/sdk/dark-ie11.css +8 -9
  354. package/sdk/dark.css +8 -9
  355. package/sdk/exceljs.js +1 -1
  356. package/sdk/markdown.js +68 -68
  357. package/sdk/papaparse.js +1 -1
  358. package/sdk/rest.js +16 -16
  359. package/sdk/rich-text.js +62 -62
  360. package/sdk/sdk-ie11.css +8 -9
  361. package/sdk/sdk.css +8 -9
  362. package/sdk/sdk.js +1529 -1529
  363. package/sdk/thirds/hls.js/hls.js +1 -1
  364. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  365. package/sdk/tinymce.js +55 -55
  366. package/sdk/doc.css +0 -792
  367. package/sdk/index.html +0 -107
  368. package/sdk/static/favicon.png +0 -0
  369. package/sdk/static/iconfont.css +0 -2404
  370. package/sdk/static/iconfont.eot +0 -0
  371. package/sdk/static/iconfont.svg +0 -2513
  372. package/sdk/static/iconfont.ttf +0 -0
  373. package/sdk/static/iconfont.woff +0 -0
  374. package/sdk/static/logo.png +0 -0
  375. package/sdk/style.css +0 -891
  376. package/sdk/thirds/amis-ui/scss/helper.css +0 -60384
  377. package/sdk/thirds/prismjs/themes/prism.css +0 -140
package/sdk/index.html DELETED
@@ -1,107 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="zh">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>amis - 低代码前端框架</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <link
8
- type="image/x-icon"
9
- rel="shortcut icon"
10
- href="./static/favicon.png"
11
- />
12
- <meta
13
- name="viewport"
14
- content="width=device-width, initial-scale=1, maximum-scale=1"
15
- />
16
- <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <script type="module">
17
- let theme = localStorage.getItem('amis-theme') || 'cxd';
18
- if (theme === 'default') {
19
- theme = 'cxd';
20
- }
21
-
22
- ['ang', 'cxd', 'antd'].forEach(key => {
23
- const link = document.createElement('link');
24
- link.setAttribute('rel', 'stylesheet');
25
- link.setAttribute('title', key);
26
- if (theme !== key) {
27
- link.setAttribute('disabled', 'disabled');
28
- }
29
- link.setAttribute(
30
- 'href',
31
- new URL(`./packages/amis-ui/scss/themes/${key}.scss`, import.meta.url)
32
- .href
33
- );
34
- document.head.appendChild(link);
35
- });
36
- </script>
37
-
38
- <link rel="stylesheet" href="./static/iconfont.css" />
39
- <link
40
- rel="stylesheet" href="./thirds/@fortawesome/fontawesome-free/css/all.css" />
41
- <link
42
- rel="stylesheet" href="./thirds/@fortawesome/fontawesome-free/css/v4-shims.css" />
43
- <link rel="stylesheet" href="./thirds/prismjs/themes/prism.css" />
44
- <link rel="stylesheet" href="./doc.css" />
45
- <link rel="stylesheet" href="./style.css" />
46
- <style>
47
- .app-wrapper,
48
- .schema-wrapper {
49
- position: relative;
50
- width: 100%;
51
- height: 100%;
52
- }
53
- </style>
54
- <link rel="stylesheet" href="./packages/amis-ui/scss/helper.css" />
55
- </head>
56
-
57
- <body>
58
- <div id="root" class="app-wrapper"></div> <script type="module">
59
- import {bootstrap} from './examples/index.jsx';
60
-
61
- import * as monaco from 'monaco-editor';
62
- import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker';
63
- import jsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker';
64
- import cssWorker from 'monaco-editor/esm/vs/language/css/css.worker?worker';
65
- import htmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker';
66
- import tsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker';
67
-
68
- self.MonacoEnvironment = {
69
- getWorker(_, label) {
70
- if (label === 'json') {
71
- return new jsonWorker();
72
- }
73
- if (label === 'css' || label === 'scss' || label === 'less') {
74
- return new cssWorker();
75
- }
76
- if (label === 'html' || label === 'handlebars' || label === 'razor') {
77
- return new htmlWorker();
78
- }
79
- if (label === 'typescript' || label === 'javascript') {
80
- return new tsWorker();
81
- }
82
- return new editorWorker();
83
- }
84
- };
85
-
86
- window.enableAMISDebug = true;
87
-
88
- const initialState = {};
89
- bootstrap(document.getElementById('root'), initialState);
90
- </script>
91
-
92
- <script type="text/javascript">
93
- if (location.hostname !== 'localhost') {
94
- var _hmt = _hmt || [];
95
-
96
- // 百度统计
97
- (function () {
98
- var hm = document.createElement('script');
99
- hm.src =
100
- 'https://hm.baidu.com/hm.js?286766a21abb57abefedbd5257a26dc8';
101
- var s = document.getElementsByTagName('script')[0];
102
- s.parentNode.insertBefore(hm, s);
103
- })();
104
- }
105
- </script>
106
- </body>
107
- </html>
Binary file