@tmagic/editor 1.8.0-beta.2 → 1.8.0-beta.21

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 (308) hide show
  1. package/dist/es/Editor.vue_vue_type_script_setup_true_lang.js +43 -9
  2. package/dist/es/components/CodeBlockEditor.vue_vue_type_script_setup_true_lang.js +8 -4
  3. package/dist/es/components/CodeParams.vue_vue_type_script_setup_true_lang.js +3 -2
  4. package/dist/es/components/CompareForm.vue_vue_type_script_setup_true_lang.js +22 -98
  5. package/dist/es/components/ContentMenu.vue_vue_type_script_setup_true_lang.js +32 -9
  6. package/dist/es/components/FloatingBox.vue_vue_type_script_setup_true_lang.js +68 -17
  7. package/dist/es/components/Icon.vue_vue_type_script_setup_true_lang.js +1 -1
  8. package/dist/es/components/Resizer.vue_vue_type_script_setup_true_lang.js +1 -1
  9. package/dist/es/components/ScrollBar.js +0 -1
  10. package/dist/es/components/ScrollBar.vue_vue_type_script_setup_true_lang.js +1 -1
  11. package/dist/es/components/ScrollViewer.vue_vue_type_script_setup_true_lang.js +1 -1
  12. package/dist/es/components/SearchInput.vue_vue_type_script_setup_true_lang.js +1 -1
  13. package/dist/es/components/SplitView.vue_vue_type_script_setup_true_lang.js +1 -1
  14. package/dist/es/components/ToolButton.vue_vue_type_script_setup_true_lang.js +7 -7
  15. package/dist/es/components/Tree.vue_vue_type_script_setup_true_lang.js +1 -1
  16. package/dist/es/components/TreeNode.vue_vue_type_script_setup_true_lang.js +1 -1
  17. package/dist/es/components/ViewForm.js +5 -0
  18. package/dist/es/components/ViewForm.vue_vue_type_script_setup_true_lang.js +58 -0
  19. package/dist/es/editorProps.js +9 -1
  20. package/dist/es/fields/Code.vue_vue_type_script_setup_true_lang.js +16 -5
  21. package/dist/es/fields/CodeLink.vue_vue_type_script_setup_true_lang.js +7 -7
  22. package/dist/es/fields/CodeSelect.vue_vue_type_script_setup_true_lang.js +81 -44
  23. package/dist/es/fields/CodeSelectCol.vue_vue_type_script_setup_true_lang.js +10 -3
  24. package/dist/es/fields/CondOpSelect.vue_vue_type_script_setup_true_lang.js +7 -19
  25. package/dist/es/fields/DataSourceFieldSelect/FieldSelect.vue_vue_type_script_setup_true_lang.js +13 -6
  26. package/dist/es/fields/DataSourceFieldSelect/Index.vue_vue_type_script_setup_true_lang.js +11 -8
  27. package/dist/es/fields/DataSourceFields.vue_vue_type_script_setup_true_lang.js +39 -12
  28. package/dist/es/fields/DataSourceInput.vue_vue_type_script_setup_true_lang.js +11 -20
  29. package/dist/es/fields/DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js +11 -6
  30. package/dist/es/fields/DataSourceMethods.vue_vue_type_script_setup_true_lang.js +30 -14
  31. package/dist/es/fields/DataSourceMocks.vue_vue_type_script_setup_true_lang.js +11 -4
  32. package/dist/es/fields/DataSourceSelect.vue_vue_type_script_setup_true_lang.js +5 -2
  33. package/dist/es/fields/DisplayConds.vue_vue_type_script_setup_true_lang.js +38 -6
  34. package/dist/es/fields/EventSelect.vue_vue_type_script_setup_true_lang.js +156 -155
  35. package/dist/es/fields/KeyValue.vue_vue_type_script_setup_true_lang.js +5 -2
  36. package/dist/es/fields/PageFragmentSelect.vue_vue_type_script_setup_true_lang.js +5 -2
  37. package/dist/es/fields/StyleSetter/Index.vue_vue_type_script_setup_true_lang.js +8 -10
  38. package/dist/es/fields/StyleSetter/components/BackgroundPosition.vue_vue_type_script_setup_true_lang.js +5 -2
  39. package/dist/es/fields/StyleSetter/components/Border.vue_vue_type_script_setup_true_lang.js +28 -6
  40. package/dist/es/fields/StyleSetter/components/Box.vue_vue_type_script_setup_true_lang.js +1 -1
  41. package/dist/es/fields/StyleSetter/icons/align-items/Center.js +31 -0
  42. package/dist/es/fields/StyleSetter/icons/align-items/FlexEnd.js +31 -0
  43. package/dist/es/fields/StyleSetter/icons/align-items/FlexStart.js +31 -0
  44. package/dist/es/fields/StyleSetter/icons/align-items/SpaceAround.js +50 -0
  45. package/dist/es/fields/StyleSetter/icons/align-items/SpaceBetween.js +50 -0
  46. package/dist/es/fields/StyleSetter/icons/background-repeat/NoRepeat.js +7 -7
  47. package/dist/es/fields/StyleSetter/icons/background-repeat/Repeat.js +6 -3
  48. package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatX.js +29 -6
  49. package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatY.js +32 -6
  50. package/dist/es/fields/StyleSetter/icons/display/Block.js +1 -1
  51. package/dist/es/fields/StyleSetter/icons/display/Flex.js +1 -1
  52. package/dist/es/fields/StyleSetter/icons/display/Inline.js +1 -1
  53. package/dist/es/fields/StyleSetter/icons/display/InlineBlock.js +1 -1
  54. package/dist/es/fields/StyleSetter/icons/display/None.js +1 -1
  55. package/dist/es/fields/StyleSetter/icons/flex-direction/Column.js +11 -3
  56. package/dist/es/fields/StyleSetter/icons/flex-direction/ColumnReverse.js +11 -3
  57. package/dist/es/fields/StyleSetter/icons/flex-direction/Row.js +11 -3
  58. package/dist/es/fields/StyleSetter/icons/flex-direction/RowReverse.js +11 -3
  59. package/dist/es/fields/StyleSetter/icons/justify-content/Center.js +17 -3
  60. package/dist/es/fields/StyleSetter/icons/justify-content/FlexEnd.js +19 -3
  61. package/dist/es/fields/StyleSetter/icons/justify-content/FlexStart.js +19 -3
  62. package/dist/es/fields/StyleSetter/icons/justify-content/SpaceAround.js +37 -3
  63. package/dist/es/fields/StyleSetter/icons/justify-content/SpaceBetween.js +33 -3
  64. package/dist/es/fields/StyleSetter/icons/text-align/Center.js +1 -1
  65. package/dist/es/fields/StyleSetter/icons/text-align/Left.js +1 -1
  66. package/dist/es/fields/StyleSetter/icons/text-align/Right.js +1 -1
  67. package/dist/es/fields/StyleSetter/pro/Background.vue_vue_type_script_setup_true_lang.js +56 -30
  68. package/dist/es/fields/StyleSetter/pro/Border.vue_vue_type_script_setup_true_lang.js +7 -4
  69. package/dist/es/fields/StyleSetter/pro/Font.vue_vue_type_script_setup_true_lang.js +35 -26
  70. package/dist/es/fields/StyleSetter/pro/Layout.vue_vue_type_script_setup_true_lang.js +76 -48
  71. package/dist/es/fields/StyleSetter/pro/Position.vue_vue_type_script_setup_true_lang.js +29 -23
  72. package/dist/es/fields/StyleSetter/pro/Transform.vue_vue_type_script_setup_true_lang.js +7 -4
  73. package/dist/es/fields/UISelect.js +0 -1
  74. package/dist/es/fields/UISelect.vue_vue_type_script_setup_true_lang.js +5 -2
  75. package/dist/es/hooks/use-code-block-edit.js +6 -3
  76. package/dist/es/hooks/use-compare-form.js +119 -0
  77. package/dist/es/hooks/use-data-source-edit.js +5 -2
  78. package/dist/es/hooks/use-stage.js +9 -4
  79. package/dist/es/icons/CenterIcon.vue_vue_type_script_setup_true_lang.js +1 -1
  80. package/dist/es/icons/CodeIcon.vue_vue_type_script_setup_true_lang.js +1 -1
  81. package/dist/es/icons/DatasourceIcon.js +17 -0
  82. package/dist/es/icons/FolderMinusIcon.vue_vue_type_script_setup_true_lang.js +1 -1
  83. package/dist/es/index.js +24 -10
  84. package/dist/es/initService.js +19 -13
  85. package/dist/es/layouts/AddPageBox.vue_vue_type_script_setup_true_lang.js +1 -1
  86. package/dist/es/layouts/CodeEditor.vue_vue_type_script_setup_true_lang.js +24 -12
  87. package/dist/es/layouts/Framework.vue_vue_type_script_setup_true_lang.js +25 -18
  88. package/dist/es/layouts/NavMenu.vue_vue_type_script_setup_true_lang.js +4 -4
  89. package/dist/es/layouts/NavMenuColumn.vue_vue_type_script_setup_true_lang.js +1 -1
  90. package/dist/es/layouts/history-list/Bucket.vue_vue_type_script_setup_true_lang.js +25 -38
  91. package/dist/es/layouts/history-list/BucketTab.js +5 -0
  92. package/dist/es/layouts/history-list/BucketTab.vue_vue_type_script_setup_true_lang.js +62 -0
  93. package/dist/es/layouts/history-list/GroupRow.vue_vue_type_script_setup_true_lang.js +177 -88
  94. package/dist/es/layouts/history-list/HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js +139 -37
  95. package/dist/es/layouts/history-list/HistoryListPanel.vue_vue_type_script_setup_true_lang.js +164 -107
  96. package/dist/es/layouts/history-list/InitialRow.vue_vue_type_script_setup_true_lang.js +44 -9
  97. package/dist/es/layouts/history-list/PageTab.vue_vue_type_script_setup_true_lang.js +49 -53
  98. package/dist/es/layouts/history-list/composables.js +138 -108
  99. package/dist/es/layouts/history-list/useHistoryList.js +56 -0
  100. package/dist/es/layouts/history-list/useHistoryRevert.js +317 -0
  101. package/dist/es/layouts/page-bar/AddButton.vue_vue_type_script_setup_true_lang.js +1 -1
  102. package/dist/es/layouts/page-bar/PageBar.vue_vue_type_script_setup_true_lang.js +5 -3
  103. package/dist/es/layouts/page-bar/PageBarScrollContainer.vue_vue_type_script_setup_true_lang.js +1 -1
  104. package/dist/es/layouts/page-bar/PageList.vue_vue_type_script_setup_true_lang.js +1 -1
  105. package/dist/es/layouts/page-bar/Search.vue_vue_type_script_setup_true_lang.js +2 -2
  106. package/dist/es/layouts/props-panel/FormPanel.vue_vue_type_script_setup_true_lang.js +50 -7
  107. package/dist/es/layouts/props-panel/PropsPanel.vue_vue_type_script_setup_true_lang.js +33 -13
  108. package/dist/es/layouts/props-panel/use-style-panel.js +3 -2
  109. package/dist/es/layouts/sidebar/ComponentListPanel.vue_vue_type_script_setup_true_lang.js +3 -3
  110. package/dist/es/layouts/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +26 -38
  111. package/dist/es/layouts/sidebar/code-block/CodeBlockList.vue_vue_type_script_setup_true_lang.js +4 -4
  112. package/dist/es/layouts/sidebar/code-block/CodeBlockListPanel.vue_vue_type_script_setup_true_lang.js +4 -4
  113. package/dist/es/layouts/sidebar/code-block/useContentMenu.js +19 -4
  114. package/dist/es/layouts/sidebar/data-source/DataSourceAddButton.vue_vue_type_script_setup_true_lang.js +1 -1
  115. package/dist/es/layouts/sidebar/data-source/DataSourceConfigPanel.vue_vue_type_script_setup_true_lang.js +23 -6
  116. package/dist/es/layouts/sidebar/data-source/DataSourceList.vue_vue_type_script_setup_true_lang.js +1 -1
  117. package/dist/es/layouts/sidebar/data-source/DataSourceListPanel.vue_vue_type_script_setup_true_lang.js +27 -5
  118. package/dist/es/layouts/sidebar/data-source/useContentMenu.js +19 -4
  119. package/dist/es/layouts/sidebar/layer/LayerMenu.vue_vue_type_script_setup_true_lang.js +8 -8
  120. package/dist/es/layouts/sidebar/layer/LayerNodeContent.js +5 -0
  121. package/dist/es/layouts/sidebar/layer/LayerNodeContent.vue_vue_type_script_setup_true_lang.js +46 -0
  122. package/dist/es/layouts/sidebar/layer/LayerNodeTool.vue_vue_type_script_setup_true_lang.js +2 -2
  123. package/dist/es/layouts/sidebar/layer/LayerPanel.vue_vue_type_script_setup_true_lang.js +3 -2
  124. package/dist/es/layouts/sidebar/layer/use-click.js +3 -3
  125. package/dist/es/layouts/sidebar/layer/use-node-status.js +2 -2
  126. package/dist/es/layouts/workspace/Breadcrumb.vue_vue_type_script_setup_true_lang.js +1 -1
  127. package/dist/es/layouts/workspace/Workspace.vue_vue_type_script_setup_true_lang.js +1 -1
  128. package/dist/es/layouts/workspace/viewer/NodeListMenu.vue_vue_type_script_setup_true_lang.js +9 -3
  129. package/dist/es/layouts/workspace/viewer/Stage.vue_vue_type_script_setup_true_lang.js +2 -2
  130. package/dist/es/layouts/workspace/viewer/StageOverlay.vue_vue_type_script_setup_true_lang.js +1 -1
  131. package/dist/es/layouts/workspace/viewer/ViewerMenu.vue_vue_type_script_setup_true_lang.js +16 -16
  132. package/dist/es/plugin.js +5 -2
  133. package/dist/es/services/codeBlock.js +137 -56
  134. package/dist/es/services/dataSource.js +122 -52
  135. package/dist/es/services/dep.js +162 -41
  136. package/dist/es/services/editor.js +613 -179
  137. package/dist/es/services/events.js +2 -2
  138. package/dist/es/services/history.js +350 -386
  139. package/dist/es/services/keybinding.js +6 -6
  140. package/dist/es/services/props.js +3 -2
  141. package/dist/es/services/storage.js +2 -2
  142. package/dist/es/services/ui.js +10 -2
  143. package/dist/es/style.css +549 -113
  144. package/dist/es/utils/config.js +4 -1
  145. package/dist/es/utils/const.js +2 -2
  146. package/dist/es/utils/content-menu.js +19 -11
  147. package/dist/es/utils/data-source/index.js +34 -11
  148. package/dist/es/utils/dep/collect-worker-client.js +114 -0
  149. package/dist/es/utils/dep/idle-task.js +70 -22
  150. package/dist/es/utils/dep/worker.js +1 -1
  151. package/dist/es/utils/editor.js +103 -49
  152. package/dist/es/utils/event.js +135 -0
  153. package/dist/es/utils/history.js +220 -0
  154. package/dist/es/utils/indexed-db.js +86 -0
  155. package/dist/es/utils/monaco-editor.js +22 -6
  156. package/dist/es/utils/operator.js +2 -2
  157. package/dist/es/utils/props.js +114 -33
  158. package/dist/es/utils/type-match-rules.js +367 -0
  159. package/dist/es/utils/undo-redo.js +60 -1
  160. package/dist/style.css +549 -113
  161. package/dist/themes/magic-admin.css +3028 -0
  162. package/dist/tmagic-editor.umd.cjs +14403 -10121
  163. package/package.json +8 -8
  164. package/src/Editor.vue +43 -2
  165. package/src/components/CodeBlockEditor.vue +3 -0
  166. package/src/components/CompareForm.vue +18 -146
  167. package/src/components/ContentMenu.vue +44 -8
  168. package/src/components/FloatingBox.vue +84 -9
  169. package/src/components/ScrollBar.vue +0 -67
  170. package/src/components/ToolButton.vue +2 -2
  171. package/src/components/ViewForm.vue +55 -0
  172. package/src/editorProps.ts +30 -0
  173. package/src/fields/Code.vue +10 -2
  174. package/src/fields/CodeLink.vue +2 -5
  175. package/src/fields/CodeSelect.vue +54 -40
  176. package/src/fields/CodeSelectCol.vue +8 -1
  177. package/src/fields/CondOpSelect.vue +2 -24
  178. package/src/fields/DataSourceFieldSelect/FieldSelect.vue +16 -2
  179. package/src/fields/DataSourceFieldSelect/Index.vue +14 -5
  180. package/src/fields/DataSourceFields.vue +42 -8
  181. package/src/fields/DataSourceInput.vue +10 -28
  182. package/src/fields/DataSourceMethodSelect.vue +9 -4
  183. package/src/fields/DataSourceMethods.vue +42 -21
  184. package/src/fields/DataSourceMocks.vue +3 -0
  185. package/src/fields/DisplayConds.vue +18 -1
  186. package/src/fields/EventSelect.vue +152 -166
  187. package/src/fields/StyleSetter/Index.vue +3 -12
  188. package/src/fields/StyleSetter/components/Border.vue +15 -6
  189. package/src/fields/StyleSetter/icons/align-items/Center.vue +19 -0
  190. package/src/fields/StyleSetter/icons/align-items/FlexEnd.vue +19 -0
  191. package/src/fields/StyleSetter/icons/align-items/FlexStart.vue +19 -0
  192. package/src/fields/StyleSetter/icons/align-items/SpaceAround.vue +34 -0
  193. package/src/fields/StyleSetter/icons/align-items/SpaceBetween.vue +34 -0
  194. package/src/fields/StyleSetter/icons/align-items/index.ts +5 -0
  195. package/src/fields/StyleSetter/icons/background-repeat/NoRepeat.vue +20 -4
  196. package/src/fields/StyleSetter/icons/background-repeat/Repeat.vue +10 -28
  197. package/src/fields/StyleSetter/icons/background-repeat/RepeatX.vue +4 -5
  198. package/src/fields/StyleSetter/icons/background-repeat/RepeatY.vue +4 -5
  199. package/src/fields/StyleSetter/icons/flex-direction/Column.vue +4 -3
  200. package/src/fields/StyleSetter/icons/flex-direction/ColumnReverse.vue +4 -3
  201. package/src/fields/StyleSetter/icons/flex-direction/Row.vue +4 -3
  202. package/src/fields/StyleSetter/icons/flex-direction/RowReverse.vue +4 -3
  203. package/src/fields/StyleSetter/icons/justify-content/Center.vue +5 -2
  204. package/src/fields/StyleSetter/icons/justify-content/FlexEnd.vue +15 -2
  205. package/src/fields/StyleSetter/icons/justify-content/FlexStart.vue +15 -2
  206. package/src/fields/StyleSetter/icons/justify-content/SpaceAround.vue +28 -3
  207. package/src/fields/StyleSetter/icons/justify-content/SpaceBetween.vue +28 -2
  208. package/src/fields/StyleSetter/pro/Background.vue +99 -55
  209. package/src/fields/StyleSetter/pro/Border.vue +9 -11
  210. package/src/fields/StyleSetter/pro/Font.vue +66 -64
  211. package/src/fields/StyleSetter/pro/Layout.vue +211 -139
  212. package/src/fields/StyleSetter/pro/Position.vue +69 -67
  213. package/src/fields/StyleSetter/pro/Transform.vue +23 -25
  214. package/src/fields/UISelect.vue +0 -12
  215. package/src/hooks/index.ts +1 -0
  216. package/src/hooks/use-code-block-edit.ts +4 -3
  217. package/src/hooks/use-compare-form.ts +187 -0
  218. package/src/hooks/use-data-source-edit.ts +2 -2
  219. package/src/hooks/use-stage.ts +5 -3
  220. package/src/icons/DatasourceIcon.vue +7 -0
  221. package/src/index.ts +12 -0
  222. package/src/initService.ts +26 -16
  223. package/src/layouts/CodeEditor.vue +34 -11
  224. package/src/layouts/Framework.vue +15 -8
  225. package/src/layouts/NavMenu.vue +3 -3
  226. package/src/layouts/history-list/Bucket.vue +33 -41
  227. package/src/layouts/history-list/BucketTab.vue +72 -0
  228. package/src/layouts/history-list/GroupRow.vue +190 -93
  229. package/src/layouts/history-list/HistoryDiffDialog.vue +169 -90
  230. package/src/layouts/history-list/HistoryListPanel.vue +191 -95
  231. package/src/layouts/history-list/InitialRow.vue +38 -8
  232. package/src/layouts/history-list/PageTab.vue +67 -43
  233. package/src/layouts/history-list/composables.ts +239 -125
  234. package/src/layouts/history-list/useHistoryList.ts +60 -0
  235. package/src/layouts/history-list/useHistoryRevert.ts +425 -0
  236. package/src/layouts/page-bar/PageBar.vue +4 -2
  237. package/src/layouts/props-panel/FormPanel.vue +72 -6
  238. package/src/layouts/props-panel/PropsPanel.vue +62 -18
  239. package/src/layouts/props-panel/use-style-panel.ts +4 -3
  240. package/src/layouts/sidebar/ComponentListPanel.vue +10 -6
  241. package/src/layouts/sidebar/Sidebar.vue +13 -6
  242. package/src/layouts/sidebar/code-block/CodeBlockList.vue +5 -5
  243. package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +5 -2
  244. package/src/layouts/sidebar/code-block/useContentMenu.ts +14 -2
  245. package/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue +34 -2
  246. package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +29 -4
  247. package/src/layouts/sidebar/data-source/useContentMenu.ts +14 -2
  248. package/src/layouts/sidebar/layer/LayerMenu.vue +21 -13
  249. package/src/layouts/sidebar/layer/LayerNodeContent.vue +57 -0
  250. package/src/layouts/sidebar/layer/LayerNodeTool.vue +7 -4
  251. package/src/layouts/sidebar/layer/LayerPanel.vue +4 -1
  252. package/src/layouts/sidebar/layer/use-click.ts +3 -3
  253. package/src/layouts/sidebar/layer/use-node-status.ts +2 -2
  254. package/src/layouts/workspace/viewer/NodeListMenu.vue +4 -1
  255. package/src/layouts/workspace/viewer/Stage.vue +1 -1
  256. package/src/layouts/workspace/viewer/ViewerMenu.vue +15 -15
  257. package/src/plugin.ts +6 -3
  258. package/src/services/codeBlock.ts +152 -47
  259. package/src/services/dataSource.ts +120 -41
  260. package/src/services/dep.ts +292 -47
  261. package/src/services/editor.ts +820 -224
  262. package/src/services/events.ts +3 -3
  263. package/src/services/history.ts +449 -412
  264. package/src/services/keybinding.ts +6 -6
  265. package/src/services/ui.ts +33 -5
  266. package/src/theme/code-block.scss +37 -0
  267. package/src/theme/common/var.scss +1 -1
  268. package/src/theme/component-list-panel.scss +2 -2
  269. package/src/theme/data-source-field.scss +4 -0
  270. package/src/theme/display-conds.scss +11 -0
  271. package/src/theme/event.scss +70 -1
  272. package/src/theme/floating-box.scss +9 -1
  273. package/src/theme/framework.scss +4 -1
  274. package/src/theme/history-list-panel.scss +157 -23
  275. package/src/theme/layer-node-content.scss +14 -0
  276. package/src/theme/nav-menu.scss +5 -1
  277. package/src/theme/page-bar.scss +0 -4
  278. package/src/theme/props-panel.scss +5 -4
  279. package/src/theme/scroll-bar.scss +64 -0
  280. package/src/theme/style-setter/border.scss +17 -5
  281. package/src/theme/theme.scss +4 -0
  282. package/src/theme/themes/magic-admin/index.scss +214 -0
  283. package/src/theme/ui-select.scss +9 -0
  284. package/src/type.ts +668 -124
  285. package/src/utils/config.ts +9 -1
  286. package/src/utils/const.ts +3 -2
  287. package/src/utils/content-menu.ts +20 -11
  288. package/src/utils/data-source/index.ts +32 -12
  289. package/src/utils/dep/collect-worker-client.ts +149 -0
  290. package/src/utils/dep/idle-task.ts +104 -35
  291. package/src/utils/dep/worker.ts +113 -9
  292. package/src/utils/editor.ts +166 -60
  293. package/src/utils/event.ts +237 -0
  294. package/src/utils/history.ts +286 -0
  295. package/src/utils/index.ts +4 -0
  296. package/src/utils/indexed-db.ts +122 -0
  297. package/src/utils/monaco-editor.ts +27 -0
  298. package/src/utils/operator.ts +2 -2
  299. package/src/utils/props.ts +114 -11
  300. package/src/utils/type-match-rules.ts +684 -0
  301. package/src/utils/undo-redo.ts +88 -0
  302. package/types/index.d.ts +1990 -517
  303. package/dist/es/layouts/history-list/CodeBlockTab.js +0 -5
  304. package/dist/es/layouts/history-list/CodeBlockTab.vue_vue_type_script_setup_true_lang.js +0 -62
  305. package/dist/es/layouts/history-list/DataSourceTab.js +0 -5
  306. package/dist/es/layouts/history-list/DataSourceTab.vue_vue_type_script_setup_true_lang.js +0 -62
  307. package/src/layouts/history-list/CodeBlockTab.vue +0 -61
  308. package/src/layouts/history-list/DataSourceTab.vue +0 -61
@@ -0,0 +1,3028 @@
1
+ @charset "UTF-8";
2
+ .tmagic-design-popper {
3
+ min-width: 150px;
4
+ line-height: 1.4;
5
+ background-color: #fff;
6
+ box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
7
+ color: #606266;
8
+ border: 1px solid #e4e7ed;
9
+ border-radius: 4px;
10
+ font-size: 14px;
11
+ overflow-wrap: break-word;
12
+ box-sizing: border-box;
13
+ padding: 10px;
14
+ }
15
+ .tmagic-design-popper:focus {
16
+ outline: none;
17
+ }
18
+
19
+ .tmagic-design-popper[data-popper-placement^=top] > .tmagic-design-popper-arrow {
20
+ bottom: -4px;
21
+ }
22
+
23
+ .tmagic-design-popper[data-popper-placement^=bottom] > .tmagic-design-popper-arrow {
24
+ top: -4px;
25
+ }
26
+
27
+ .tmagic-design-popper[data-popper-placement^=left] > .tmagic-design-popper-arrow {
28
+ right: -4px;
29
+ }
30
+
31
+ .tmagic-design-popper[data-popper-placement^=right] > .tmagic-design-popper-arrow {
32
+ left: -4px;
33
+ }
34
+
35
+ .tmagic-design-popper-arrow,
36
+ .tmagic-design-popper-arrow::before {
37
+ position: absolute;
38
+ width: 8px;
39
+ height: 8px;
40
+ background: inherit;
41
+ }
42
+
43
+ .tmagic-design-popper-arrow {
44
+ visibility: hidden;
45
+ }
46
+
47
+ .tmagic-design-popper-arrow::before {
48
+ visibility: visible;
49
+ content: "";
50
+ transform: rotate(45deg);
51
+ }
52
+
53
+ .tmagic-design-card.tmagic-design-card--flat {
54
+ background: #fff;
55
+ box-shadow: none !important;
56
+ border-top: 0;
57
+ border-left: 0;
58
+ border-right: 0;
59
+ border-radius: 0;
60
+ border-bottom: 0;
61
+ }
62
+ .tmagic-design-card.tmagic-design-card--flat.m-flat-hide-body .el-card__header {
63
+ border-bottom: 0 !important;
64
+ }
65
+ .tmagic-design-card.tmagic-design-card--flat.m-fields-group-list-item {
66
+ margin-bottom: 0;
67
+ }
68
+ .tmagic-design-card.tmagic-design-card--flat.is-always-shadow {
69
+ box-shadow: none;
70
+ }
71
+ .tmagic-design-card.tmagic-design-card--flat .el-card__header {
72
+ border-bottom: none;
73
+ padding: 16px;
74
+ }
75
+ .tmagic-design-card.tmagic-design-card--flat .el-card__header:hover {
76
+ background: transparent;
77
+ box-shadow: none;
78
+ cursor: default;
79
+ }
80
+ .tmagic-design-card.tmagic-design-card--flat .m-fields-group-list-footer {
81
+ margin-bottom: 4px;
82
+ margin-top: 4px;
83
+ }
84
+ .tmagic-design-card.tmagic-design-card--flat .el-card__body {
85
+ padding: 0 16px 0 16px;
86
+ }
87
+ .tmagic-design-card.tmagic-design-card--flat .el-card__body .tmagic-design-form-item:not(tbody .tmagic-design-form-item) {
88
+ margin-bottom: 16px;
89
+ }
90
+ .tmagic-design-card.tmagic-design-card--flat .el-card__body > .m-container-row {
91
+ overflow-x: hidden;
92
+ }
93
+ .m-split-title-card-container > .tmagic-design-card.tmagic-design-card--flat {
94
+ background-color: transparent;
95
+ }
96
+ .m-split-title-card-container > .tmagic-design-card.tmagic-design-card--flat > .el-card__header {
97
+ margin-bottom: 10px;
98
+ padding: 0;
99
+ font-size: 16px;
100
+ font-weight: 500;
101
+ line-height: 24px;
102
+ }
103
+ .m-split-title-card-container > .tmagic-design-card.tmagic-design-card--flat > .el-card__body {
104
+ background-color: #fff;
105
+ padding-top: 8px;
106
+ }
107
+
108
+ .tmagic-design-color-picker-input {
109
+ margin-left: 8px;
110
+ width: calc(var(--el-input-width, 100%) - 40px);
111
+ }
112
+
113
+ .tmagic-design-color-picker {
114
+ flex: 0 0 auto;
115
+ }
116
+
117
+ .m-form.m-form--magic-admin .el-collapse-item__header {
118
+ background-color: transparent;
119
+ padding: 0;
120
+ border: 0;
121
+ padding-left: 0;
122
+ font-size: 16px;
123
+ font-weight: 500;
124
+ line-height: 24px;
125
+ margin-top: 8px;
126
+ margin-bottom: 8px;
127
+ }
128
+
129
+ .tmagic-design-form-item.has-extra-tips > .el-form-item__content {
130
+ gap: 10px;
131
+ }
132
+ .tmagic-design-form-item.has-extra-tips > .el-form-item__content > .tmagic-design-alert {
133
+ border-radius: 2px;
134
+ width: fit-content;
135
+ padding: 0 8px;
136
+ color: var(--el-color-primary, #0056ea);
137
+ background-color: var(--el-color-primary-light-9, rgb(236, 245, 255));
138
+ }
139
+ .tmagic-design-form-item.has-extra-tips > .el-form-item__content > .tmagic-design-alert .el-icon.el-alert__icon {
140
+ fill: var(--el-color-primary, #0056ea);
141
+ color: var(--el-color-primary, #0056ea);
142
+ }
143
+ .tmagic-design-form-item.has-extra-tips > .el-form-item__content > .tmagic-design-alert .el-alert__title {
144
+ font-size: 14px;
145
+ line-height: 22px;
146
+ }
147
+
148
+ .m-table .el-button.action-btn + .el-button.action-btn {
149
+ margin-left: 0;
150
+ }
151
+ .m-table .keep-all {
152
+ word-break: keep-all;
153
+ }
154
+ .m-table .el-table .cell > div {
155
+ display: inline-block;
156
+ vertical-align: middle;
157
+ }
158
+ .m-table .el-table__row.el-table__row--level-1 {
159
+ color: #999;
160
+ }
161
+
162
+ .tmagic-table-sub-actions {
163
+ display: flex;
164
+ flex-direction: column;
165
+ gap: 4px;
166
+ align-items: flex-start;
167
+ }
168
+ .tmagic-table-sub-actions .sub-action-btn {
169
+ width: 100%;
170
+ }
171
+ .tmagic-table-sub-actions .tmagic-design-button + .tmagic-design-button {
172
+ margin-left: 0;
173
+ }
174
+ .tmagic-table-sub-actions .tmagic-design-button {
175
+ justify-content: flex-start;
176
+ }
177
+
178
+ .tmagic-design-form-inline .m-form-container {
179
+ display: inline-flex;
180
+ }
181
+
182
+ .m-form-container.has-tip {
183
+ display: flex;
184
+ align-items: baseline;
185
+ }
186
+ .m-form-container.has-tip .tmagic-design-form-item {
187
+ flex: 1;
188
+ }
189
+ .m-form-container .tmagic-design-form-item.show-after-diff {
190
+ background: rgb(225, 243, 216);
191
+ }
192
+ .m-form-container .tmagic-design-form-item.show-before-diff {
193
+ background: #f7dadd;
194
+ }
195
+ .m-form-container .m-form-title-extra {
196
+ margin-left: 8px;
197
+ }
198
+
199
+ .m-form-dialog .el-dialog__body {
200
+ padding: 0 !important;
201
+ }
202
+ .m-form-dialog .m-dialog-body {
203
+ padding: 0 20px;
204
+ }
205
+ .m-form-dialog .el-table .m-form-item .el-form-item:not(.is-error) {
206
+ margin-bottom: 0;
207
+ }
208
+
209
+ .m-form-drawer .el-drawer__header {
210
+ margin: 0;
211
+ }
212
+ .m-form-drawer .m-drawer-body {
213
+ height: 100%;
214
+ overflow-y: auto;
215
+ overflow-x: hidden;
216
+ }
217
+
218
+ .fade-enter-active,
219
+ .fade-leave-active {
220
+ transition: opacity 0.5s;
221
+ }
222
+
223
+ .fade-enter, .fade-leave-to {
224
+ opacity: 0;
225
+ }
226
+
227
+ .m-form .m-form-tip {
228
+ color: rgba(0, 0, 0, 0.45);
229
+ font-size: 12px;
230
+ transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
231
+ }
232
+ .m-form .m-form-schematic {
233
+ max-width: 50%;
234
+ height: 100%;
235
+ }
236
+ .m-form .tmagic-design-table .cell > div.m-form-container {
237
+ display: block;
238
+ }
239
+ .m-form .tmagic-design-table .cell > div.m-form-container.has-tip {
240
+ display: flex;
241
+ }
242
+ .m-form .tmagic-design-tabs {
243
+ margin-bottom: 10px;
244
+ }
245
+ .m-form .tmagic-design-form-item.tmagic-form-hidden > .el-form-item__label {
246
+ display: none;
247
+ }
248
+ .m-form .t-form__item.tmagic-form-hidden > .t-form__label {
249
+ display: none;
250
+ }
251
+ .m-form .t-form__item.tmagic-form-hidden > .t-form__controls {
252
+ margin-left: 0 !important;
253
+ }
254
+ .m-form.t-form:not(.t-form-inline) .t-form__item:last-of-type {
255
+ margin-bottom: var(--td-comp-margin-xxl);
256
+ }
257
+
258
+ .m-form-container .m-form-container-expand {
259
+ text-align: center;
260
+ }
261
+
262
+ .magic-datetime-picker-popper .el-picker-panel__footer button:first-child {
263
+ display: none;
264
+ }
265
+
266
+ .m-fields-text {
267
+ display: flex;
268
+ align-items: center;
269
+ width: 100%;
270
+ }
271
+ .m-fields-text--static {
272
+ gap: 6px;
273
+ min-height: 32px;
274
+ }
275
+ .m-fields-text--static .m-fields-text__prepend {
276
+ color: var(--el-text-color-secondary, #909399);
277
+ }
278
+ .m-fields-text--static .m-fields-text__value {
279
+ color: var(--el-text-color-regular, #606266);
280
+ overflow: hidden;
281
+ text-overflow: ellipsis;
282
+ white-space: nowrap;
283
+ }
284
+ .m-fields-text--static .m-fields-text__icon {
285
+ width: 16px;
286
+ height: 16px;
287
+ cursor: pointer;
288
+ }
289
+
290
+ .m-form-validate__warning {
291
+ color: var(--el-color-warning);
292
+ font-size: 12px;
293
+ width: 100%;
294
+ line-height: 1.4;
295
+ }
296
+
297
+ .tmagic-form-text-popper {
298
+ min-width: 150px;
299
+ line-height: 1.4;
300
+ background-color: #fff;
301
+ box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
302
+ color: #606266;
303
+ border: 1px solid #e4e7ed;
304
+ border-radius: 4px;
305
+ font-size: 14px;
306
+ overflow-wrap: break-word;
307
+ box-sizing: border-box;
308
+ padding: 10px;
309
+ }
310
+ .tmagic-form-text-popper:focus {
311
+ outline: none;
312
+ }
313
+
314
+ .m-container-text.m-fields-title-container .tmagic-design-form-item .el-form-item__label {
315
+ color: #0f1113;
316
+ font-weight: 500;
317
+ font-size: 16px;
318
+ }
319
+ .m-container-text.m-fields-title-container .tmagic-design-form-item {
320
+ line-height: 24px;
321
+ margin-bottom: 16px;
322
+ }
323
+
324
+ .tmagic-form-text-popper[data-popper-placement^=top] > .tmagic-form-text-popper-arrow {
325
+ bottom: -4px;
326
+ }
327
+
328
+ .tmagic-form-text-popper[data-popper-placement^=bottom] > .tmagic-form-text-popper-arrow {
329
+ top: -4px;
330
+ }
331
+
332
+ .tmagic-form-text-popper[data-popper-placement^=left] > .tmagic-form-text-popper-arrow {
333
+ right: -4px;
334
+ }
335
+
336
+ .tmagic-form-text-popper[data-popper-placement^=right] > .tmagic-form-text-popper-arrow {
337
+ left: -4px;
338
+ }
339
+
340
+ .tmagic-form-text-popper-arrow,
341
+ .tmagic-form-text-popper-arrow::before {
342
+ position: absolute;
343
+ width: 8px;
344
+ height: 8px;
345
+ background: inherit;
346
+ }
347
+
348
+ .tmagic-form-text-popper-arrow {
349
+ visibility: hidden;
350
+ }
351
+
352
+ .tmagic-form-text-popper-arrow::before {
353
+ visibility: visible;
354
+ content: "";
355
+ transform: rotate(45deg);
356
+ }
357
+
358
+ div.m-fields-link {
359
+ width: fit-content;
360
+ }
361
+
362
+ a.magic-admin-link {
363
+ width: 100%;
364
+ box-sizing: border-box;
365
+ border-radius: 4px;
366
+ border: 1px solid #e6e6e6;
367
+ background-color: #fafafa;
368
+ padding: 0 8px;
369
+ height: 28px;
370
+ display: inline-flex;
371
+ gap: 4px;
372
+ align-items: center;
373
+ text-decoration: none;
374
+ }
375
+ a.magic-admin-link i {
376
+ margin-right: 4px;
377
+ }
378
+
379
+ .m-container-fieldset.no-border-fieldset.fieldset-in-row > fieldset.m-fieldset legend {
380
+ left: 0;
381
+ }
382
+ .m-container-fieldset.no-border-fieldset > fieldset.m-fieldset {
383
+ border: 0;
384
+ }
385
+ .m-container-fieldset.no-border-fieldset > fieldset.m-fieldset legend {
386
+ position: relative;
387
+ left: -5px;
388
+ font-size: 16px;
389
+ font-weight: 500;
390
+ line-height: 24px;
391
+ padding: 0;
392
+ }
393
+ .m-container-fieldset.fieldset-in-card-fit {
394
+ border-bottom: 1px solid #e6e6e6;
395
+ }
396
+ .m-container-fieldset.fieldset-in-card-fit > fieldset.m-fieldset {
397
+ padding: 16px 0 16px 0 !important;
398
+ border: 0;
399
+ margin-top: 0;
400
+ margin-bottom: 0;
401
+ }
402
+ .m-container-fieldset.fieldset-in-card-fit > fieldset.m-fieldset legend {
403
+ position: relative;
404
+ top: 10px;
405
+ background-color: transparent;
406
+ }
407
+ .m-container-fieldset.fieldset-in-card-fit.fieldset-in-card-fit-last {
408
+ padding-bottom: 0 !important;
409
+ border-bottom: 0;
410
+ }
411
+ .m-container-fieldset.fieldset-in-card-fit.fieldset-in-card-fit-first {
412
+ padding-top: 0 !important;
413
+ }
414
+ .m-container-fieldset.fieldset-in-card-fit:last-child {
415
+ padding-bottom: 0 !important;
416
+ border-bottom: 0;
417
+ }
418
+ .m-container-fieldset.fieldset-in-card-fit:first {
419
+ padding-top: 0 !important;
420
+ }
421
+
422
+ fieldset.m-fieldset {
423
+ position: relative;
424
+ border: 1px solid rgb(229, 229, 229);
425
+ margin-top: 10px;
426
+ margin-bottom: 10px;
427
+ min-inline-size: auto;
428
+ }
429
+ fieldset.m-fieldset .el-checkbox {
430
+ height: 22px;
431
+ }
432
+ fieldset.m-fieldset legend {
433
+ font-size: 14px;
434
+ position: absolute;
435
+ border: 0;
436
+ top: -10px;
437
+ left: 20px;
438
+ background: rgb(255, 255, 255);
439
+ width: auto;
440
+ padding: 0px 3px;
441
+ font-weight: bold;
442
+ line-height: 20px;
443
+ }
444
+ fieldset.m-fieldset .m-form-tip {
445
+ margin-left: 5px;
446
+ }
447
+
448
+ .m-fields-group-list .m-fields-group-list-item.tmagic-design-card--flat:last-child {
449
+ border: 0;
450
+ }
451
+ .m-fields-group-list .el-button--text {
452
+ padding: 0;
453
+ margin-bottom: 7px;
454
+ }
455
+ .m-fields-group-list .el-tree-node__expand-icon {
456
+ padding: 0;
457
+ margin-bottom: 7px;
458
+ }
459
+ .m-fields-group-list .el-tree-node__expand-icon.expand {
460
+ transform: rotate(90deg);
461
+ }
462
+ .m-fields-group-list .m-fields-group-list-item {
463
+ border-bottom: 1px solid #ebeef5;
464
+ margin-bottom: 7px;
465
+ }
466
+ .m-fields-group-list .m-fields-group-list-item:last-of-type {
467
+ border-bottom: 0;
468
+ }
469
+ .m-fields-group-list .m-fields-group-list-item .m-fields-group-list-item-header {
470
+ display: flex;
471
+ align-items: center;
472
+ gap: 8px;
473
+ }
474
+ .m-fields-group-list .m-fields-group-list-footer {
475
+ justify-content: space-between;
476
+ margin-top: 10px;
477
+ margin-bottom: 16px;
478
+ }
479
+
480
+ /** 最外层的groupList需要每个item需要增加空白区域界限时,增加outer-gorup_list可以实现 */
481
+ .m-container-group-list.outer-gorup_list > .m-fields-group-list > .m-fields-group-list-item {
482
+ margin-bottom: 10px;
483
+ }
484
+
485
+ .m-form-panel .el-card__header:hover {
486
+ background: #f2f6fc;
487
+ }
488
+ .m-form-panel .el-card__header a {
489
+ color: var(--el-color-primary, #409eff);
490
+ }
491
+ .m-form-panel .el-card__body {
492
+ padding: 10px;
493
+ }
494
+ .m-form-panel .m-form-tip {
495
+ margin-left: 5px;
496
+ }
497
+
498
+ .m-container-panel:not(:last-of-type) {
499
+ margin-bottom: 20px;
500
+ }
501
+
502
+ .m-fields-table-wrap {
503
+ width: 100%;
504
+ }
505
+ .m-fields-table-wrap.fixed {
506
+ position: fixed;
507
+ height: 100%;
508
+ overflow: auto;
509
+ top: 0;
510
+ right: 0;
511
+ left: 0;
512
+ bottom: 0;
513
+ z-index: 100;
514
+ background: rgba(0, 0, 0, 0.5);
515
+ align-items: center;
516
+ display: flex;
517
+ }
518
+ .m-fields-table-wrap.fixed > .el-form-item__content {
519
+ z-index: 101;
520
+ position: relative;
521
+ margin: 10vh auto;
522
+ max-width: fit-content;
523
+ }
524
+ .m-fields-table-wrap.fixed table {
525
+ width: 95vw !important;
526
+ }
527
+
528
+ .el-form-item .m-fields-table .el-form-item.is-error {
529
+ margin-bottom: 18px;
530
+ }
531
+
532
+ .m-fields-table {
533
+ width: 100%;
534
+ }
535
+ .m-fields-table th {
536
+ background-color: #f2f2f2 !important;
537
+ color: #333 !important;
538
+ }
539
+ .m-fields-table .el-table th {
540
+ padding: 0 !important;
541
+ }
542
+ .m-fields-table .el-table__column--dropable {
543
+ cursor: move;
544
+ }
545
+ .m-fields-table .el-form-item__content .el-input-group {
546
+ vertical-align: middle;
547
+ }
548
+ .m-fields-table.m-fields-table-item-extra tr.expanded td {
549
+ border-bottom: 0;
550
+ }
551
+ .m-fields-table .el-table__expanded-cell .m-form-tip {
552
+ margin-left: 80px;
553
+ }
554
+ .m-fields-table .el-form-item:not(.is-error) {
555
+ margin-bottom: 0;
556
+ }
557
+ .m-fields-table .tmagic-form-table-drag-target {
558
+ cursor: move;
559
+ }
560
+
561
+ .m-select {
562
+ width: 100%;
563
+ }
564
+
565
+ .magic-form-dynamic-tab .el-tabs__header.is-top {
566
+ padding-right: 8px;
567
+ }
568
+ .magic-form-dynamic-tab .el-tabs__header.is-top .el-tabs__new-tab {
569
+ margin-right: auto;
570
+ min-width: 50px;
571
+ outline: none;
572
+ border-color: var(--el-color-primary, #409eff);
573
+ color: var(--el-color-primary, #409eff);
574
+ width: 10px;
575
+ }
576
+ .magic-form-dynamic-tab .el-tabs__header.is-top .el-tabs__new-tab::before {
577
+ content: "添加";
578
+ }
579
+ .magic-form-dynamic-tab .el-tabs__header.is-top .el-tabs__new-tab .el-icon-plus {
580
+ display: none;
581
+ }
582
+
583
+ .magic-form-tab {
584
+ margin-bottom: 10px;
585
+ }
586
+
587
+ .diff-count-badge {
588
+ top: -10px;
589
+ }
590
+
591
+ .m-fields-number-range {
592
+ display: flex;
593
+ align-items: center;
594
+ }
595
+ .m-fields-number-range .split-tag {
596
+ margin: 0 5px;
597
+ }
598
+
599
+ .m-form-box {
600
+ display: flex;
601
+ flex-direction: column;
602
+ }
603
+ .m-form-box .el-box__header {
604
+ margin: 0;
605
+ }
606
+ .m-form-box .dialog-footer {
607
+ display: flex;
608
+ align-items: center;
609
+ justify-content: space-between;
610
+ }
611
+
612
+ .m-fields-radio-group__option {
613
+ display: flex;
614
+ align-items: center;
615
+ }
616
+
617
+ .m-fields-radio-group__text {
618
+ display: inline-block;
619
+ vertical-align: middle;
620
+ white-space: pre-line;
621
+ line-height: 20px;
622
+ }
623
+
624
+ .m-fields-radio-group__icon_with_text {
625
+ margin-right: 8px;
626
+ }
627
+
628
+ .m-form.m-form--magic-admin [class="m-form-container m-container-fieldset"],
629
+ .m-form.m-form--magic-admin [class="m-container-fieldset m-form-container"] {
630
+ margin-top: 15px;
631
+ }
632
+ .m-form.m-form--magic-admin .m-container-tab:not(.magic-right-panel-tabs-top):not(.magic-form-dynamic-tab) > .tmagic-design-tabs:not(.el-tabs--border-card) > .el-tabs__content {
633
+ background-color: #fff;
634
+ padding: 16px 16px 0 16px;
635
+ border-radius: 4px;
636
+ }
637
+ .m-form.m-form--magic-admin .m-form-tip {
638
+ color: rgba(0, 0, 0, 0.55);
639
+ }
640
+ .m-form.m-form--magic-admin .tmagic-design-form-item.show-after-diff {
641
+ background: #d4edbc;
642
+ }
643
+ .m-form.m-form--magic-admin .tmagic-design-form-item.show-before-diff {
644
+ background: #fad2cf;
645
+ }
646
+ .m-form.m-form--magic-admin .m-fields-radio-group__text {
647
+ white-space: pre-line;
648
+ line-height: 20px;
649
+ }
650
+ .m-form.m-form--magic-admin .el-form-item__content .tmagic-design-radio-group .tmagic-design-radio-button {
651
+ height: 32px;
652
+ }
653
+ .m-form.m-form--magic-admin .el-form-item__content .tmagic-design-radio-group .tmagic-design-radio-button .el-radio-button__inner {
654
+ height: 32px;
655
+ display: flex;
656
+ padding-top: 0;
657
+ padding-bottom: 0;
658
+ align-items: center;
659
+ }
660
+ .m-form.m-form--magic-admin .m-fields-data-source-field-select .tmagic-design-button {
661
+ margin-left: 8px;
662
+ }
663
+ .m-form.m-form--magic-admin .m-fields-data-source-field-select .tmagic-design-button span {
664
+ font-size: 16px;
665
+ }
666
+ .m-form.m-form--magic-admin .m-fields-group-list-item.tmagic-design-card--flat .el-card__body .m-fields-table-wrap .m-fields-table .el-table__header-wrapper thead {
667
+ height: 48px;
668
+ }
669
+ .m-form.m-form--magic-admin .m-fields-group-list-item.tmagic-design-card--flat .m-fields-group-list-item-header {
670
+ position: relative;
671
+ }
672
+ .m-form.m-form--magic-admin .m-fields-group-list-item.tmagic-design-card--flat .m-fields-group-list-item-header .delete-button {
673
+ position: absolute;
674
+ right: 0;
675
+ color: #0f1113;
676
+ }
677
+ .m-form.m-form--magic-admin .m-form-container .m-form-container-expand {
678
+ text-align: left;
679
+ }
680
+ .m-form.m-form--magic-admin .m-fields-group-list .el-table__empty-block .el-table__empty-text {
681
+ width: 100%;
682
+ background-color: rgba(0, 0, 0, 0.03);
683
+ margin-top: 8px;
684
+ border-radius: 4px;
685
+ }
686
+
687
+ .tmagic-design-input.search-input {
688
+ background: #fff;
689
+ color: #bbbbbb;
690
+ padding: 10px;
691
+ position: absolute;
692
+ top: 0;
693
+ left: 0;
694
+ box-sizing: border-box;
695
+ z-index: 1;
696
+ background: transparent;
697
+ }
698
+ .tmagic-design-input.search-input .el-input__prefix {
699
+ padding: 7px;
700
+ }
701
+
702
+ .m-editor-nav-menu {
703
+ display: flex;
704
+ z-index: 5;
705
+ -webkit-box-pack: justify;
706
+ justify-content: space-between;
707
+ -webkit-box-align: center;
708
+ align-items: center;
709
+ background-color: #ffffff;
710
+ font-size: 19.2px;
711
+ color: #313a40;
712
+ font-weight: 400;
713
+ box-sizing: border-box;
714
+ margin: 0px;
715
+ flex: 0 0 var(--editor-nav-height, 35px);
716
+ border-bottom: 1px solid #d8dee8;
717
+ }
718
+ .m-editor-nav-menu > div {
719
+ display: flex;
720
+ gap: 3px;
721
+ height: 100%;
722
+ z-index: 1;
723
+ align-items: center;
724
+ flex-wrap: nowrap;
725
+ overflow: hidden;
726
+ position: relative;
727
+ min-width: 0;
728
+ }
729
+ .m-editor-nav-menu .menu-center {
730
+ justify-content: center;
731
+ }
732
+ .m-editor-nav-menu .menu-right {
733
+ justify-content: flex-end;
734
+ }
735
+ .m-editor-nav-menu .m-editor-nav-menu-slot-hidden {
736
+ position: absolute;
737
+ left: -99999px;
738
+ top: 0;
739
+ visibility: hidden;
740
+ pointer-events: none;
741
+ }
742
+ .m-editor-nav-menu .m-editor-nav-menu-more-wrapper {
743
+ flex: 0 0 auto;
744
+ display: flex;
745
+ align-items: center;
746
+ height: 100%;
747
+ }
748
+ .m-editor-nav-menu .m-editor-nav-menu-more-wrapper.m-editor-nav-menu-more-wrapper-hidden {
749
+ visibility: hidden;
750
+ pointer-events: none;
751
+ }
752
+ .m-editor-nav-menu .m-editor-nav-menu-more {
753
+ flex: 0 0 auto;
754
+ }
755
+ .m-editor-nav-menu .menu-item {
756
+ flex-direction: row;
757
+ flex: 0 0 auto;
758
+ -webkit-box-align: center;
759
+ align-items: center;
760
+ vertical-align: middle;
761
+ font-size: 14px;
762
+ line-height: 1;
763
+ height: 100%;
764
+ color: rgba(255, 255, 255, 0.7);
765
+ box-sizing: inherit;
766
+ z-index: 1;
767
+ display: flex !important;
768
+ transition: all 0.3s ease 0s;
769
+ border-bottom: 2px solid transparent;
770
+ margin: 0;
771
+ white-space: nowrap;
772
+ }
773
+ .m-editor-nav-menu .menu-item .is-disabled {
774
+ opacity: 0.5;
775
+ }
776
+ .m-editor-nav-menu .menu-item .is-text {
777
+ padding: 5px;
778
+ }
779
+ .m-editor-nav-menu .menu-item .is-text > i {
780
+ color: #313a40;
781
+ }
782
+ .m-editor-nav-menu .menu-item .icon {
783
+ display: flex;
784
+ -webkit-box-align: center;
785
+ align-items: center;
786
+ height: 100%;
787
+ padding: 0px 8px;
788
+ }
789
+ .m-editor-nav-menu .menu-item .menu-item-text {
790
+ color: #313a40;
791
+ white-space: nowrap;
792
+ }
793
+ .m-editor-nav-menu .menu-item.rule .el-icon {
794
+ transform: rotate(-90deg);
795
+ }
796
+ .m-editor-nav-menu .menu-item .t-button {
797
+ padding-left: 1px;
798
+ padding-right: 1px;
799
+ }
800
+
801
+ .m-editor-nav-menu-popover .m-editor-nav-menu-overflow-list {
802
+ display: flex;
803
+ flex-direction: column;
804
+ gap: 4px;
805
+ padding: 4px 0;
806
+ }
807
+ .m-editor-nav-menu-popover .m-editor-nav-menu-overflow-list .menu-item {
808
+ display: flex;
809
+ align-items: center;
810
+ padding: 4px 8px;
811
+ cursor: pointer;
812
+ border-radius: 4px;
813
+ }
814
+ .m-editor-nav-menu-popover .m-editor-nav-menu-overflow-list .menu-item:hover {
815
+ background-color: rgba(0, 0, 0, 0.05);
816
+ }
817
+ .m-editor-nav-menu-popover .m-editor-nav-menu-overflow-list .menu-item.divider {
818
+ padding: 0;
819
+ cursor: default;
820
+ }
821
+ .m-editor-nav-menu-popover .m-editor-nav-menu-overflow-list .menu-item.divider:hover {
822
+ background-color: transparent;
823
+ }
824
+
825
+ .m-editor-history-list-popover {
826
+ padding: 0 !important;
827
+ }
828
+ .m-editor-history-list-popover .m-editor-history-list {
829
+ position: relative;
830
+ padding: 4px 8px 8px;
831
+ }
832
+ .m-editor-history-list-popover .m-editor-history-list-close {
833
+ position: absolute;
834
+ top: 4px;
835
+ right: 4px;
836
+ z-index: 2;
837
+ display: flex;
838
+ align-items: center;
839
+ height: 40px;
840
+ margin: 0;
841
+ color: #909399;
842
+ }
843
+ .m-editor-history-list-popover .m-editor-history-list-close:hover {
844
+ color: var(--el-color-primary, #409eff);
845
+ }
846
+ .m-editor-history-list-popover .m-editor-history-list-tabs .el-tabs__header,
847
+ .m-editor-history-list-popover .m-editor-history-list-tabs .t-tabs__header {
848
+ margin-bottom: 4px;
849
+ }
850
+ .m-editor-history-list-popover .m-editor-history-list-empty {
851
+ padding: 24px 0;
852
+ text-align: center;
853
+ color: #909399;
854
+ font-size: 12px;
855
+ }
856
+ .m-editor-history-list-popover .m-editor-history-list-ul {
857
+ margin: 0;
858
+ padding: 0;
859
+ list-style: none;
860
+ }
861
+ .m-editor-history-list-popover .m-editor-history-list-toolbar {
862
+ display: flex;
863
+ align-items: center;
864
+ justify-content: flex-end;
865
+ padding: 0 4px 4px;
866
+ }
867
+ .m-editor-history-list-popover .m-editor-history-list-clear {
868
+ padding: 2px 8px;
869
+ border-radius: 4px;
870
+ font-size: 12px;
871
+ color: #f56c6c;
872
+ cursor: pointer;
873
+ user-select: none;
874
+ }
875
+ .m-editor-history-list-popover .m-editor-history-list-clear:hover {
876
+ background-color: rgba(245, 108, 108, 0.12);
877
+ }
878
+ .m-editor-history-list-popover .m-editor-history-list-item {
879
+ display: flex;
880
+ align-items: center;
881
+ gap: 6px;
882
+ padding: 6px 8px;
883
+ border-radius: 4px;
884
+ font-size: 12px;
885
+ line-height: 1.4;
886
+ color: #303133;
887
+ cursor: default;
888
+ }
889
+ .m-editor-history-list-popover .m-editor-history-list-item:not(.m-editor-history-list-group.is-merged):hover {
890
+ background-color: rgba(0, 0, 0, 0.04);
891
+ }
892
+ .m-editor-history-list-popover .m-editor-history-list-item.is-undone {
893
+ color: #c0c4cc;
894
+ }
895
+ .m-editor-history-list-popover .m-editor-history-list-item.is-undone .m-editor-history-list-item-op {
896
+ opacity: 0.5;
897
+ }
898
+ .m-editor-history-list-popover .m-editor-history-list-item.is-current:not(.m-editor-history-list-group.is-merged) {
899
+ background-color: rgba(64, 158, 255, 0.1);
900
+ box-shadow: inset 2px 0 0 var(--el-color-primary, #409eff);
901
+ }
902
+ .m-editor-history-list-popover .m-editor-history-list-item.is-current:not(.m-editor-history-list-group.is-merged):hover {
903
+ background-color: rgba(64, 158, 255, 0.16);
904
+ }
905
+ .m-editor-history-list-popover .m-editor-history-list-item.is-current:not(.m-editor-history-list-group.is-merged) .m-editor-history-list-item-desc {
906
+ font-weight: 600;
907
+ color: var(--el-color-primary, #409eff);
908
+ }
909
+ .m-editor-history-list-popover .m-editor-history-list-group {
910
+ flex-direction: column;
911
+ align-items: stretch;
912
+ gap: 0;
913
+ }
914
+ .m-editor-history-list-popover .m-editor-history-list-group .m-editor-history-list-group-head {
915
+ display: flex;
916
+ align-items: center;
917
+ gap: 6px;
918
+ cursor: default;
919
+ }
920
+ .m-editor-history-list-popover .m-editor-history-list-group .m-editor-history-list-group-head.is-clickable {
921
+ cursor: pointer;
922
+ }
923
+ .m-editor-history-list-popover .m-editor-history-list-group .m-editor-history-list-group-toggle {
924
+ flex: 0 0 auto;
925
+ width: 16px;
926
+ text-align: center;
927
+ color: #909399;
928
+ font-size: 12px;
929
+ user-select: none;
930
+ transition: transform 0.15s ease;
931
+ pointer-events: none;
932
+ }
933
+ .m-editor-history-list-popover .m-editor-history-list-group .m-editor-history-list-group-toggle.is-expanded {
934
+ transform: rotate(180deg);
935
+ }
936
+ .m-editor-history-list-popover .m-editor-history-list-group.is-merged {
937
+ margin: 4px 0;
938
+ padding: 4px 8px 6px;
939
+ background-color: rgba(47, 84, 235, 0.06);
940
+ border: 1px solid rgba(47, 84, 235, 0.18);
941
+ border-left: 3px solid #2f54eb;
942
+ border-radius: 4px;
943
+ }
944
+ .m-editor-history-list-popover .m-editor-history-list-group.is-merged:hover {
945
+ background-color: rgba(47, 84, 235, 0.1);
946
+ }
947
+ .m-editor-history-list-popover .m-editor-history-list-group.is-merged .m-editor-history-list-group-head {
948
+ font-weight: 600;
949
+ color: #1d39c4;
950
+ }
951
+ .m-editor-history-list-popover .m-editor-history-list-group.is-merged.is-undone {
952
+ background-color: rgba(192, 196, 204, 0.08);
953
+ border-color: rgba(192, 196, 204, 0.4);
954
+ border-left-color: #c0c4cc;
955
+ }
956
+ .m-editor-history-list-popover .m-editor-history-list-group.is-merged.is-undone .m-editor-history-list-group-head {
957
+ color: #c0c4cc;
958
+ }
959
+ .m-editor-history-list-popover .m-editor-history-list-group.is-merged.is-current {
960
+ background-color: rgba(64, 158, 255, 0.08);
961
+ border-color: rgba(64, 158, 255, 0.3);
962
+ border-left-color: var(--el-color-primary, #409eff);
963
+ box-shadow: none;
964
+ }
965
+ .m-editor-history-list-popover .m-editor-history-list-group.is-merged.is-current .m-editor-history-list-group-head {
966
+ color: var(--el-color-primary, #409eff);
967
+ }
968
+ .m-editor-history-list-popover .m-editor-history-list-substeps {
969
+ margin: 6px 0 0 6px;
970
+ padding: 0;
971
+ list-style: none;
972
+ border-left: 1px dashed rgba(47, 84, 235, 0.45);
973
+ }
974
+ .m-editor-history-list-popover .m-editor-history-list-substeps li {
975
+ display: flex;
976
+ align-items: center;
977
+ gap: 6px;
978
+ padding: 3px 8px;
979
+ font-size: 11px;
980
+ color: #606266;
981
+ cursor: default;
982
+ border-radius: 3px;
983
+ }
984
+ .m-editor-history-list-popover .m-editor-history-list-substeps li.is-clickable {
985
+ cursor: pointer;
986
+ }
987
+ .m-editor-history-list-popover .m-editor-history-list-substeps li.is-clickable:hover {
988
+ background-color: rgba(47, 84, 235, 0.1);
989
+ }
990
+ .m-editor-history-list-popover .m-editor-history-list-substeps li.is-undone {
991
+ color: #c0c4cc;
992
+ }
993
+ .m-editor-history-list-popover .m-editor-history-list-substeps li.is-current {
994
+ color: var(--el-color-primary, #409eff);
995
+ font-weight: 600;
996
+ background-color: rgba(64, 158, 255, 0.08);
997
+ border-radius: 3px;
998
+ }
999
+ .m-editor-history-list-popover .m-editor-history-list-item-current {
1000
+ flex: 0 0 auto;
1001
+ padding: 0 6px;
1002
+ border-radius: 2px;
1003
+ font-size: 10px;
1004
+ line-height: 16px;
1005
+ color: #fff;
1006
+ background-color: var(--el-color-primary, #409eff);
1007
+ font-weight: 500;
1008
+ }
1009
+ .m-editor-history-list-popover .m-editor-history-list-item-index {
1010
+ flex: 0 0 auto;
1011
+ min-width: 30px;
1012
+ text-align: right;
1013
+ color: #909399;
1014
+ font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
1015
+ font-size: 11px;
1016
+ font-weight: 400;
1017
+ white-space: nowrap;
1018
+ }
1019
+ .m-editor-history-list-popover .m-editor-history-list-group.is-merged > .m-editor-history-list-group-head > .m-editor-history-list-item-index {
1020
+ min-width: 0;
1021
+ text-align: left;
1022
+ }
1023
+ .m-editor-history-list-popover .m-editor-history-list-item-time {
1024
+ flex: 0 0 auto;
1025
+ color: #a8abb2;
1026
+ font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
1027
+ font-size: 11px;
1028
+ font-weight: 400;
1029
+ white-space: nowrap;
1030
+ }
1031
+ .m-editor-history-list-popover .m-editor-history-list-item-op {
1032
+ flex: 0 0 auto;
1033
+ padding: 0 6px;
1034
+ border-radius: 2px;
1035
+ font-size: 11px;
1036
+ line-height: 18px;
1037
+ color: #fff;
1038
+ background-color: #909399;
1039
+ }
1040
+ .m-editor-history-list-popover .m-editor-history-list-item-op.op-add {
1041
+ background-color: #67c23a;
1042
+ }
1043
+ .m-editor-history-list-popover .m-editor-history-list-item-op.op-remove {
1044
+ background-color: #f56c6c;
1045
+ }
1046
+ .m-editor-history-list-popover .m-editor-history-list-item-op.op-update {
1047
+ background-color: #e6a23c;
1048
+ }
1049
+ .m-editor-history-list-popover .m-editor-history-list-item-op.op-initial {
1050
+ background-color: #909399;
1051
+ }
1052
+ .m-editor-history-list-popover .m-editor-history-list-initial {
1053
+ cursor: default;
1054
+ color: #606266;
1055
+ border-top: 1px dashed #dcdfe6;
1056
+ margin-top: 4px;
1057
+ padding-top: 8px;
1058
+ }
1059
+ .m-editor-history-list-popover .m-editor-history-list-initial.is-clickable {
1060
+ cursor: pointer;
1061
+ }
1062
+ .m-editor-history-list-popover .m-editor-history-list-initial .m-editor-history-list-item-desc {
1063
+ font-style: italic;
1064
+ }
1065
+ .m-editor-history-list-popover .m-editor-history-list-item-desc {
1066
+ flex: 1 1 auto;
1067
+ overflow: hidden;
1068
+ text-overflow: ellipsis;
1069
+ white-space: nowrap;
1070
+ }
1071
+ .m-editor-history-list-popover .m-editor-history-list-item-source {
1072
+ flex: 0 0 auto;
1073
+ padding: 0 6px;
1074
+ border: 1px solid #dcdfe6;
1075
+ border-radius: 8px;
1076
+ font-size: 10px;
1077
+ line-height: 14px;
1078
+ color: #909399;
1079
+ background-color: #f4f4f5;
1080
+ white-space: nowrap;
1081
+ font-weight: 400;
1082
+ }
1083
+ .m-editor-history-list-popover .m-editor-history-list-item-operator {
1084
+ flex: 0 0 auto;
1085
+ padding: 0 6px;
1086
+ border: 1px solid #c6e2ff;
1087
+ border-radius: 8px;
1088
+ font-size: 10px;
1089
+ line-height: 14px;
1090
+ color: #409eff;
1091
+ background-color: #ecf5ff;
1092
+ white-space: nowrap;
1093
+ font-weight: 400;
1094
+ }
1095
+ .m-editor-history-list-popover .m-editor-history-list-item-saved {
1096
+ flex: 0 0 auto;
1097
+ padding: 0 6px;
1098
+ border-radius: 8px;
1099
+ font-size: 10px;
1100
+ line-height: 16px;
1101
+ color: #fff;
1102
+ background-color: #67c23a;
1103
+ white-space: nowrap;
1104
+ font-weight: 500;
1105
+ letter-spacing: 0.2px;
1106
+ }
1107
+ .m-editor-history-list-popover .m-editor-history-list-item-merge {
1108
+ flex: 0 0 auto;
1109
+ padding: 0 8px;
1110
+ border-radius: 8px;
1111
+ font-size: 10px;
1112
+ line-height: 16px;
1113
+ color: #fff;
1114
+ background-color: #2f54eb;
1115
+ font-weight: 500;
1116
+ letter-spacing: 0.2px;
1117
+ }
1118
+ .m-editor-history-list-popover .m-editor-history-list-item-actions {
1119
+ display: none;
1120
+ flex: 0 0 auto;
1121
+ align-items: center;
1122
+ gap: 6px;
1123
+ }
1124
+ .m-editor-history-list-popover .m-editor-history-list-group-head:hover > .m-editor-history-list-item-actions,
1125
+ .m-editor-history-list-popover .m-editor-history-list-substeps > li:hover > .m-editor-history-list-item-actions,
1126
+ .m-editor-history-list-popover .m-editor-history-list-initial:hover > .m-editor-history-list-item-actions {
1127
+ display: flex;
1128
+ }
1129
+ .m-editor-history-list-popover .m-editor-history-list-item-diff {
1130
+ flex: 0 0 auto;
1131
+ padding: 0 6px;
1132
+ border-radius: 2px;
1133
+ font-size: 10px;
1134
+ line-height: 16px;
1135
+ color: var(--el-color-primary, #409eff);
1136
+ background-color: rgba(64, 158, 255, 0.1);
1137
+ cursor: pointer;
1138
+ user-select: none;
1139
+ }
1140
+ .m-editor-history-list-popover .m-editor-history-list-item-diff:hover {
1141
+ background-color: rgba(64, 158, 255, 0.2);
1142
+ }
1143
+ .m-editor-history-list-popover .m-editor-history-list-item-goto {
1144
+ flex: 0 0 auto;
1145
+ padding: 0 6px;
1146
+ border-radius: 2px;
1147
+ font-size: 10px;
1148
+ line-height: 16px;
1149
+ color: #529b2e;
1150
+ background-color: rgba(103, 194, 58, 0.12);
1151
+ cursor: pointer;
1152
+ user-select: none;
1153
+ }
1154
+ .m-editor-history-list-popover .m-editor-history-list-item-goto:hover {
1155
+ background-color: rgba(103, 194, 58, 0.24);
1156
+ }
1157
+ .m-editor-history-list-popover .m-editor-history-list-item-revert {
1158
+ flex: 0 0 auto;
1159
+ padding: 0 6px;
1160
+ border-radius: 2px;
1161
+ font-size: 10px;
1162
+ line-height: 16px;
1163
+ color: #f56c6c;
1164
+ background-color: rgba(245, 108, 108, 0.12);
1165
+ cursor: pointer;
1166
+ user-select: none;
1167
+ }
1168
+ .m-editor-history-list-popover .m-editor-history-list-item-revert:hover {
1169
+ background-color: rgba(245, 108, 108, 0.25);
1170
+ }
1171
+ .m-editor-history-list-popover .m-editor-history-list-substep-desc {
1172
+ flex: 1 1 auto;
1173
+ overflow: hidden;
1174
+ text-overflow: ellipsis;
1175
+ white-space: nowrap;
1176
+ }
1177
+ .m-editor-history-list-popover .m-editor-history-list-bucket {
1178
+ margin-bottom: 8px;
1179
+ }
1180
+ .m-editor-history-list-popover .m-editor-history-list-bucket:last-child {
1181
+ margin-bottom: 0;
1182
+ }
1183
+ .m-editor-history-list-popover .m-editor-history-list-bucket-title {
1184
+ display: flex;
1185
+ align-items: center;
1186
+ gap: 6px;
1187
+ padding: 4px 8px;
1188
+ font-size: 12px;
1189
+ font-weight: 500;
1190
+ color: #606266;
1191
+ background-color: #f5f7fa;
1192
+ border-radius: 4px;
1193
+ }
1194
+ .m-editor-history-list-popover .m-editor-history-list-bucket-title code {
1195
+ flex: 1 1 auto;
1196
+ font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
1197
+ font-size: 11px;
1198
+ color: var(--el-color-primary, #409eff);
1199
+ overflow: hidden;
1200
+ text-overflow: ellipsis;
1201
+ white-space: nowrap;
1202
+ }
1203
+ .m-editor-history-list-popover .m-editor-history-list-bucket-count {
1204
+ flex: 0 0 auto;
1205
+ color: #909399;
1206
+ font-weight: 400;
1207
+ font-size: 11px;
1208
+ }
1209
+
1210
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-body {
1211
+ display: flex;
1212
+ flex-direction: column;
1213
+ }
1214
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-notice {
1215
+ margin-bottom: 8px;
1216
+ padding: 8px 12px;
1217
+ background-color: #fdf6ec;
1218
+ border: 1px solid #faecd8;
1219
+ border-radius: 4px;
1220
+ color: #e6a23c;
1221
+ font-size: 13px;
1222
+ line-height: 1.5;
1223
+ }
1224
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-header {
1225
+ display: flex;
1226
+ align-items: center;
1227
+ justify-content: space-between;
1228
+ margin-bottom: 8px;
1229
+ padding: 8px 12px;
1230
+ background-color: #f5f7fa;
1231
+ border-radius: 4px;
1232
+ gap: 12px;
1233
+ }
1234
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-controls {
1235
+ display: flex;
1236
+ align-items: center;
1237
+ flex: 0 0 auto;
1238
+ gap: 8px;
1239
+ }
1240
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-view,
1241
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-mode {
1242
+ flex: 0 0 auto;
1243
+ }
1244
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-target {
1245
+ flex: 1 1 auto;
1246
+ font-size: 13px;
1247
+ font-weight: 500;
1248
+ color: #303133;
1249
+ overflow: hidden;
1250
+ text-overflow: ellipsis;
1251
+ white-space: nowrap;
1252
+ }
1253
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-legend {
1254
+ display: flex;
1255
+ align-items: center;
1256
+ gap: 6px;
1257
+ margin-bottom: 12px;
1258
+ padding: 0 4px;
1259
+ }
1260
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-arrow {
1261
+ color: #909399;
1262
+ font-size: 12px;
1263
+ }
1264
+ .m-editor-history-diff-dialog .m-editor-history-diff-dialog-tip {
1265
+ margin-left: 8px;
1266
+ color: #e6a23c;
1267
+ font-size: 12px;
1268
+ }
1269
+
1270
+ .m-editor {
1271
+ display: flex;
1272
+ flex-direction: column;
1273
+ width: 100%;
1274
+ }
1275
+ .m-editor-content {
1276
+ height: calc(100% - var(--editor-nav-height, 35px));
1277
+ }
1278
+ .m-editor-framework-center {
1279
+ position: relative;
1280
+ transform: translateZ(0);
1281
+ flex: 1;
1282
+ }
1283
+ .m-editor-framework-left {
1284
+ background-color: #ffffff;
1285
+ }
1286
+ .m-editor-framework-center .el-scrollbar__view {
1287
+ height: 100%;
1288
+ min-height: 100%;
1289
+ display: flex;
1290
+ justify-content: center;
1291
+ align-items: center;
1292
+ }
1293
+ .m-editor-empty-panel {
1294
+ display: flex;
1295
+ flex: 1;
1296
+ justify-content: center;
1297
+ align-items: center;
1298
+ flex-direction: column;
1299
+ height: calc(100% - 32px);
1300
+ }
1301
+ .m-editor-empty-content {
1302
+ display: flex;
1303
+ justify-content: space-evenly;
1304
+ flex-direction: row;
1305
+ width: 100%;
1306
+ }
1307
+ .m-editor-empty-button {
1308
+ border: 3px solid rgba(0, 0, 0, 0.2);
1309
+ padding: 10px 40px;
1310
+ color: rgba(0, 0, 0, 0.6);
1311
+ cursor: pointer;
1312
+ }
1313
+ .m-editor-empty-button i {
1314
+ height: 180px;
1315
+ line-height: 180px;
1316
+ font-size: 100px;
1317
+ }
1318
+ .m-editor-empty-button p {
1319
+ text-align: center;
1320
+ font-size: 20px;
1321
+ margin-top: 5px;
1322
+ }
1323
+ .m-editor-empty-button:hover {
1324
+ border-color: var(--el-color-primary, #2882e0);
1325
+ color: var(--el-color-primary, #2882e0);
1326
+ }
1327
+
1328
+ .m-editor-sidebar {
1329
+ display: flex;
1330
+ height: 100%;
1331
+ position: relative;
1332
+ }
1333
+ .m-editor-sidebar .m-editor-sidebar-header {
1334
+ background: var(--el-color-primary, #2882e0);
1335
+ height: 100%;
1336
+ width: 40px;
1337
+ }
1338
+ .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item {
1339
+ line-height: 15px;
1340
+ height: auto;
1341
+ padding: 8px;
1342
+ color: rgb(255, 255, 255);
1343
+ box-sizing: border-box;
1344
+ cursor: pointer;
1345
+ }
1346
+ .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item.is-active {
1347
+ background: #ffffff;
1348
+ }
1349
+ .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item.is-active i {
1350
+ color: #353140;
1351
+ }
1352
+ .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item.is-active .magic-editor-tab-panel-title {
1353
+ color: #353140;
1354
+ }
1355
+ .m-editor-sidebar .m-editor-sidebar-header i {
1356
+ font-size: 25px;
1357
+ color: rgba(255, 255, 255, 0.6);
1358
+ }
1359
+ .m-editor-sidebar .m-editor-sidebar-header i:hover {
1360
+ color: rgb(255, 255, 255);
1361
+ }
1362
+ .m-editor-sidebar .m-editor-sidebar-header .magic-editor-tab-panel-title {
1363
+ font-size: 12px;
1364
+ white-space: normal;
1365
+ user-select: none;
1366
+ }
1367
+ .m-editor-sidebar .m-editor-sidebar-content {
1368
+ height: 100%;
1369
+ width: calc(100% - 40px);
1370
+ overflow: auto;
1371
+ }
1372
+ .m-editor-sidebar .m-editor-sidebar-tips {
1373
+ position: absolute;
1374
+ bottom: 0;
1375
+ left: 40px;
1376
+ width: calc(100% - 40px);
1377
+ text-align: center;
1378
+ background-color: rgba(252.5, 245.7, 235.5, 0.9);
1379
+ color: #e6a23c;
1380
+ padding: 5px 0;
1381
+ font-size: 12px;
1382
+ }
1383
+ .m-editor-sidebar .m-editor-sidebar-tips .close-icon {
1384
+ cursor: pointer;
1385
+ position: absolute;
1386
+ right: 15px;
1387
+ }
1388
+ .m-editor-sidebar .fold-icon {
1389
+ position: absolute;
1390
+ bottom: 8px;
1391
+ left: 0px;
1392
+ width: 45px;
1393
+ padding-left: 8px;
1394
+ color: #fff;
1395
+ font-size: 32px;
1396
+ opacity: 0.8;
1397
+ cursor: pointer;
1398
+ }
1399
+ .m-editor-sidebar .fold-icon:hover {
1400
+ background: rgba(0, 0, 0, 0.2);
1401
+ }
1402
+
1403
+ .m-editor-slide-list-box > div:first-child {
1404
+ min-width: 240px;
1405
+ }
1406
+ .m-editor-slide-list-box .m-form-box {
1407
+ border-left: 1px solid #e0e0e0;
1408
+ }
1409
+
1410
+ .m-editor-layer-panel {
1411
+ background: #ffffff;
1412
+ }
1413
+ .m-editor-layer-panel .m-editor-tree {
1414
+ padding-top: 48px;
1415
+ }
1416
+ .m-editor-layer-panel .m-editor-tree .tree-node-tool {
1417
+ padding-right: 10px;
1418
+ }
1419
+ .m-editor-layer-panel .m-editor-tree .tree-node-tool .tmagic-design-button + .tmagic-design-button {
1420
+ margin-left: 2px;
1421
+ }
1422
+ .m-editor-layer-panel .m-editor-tree .tree-node.selected .tree-node-tool .tmagic-design-button {
1423
+ color: #fff;
1424
+ }
1425
+ .m-editor-layer-panel .search-wrapper {
1426
+ display: flex;
1427
+ align-items: center;
1428
+ justify-content: center;
1429
+ position: absolute;
1430
+ top: 0;
1431
+ width: 100%;
1432
+ z-index: 1;
1433
+ }
1434
+ .m-editor-layer-panel .search-wrapper .search-input {
1435
+ flex: 1;
1436
+ position: relative;
1437
+ }
1438
+ .m-editor-layer-panel .search-wrapper .tmagic-design-button {
1439
+ margin-right: 10px;
1440
+ }
1441
+
1442
+ .ui-component-panel.tmagic-design-collapse {
1443
+ border-top: 0 !important;
1444
+ margin-top: 48px;
1445
+ background-color: #ffffff;
1446
+ }
1447
+ .ui-component-panel.tmagic-design-collapse .tmagic-design-collapse-item > div:first-of-type {
1448
+ border-bottom: 1px solid #d9dbdd;
1449
+ margin-bottom: 10px;
1450
+ }
1451
+ .ui-component-panel.tmagic-design-collapse .tmagic-design-collapse-item > .el-collapse-item__header {
1452
+ padding: 0 10px;
1453
+ box-sizing: border-box;
1454
+ }
1455
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__title {
1456
+ display: flex;
1457
+ align-items: center;
1458
+ gap: 3px;
1459
+ }
1460
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__header,
1461
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__header {
1462
+ background: #ffffff;
1463
+ color: #313a40;
1464
+ height: 25px;
1465
+ line-height: 25px;
1466
+ padding-left: 10px;
1467
+ font-size: 12px;
1468
+ }
1469
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__header i,
1470
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__header i {
1471
+ margin-right: 5px;
1472
+ font-size: 14px;
1473
+ }
1474
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__wrap,
1475
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__body {
1476
+ background: #ffffff;
1477
+ border-bottom: 0;
1478
+ }
1479
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__wrap .el-collapse-item__content,
1480
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__wrap .t-collapse-panel__content,
1481
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__body .el-collapse-item__content,
1482
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__body .t-collapse-panel__content {
1483
+ padding: 10px;
1484
+ display: flex;
1485
+ flex-wrap: wrap;
1486
+ }
1487
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__wrap .component-item,
1488
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__body .component-item {
1489
+ display: flex;
1490
+ overflow: hidden;
1491
+ text-overflow: ellipsis;
1492
+ margin: 5px 10px;
1493
+ box-sizing: border-box;
1494
+ color: #313a40;
1495
+ flex-direction: column;
1496
+ width: 42px;
1497
+ cursor: pointer;
1498
+ }
1499
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__wrap .component-item i,
1500
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__body .component-item i {
1501
+ font-size: 20px;
1502
+ background: #fff;
1503
+ height: 40px;
1504
+ width: 40px;
1505
+ line-height: 40px;
1506
+ border-radius: 5px;
1507
+ color: #909090;
1508
+ border: 1px solid #d9dbdd;
1509
+ display: flex;
1510
+ justify-content: space-evenly;
1511
+ align-items: center;
1512
+ margin-bottom: 5px;
1513
+ }
1514
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__wrap .component-item i:hover,
1515
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__body .component-item i:hover {
1516
+ background: var(--el-color-primary, #2882e0);
1517
+ color: #fff;
1518
+ border-color: var(--el-color-primary, #4e8be1);
1519
+ }
1520
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__wrap .component-item span,
1521
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__body .component-item span {
1522
+ font-size: 12px;
1523
+ text-align: center;
1524
+ }
1525
+ .ui-component-panel.tmagic-design-collapse .el-collapse-item__wrap .component-item .el-tooltip,
1526
+ .ui-component-panel.tmagic-design-collapse .t-collapse-panel__body .component-item .el-tooltip {
1527
+ width: 50px;
1528
+ height: 30px;
1529
+ line-height: 15px;
1530
+ display: block;
1531
+ white-space: normal;
1532
+ margin: 0;
1533
+ }
1534
+ .ui-component-panel .t-collapse {
1535
+ margin-top: 0;
1536
+ padding-top: 48px;
1537
+ position: relative;
1538
+ }
1539
+
1540
+ .m-editor-resizer {
1541
+ border-left: 2px solid transparent;
1542
+ border-right: 2px solid transparent;
1543
+ width: 8px;
1544
+ margin: 0 -5px;
1545
+ height: 100%;
1546
+ opacity: 0.8;
1547
+ background: padding-box #d8dee8;
1548
+ box-sizing: border-box;
1549
+ cursor: col-resize;
1550
+ z-index: 1;
1551
+ position: relative;
1552
+ }
1553
+ .m-editor-resizer:hover {
1554
+ border-color: #d8dee8;
1555
+ }
1556
+ .m-editor-resizer:hover .icon-container {
1557
+ visibility: visible;
1558
+ opacity: 1;
1559
+ }
1560
+ .m-editor-resizer.m-editor-resizer-dragging::after {
1561
+ content: "";
1562
+ position: absolute;
1563
+ width: 600px;
1564
+ height: 100%;
1565
+ left: 0;
1566
+ }
1567
+ .m-editor-resizer.m-editor-resizer-dragging::before {
1568
+ content: "";
1569
+ position: absolute;
1570
+ width: 600px;
1571
+ height: 100%;
1572
+ right: 0;
1573
+ }
1574
+ .m-editor-resizer .icon-container {
1575
+ visibility: hidden;
1576
+ opacity: 0;
1577
+ transition: opacity 0.4s;
1578
+ width: 20px;
1579
+ height: 120px;
1580
+ line-height: 120px;
1581
+ text-align: center;
1582
+ background: #d8dee8;
1583
+ position: absolute;
1584
+ top: 50%;
1585
+ left: 50%;
1586
+ transform: translate(-50%, -50%);
1587
+ cursor: pointer;
1588
+ }
1589
+ .m-editor-resizer .icon-container.position-left {
1590
+ transform: translate(calc(-100% - 4px), -50%);
1591
+ }
1592
+ .m-editor-resizer .icon-container.position-right {
1593
+ transform: translate(calc(100% + 4px), -50%);
1594
+ }
1595
+ .m-editor-resizer .icon {
1596
+ color: #fff;
1597
+ font-size: 18px;
1598
+ }
1599
+
1600
+ .m-editor-workspace {
1601
+ height: 100%;
1602
+ width: 100%;
1603
+ user-select: none;
1604
+ }
1605
+ .m-editor-workspace:focus-visible {
1606
+ outline: 0;
1607
+ }
1608
+
1609
+ .m-editor-page-bar-tabs {
1610
+ position: fixed;
1611
+ bottom: 0;
1612
+ left: 0;
1613
+ width: 100%;
1614
+ user-select: none;
1615
+ }
1616
+
1617
+ .m-editor-page-list-item {
1618
+ display: flex;
1619
+ width: 100%;
1620
+ height: 32px;
1621
+ line-height: 32px;
1622
+ color: #313a40;
1623
+ z-index: 2;
1624
+ overflow: hidden;
1625
+ }
1626
+ .m-editor-page-list-item:hover {
1627
+ background-color: #f3f5f9;
1628
+ }
1629
+
1630
+ .m-editor-page-bar {
1631
+ display: flex;
1632
+ width: 100%;
1633
+ height: 32px;
1634
+ line-height: 32px;
1635
+ color: #313a40;
1636
+ background-color: #f3f3f3;
1637
+ border-top: 1px solid #d9dbdd;
1638
+ z-index: 2;
1639
+ overflow: hidden;
1640
+ }
1641
+ .m-editor-page-bar-items {
1642
+ display: flex;
1643
+ transition: transform 0.3s;
1644
+ }
1645
+ .m-editor-page-bar-item {
1646
+ padding: 0 10px;
1647
+ cursor: pointer;
1648
+ border-right: 1px solid #d9dbdd;
1649
+ display: flex;
1650
+ justify-items: center;
1651
+ align-items: center;
1652
+ background-color: #f3f3f3;
1653
+ white-space: nowrap;
1654
+ }
1655
+ .m-editor-page-bar-item.active {
1656
+ background-color: #fff;
1657
+ cursor: text;
1658
+ }
1659
+ .m-editor-page-bar-item.active .m-editor-page-bar-menu-icon {
1660
+ cursor: pointer;
1661
+ }
1662
+ .m-editor-page-bar-item-icon {
1663
+ position: relative;
1664
+ z-index: 1;
1665
+ }
1666
+ .m-editor-page-bar-item-icon .icon-active {
1667
+ font-weight: bold;
1668
+ color: var(--el-color-primary, #2882e0);
1669
+ }
1670
+ .m-editor-page-bar-item-title {
1671
+ max-width: 150px;
1672
+ text-overflow: ellipsis;
1673
+ white-space: nowrap;
1674
+ overflow: hidden;
1675
+ }
1676
+ .m-editor-page-bar-item-left-icon, .m-editor-page-bar-item-right-icon {
1677
+ position: absolute;
1678
+ right: 0;
1679
+ top: 0;
1680
+ height: 100%;
1681
+ }
1682
+ .m-editor-page-bar-item-left-icon {
1683
+ right: 34px;
1684
+ }
1685
+
1686
+ .page-bar-popover.tmagic-design-popper {
1687
+ padding: 4px 0;
1688
+ }
1689
+ .page-bar-popover .page-bar-popover-wrapper {
1690
+ max-height: calc(100vh - 32px - 20px);
1691
+ overflow: auto;
1692
+ }
1693
+ .page-bar-popover .menu-item {
1694
+ cursor: pointer;
1695
+ transition: all 0.2s ease 0s;
1696
+ padding: 5px 14px;
1697
+ }
1698
+ .page-bar-popover .menu-item:hover {
1699
+ background-color: #f3f5f9;
1700
+ }
1701
+ .page-bar-popover .menu-item.active .tmagic-design-button {
1702
+ color: var(--el-color-primary, #2882e0);
1703
+ }
1704
+
1705
+ .m-editor-page-bar-search-panel {
1706
+ position: absolute;
1707
+ bottom: 32px;
1708
+ border: 1px solid #d9dbdd;
1709
+ padding: 6px 10px;
1710
+ width: 100%;
1711
+ box-sizing: border-box;
1712
+ }
1713
+ .m-editor-page-bar-search-panel .tmagic-design-form-item {
1714
+ margin-bottom: 0;
1715
+ }
1716
+
1717
+ .m-editor-props-panel {
1718
+ height: 100%;
1719
+ position: relative;
1720
+ --props-style-panel-width: 300px;
1721
+ }
1722
+ .m-editor-props-panel .m-editor-props-form-panel {
1723
+ padding-bottom: 10px;
1724
+ position: relative;
1725
+ height: 100%;
1726
+ box-sizing: border-box;
1727
+ }
1728
+ .m-editor-props-panel .m-editor-props-form-panel .tmagic-design-scrollbar {
1729
+ height: 100%;
1730
+ }
1731
+ .m-editor-props-panel .m-editor-props-property-panel.show-style-panel {
1732
+ padding-right: var(--props-style-panel-width);
1733
+ }
1734
+ .m-editor-props-panel .m-editor-props-property-panel.show-style-panel .m-editor-props-panel-src-icon {
1735
+ right: calc(15px + var(--props-style-panel-width));
1736
+ }
1737
+ .m-editor-props-panel .m-editor-props-style-panel {
1738
+ position: absolute;
1739
+ width: var(--props-style-panel-width);
1740
+ right: 0;
1741
+ top: 0;
1742
+ background: #fff;
1743
+ z-index: 12;
1744
+ }
1745
+ .m-editor-props-panel .m-editor-props-style-panel .tmagic-design-scrollbar {
1746
+ height: calc(100% - 38px - 1px);
1747
+ }
1748
+ .m-editor-props-panel .m-editor-props-style-panel .m-editor-props-style-panel-title {
1749
+ text-align: center;
1750
+ font-size: 14px;
1751
+ font-weight: 600;
1752
+ padding: 0 5px;
1753
+ height: 38px;
1754
+ display: flex;
1755
+ justify-content: space-between;
1756
+ align-items: center;
1757
+ border-bottom: 2px solid #d9dbdd;
1758
+ }
1759
+ .m-editor-props-panel .m-editor-props-panel-src-icon {
1760
+ position: absolute;
1761
+ right: 15px;
1762
+ bottom: 15px;
1763
+ z-index: 32;
1764
+ opacity: 0.5;
1765
+ }
1766
+ .m-editor-props-panel .m-editor-props-panel-src-icon:hover {
1767
+ opacity: 1;
1768
+ }
1769
+ .m-editor-props-panel .m-editor-props-panel-style-icon {
1770
+ position: absolute;
1771
+ right: 15px;
1772
+ bottom: 60px;
1773
+ z-index: 31;
1774
+ opacity: 0.5;
1775
+ }
1776
+ .m-editor-props-panel .m-editor-props-panel-style-icon:hover {
1777
+ opacity: 1;
1778
+ }
1779
+ .m-editor-props-panel .m-editor-props-panel-src-code.magic-code-editor {
1780
+ position: absolute;
1781
+ left: 0;
1782
+ top: 0;
1783
+ z-index: 31;
1784
+ }
1785
+ .m-editor-props-panel .m-editor-resizer {
1786
+ position: absolute;
1787
+ display: block;
1788
+ top: 0;
1789
+ right: var(--props-style-panel-width);
1790
+ z-index: 13;
1791
+ }
1792
+ .m-editor-props-panel.small .el-form-item__label {
1793
+ font-size: 12px;
1794
+ }
1795
+ .m-editor-props-panel.small .m-fieldset legend {
1796
+ font-size: 12px;
1797
+ }
1798
+ .m-editor-props-panel.small .el-tabs__item {
1799
+ font-size: 12px;
1800
+ }
1801
+ .m-editor-props-panel .el-input__wrapper {
1802
+ border-radius: 0;
1803
+ }
1804
+ .m-editor-props-panel .m-fields-group-list .tmagic-design-table th {
1805
+ font-size: 12px;
1806
+ }
1807
+
1808
+ .m-editor-props-form-panel-form {
1809
+ padding-right: 10px;
1810
+ padding-left: 10px;
1811
+ }
1812
+ .m-editor-props-form-panel-form > .m-container-tab > .tmagic-design-tabs > .el-tabs__content {
1813
+ margin-top: var(--el-tabs-header-height);
1814
+ padding-top: 15px;
1815
+ }
1816
+ .m-editor-props-form-panel-form > .m-container-tab > .tmagic-design-tabs > .el-tabs__header.is-top {
1817
+ position: absolute;
1818
+ top: 0;
1819
+ width: 100%;
1820
+ background: #fff;
1821
+ z-index: 3;
1822
+ }
1823
+
1824
+ .m-editor-props-panel-popper.small span,
1825
+ .m-editor-props-panel-popper.small a,
1826
+ .m-editor-props-panel-popper.small p {
1827
+ font-size: 12px;
1828
+ }
1829
+
1830
+ .magic-editor-content-menu {
1831
+ position: fixed;
1832
+ font-size: 12px;
1833
+ background: #fff;
1834
+ box-shadow: 0 2px 8px 2px rgba(68, 73, 77, 0.16);
1835
+ z-index: 1000;
1836
+ transform-origin: 0% 0%;
1837
+ font-weight: 600;
1838
+ padding: 4px 0px;
1839
+ overflow: auto;
1840
+ max-height: 80%;
1841
+ min-width: 180px;
1842
+ }
1843
+ .magic-editor-content-menu .menu-item {
1844
+ color: #333;
1845
+ display: flex;
1846
+ -webkit-box-align: center;
1847
+ align-items: center;
1848
+ cursor: pointer;
1849
+ min-width: 140px;
1850
+ transition: all 0.2s ease 0s;
1851
+ padding: 5px 14px;
1852
+ border-left: 2px solid transparent;
1853
+ }
1854
+ .magic-editor-content-menu .menu-item .el-button {
1855
+ width: 100%;
1856
+ justify-content: flex-start;
1857
+ }
1858
+ .magic-editor-content-menu .menu-item .el-button--text,
1859
+ .magic-editor-content-menu .menu-item i {
1860
+ color: #313a40;
1861
+ }
1862
+ .magic-editor-content-menu .menu-item .magic-editor-icon {
1863
+ margin-right: 5px;
1864
+ }
1865
+ .magic-editor-content-menu .menu-item.divider {
1866
+ padding: 0 14px;
1867
+ }
1868
+ .magic-editor-content-menu .menu-item.divider .el-divider {
1869
+ margin: 0;
1870
+ }
1871
+ .magic-editor-content-menu .menu-item.button:hover {
1872
+ background-color: #f3f5f9;
1873
+ }
1874
+ .magic-editor-content-menu .menu-item.button:hover .tmagic-design-button,
1875
+ .magic-editor-content-menu .menu-item.button:hover .tmagic-design-button:active,
1876
+ .magic-editor-content-menu .menu-item.button:hover .tmagic-design-button:focus {
1877
+ color: #313a40;
1878
+ }
1879
+ .magic-editor-content-menu .menu-item.button:hover.menu-item i {
1880
+ color: #313a40;
1881
+ }
1882
+ .magic-editor-content-menu .menu-item.button.active {
1883
+ background-color: var(--el-color-primary, #2882e0);
1884
+ }
1885
+ .magic-editor-content-menu .menu-item.button.active .tmagic-design-button,
1886
+ .magic-editor-content-menu .menu-item.button.active .tmagic-design-button:active,
1887
+ .magic-editor-content-menu .menu-item.button.active .tmagic-design-button:focus {
1888
+ color: #fff;
1889
+ background-color: transparent;
1890
+ }
1891
+ .magic-editor-content-menu .menu-item.button.active.menu-item i {
1892
+ color: #fff;
1893
+ }
1894
+
1895
+ .m-editor-stage {
1896
+ position: relative;
1897
+ width: 100%;
1898
+ height: calc(100% - 32px);
1899
+ overflow: hidden;
1900
+ display: flex;
1901
+ justify-content: center;
1902
+ align-items: center;
1903
+ }
1904
+ .m-editor-stage:focus-visible {
1905
+ outline: none;
1906
+ }
1907
+
1908
+ .m-editor-stage-container {
1909
+ width: 100%;
1910
+ height: 100%;
1911
+ z-index: 0;
1912
+ position: relative;
1913
+ transition: transform 0.3s;
1914
+ box-sizing: content-box;
1915
+ box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
1916
+ }
1917
+ .m-editor-stage-container::-webkit-scrollbar {
1918
+ width: 0 !important;
1919
+ }
1920
+
1921
+ .m-editor-stage-overlay {
1922
+ position: absolute;
1923
+ left: 0;
1924
+ top: 0;
1925
+ width: 100%;
1926
+ height: 100%;
1927
+ background-color: #fff;
1928
+ z-index: 20;
1929
+ }
1930
+
1931
+ .m-editor-stage-overlay-close.tmagic-design-icon {
1932
+ position: fixed;
1933
+ right: 20px;
1934
+ top: 10px;
1935
+ cursor: pointer;
1936
+ z-index: 1;
1937
+ }
1938
+
1939
+ .m-editor-stage-float-button {
1940
+ cursor: pointer;
1941
+ transform: translateY(-50%);
1942
+ width: 12px;
1943
+ font-size: 12px;
1944
+ line-height: 1.2;
1945
+ position: absolute;
1946
+ left: 100%;
1947
+ top: 50%;
1948
+ padding: 5px;
1949
+ background-color: #ffffff;
1950
+ transition: background-color 0.2s;
1951
+ color: rgba(0, 0, 0, 0.88);
1952
+ box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
1953
+ }
1954
+
1955
+ .m-editor-node-list-menu {
1956
+ height: 100%;
1957
+ width: 100%;
1958
+ min-width: 300px;
1959
+ max-height: 500px;
1960
+ }
1961
+
1962
+ .m-container-vs-code .el-form-item {
1963
+ margin-bottom: 0;
1964
+ }
1965
+
1966
+ .magic-code-editor {
1967
+ width: 100%;
1968
+ }
1969
+
1970
+ .magic-code-editor-wrapper {
1971
+ width: 100%;
1972
+ height: 100%;
1973
+ position: relative;
1974
+ }
1975
+ .magic-code-editor-wrapper.full-screen {
1976
+ position: fixed;
1977
+ z-index: 10000;
1978
+ top: 0;
1979
+ left: 0;
1980
+ }
1981
+ .magic-code-editor-wrapper .magic-code-editor-content {
1982
+ width: 100%;
1983
+ height: 100%;
1984
+ }
1985
+ .magic-code-editor-wrapper .magic-code-editor-content .margin {
1986
+ margin: 0;
1987
+ }
1988
+ .magic-code-editor-wrapper .magic-code-editor-full-screen-icon {
1989
+ position: absolute;
1990
+ top: 20px;
1991
+ right: 10px;
1992
+ z-index: 11;
1993
+ opacity: 0.3;
1994
+ }
1995
+ .magic-code-editor-wrapper .magic-code-editor-full-screen-icon:hover {
1996
+ opacity: 1;
1997
+ }
1998
+
1999
+ .tmagic-design-icon {
2000
+ --color: inherit;
2001
+ height: 1em;
2002
+ width: 1em;
2003
+ position: relative;
2004
+ fill: currentColor;
2005
+ }
2006
+ .tmagic-design-icon img {
2007
+ max-width: 100%;
2008
+ max-height: 100%;
2009
+ }
2010
+
2011
+ .m-fields-code-select {
2012
+ width: 100%;
2013
+ }
2014
+ .m-fields-code-select > .el-card.tmagic-design-card--flat {
2015
+ background-color: transparent;
2016
+ margin-bottom: 10px;
2017
+ }
2018
+ .m-fields-code-select > .el-card.tmagic-design-card--flat > .el-card__body {
2019
+ padding-left: 0;
2020
+ }
2021
+ .m-fields-code-select > .el-card.tmagic-design-card--flat > .el-card__body .code-select-content > .m-fields-group-list > .tmagic-design-card--flat.el-card {
2022
+ padding-left: 16px;
2023
+ padding-right: 16px;
2024
+ margin-bottom: 10px;
2025
+ border: 0 !important;
2026
+ }
2027
+ .m-fields-code-select .el-card__body .tmagic-design-form-item {
2028
+ margin-bottom: 16px;
2029
+ }
2030
+ .m-fields-code-select .code-select-content > .m-fields-group-list > .tmagic-design-card--flat > .el-card__header {
2031
+ padding: 16px 0;
2032
+ }
2033
+ .m-fields-code-select .create-button.fullWidth {
2034
+ width: 100%;
2035
+ margin: 0 0 16px 0;
2036
+ }
2037
+
2038
+ .m-fields-event-select {
2039
+ width: 100%;
2040
+ }
2041
+ .m-fields-event-select .fullWidth {
2042
+ width: 100%;
2043
+ box-sizing: border-box;
2044
+ }
2045
+ .m-fields-event-select .fullWidth.create-button {
2046
+ width: 100%;
2047
+ }
2048
+ .m-fields-event-select .fullWidth.m-container-ui-event {
2049
+ width: calc(100% - 32px);
2050
+ }
2051
+ .m-fields-event-select .event-select-container {
2052
+ padding: 0 16px;
2053
+ }
2054
+ .m-fields-event-select .event-select-container > .el-card.tmagic-design-card--flat > .el-card__header {
2055
+ border-bottom: 1px solid #ebeef5;
2056
+ }
2057
+ .m-fields-event-select .event-select-container > .el-card.tmagic-design-card--flat > .el-card__body {
2058
+ padding-bottom: 16px;
2059
+ }
2060
+ .m-fields-event-select .event-select-container > .el-card.tmagic-design-card--flat > .el-card__body .m-fields-group-list-footer div {
2061
+ justify-content: flex-start !important;
2062
+ }
2063
+ .m-fields-event-select .event-select-container > .el-card.tmagic-design-card--flat > .el-card__body .el-card.tmagic-design-card--flat > .el-card__header {
2064
+ padding: 16px 0;
2065
+ }
2066
+ .m-fields-event-select .event-select-code {
2067
+ margin-left: 20px;
2068
+ width: auto;
2069
+ }
2070
+ .m-fields-event-select .m-form-panel {
2071
+ margin: 10px 0px;
2072
+ }
2073
+ .m-fields-event-select .el-card.is-always-shadow {
2074
+ box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.12);
2075
+ }
2076
+
2077
+ .m-fields-code-select-col,
2078
+ .m-fields-data-source-method-select {
2079
+ width: 100%;
2080
+ }
2081
+
2082
+ .code-select-container,
2083
+ .data-source-method-select-container {
2084
+ display: flex;
2085
+ align-items: center;
2086
+ }
2087
+ .code-select-container .select,
2088
+ .data-source-method-select-container .select {
2089
+ flex: 10 0 100px;
2090
+ }
2091
+ .code-select-container .icon,
2092
+ .data-source-method-select-container .icon {
2093
+ flex: 1 0 20px;
2094
+ cursor: pointer;
2095
+ margin-right: 5px;
2096
+ }
2097
+
2098
+ .event-select-container {
2099
+ padding: 0 16px;
2100
+ }
2101
+
2102
+ .event-select-header {
2103
+ display: flex;
2104
+ align-items: center;
2105
+ justify-content: space-between;
2106
+ margin-bottom: 8px;
2107
+ }
2108
+ .event-select-header .event-select-title {
2109
+ color: #0f1113;
2110
+ font-size: 16px;
2111
+ font-weight: 500;
2112
+ line-height: 24px;
2113
+ }
2114
+
2115
+ .event-item-header {
2116
+ position: relative;
2117
+ width: 100%;
2118
+ display: flex;
2119
+ align-items: center;
2120
+ justify-content: space-between;
2121
+ }
2122
+ .event-item-header .event-item-title {
2123
+ color: #0f1113;
2124
+ font-size: 16px;
2125
+ font-weight: 500;
2126
+ line-height: 24px;
2127
+ margin-bottom: 8px;
2128
+ }
2129
+ .event-item-header .event-item-delete-button {
2130
+ color: #0f1113;
2131
+ }
2132
+ .event-item-header .el-form-item .el-form-item.is-error {
2133
+ margin-bottom: 18px;
2134
+ }
2135
+
2136
+ .m-editor-layout {
2137
+ width: 100%;
2138
+ display: flex;
2139
+ justify-self: space-between;
2140
+ }
2141
+ .m-editor-layout:has(.m-editor-resizer-dragging) {
2142
+ overflow: hidden;
2143
+ }
2144
+
2145
+ .m-editor-breadcrumb {
2146
+ position: absolute;
2147
+ left: 5px;
2148
+ top: 5px;
2149
+ z-index: 10;
2150
+ display: flex;
2151
+ align-items: center;
2152
+ white-space: nowrap;
2153
+ }
2154
+ .m-editor-breadcrumb .m-editor-breadcrumb-item {
2155
+ max-width: 100px;
2156
+ min-width: 0;
2157
+ overflow: hidden;
2158
+ }
2159
+ .m-editor-breadcrumb .m-editor-breadcrumb-item > span {
2160
+ display: block;
2161
+ max-width: 100%;
2162
+ overflow: hidden;
2163
+ text-overflow: ellipsis;
2164
+ white-space: nowrap;
2165
+ }
2166
+ .m-editor-breadcrumb .m-editor-breadcrumb-separator,
2167
+ .m-editor-breadcrumb .m-editor-breadcrumb-ellipsis {
2168
+ margin: 0 4px;
2169
+ flex-shrink: 0;
2170
+ }
2171
+
2172
+ .data-source-list-panel .list-container .list-item .codeIcon {
2173
+ width: 22px;
2174
+ height: 22px;
2175
+ margin-right: 5px;
2176
+ }
2177
+ .data-source-list-panel .list-container .list-item .compIcon {
2178
+ width: 22px;
2179
+ height: 22px;
2180
+ margin-right: 5px;
2181
+ }
2182
+
2183
+ .data-source-list-panel-add-menu {
2184
+ padding: 4px 0;
2185
+ }
2186
+ .data-source-list-panel-add-menu .menu-item {
2187
+ cursor: pointer;
2188
+ transition: all 0.2s ease 0s;
2189
+ padding: 5px 14px;
2190
+ }
2191
+ .data-source-list-panel-add-menu .menu-item:hover {
2192
+ background-color: #f3f5f9;
2193
+ }
2194
+
2195
+ .m-editor-data-source-fields {
2196
+ width: 100%;
2197
+ }
2198
+ .m-editor-data-source-fields .tmagic-design-table {
2199
+ width: 100%;
2200
+ }
2201
+ .m-editor-data-source-fields .m-editor-data-source-fields-footer {
2202
+ display: flex;
2203
+ justify-content: flex-end;
2204
+ margin-top: 15px;
2205
+ }
2206
+
2207
+ .m-editor-data-source-methods {
2208
+ width: 100%;
2209
+ }
2210
+ .m-editor-data-source-methods .tmagic-design-table {
2211
+ width: 100%;
2212
+ }
2213
+ .m-editor-data-source-methods .m-editor-data-source-methods-footer {
2214
+ display: flex;
2215
+ justify-content: flex-end;
2216
+ margin-top: 15px;
2217
+ }
2218
+
2219
+ .tmagic-data-source-input-text .el-input__wrapper.tmagic-data-source-input-text-wrapper {
2220
+ overflow: hidden;
2221
+ padding-right: 30px;
2222
+ }
2223
+ .tmagic-data-source-input-text .el-input__inner {
2224
+ display: flex;
2225
+ align-items: center;
2226
+ overflow: hidden;
2227
+ white-space: nowrap;
2228
+ }
2229
+ .tmagic-data-source-input-text .tmagic-data-source-input-icon {
2230
+ position: absolute;
2231
+ right: 7px;
2232
+ }
2233
+
2234
+ .m-fields-key-value {
2235
+ display: flex;
2236
+ justify-items: center;
2237
+ align-items: top;
2238
+ width: 100%;
2239
+ }
2240
+
2241
+ .m-fields-key-value-item {
2242
+ display: flex;
2243
+ margin-bottom: 10px;
2244
+ align-items: center;
2245
+ }
2246
+
2247
+ .m-fields-key-value-delimiter {
2248
+ margin: 0 10px;
2249
+ }
2250
+
2251
+ .m-fields-key-value-delete {
2252
+ margin-left: 10px;
2253
+ }
2254
+
2255
+ .m-editor-tree {
2256
+ color: #313a40;
2257
+ font-size: 13px;
2258
+ }
2259
+ .m-editor-tree .m-editor-tree-node {
2260
+ cursor: pointer;
2261
+ white-space: nowrap;
2262
+ }
2263
+ .m-editor-tree .m-editor-tree-node .tree-node {
2264
+ display: flex;
2265
+ align-items: center;
2266
+ }
2267
+ .m-editor-tree .m-editor-tree-node .tree-node:hover {
2268
+ background-color: #f3f5f9;
2269
+ color: #313a40;
2270
+ }
2271
+ .m-editor-tree .m-editor-tree-node .tree-node.selected {
2272
+ background-color: var(--el-color-primary, #2882e0);
2273
+ color: #f3f5f9;
2274
+ }
2275
+ .m-editor-tree .m-editor-tree-node .tree-node.drag-inner .tree-node-content {
2276
+ background-color: rgba(var(--el-color-primary, #2882e0), 0.5);
2277
+ color: #f3f5f9;
2278
+ }
2279
+ .m-editor-tree .m-editor-tree-node .tree-node.drag-before .tree-node-content {
2280
+ border-top-color: rgba(var(--el-color-primary, #2882e0), 0.5);
2281
+ }
2282
+ .m-editor-tree .m-editor-tree-node .tree-node.drag-after .tree-node-content {
2283
+ border-bottom-color: rgba(var(--el-color-primary, #2882e0), 0.5);
2284
+ }
2285
+ .m-editor-tree .m-editor-tree-node .tree-node .expand-icon {
2286
+ padding: 4px;
2287
+ box-sizing: content-box;
2288
+ font-size: 14px;
2289
+ }
2290
+ .m-editor-tree .m-editor-tree-node .tree-node .tree-node-content {
2291
+ display: flex;
2292
+ flex: 1;
2293
+ justify-content: space-between;
2294
+ height: 22px;
2295
+ border-top: 2px solid transparent;
2296
+ border-bottom: 2px solid transparent;
2297
+ }
2298
+ .m-editor-tree .m-editor-tree-node .tree-node .tree-node-content .tree-node-label {
2299
+ line-height: 22px;
2300
+ flex: 1;
2301
+ width: 100px;
2302
+ overflow: hidden;
2303
+ text-overflow: ellipsis;
2304
+ }
2305
+ .m-editor-tree .m-editor-tree-node .tree-node .tree-node-content .tree-node-label .disabled {
2306
+ cursor: default;
2307
+ }
2308
+ .m-editor-tree .m-editor-tree-node .tree-node .tree-node-content .tree-node-label .hook {
2309
+ color: #999;
2310
+ }
2311
+ .m-editor-tree .m-editor-tree-node .tree-node .tree-node-tool {
2312
+ display: flex;
2313
+ align-items: center;
2314
+ }
2315
+ .m-editor-tree .m-editor-tree-node .tree-node .tree-node-tool .tmagic-design-icon {
2316
+ margin-right: 10px;
2317
+ }
2318
+ .m-editor-tree .m-editor-tree-empty {
2319
+ text-align: center;
2320
+ color: #909399;
2321
+ font-size: 14px;
2322
+ }
2323
+
2324
+ .m-editor-float-box {
2325
+ position: absolute;
2326
+ background-color: #fff;
2327
+ z-index: 100;
2328
+ border: 1px solid #d9dbdd;
2329
+ display: flex;
2330
+ flex-direction: column;
2331
+ max-height: 100%;
2332
+ max-width: 100%;
2333
+ }
2334
+ .m-editor-float-box .m-editor-float-box-title {
2335
+ text-align: center;
2336
+ font-size: 14px;
2337
+ font-weight: 600;
2338
+ padding: 5px;
2339
+ cursor: move;
2340
+ display: flex;
2341
+ justify-content: space-between;
2342
+ align-items: center;
2343
+ border-bottom: 1px solid #d9dbdd;
2344
+ }
2345
+ .m-editor-float-box .m-editor-float-box-body {
2346
+ overflow: auto;
2347
+ flex: 1;
2348
+ }
2349
+
2350
+ .m-editor-floating-box-moveable {
2351
+ opacity: 0;
2352
+ }
2353
+
2354
+ .m-editor-float-box-drag-mask {
2355
+ position: fixed;
2356
+ top: 0;
2357
+ left: 0;
2358
+ width: 100%;
2359
+ height: 100%;
2360
+ background-color: transparent;
2361
+ }
2362
+
2363
+ .m-fields-page-fragment-select {
2364
+ width: 100%;
2365
+ }
2366
+ .m-fields-page-fragment-select .page-fragment-select-container {
2367
+ width: 100%;
2368
+ display: flex;
2369
+ align-items: center;
2370
+ }
2371
+ .m-fields-page-fragment-select .page-fragment-select-container .select {
2372
+ flex: 1;
2373
+ }
2374
+ .m-fields-page-fragment-select .page-fragment-select-container .icon {
2375
+ margin-left: 10px;
2376
+ }
2377
+
2378
+ .m-fields-data-source-select,
2379
+ .m-fields-data-source-field-select,
2380
+ .m-fields-data-source-method-select .data-source-method-select-container,
2381
+ .m-fields-code-select-col .code-select-container {
2382
+ width: 100%;
2383
+ display: flex;
2384
+ align-items: center;
2385
+ }
2386
+ .m-fields-data-source-select.data-source-field-img-upload, .m-fields-data-source-select.data-source-field-big-img-upload,
2387
+ .m-fields-data-source-field-select.data-source-field-img-upload,
2388
+ .m-fields-data-source-field-select.data-source-field-big-img-upload,
2389
+ .m-fields-data-source-method-select .data-source-method-select-container.data-source-field-img-upload,
2390
+ .m-fields-data-source-method-select .data-source-method-select-container.data-source-field-big-img-upload,
2391
+ .m-fields-code-select-col .code-select-container.data-source-field-img-upload,
2392
+ .m-fields-code-select-col .code-select-container.data-source-field-big-img-upload {
2393
+ align-items: flex-start;
2394
+ }
2395
+ .m-fields-data-source-select .m-fields-select-action-button,
2396
+ .m-fields-data-source-field-select .m-fields-select-action-button,
2397
+ .m-fields-data-source-method-select .data-source-method-select-container .m-fields-select-action-button,
2398
+ .m-fields-code-select-col .code-select-container .m-fields-select-action-button {
2399
+ margin-left: 5px;
2400
+ }
2401
+
2402
+ .m-fields-data-source-field-select {
2403
+ width: 100%;
2404
+ }
2405
+ .m-fields-data-source-field-select .m-editor-data-source-field-select {
2406
+ display: flex;
2407
+ width: 100%;
2408
+ }
2409
+ .m-fields-data-source-field-select .m-editor-data-source-field-select .tmagic-design-select {
2410
+ flex: 1;
2411
+ margin-right: 10px;
2412
+ }
2413
+ .m-fields-data-source-field-select .m-editor-data-source-field-select .tmagic-design-cascader {
2414
+ flex: 2;
2415
+ }
2416
+ .m-fields-data-source-field-select .tmagic-design-button {
2417
+ margin-left: 5px;
2418
+ padding: 5px 8px;
2419
+ }
2420
+
2421
+ .m-container-text.display-conds-title .tmagic-design-form-item .el-form-item__label {
2422
+ color: #111;
2423
+ font-weight: 500;
2424
+ font-size: 16px;
2425
+ }
2426
+ .m-container-text.display-conds-title .tmagic-design-form-item {
2427
+ line-height: 24px;
2428
+ margin-bottom: 10px;
2429
+ }
2430
+
2431
+ .m-editor-scroll-bar {
2432
+ position: absolute;
2433
+ background-color: transparent;
2434
+ opacity: 0.3;
2435
+ transition: background-color 0.2s linear, opacity 0.2s linear;
2436
+ }
2437
+ .m-editor-scroll-bar .m-editor-scroll-bar-thumb {
2438
+ background-color: #aaa;
2439
+ border-radius: 6px;
2440
+ position: absolute;
2441
+ }
2442
+ .m-editor-scroll-bar.horizontal {
2443
+ width: 100%;
2444
+ height: 15px;
2445
+ bottom: 0;
2446
+ }
2447
+ .m-editor-scroll-bar.horizontal .m-editor-scroll-bar-thumb {
2448
+ height: 6px;
2449
+ transition: background-color 0.2s linear, height 0.2s ease-in-out;
2450
+ bottom: 2px;
2451
+ }
2452
+ .m-editor-scroll-bar.vertical {
2453
+ height: 100%;
2454
+ width: 15px;
2455
+ right: 5px;
2456
+ }
2457
+ .m-editor-scroll-bar.vertical .m-editor-scroll-bar-thumb {
2458
+ width: 6px;
2459
+ transition: background-color 0.2s linear, width 0.2s ease-in-out;
2460
+ right: 2px;
2461
+ }
2462
+ .m-editor-scroll-bar:hover, .m-editor-scroll-bar:focus {
2463
+ background-color: #eee;
2464
+ opacity: 0.9;
2465
+ }
2466
+ .m-editor-scroll-bar:hover .m-editor-scroll-bar-thumb, .m-editor-scroll-bar:focus .m-editor-scroll-bar-thumb {
2467
+ background-color: #999;
2468
+ }
2469
+ .m-editor-scroll-bar:hover.horizontal .m-editor-scroll-bar-thumb, .m-editor-scroll-bar:focus.horizontal .m-editor-scroll-bar-thumb {
2470
+ height: 11px;
2471
+ }
2472
+ .m-editor-scroll-bar:hover.vertical .m-editor-scroll-bar-thumb, .m-editor-scroll-bar:focus.vertical .m-editor-scroll-bar-thumb {
2473
+ width: 11px;
2474
+ }
2475
+
2476
+ .m-fields-ui-select {
2477
+ cursor: pointer;
2478
+ }
2479
+ .m-fields-ui-select i {
2480
+ margin-right: 3px;
2481
+ }
2482
+ .m-fields-ui-select span {
2483
+ color: var(--el-color-primary, #2882e0);
2484
+ }
2485
+
2486
+ .m-editor-layer-node-content {
2487
+ display: inline-flex;
2488
+ align-items: center;
2489
+ }
2490
+ .m-editor-layer-node-content.is-invalid .m-editor-layer-node-label {
2491
+ color: var(--el-color-danger, #f56c6c);
2492
+ }
2493
+ .m-editor-layer-node-content .m-editor-layer-node-error-icon {
2494
+ margin-left: 4px;
2495
+ color: var(--el-color-danger, #f56c6c);
2496
+ cursor: help;
2497
+ }
2498
+
2499
+ .border-box-container {
2500
+ display: flex;
2501
+ --unuse-border-style: dashed;
2502
+ }
2503
+ .border-box-container .border-icon-container {
2504
+ display: flex;
2505
+ flex-direction: column;
2506
+ justify-content: center;
2507
+ width: 88px;
2508
+ }
2509
+ .border-box-container .border-icon-container-row {
2510
+ display: flex;
2511
+ justify-content: center;
2512
+ align-items: center;
2513
+ }
2514
+ .border-box-container .border-icon-container-row + .border-icon-container-row {
2515
+ margin-top: 8px;
2516
+ }
2517
+ .border-box-container .border-icon-container .border-icon {
2518
+ box-sizing: border-box;
2519
+ width: 16px;
2520
+ height: 16px;
2521
+ border-width: 1px;
2522
+ border-color: #111;
2523
+ border-style: solid;
2524
+ cursor: pointer;
2525
+ }
2526
+ .border-box-container .border-icon-container .border-icon + .border-icon {
2527
+ margin-left: 8px;
2528
+ }
2529
+ .border-box-container .border-icon-container .border-icon.configured {
2530
+ border-color: var(--el-color-success, var(--td-success-color, #2ba471));
2531
+ }
2532
+ .border-box-container .border-icon-container .border-icon.active {
2533
+ border-color: var(--el-color-primary);
2534
+ border-width: 1px;
2535
+ }
2536
+ .border-box-container .border-icon-container .border-icon.center {
2537
+ border-width: 1px;
2538
+ }
2539
+ .border-box-container .border-icon-container .border-icon.border-icon-top {
2540
+ border-top-width: 2px;
2541
+ border-style: solid var(--unuse-border-style) var(--unuse-border-style) var(--unuse-border-style);
2542
+ }
2543
+ .border-box-container .border-icon-container .border-icon.border-icon-right {
2544
+ border-right-width: 2px;
2545
+ border-style: var(--unuse-border-style) solid var(--unuse-border-style) var(--unuse-border-style);
2546
+ }
2547
+ .border-box-container .border-icon-container .border-icon.border-icon-bottom {
2548
+ border-bottom-width: 2px;
2549
+ border-style: var(--unuse-border-style) var(--unuse-border-style) solid var(--unuse-border-style);
2550
+ }
2551
+ .border-box-container .border-icon-container .border-icon.border-icon-left {
2552
+ border-left-width: 2px;
2553
+ border-style: var(--unuse-border-style) var(--unuse-border-style) var(--unuse-border-style) solid;
2554
+ }
2555
+ .border-box-container .border-value-container {
2556
+ margin-left: 16px;
2557
+ flex: 1;
2558
+ }
2559
+
2560
+ .layout-box-container {
2561
+ position: relative;
2562
+ width: 100%;
2563
+ height: 130px;
2564
+ }
2565
+ .layout-box-container .help-txt {
2566
+ float: left;
2567
+ margin-left: -10px;
2568
+ transform: scale(0.75);
2569
+ }
2570
+ .layout-box-container .outer-top-border,
2571
+ .layout-box-container .inner-top-border,
2572
+ .layout-box-container .outer-right-border,
2573
+ .layout-box-container .inner-right-border,
2574
+ .layout-box-container .outer-bottom-border,
2575
+ .layout-box-container .inner-bottom-border,
2576
+ .layout-box-container .outer-left-border,
2577
+ .layout-box-container .inner-left-border {
2578
+ position: absolute;
2579
+ transition: all 0.3s ease;
2580
+ }
2581
+ .layout-box-container .outer-top-border .next-input,
2582
+ .layout-box-container .inner-top-border .next-input,
2583
+ .layout-box-container .outer-right-border .next-input,
2584
+ .layout-box-container .inner-right-border .next-input,
2585
+ .layout-box-container .outer-bottom-border .next-input,
2586
+ .layout-box-container .inner-bottom-border .next-input,
2587
+ .layout-box-container .outer-left-border .next-input,
2588
+ .layout-box-container .inner-left-border .next-input {
2589
+ position: absolute;
2590
+ height: 20px;
2591
+ }
2592
+ .layout-box-container .outer-top-border .next-input input,
2593
+ .layout-box-container .inner-top-border .next-input input,
2594
+ .layout-box-container .outer-right-border .next-input input,
2595
+ .layout-box-container .inner-right-border .next-input input,
2596
+ .layout-box-container .outer-bottom-border .next-input input,
2597
+ .layout-box-container .inner-bottom-border .next-input input,
2598
+ .layout-box-container .outer-left-border .next-input input,
2599
+ .layout-box-container .inner-left-border .next-input input {
2600
+ padding: 0;
2601
+ width: 100%;
2602
+ border: none;
2603
+ outline: none;
2604
+ margin: 0;
2605
+ font-weight: 400;
2606
+ vertical-align: top;
2607
+ background-color: transparent;
2608
+ color: #333;
2609
+ text-align: center;
2610
+ line-height: 20px;
2611
+ height: 20px;
2612
+ }
2613
+ .layout-box-container .outer-top-border,
2614
+ .layout-box-container .inner-top-border {
2615
+ height: 0;
2616
+ border-left: 20px solid transparent;
2617
+ border-right: 20px solid transparent;
2618
+ border-top: 20px solid #d6e4ff;
2619
+ }
2620
+ .layout-box-container .outer-top-border .next-input,
2621
+ .layout-box-container .inner-top-border .next-input {
2622
+ left: 0;
2623
+ right: 0;
2624
+ top: -20px;
2625
+ }
2626
+ .layout-box-container .outer-top-border {
2627
+ top: 0;
2628
+ left: 0;
2629
+ right: 0;
2630
+ }
2631
+ .layout-box-container .inner-top-border {
2632
+ top: 25px;
2633
+ left: 25px;
2634
+ right: 25px;
2635
+ }
2636
+ .layout-box-container .outer-top-border:hover,
2637
+ .layout-box-container .inner-top-border:hover {
2638
+ border-top: 20px solid #bfd4fb;
2639
+ }
2640
+ .layout-box-container .outer-right-border,
2641
+ .layout-box-container .inner-right-border {
2642
+ width: 0;
2643
+ border-top: 20px solid transparent;
2644
+ border-bottom: 20px solid transparent;
2645
+ border-right: 20px solid #d6e4ff;
2646
+ }
2647
+ .layout-box-container .outer-right-border .next-input,
2648
+ .layout-box-container .inner-right-border .next-input {
2649
+ top: 0;
2650
+ bottom: 0;
2651
+ right: -20px;
2652
+ width: 20px;
2653
+ margin: auto;
2654
+ }
2655
+ .layout-box-container .outer-right-border .next-input input,
2656
+ .layout-box-container .inner-right-border .next-input input {
2657
+ position: absolute;
2658
+ top: 0;
2659
+ bottom: 0;
2660
+ left: 0;
2661
+ margin: auto;
2662
+ width: 20px;
2663
+ }
2664
+ .layout-box-container .outer-right-border {
2665
+ top: 5px;
2666
+ bottom: 5px;
2667
+ right: 0;
2668
+ }
2669
+ .layout-box-container .inner-right-border {
2670
+ top: 30px;
2671
+ bottom: 30px;
2672
+ right: 25px;
2673
+ }
2674
+ .layout-box-container .outer-right-border:hover,
2675
+ .layout-box-container .inner-right-border:hover {
2676
+ border-right: 20px solid #bfd4fb;
2677
+ }
2678
+ .layout-box-container .outer-bottom-border,
2679
+ .layout-box-container .inner-bottom-border {
2680
+ height: 0;
2681
+ border-left: 20px solid transparent;
2682
+ border-right: 20px solid transparent;
2683
+ border-bottom: 20px solid #d6e4ff;
2684
+ }
2685
+ .layout-box-container .outer-bottom-border .next-input,
2686
+ .layout-box-container .inner-bottom-border .next-input {
2687
+ position: absolute;
2688
+ left: 0;
2689
+ right: 0;
2690
+ bottom: -20px;
2691
+ }
2692
+ .layout-box-container .outer-bottom-border {
2693
+ bottom: 0;
2694
+ left: 0;
2695
+ right: 0;
2696
+ }
2697
+ .layout-box-container .inner-bottom-border {
2698
+ bottom: 25px;
2699
+ left: 25px;
2700
+ right: 25px;
2701
+ }
2702
+ .layout-box-container .outer-bottom-border:hover,
2703
+ .layout-box-container .inner-bottom-border:hover {
2704
+ border-bottom: 20px solid #bfd4fb;
2705
+ }
2706
+ .layout-box-container .outer-left-border,
2707
+ .layout-box-container .inner-left-border {
2708
+ width: 0;
2709
+ border-top: 20px solid transparent;
2710
+ border-bottom: 20px solid transparent;
2711
+ border-left: 20px solid #d6e4ff;
2712
+ }
2713
+ .layout-box-container .outer-left-border .next-input,
2714
+ .layout-box-container .inner-left-border .next-input {
2715
+ position: absolute;
2716
+ top: 0;
2717
+ bottom: 0;
2718
+ left: -20px;
2719
+ width: 20px;
2720
+ margin: auto;
2721
+ }
2722
+ .layout-box-container .outer-left-border .next-input input,
2723
+ .layout-box-container .inner-left-border .next-input input {
2724
+ position: absolute;
2725
+ top: 0;
2726
+ bottom: 0;
2727
+ right: 0;
2728
+ margin: auto;
2729
+ width: 20px;
2730
+ }
2731
+ .layout-box-container .outer-left-border {
2732
+ top: 5px;
2733
+ bottom: 5px;
2734
+ left: 0;
2735
+ }
2736
+ .layout-box-container .inner-left-border {
2737
+ top: 30px;
2738
+ bottom: 30px;
2739
+ left: 25px;
2740
+ }
2741
+ .layout-box-container .outer-left-border:hover,
2742
+ .layout-box-container .inner-left-border:hover {
2743
+ border-left: 20px solid #bfd4fb;
2744
+ }
2745
+
2746
+ .background-position-container {
2747
+ display: flex;
2748
+ width: 100%;
2749
+ }
2750
+ .background-position-container .presets-value-list {
2751
+ display: flex;
2752
+ flex-wrap: wrap;
2753
+ width: 80px;
2754
+ height: auto;
2755
+ }
2756
+ .background-position-container .presets-value-list .tmagic-design-button + .tmagic-design-button {
2757
+ margin-left: 2px;
2758
+ }
2759
+ .background-position-container .presets-value-list .tmagic-design-button:nth-child(3n+1) {
2760
+ margin-left: 0 !important;
2761
+ }
2762
+ .background-position-container .presets-value-list .t-button--variant-text {
2763
+ padding-left: 2px;
2764
+ padding-right: 2px;
2765
+ }
2766
+ .background-position-container .presets-value-list .position-icon {
2767
+ position: relative;
2768
+ width: 14px;
2769
+ height: 14px;
2770
+ border: 1px solid #1d1f24;
2771
+ }
2772
+ .background-position-container .presets-value-list .position-icon.active {
2773
+ background-color: var(--el-color-primary, #2882e0);
2774
+ }
2775
+ .background-position-container .presets-value-list .position-icon.active::after {
2776
+ border: 1px solid #fff;
2777
+ }
2778
+ .background-position-container .presets-value-list .position-icon::after {
2779
+ position: absolute;
2780
+ content: "";
2781
+ border: 1px solid #1d1f24;
2782
+ box-sizing: border-box;
2783
+ }
2784
+ .background-position-container .presets-value-list .position-icon.left-top::after {
2785
+ top: 1px;
2786
+ left: 1px;
2787
+ width: 6px;
2788
+ height: 6px;
2789
+ }
2790
+ .background-position-container .presets-value-list .position-icon.center-top::after {
2791
+ top: 1px;
2792
+ left: 1px;
2793
+ width: 12px;
2794
+ height: 6px;
2795
+ }
2796
+ .background-position-container .presets-value-list .position-icon.right-top::after {
2797
+ top: 1px;
2798
+ right: 1px;
2799
+ width: 6px;
2800
+ height: 6px;
2801
+ }
2802
+ .background-position-container .presets-value-list .position-icon.left-center::after {
2803
+ top: 1px;
2804
+ left: 1px;
2805
+ width: 6px;
2806
+ height: 12px;
2807
+ }
2808
+ .background-position-container .presets-value-list .position-icon.center-center::after {
2809
+ top: 1px;
2810
+ left: 1px;
2811
+ width: 12px;
2812
+ height: 12px;
2813
+ }
2814
+ .background-position-container .presets-value-list .position-icon.right-center::after {
2815
+ top: 1px;
2816
+ right: 1px;
2817
+ width: 6px;
2818
+ height: 12px;
2819
+ }
2820
+ .background-position-container .presets-value-list .position-icon.left-bottom::after {
2821
+ bottom: 1px;
2822
+ left: 1px;
2823
+ width: 6px;
2824
+ height: 6px;
2825
+ }
2826
+ .background-position-container .presets-value-list .position-icon.center-bottom::after {
2827
+ bottom: 1px;
2828
+ left: 1px;
2829
+ width: 12px;
2830
+ height: 6px;
2831
+ }
2832
+ .background-position-container .presets-value-list .position-icon.right-bottom::after {
2833
+ bottom: 1px;
2834
+ right: 1px;
2835
+ width: 6px;
2836
+ height: 6px;
2837
+ }
2838
+ .background-position-container .custom-value {
2839
+ position: relative;
2840
+ flex: 1;
2841
+ }
2842
+
2843
+ .m-fields-style-setter {
2844
+ width: 100%;
2845
+ }
2846
+ .m-fields-style-setter .tmagic-design-collapse-item > .el-collapse-item__header {
2847
+ background-color: #f2f3f7;
2848
+ height: 26px;
2849
+ min-height: 26px;
2850
+ line-height: 26px;
2851
+ padding: 0 20px;
2852
+ box-sizing: border-box;
2853
+ }
2854
+ .m-fields-style-setter .tmagic-design-collapse-item .el-collapse-item__wrap {
2855
+ padding: 10px 20px;
2856
+ }
2857
+ .m-fields-style-setter .tmagic-design-collapse-item .el-collapse-item__title {
2858
+ display: flex;
2859
+ align-items: center;
2860
+ gap: 3px;
2861
+ }
2862
+ .m-fields-style-setter .tmagic-design-collapse-item .el-collapse-item__content {
2863
+ padding: 0;
2864
+ }
2865
+
2866
+ .text-align-list {
2867
+ display: flex;
2868
+ height: 100%;
2869
+ }
2870
+ .text-align-list .btn-active {
2871
+ color: var(--el-color-primary) !important;
2872
+ }
2873
+
2874
+ .fade-enter-active,
2875
+ .fade-leave-active {
2876
+ transition: opacity 0.5s;
2877
+ }
2878
+
2879
+ .fade-enter, .fade-leave-to {
2880
+ opacity: 0;
2881
+ }
2882
+
2883
+ .m-editor.m-editor--magic-admin {
2884
+ --editor-nav-height: 40px;
2885
+ }
2886
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header {
2887
+ width: 61px;
2888
+ padding-top: 4px;
2889
+ flex-shrink: 0;
2890
+ border-right: 1px solid rgba(0, 84, 225, 0.1);
2891
+ display: flex;
2892
+ background-color: #fff;
2893
+ box-sizing: border-box;
2894
+ flex-direction: column;
2895
+ align-items: center;
2896
+ }
2897
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item {
2898
+ display: flex;
2899
+ flex-direction: column;
2900
+ align-items: center;
2901
+ border-radius: 4px;
2902
+ padding: 4px 2px;
2903
+ width: 52px;
2904
+ margin-bottom: 4px;
2905
+ box-sizing: border-box;
2906
+ background-color: transparent;
2907
+ color: #84909d;
2908
+ }
2909
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item:hover {
2910
+ background-color: rgba(0, 0, 0, 0.05);
2911
+ }
2912
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item > i {
2913
+ color: #84909d;
2914
+ font-size: 20px;
2915
+ }
2916
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item.is-active {
2917
+ background-color: var(--el-button-hover-bg-color, rgb(230, 238, 253));
2918
+ color: var(--el-color-primary);
2919
+ }
2920
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item.is-active:hover {
2921
+ background-color: var(--el-button-hover-bg-color, rgb(230, 238, 253));
2922
+ }
2923
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item.is-active > i {
2924
+ color: var(--el-color-primary);
2925
+ }
2926
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item.is-active .magic-editor-tab-panel-title {
2927
+ color: var(--el-color-primary);
2928
+ }
2929
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item .magic-editor-tab-panel-title {
2930
+ font-size: 12px;
2931
+ line-height: 14px;
2932
+ font-weight: 400;
2933
+ margin: 0 4px;
2934
+ width: 52px;
2935
+ text-align: center;
2936
+ }
2937
+ .m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-content {
2938
+ width: calc(100% - 61px);
2939
+ }
2940
+ .m-editor.m-editor--magic-admin .m-editor-props-panel .el-input__wrapper {
2941
+ border-radius: 4px;
2942
+ }
2943
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon {
2944
+ border-color: #ccc;
2945
+ --unuse-border-style: solid;
2946
+ }
2947
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon.configured {
2948
+ border-color: var(--el-color-success, var(--td-success-color, #2ba471));
2949
+ }
2950
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon.active {
2951
+ border-color: var(--el-color-primary);
2952
+ background-color: rgba(0, 84, 225, 0.1);
2953
+ }
2954
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon.active.center {
2955
+ border-width: 2px;
2956
+ }
2957
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon.active.border-icon-top {
2958
+ border-width: 0;
2959
+ border-top-width: 2px;
2960
+ }
2961
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon.active.border-icon-right {
2962
+ border-width: 0;
2963
+ border-right-width: 2px;
2964
+ }
2965
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon.active.border-icon-bottom {
2966
+ border-width: 0;
2967
+ border-bottom-width: 2px;
2968
+ }
2969
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon.active.border-icon-left {
2970
+ border-width: 0;
2971
+ border-left-width: 2px;
2972
+ }
2973
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon.center {
2974
+ border-width: 2px;
2975
+ }
2976
+ .m-editor.m-editor--magic-admin .border-box-container .border-icon-container .border-icon {
2977
+ border-radius: 2px;
2978
+ }
2979
+ .m-editor.m-editor--magic-admin .m-container-code-select > .el-form-item:first-child > .el-form-item__label:first-child > :not(.m-form-tip) {
2980
+ color: #111;
2981
+ font-weight: 500;
2982
+ font-size: 16px;
2983
+ line-height: 24px;
2984
+ }
2985
+
2986
+ .m-editor.m-theme--magic-admin .m-editor-props-form-panel-form > .m-container-tab > .tmagic-design-tabs > .el-tabs__content {
2987
+ background-color: #fafafa;
2988
+ border-radius: 8px;
2989
+ padding-left: 16px;
2990
+ padding-right: 16px;
2991
+ }
2992
+
2993
+ .m-editor.m-theme--magic-admin .m-fields-style-setter {
2994
+ border: 0;
2995
+ }
2996
+ .m-editor.m-theme--magic-admin .m-fields-style-setter .tmagic-design-collapse-item .el-collapse-item__wrap {
2997
+ padding: 16px;
2998
+ }
2999
+
3000
+ .m-editor.m-theme--magic-admin .magic-right-panel-tabs-top > .el-tabs > .el-tabs__header .el-tabs__nav-wrap.is-top .el-tabs__nav.is-top .el-tabs__active-bar {
3001
+ display: none;
3002
+ }
3003
+ .m-editor.m-theme--magic-admin .magic-right-panel-tabs-top > .el-tabs > .el-tabs__header .el-tabs__nav-wrap.is-top .el-tabs__nav.is-top .el-tabs__item:not(:last-child)::after {
3004
+ content: "";
3005
+ position: absolute;
3006
+ right: 0;
3007
+ top: 50%;
3008
+ transform: translateY(-50%);
3009
+ height: 12px;
3010
+ border-right: 1px solid #e6e6e6;
3011
+ }
3012
+ .m-editor.m-theme--magic-admin .magic-right-panel-tabs-top > .el-tabs > .el-tabs__header .el-tabs__nav-wrap.is-top::after {
3013
+ display: none;
3014
+ }
3015
+
3016
+ .m-editor.m-theme--magic-admin .m-editor-nav-menu .menu-right > .menu-item > button,
3017
+ .m-editor.m-theme--magic-admin .m-editor-nav-menu .menu-left > .menu-item > button {
3018
+ color: #111;
3019
+ }
3020
+ .m-editor.m-theme--magic-admin .m-editor-nav-menu .menu-item {
3021
+ margin-right: 8px;
3022
+ }
3023
+ .m-editor.m-theme--magic-admin .m-editor-nav-menu .menu-item .el-button--small {
3024
+ font-size: 14px;
3025
+ }
3026
+ .m-editor.m-theme--magic-admin .m-editor-nav-menu .menu-item > button > i {
3027
+ font-size: 16px;
3028
+ }