@epxing/designer 0.0.0-stage → 5.3.0-beta.2

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 (491) hide show
  1. package/API.md +160 -0
  2. package/README.md +45 -2
  3. package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
  4. package/dist/_virtual/preload-helper.js +88 -0
  5. package/dist/assets/default-icon-2193FMjv.png +0 -0
  6. package/dist/assets/technology_bg-oWIS2awO.jpg +0 -0
  7. package/dist/assets/theme_black-Ctdygcr4.png +0 -0
  8. package/dist/assets/theme_technology-DJk-2e7g.png +0 -0
  9. package/dist/assets/theme_white-uMQ6JYml.png +0 -0
  10. package/dist/src/assets/images/dashboard/theme_black.png.js +4 -0
  11. package/dist/src/assets/images/dashboard/theme_technology.png.js +4 -0
  12. package/dist/src/assets/images/dashboard/theme_white.png.js +4 -0
  13. package/dist/src/assets/images/default-icon.png.js +4 -0
  14. package/dist/src/index.js +53 -0
  15. package/dist/src/page-designer/PageConfigPreview.js +102 -0
  16. package/dist/src/page-designer/PageDesigner.js +844 -0
  17. package/dist/src/page-designer/designer.js +1120 -0
  18. package/dist/src/page-designer/index.js +52 -0
  19. package/dist/src/page-designer/mixins/dragSourceMixin.js +95 -0
  20. package/dist/src/page-designer/page-variable-panel/JsonEditor.js +106 -0
  21. package/dist/src/page-designer/page-variable-panel/PageVariablePanel.js +939 -0
  22. package/dist/src/page-designer/page-variable-panel/index.js +7 -0
  23. package/dist/src/page-designer/page-variable-panel/jsonlint.js +230 -0
  24. package/dist/src/page-designer/previews/add-form/Preview.js +8 -0
  25. package/dist/src/page-designer/previews/add-form/Preview.vue.js +328 -0
  26. package/dist/src/page-designer/previews/add-form-item/Preview.js +194 -0
  27. package/dist/src/page-designer/previews/button/Preview.js +30 -0
  28. package/dist/src/page-designer/previews/card/Preview.js +87 -0
  29. package/dist/src/page-designer/previews/carousel/CarouselItemPreview.js +33 -0
  30. package/dist/src/page-designer/previews/carousel/Preview.js +61 -0
  31. package/dist/src/page-designer/previews/collapse/CollapseItemPreview.js +118 -0
  32. package/dist/src/page-designer/previews/collapse/Preview.js +35 -0
  33. package/dist/src/page-designer/previews/dropdown/Preview.js +68 -0
  34. package/dist/src/page-designer/previews/entity-list/Preview.js +522 -0
  35. package/dist/src/page-designer/previews/entity-sub-list/Preview.js +352 -0
  36. package/dist/src/page-designer/previews/entity-virtual-list/Preview.js +11 -0
  37. package/dist/src/page-designer/previews/form-field/preview/Checkbox.js +91 -0
  38. package/dist/src/page-designer/previews/form-field/preview/Date.js +77 -0
  39. package/dist/src/page-designer/previews/form-field/preview/Input.js +74 -0
  40. package/dist/src/page-designer/previews/form-field/preview/InputNumber.js +74 -0
  41. package/dist/src/page-designer/previews/form-field/preview/Object.js +77 -0
  42. package/dist/src/page-designer/previews/form-field/preview/Radio.js +146 -0
  43. package/dist/src/page-designer/previews/form-field/preview/Select.js +78 -0
  44. package/dist/src/page-designer/previews/form-field/preview/Textarea.js +78 -0
  45. package/dist/src/page-designer/previews/grid/Preview.js +139 -0
  46. package/dist/src/page-designer/previews/html/Preview.js +18 -0
  47. package/dist/src/page-designer/previews/icon/Preview.js +20 -0
  48. package/dist/src/page-designer/previews/image/Preview.js +36 -0
  49. package/dist/src/page-designer/previews/index.js +74 -0
  50. package/dist/src/page-designer/previews/layout/ColumnPreview.js +47 -0
  51. package/dist/src/page-designer/previews/layout/Preview.js +110 -0
  52. package/dist/src/page-designer/previews/num/Preview.js +132 -0
  53. package/dist/src/page-designer/previews/page-tabs/Preview.js +75 -0
  54. package/dist/src/page-designer/previews/step/Preview.js +207 -0
  55. package/dist/src/page-designer/previews/tabs/Preview.js +95 -0
  56. package/dist/src/page-designer/previews/tabs/tab-pane/Preview.js +33 -0
  57. package/dist/src/page-designer/previews/text/Preview.js +38 -0
  58. package/dist/src/page-designer/previews/text-editor/Preview.js +23 -0
  59. package/dist/src/page-designer/previews/video/Preview.js +10 -0
  60. package/dist/src/page-designer/setting-panel/Advance.js +281 -0
  61. package/dist/src/page-designer/setting-panel/CodeEditor.js +94 -0
  62. package/dist/src/page-designer/setting-panel/Property.js +165 -0
  63. package/dist/src/page-designer/setting-panel/Setting.js +296 -0
  64. package/dist/src/page-designer/setting-panel/Style.js +1591 -0
  65. package/dist/src/page-designer/setting-panel/css-editor/CssEditor.js +98 -0
  66. package/dist/src/page-designer/setting-panel/css-editor/css-hint.js +84 -0
  67. package/dist/src/page-designer/setting-panel/index.js +11 -0
  68. package/dist/src/page-designer/template-attribute-panel/TemplateAttributePanel.js +487 -0
  69. package/dist/src/page-designer/template-attribute-panel/index.js +5 -0
  70. package/dist/src/page-designer/template-library/Library.js +219 -0
  71. package/dist/src/page-designer/template-library/index.js +5 -0
  72. package/dist/src/page-designer/widget-library/Base.js +170 -0
  73. package/dist/src/page-designer/widget-library/Library.js +213 -0
  74. package/dist/src/page-designer/widget-library/index.js +7 -0
  75. package/dist/src/page-designer/widget-preview/Container.js +80 -0
  76. package/dist/src/page-designer/widget-preview/DragGhost.js +54 -0
  77. package/dist/src/page-designer/widget-preview/DropZoneOverlay.js +42 -0
  78. package/dist/src/page-designer/widget-preview/HoverOverlay.js +61 -0
  79. package/dist/src/page-designer/widget-preview/Mixin.js +260 -0
  80. package/dist/src/page-designer/widget-preview/Placeholder.js +28 -0
  81. package/dist/src/page-designer/widget-preview/Preview.js +277 -0
  82. package/dist/src/page-designer/widget-preview/PreviewItem.js +83 -0
  83. package/dist/src/page-designer/widget-preview/SelectedOverlay.js +332 -0
  84. package/dist/src/page-designer/widget-preview/Template.js +66 -0
  85. package/dist/src/page-designer/widget-preview/WidgetWrapper.js +170 -0
  86. package/dist/src/page-designer/widget-preview/directive.js +159 -0
  87. package/dist/src/page-designer/widget-preview/dropPosition.js +50 -0
  88. package/dist/src/page-designer/widget-preview/index.js +23 -0
  89. package/dist/src/page-designer/widget-preview/overlayPositionMixin.js +87 -0
  90. package/dist/src/page-designer/widget-preview/resolvePreviewName.js +32 -0
  91. package/dist/src/page-designer/widget-tree/Item.js +580 -0
  92. package/dist/src/page-designer/widget-tree/Tree.js +855 -0
  93. package/dist/src/page-designer/widget-tree/index.js +7 -0
  94. package/dist/src/visual/AddForm.js +172 -0
  95. package/dist/src/visual/AddFormItem.js +480 -0
  96. package/dist/src/visual/AppIndex.js +243 -0
  97. package/dist/src/visual/ApplyForm.js +135 -0
  98. package/dist/src/visual/AttributeList.js +344 -0
  99. package/dist/src/visual/BasePage.js +77 -0
  100. package/dist/src/visual/Button.js +5 -0
  101. package/dist/src/visual/Button.vue.js +89 -0
  102. package/dist/src/visual/CardNum.js +74 -0
  103. package/dist/src/visual/CategoryList.js +569 -0
  104. package/dist/src/visual/Chart.js +27 -0
  105. package/dist/src/visual/ChartNew.js +5 -0
  106. package/dist/src/visual/ChartNew.vue.js +54 -0
  107. package/dist/src/visual/CheckForm.js +110 -0
  108. package/dist/src/visual/ClientList.js +41 -0
  109. package/dist/src/visual/CodeManage.js +113 -0
  110. package/dist/src/visual/Component.js +6 -0
  111. package/dist/src/visual/Component.vue.js +1332 -0
  112. package/dist/src/visual/ComponentList.js +280 -0
  113. package/dist/src/visual/Config.js +8 -0
  114. package/dist/src/visual/Config.vue.js +862 -0
  115. package/dist/src/visual/ConfigItem.js +8 -0
  116. package/dist/src/visual/ConfigItem.vue.js +192 -0
  117. package/dist/src/visual/ConfigSelectItems.js +8 -0
  118. package/dist/src/visual/ConfigSelectItems.vue.js +260 -0
  119. package/dist/src/visual/CreatePage.js +389 -0
  120. package/dist/src/visual/DashboardDiv.js +58 -0
  121. package/dist/src/visual/DashboardTabs.js +9 -0
  122. package/dist/src/visual/DashboardTabs.vue.js +127 -0
  123. package/dist/src/visual/DashboardWidget.js +5 -0
  124. package/dist/src/visual/DashboardWidget.vue.js +62 -0
  125. package/dist/src/visual/DblogList.js +82 -0
  126. package/dist/src/visual/EntityAddPage.js +49 -0
  127. package/dist/src/visual/EntityApplyPage.js +54 -0
  128. package/dist/src/visual/EntityCardList.js +455 -0
  129. package/dist/src/visual/EntityCheckPage.js +66 -0
  130. package/dist/src/visual/EntityFindPage.js +45 -0
  131. package/dist/src/visual/EntityList.js +6 -0
  132. package/dist/src/visual/EntityList.vue.js +1221 -0
  133. package/dist/src/visual/EntityListPage.js +43 -0
  134. package/dist/src/visual/EntityNoSubmitSubList.js +267 -0
  135. package/dist/src/visual/EntityRightSubList.js +29 -0
  136. package/dist/src/visual/EntitySubAdd.js +10 -0
  137. package/dist/src/visual/EntitySubGridItem.js +66 -0
  138. package/dist/src/visual/EntitySubList.js +434 -0
  139. package/dist/src/visual/EntityTreeFindPage.js +32 -0
  140. package/dist/src/visual/EntityTreeManage.js +49 -0
  141. package/dist/src/visual/EntityTreePage.js +42 -0
  142. package/dist/src/visual/ExcelPreview.js +10 -0
  143. package/dist/src/visual/FormField.js +5 -0
  144. package/dist/src/visual/FormField.vue.js +121 -0
  145. package/dist/src/visual/HeaderNew.js +161 -0
  146. package/dist/src/visual/Html.js +8 -0
  147. package/dist/src/visual/Html.vue.js +109 -0
  148. package/dist/src/visual/Import.js +53 -0
  149. package/dist/src/visual/InterfaceSubList.js +21 -0
  150. package/dist/src/visual/ListFirst.js +704 -0
  151. package/dist/src/visual/MEntityAddPage.js +66 -0
  152. package/dist/src/visual/MEntityList.js +485 -0
  153. package/dist/src/visual/MEntityListPage.js +40 -0
  154. package/dist/src/visual/MEntitySubList.js +237 -0
  155. package/dist/src/visual/MetaList.js +23 -0
  156. package/dist/src/visual/ModuleIndexPage.js +67 -0
  157. package/dist/src/visual/ModuleList.js +47 -0
  158. package/dist/src/visual/NavAddForm.js +173 -0
  159. package/dist/src/visual/NavFormCatalogItem.js +44 -0
  160. package/dist/src/visual/NumItem.js +70 -0
  161. package/dist/src/visual/NumStatistic.js +6 -0
  162. package/dist/src/visual/NumStatistic.vue.js +81 -0
  163. package/dist/src/visual/OrgChart.js +107 -0
  164. package/dist/src/visual/PageCatalog.js +27 -0
  165. package/dist/src/visual/PageConfig.js +223 -0
  166. package/dist/src/visual/PageTabs.js +49 -0
  167. package/dist/src/visual/Progress.js +40 -0
  168. package/dist/src/visual/ProgressItem.js +44 -0
  169. package/dist/src/visual/SystemManager.js +77 -0
  170. package/dist/src/visual/Title.js +45 -0
  171. package/dist/src/visual/TodoList.js +14 -0
  172. package/dist/src/visual/UserFormItem.js +41 -0
  173. package/dist/src/visual/UserManage.js +35 -0
  174. package/dist/src/visual/chart/CircularPie.js +9 -0
  175. package/dist/src/visual/chart/Column.js +70 -0
  176. package/dist/src/visual/chart/HoriColumn.js +9 -0
  177. package/dist/src/visual/chart/Line.js +9 -0
  178. package/dist/src/visual/chart/Pie.js +9 -0
  179. package/dist/src/visual/config/Background.js +526 -0
  180. package/dist/src/visual/config/Chart.js +154 -0
  181. package/dist/src/visual/config/Checkbox.js +63 -0
  182. package/dist/src/visual/config/Color.js +41 -0
  183. package/dist/src/visual/config/DesignReport.js +24 -0
  184. package/dist/src/visual/config/Event.js +304 -0
  185. package/dist/src/visual/config/Field.js +520 -0
  186. package/dist/src/visual/config/Font.js +202 -0
  187. package/dist/src/visual/config/FormItem.js +23 -0
  188. package/dist/src/visual/config/Function.js +114 -0
  189. package/dist/src/visual/config/Html.js +111 -0
  190. package/dist/src/visual/config/Image.js +102 -0
  191. package/dist/src/visual/config/Input.js +177 -0
  192. package/dist/src/visual/config/Input.vue.js +479 -0
  193. package/dist/src/visual/config/LazyDialog.js +41 -0
  194. package/dist/src/visual/config/List.js +65 -0
  195. package/dist/src/visual/config/ListField.js +2080 -0
  196. package/dist/src/visual/config/MField.js +733 -0
  197. package/dist/src/visual/config/Number.js +37 -0
  198. package/dist/src/visual/config/Object.js +168 -0
  199. package/dist/src/visual/config/Operate.js +1109 -0
  200. package/dist/src/visual/config/OperateItem.js +1186 -0
  201. package/dist/src/visual/config/Options.js +8 -0
  202. package/dist/src/visual/config/Options.vue.js +278 -0
  203. package/dist/src/visual/config/OrderField.js +505 -0
  204. package/dist/src/visual/config/Page.js +76 -0
  205. package/dist/src/visual/config/Params.js +353 -0
  206. package/dist/src/visual/config/Radio.js +127 -0
  207. package/dist/src/visual/config/Row.js +104 -0
  208. package/dist/src/visual/config/Scope.js +350 -0
  209. package/dist/src/visual/config/Select.js +95 -0
  210. package/dist/src/visual/config/Switch.js +37 -0
  211. package/dist/src/visual/config/Textarea.js +175 -0
  212. package/dist/src/visual/config/Textarea.vue.js +507 -0
  213. package/dist/src/visual/config/Tree.js +138 -0
  214. package/dist/src/visual/config/remote-cache.js +30 -0
  215. package/dist/src/visual/config/show-condition.js +20 -0
  216. package/dist/src/visual/config/variable-sources.js +27 -0
  217. package/dist/src/visual/config/wait-ref.js +19 -0
  218. package/dist/src/visual/config-page/ComponentLibrary.js +170 -0
  219. package/dist/src/visual/config-page/ComponentLibraryDialog.js +250 -0
  220. package/dist/src/visual/config-page/ComponentList.js +9 -0
  221. package/dist/src/visual/config-page/ComponentList.vue.js +292 -0
  222. package/dist/src/visual/config-page/ComponentPreview.js +8 -0
  223. package/dist/src/visual/config-page/ComponentPreview.vue.js +151 -0
  224. package/dist/src/visual/config-page/ConfigOption.js +13 -0
  225. package/dist/src/visual/config-page/ConfigPanel.js +302 -0
  226. package/dist/src/visual/config-page/Dashboard.js +2160 -0
  227. package/dist/src/visual/config-page/DashboardDesign.js +606 -0
  228. package/dist/src/visual/config-page/DashboardGlobalConfig.js +6 -0
  229. package/dist/src/visual/config-page/DashboardGlobalConfig.vue.js +292 -0
  230. package/dist/src/visual/config-page/DashboardMobile.js +1115 -0
  231. package/dist/src/visual/config-page/DashboardSetting.js +86 -0
  232. package/dist/src/visual/config-page/PagePreview.js +8 -0
  233. package/dist/src/visual/config-page/PagePreview.vue.js +72 -0
  234. package/dist/src/visual/config-page/StyleConfig.js +979 -0
  235. package/dist/src/visual/config-page/VisualConfigPage.js +645 -0
  236. package/dist/src/visual/config-page/dashboard-theme-setting/Background.js +180 -0
  237. package/dist/src/visual/config-page/dashboard-theme-setting/Border.js +314 -0
  238. package/dist/src/visual/config-page/dashboard-theme-setting/Font.js +192 -0
  239. package/dist/src/visual/config-page/dashboard-theme-setting/Index.js +545 -0
  240. package/dist/src/visual/config-page/dashboard-theme-setting/Shadow.js +174 -0
  241. package/dist/src/visual/config-page/index.js +90 -0
  242. package/dist/src/visual/index.js +151 -0
  243. package/dist/src/visual/mixins/innerGridMixin.js +122 -0
  244. package/dist/src/visual/search/Filter.js +49 -0
  245. package/dist/src/visual/step/Index.js +8 -0
  246. package/dist/src/visual/step/Index.vue.js +485 -0
  247. package/dist/src/visual/step/Item.js +139 -0
  248. package/dist/src/visual/widgets/CardFormItemVisual.js +45 -0
  249. package/dist/src/visual/widgets/CarouselVisual.js +8 -0
  250. package/dist/src/visual/widgets/CarouselVisual.vue.js +303 -0
  251. package/dist/src/visual/widgets/CollapseVisual.js +8 -0
  252. package/dist/src/visual/widgets/CollapseVisual.vue.js +202 -0
  253. package/dist/src/visual/widgets/DropdownVisual.js +8 -0
  254. package/dist/src/visual/widgets/DropdownVisual.vue.js +955 -0
  255. package/dist/src/visual/widgets/LayoutConfig.js +8 -0
  256. package/dist/src/visual/widgets/LayoutConfig.vue.js +168 -0
  257. package/dist/src/visual/widgets/ListVisual.js +349 -0
  258. package/dist/src/visual/widgets/MEntityListFindVisual.js +76 -0
  259. package/dist/src/visual/widgets/ProcessFormItemVisual.js +5 -0
  260. package/dist/src/visual/widgets/ProcessFormItemVisual.vue.js +45 -0
  261. package/dist/src/visual/widgets/TabsConfig.js +8 -0
  262. package/dist/src/visual/widgets/TabsConfig.vue.js +343 -0
  263. package/dist/style.css +9907 -0
  264. package/package.json +104 -3
  265. package/src/index.js +27 -0
  266. package/src/page-designer/PageConfigPreview.vue +103 -0
  267. package/src/page-designer/PageDesigner.vue +1017 -0
  268. package/src/page-designer/designer.js +1299 -0
  269. package/src/page-designer/index.js +38 -0
  270. package/src/page-designer/mixins/dragSourceMixin.js +113 -0
  271. package/src/page-designer/page-variable-panel/JsonEditor.vue +109 -0
  272. package/src/page-designer/page-variable-panel/PageVariablePanel.vue +781 -0
  273. package/src/page-designer/page-variable-panel/index.js +6 -0
  274. package/src/page-designer/page-variable-panel/jsonlint.js +2 -0
  275. package/src/page-designer/previews/add-form/Preview.vue +331 -0
  276. package/src/page-designer/previews/add-form-item/Preview.vue +167 -0
  277. package/src/page-designer/previews/button/Preview.vue +27 -0
  278. package/src/page-designer/previews/card/Preview.vue +78 -0
  279. package/src/page-designer/previews/carousel/CarouselItemPreview.vue +32 -0
  280. package/src/page-designer/previews/carousel/Preview.vue +36 -0
  281. package/src/page-designer/previews/collapse/CollapseItemPreview.vue +136 -0
  282. package/src/page-designer/previews/collapse/Preview.vue +28 -0
  283. package/src/page-designer/previews/dropdown/Preview.vue +21 -0
  284. package/src/page-designer/previews/entity-list/Preview.vue +382 -0
  285. package/src/page-designer/previews/entity-sub-list/Preview.vue +283 -0
  286. package/src/page-designer/previews/entity-virtual-list/Preview.vue +14 -0
  287. package/src/page-designer/previews/form-field/preview/Checkbox.vue +57 -0
  288. package/src/page-designer/previews/form-field/preview/Date.vue +56 -0
  289. package/src/page-designer/previews/form-field/preview/Input.vue +53 -0
  290. package/src/page-designer/previews/form-field/preview/InputNumber.vue +53 -0
  291. package/src/page-designer/previews/form-field/preview/Object.vue +53 -0
  292. package/src/page-designer/previews/form-field/preview/Radio.vue +69 -0
  293. package/src/page-designer/previews/form-field/preview/Select.vue +55 -0
  294. package/src/page-designer/previews/form-field/preview/Textarea.vue +57 -0
  295. package/src/page-designer/previews/grid/Preview.vue +156 -0
  296. package/src/page-designer/previews/html/Preview.vue +11 -0
  297. package/src/page-designer/previews/icon/Preview.vue +12 -0
  298. package/src/page-designer/previews/image/Preview.vue +37 -0
  299. package/src/page-designer/previews/index.js +74 -0
  300. package/src/page-designer/previews/layout/ColumnPreview.vue +89 -0
  301. package/src/page-designer/previews/layout/Preview.vue +96 -0
  302. package/src/page-designer/previews/num/Preview.vue +100 -0
  303. package/src/page-designer/previews/page-tabs/Preview.vue +53 -0
  304. package/src/page-designer/previews/step/Preview.vue +190 -0
  305. package/src/page-designer/previews/tabs/Preview.vue +66 -0
  306. package/src/page-designer/previews/tabs/tab-pane/Preview.vue +32 -0
  307. package/src/page-designer/previews/text/Preview.vue +26 -0
  308. package/src/page-designer/previews/text-editor/Preview.vue +14 -0
  309. package/src/page-designer/previews/video/Preview.vue +9 -0
  310. package/src/page-designer/setting-panel/Advance.vue +175 -0
  311. package/src/page-designer/setting-panel/CodeEditor.vue +88 -0
  312. package/src/page-designer/setting-panel/Property.vue +163 -0
  313. package/src/page-designer/setting-panel/Setting.vue +271 -0
  314. package/src/page-designer/setting-panel/Style.vue +1096 -0
  315. package/src/page-designer/setting-panel/css-editor/CssEditor.vue +93 -0
  316. package/src/page-designer/setting-panel/css-editor/css-hint.js +58 -0
  317. package/src/page-designer/setting-panel/index.js +10 -0
  318. package/src/page-designer/template-attribute-panel/TemplateAttributePanel.vue +383 -0
  319. package/src/page-designer/template-attribute-panel/index.js +2 -0
  320. package/src/page-designer/template-library/Library.vue +153 -0
  321. package/src/page-designer/template-library/index.js +4 -0
  322. package/src/page-designer/widget-library/Base.vue +156 -0
  323. package/src/page-designer/widget-library/Library.vue +282 -0
  324. package/src/page-designer/widget-library/index.js +6 -0
  325. package/src/page-designer/widget-preview/Container.vue +89 -0
  326. package/src/page-designer/widget-preview/DragGhost.vue +83 -0
  327. package/src/page-designer/widget-preview/DropZoneOverlay.vue +51 -0
  328. package/src/page-designer/widget-preview/HoverOverlay.vue +85 -0
  329. package/src/page-designer/widget-preview/Mixin.js +285 -0
  330. package/src/page-designer/widget-preview/Placeholder.vue +22 -0
  331. package/src/page-designer/widget-preview/Preview.vue +322 -0
  332. package/src/page-designer/widget-preview/PreviewItem.vue +162 -0
  333. package/src/page-designer/widget-preview/SelectedOverlay.vue +340 -0
  334. package/src/page-designer/widget-preview/Template.vue +77 -0
  335. package/src/page-designer/widget-preview/WidgetWrapper.vue +197 -0
  336. package/src/page-designer/widget-preview/directive.js +258 -0
  337. package/src/page-designer/widget-preview/dropPosition.js +51 -0
  338. package/src/page-designer/widget-preview/index.js +23 -0
  339. package/src/page-designer/widget-preview/overlayPositionMixin.js +88 -0
  340. package/src/page-designer/widget-preview/resolvePreviewName.js +33 -0
  341. package/src/page-designer/widget-tree/Item.vue +719 -0
  342. package/src/page-designer/widget-tree/Tree.vue +995 -0
  343. package/src/page-designer/widget-tree/index.js +6 -0
  344. package/src/visual/AddForm.vue +172 -0
  345. package/src/visual/AddFormItem.vue +482 -0
  346. package/src/visual/AppIndex.vue +245 -0
  347. package/src/visual/ApplyForm.vue +140 -0
  348. package/src/visual/AttributeList.vue +344 -0
  349. package/src/visual/BasePage.vue +76 -0
  350. package/src/visual/Button.vue +80 -0
  351. package/src/visual/CardNum.vue +73 -0
  352. package/src/visual/CategoryList.vue +563 -0
  353. package/src/visual/Chart.vue +29 -0
  354. package/src/visual/ChartNew.vue +49 -0
  355. package/src/visual/CheckForm.vue +106 -0
  356. package/src/visual/ClientList.vue +42 -0
  357. package/src/visual/CodeManage.vue +116 -0
  358. package/src/visual/Component.vue +1342 -0
  359. package/src/visual/ComponentList.vue +280 -0
  360. package/src/visual/Config.vue +881 -0
  361. package/src/visual/ConfigItem.vue +218 -0
  362. package/src/visual/ConfigSelectItems.vue +445 -0
  363. package/src/visual/CreatePage.vue +389 -0
  364. package/src/visual/DashboardDiv.vue +197 -0
  365. package/src/visual/DashboardTabs.vue +118 -0
  366. package/src/visual/DashboardWidget.vue +55 -0
  367. package/src/visual/DblogList.vue +84 -0
  368. package/src/visual/EntityAddPage.vue +52 -0
  369. package/src/visual/EntityApplyPage.vue +57 -0
  370. package/src/visual/EntityCardList.vue +449 -0
  371. package/src/visual/EntityCheckPage.vue +69 -0
  372. package/src/visual/EntityFindPage.vue +55 -0
  373. package/src/visual/EntityList.vue +838 -0
  374. package/src/visual/EntityListPage.vue +97 -0
  375. package/src/visual/EntityNoSubmitSubList.vue +273 -0
  376. package/src/visual/EntityRightSubList.vue +32 -0
  377. package/src/visual/EntitySubAdd.vue +11 -0
  378. package/src/visual/EntitySubGridItem.vue +67 -0
  379. package/src/visual/EntitySubList.vue +440 -0
  380. package/src/visual/EntityTreeFindPage.vue +36 -0
  381. package/src/visual/EntityTreeManage.vue +50 -0
  382. package/src/visual/EntityTreePage.vue +45 -0
  383. package/src/visual/ExcelPreview.vue +11 -0
  384. package/src/visual/FormField.vue +113 -0
  385. package/src/visual/HeaderNew.vue +176 -0
  386. package/src/visual/Html.vue +104 -0
  387. package/src/visual/Import.vue +55 -0
  388. package/src/visual/InterfaceSubList.vue +23 -0
  389. package/src/visual/ListFirst.vue +614 -0
  390. package/src/visual/MEntityAddPage.vue +71 -0
  391. package/src/visual/MEntityList.vue +488 -0
  392. package/src/visual/MEntityListPage.vue +46 -0
  393. package/src/visual/MEntitySubList.vue +237 -0
  394. package/src/visual/MetaList.vue +24 -0
  395. package/src/visual/ModuleIndexPage.vue +70 -0
  396. package/src/visual/ModuleList.vue +46 -0
  397. package/src/visual/NavAddForm.vue +177 -0
  398. package/src/visual/NavFormCatalogItem.vue +47 -0
  399. package/src/visual/NumItem.vue +69 -0
  400. package/src/visual/NumStatistic.vue +242 -0
  401. package/src/visual/OrgChart.vue +113 -0
  402. package/src/visual/PageCatalog.vue +26 -0
  403. package/src/visual/PageConfig.vue +278 -0
  404. package/src/visual/PageTabs.vue +55 -0
  405. package/src/visual/Progress.vue +39 -0
  406. package/src/visual/ProgressItem.vue +43 -0
  407. package/src/visual/SystemManager.vue +80 -0
  408. package/src/visual/Title.vue +44 -0
  409. package/src/visual/TodoList.vue +18 -0
  410. package/src/visual/UserFormItem.vue +49 -0
  411. package/src/visual/UserManage.vue +36 -0
  412. package/src/visual/chart/CircularPie.vue +7 -0
  413. package/src/visual/chart/Column.vue +73 -0
  414. package/src/visual/chart/HoriColumn.vue +7 -0
  415. package/src/visual/chart/Line.vue +7 -0
  416. package/src/visual/chart/Pie.vue +7 -0
  417. package/src/visual/config/Background.vue +398 -0
  418. package/src/visual/config/Chart.vue +139 -0
  419. package/src/visual/config/Checkbox.vue +64 -0
  420. package/src/visual/config/Color.vue +40 -0
  421. package/src/visual/config/DesignReport.vue +20 -0
  422. package/src/visual/config/Event.vue +220 -0
  423. package/src/visual/config/Field.vue +597 -0
  424. package/src/visual/config/Font.vue +149 -0
  425. package/src/visual/config/FormItem.vue +25 -0
  426. package/src/visual/config/Function.vue +78 -0
  427. package/src/visual/config/Html.vue +98 -0
  428. package/src/visual/config/Image.vue +132 -0
  429. package/src/visual/config/Input.vue +712 -0
  430. package/src/visual/config/LazyDialog.vue +44 -0
  431. package/src/visual/config/List.vue +68 -0
  432. package/src/visual/config/ListField.vue +1714 -0
  433. package/src/visual/config/MField.vue +601 -0
  434. package/src/visual/config/Number.vue +41 -0
  435. package/src/visual/config/Object.vue +177 -0
  436. package/src/visual/config/Operate.vue +1083 -0
  437. package/src/visual/config/OperateItem.vue +917 -0
  438. package/src/visual/config/Options.vue +330 -0
  439. package/src/visual/config/OrderField.vue +587 -0
  440. package/src/visual/config/Page.vue +45 -0
  441. package/src/visual/config/Params.vue +228 -0
  442. package/src/visual/config/Radio.vue +93 -0
  443. package/src/visual/config/Row.vue +78 -0
  444. package/src/visual/config/Scope.vue +363 -0
  445. package/src/visual/config/Select.vue +93 -0
  446. package/src/visual/config/Switch.vue +36 -0
  447. package/src/visual/config/Textarea.vue +754 -0
  448. package/src/visual/config/Tree.vue +135 -0
  449. package/src/visual/config/remote-cache.js +35 -0
  450. package/src/visual/config/show-condition.js +21 -0
  451. package/src/visual/config/variable-sources.js +27 -0
  452. package/src/visual/config/wait-ref.js +17 -0
  453. package/src/visual/config-page/ComponentLibrary.vue +220 -0
  454. package/src/visual/config-page/ComponentLibraryDialog.vue +262 -0
  455. package/src/visual/config-page/ComponentList.vue +580 -0
  456. package/src/visual/config-page/ComponentPreview.vue +206 -0
  457. package/src/visual/config-page/ConfigOption.vue +16 -0
  458. package/src/visual/config-page/ConfigPanel.vue +301 -0
  459. package/src/visual/config-page/Dashboard.vue +2331 -0
  460. package/src/visual/config-page/DashboardDesign.vue +656 -0
  461. package/src/visual/config-page/DashboardGlobalConfig.vue +158 -0
  462. package/src/visual/config-page/DashboardMobile.vue +1118 -0
  463. package/src/visual/config-page/DashboardSetting.vue +47 -0
  464. package/src/visual/config-page/PagePreview.vue +105 -0
  465. package/src/visual/config-page/StyleConfig.vue +656 -0
  466. package/src/visual/config-page/VisualConfigPage.vue +746 -0
  467. package/src/visual/config-page/dashboard-theme-setting/Background.vue +98 -0
  468. package/src/visual/config-page/dashboard-theme-setting/Border.vue +185 -0
  469. package/src/visual/config-page/dashboard-theme-setting/Font.vue +101 -0
  470. package/src/visual/config-page/dashboard-theme-setting/Index.vue +471 -0
  471. package/src/visual/config-page/dashboard-theme-setting/Shadow.vue +102 -0
  472. package/src/visual/config-page/index.js +93 -0
  473. package/src/visual/index.js +23 -0
  474. package/src/visual/mixins/innerGridMixin.js +128 -0
  475. package/src/visual/search/Filter.vue +50 -0
  476. package/src/visual/step/Index.vue +361 -0
  477. package/src/visual/step/Item.vue +140 -0
  478. package/src/visual/widgets/CardFormItemVisual.vue +46 -0
  479. package/src/visual/widgets/CarouselVisual.vue +291 -0
  480. package/src/visual/widgets/CollapseVisual.vue +203 -0
  481. package/src/visual/widgets/DropdownVisual.vue +541 -0
  482. package/src/visual/widgets/LayoutConfig.vue +186 -0
  483. package/src/visual/widgets/ListVisual.vue +349 -0
  484. package/src/visual/widgets/MEntityListFindVisual.vue +77 -0
  485. package/src/visual/widgets/ProcessFormItemVisual.vue +58 -0
  486. package/src/visual/widgets/TabsConfig.vue +266 -0
  487. package/types/index.d.ts +22 -0
  488. package/types/page-designer.d.ts +3 -0
  489. package/types/visual-component.d.ts +1 -0
  490. package/types/visual-entity-list.d.ts +1 -0
  491. package/types/visual-entity-sub-list.d.ts +1 -0
@@ -0,0 +1,1591 @@
1
+ import '../../../style.css';
2
+ import CssEditor from "./css-editor/CssEditor.js";
3
+ import Background from "../../visual/config/Background.js";
4
+ import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createBlock, createCommentVNode, createElementVNode, toDisplayString, normalizeClass, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
5
+ /* empty css */
6
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
7
+ const _sfc_main = {
8
+ name: "epx-page-designer-setting-style",
9
+ components: {
10
+ CssEditor,
11
+ [Background.name]: Background
12
+ },
13
+ props: {
14
+ designer: {
15
+ type: Object
16
+ },
17
+ value: String,
18
+ inlineStyle: Boolean
19
+ },
20
+ data() {
21
+ return {
22
+ load: true,
23
+ defaultStyle: {},
24
+ // 默认状态样式
25
+ hoverStyle: {},
26
+ // 悬浮状态样式
27
+ mouseStatus: "default",
28
+ unfold: {
29
+ display: true
30
+ },
31
+ space: [
32
+ { label: "超大", value: "24px" },
33
+ { label: "大", value: "16px" },
34
+ { label: "中", value: "12px" },
35
+ { label: "小", value: "4px" },
36
+ { label: "无", value: "0px" },
37
+ { label: "默认", value: "default" },
38
+ { label: "自定义", value: "custom" }
39
+ ],
40
+ showCssEditor: false,
41
+ borderWidthType: "same",
42
+ borderRadiusType: "same"
43
+ };
44
+ },
45
+ computed: {
46
+ type() {
47
+ if (this.designer.selectedWidget) return "widget";
48
+ return "page";
49
+ },
50
+ style: {
51
+ get() {
52
+ if (this.mouseStatus === "hover") {
53
+ return this.hoverStyle;
54
+ } else {
55
+ return this.defaultStyle;
56
+ }
57
+ },
58
+ set(v) {
59
+ this.updateStyle(v);
60
+ }
61
+ },
62
+ clearSuffix() {
63
+ return (v = "") => {
64
+ const value = v === "auto" ? "auto" : typeof v === "string" ? v.replace(/(px|%)/, "") : v;
65
+ return value;
66
+ };
67
+ },
68
+ toNumber() {
69
+ return (v) => Number(v) || 0;
70
+ },
71
+ isSameMargin() {
72
+ const { "margin-top": marginTop, "margin-right": marginRight, "margin-bottom": marginBottom, "margin-left": marginLeft } = this.style;
73
+ return marginTop === marginRight && marginTop === marginBottom && marginTop === marginLeft;
74
+ },
75
+ isSamePadding() {
76
+ const { "padding-top": paddingTop, "padding-right": paddingRight, "padding-bottom": paddingBottom, "padding-left": paddingLeft } = this.style;
77
+ return paddingTop === paddingRight && paddingTop === paddingBottom && paddingTop === paddingLeft;
78
+ },
79
+ shadow() {
80
+ const { hShadow, vShadow, shadowBlur, shadowSpread, shadowColor } = this.style;
81
+ return `${hShadow} ${vShadow} ${shadowBlur} ${shadowSpread} ${shadowColor}`;
82
+ },
83
+ css() {
84
+ if (this.inlineStyle) {
85
+ return this.value || ":current {\r\n\r\n}";
86
+ }
87
+ const { css = ":current {\r\n\r\n}" } = this.designer.selectedWidget || this.designer.pageConfig;
88
+ return css;
89
+ },
90
+ unit() {
91
+ return (item) => {
92
+ const value = this.style[item];
93
+ if (value === "auto") {
94
+ return "";
95
+ } else if (value) {
96
+ return value.replace(/[-\d]+/, "");
97
+ } else {
98
+ return "px";
99
+ }
100
+ };
101
+ },
102
+ borderWidthPosition: {
103
+ get() {
104
+ const positionMap = {};
105
+ this.borderWidthPositionList.map((item) => {
106
+ let borderPositionWidth = this.style[`border-${item.value}-width`];
107
+ if (!borderPositionWidth) {
108
+ const border = this.style[`border-${item.value}`] || this.style.border;
109
+ if (border) {
110
+ borderPositionWidth = border.split(" ")[0];
111
+ }
112
+ }
113
+ positionMap[item.value] = borderPositionWidth || this.style["border-width"] || 0;
114
+ });
115
+ return positionMap;
116
+ }
117
+ },
118
+ borderRadiusPosition: {
119
+ get() {
120
+ const positionMap = {};
121
+ this.borderRadiusPositionList.map((item) => {
122
+ let borderRadiusPosition = this.style[`border-${item.value}-radius`];
123
+ if (!borderRadiusPosition) {
124
+ const borderRadius = this.style["border-radius"];
125
+ if (borderRadius) {
126
+ const borderRadiusArr = borderRadius.split(" ");
127
+ let index = 0;
128
+ if (borderRadiusArr.length === 2) {
129
+ index = item.index % 2;
130
+ } else if (borderRadiusArr.length === 4) {
131
+ index = item.index;
132
+ }
133
+ borderRadiusPosition = borderRadiusArr[index];
134
+ }
135
+ }
136
+ positionMap[item.value] = borderRadiusPosition || 0;
137
+ });
138
+ return positionMap;
139
+ }
140
+ }
141
+ },
142
+ watch: {
143
+ "designer.selectedWidget"(v) {
144
+ if (this.$refs.codeEditorPopover) this.$refs.codeEditorPopover.hide();
145
+ this.showCssEditor = false;
146
+ this.cssToStyle();
147
+ this.load = false;
148
+ this.$nextTick(() => {
149
+ this.load = true;
150
+ });
151
+ },
152
+ "css"(v) {
153
+ },
154
+ style: {
155
+ handler(v = {}) {
156
+ if (this.timer) {
157
+ clearTimeout(this.timer);
158
+ }
159
+ this.timer = setTimeout(() => {
160
+ this.updateCss();
161
+ clearTimeout(this.timer);
162
+ }, 200);
163
+ },
164
+ deep: true
165
+ },
166
+ "style.margin"(v) {
167
+ if (v && v !== "custom") {
168
+ ["-top", "-right", "-bottom", "-left"].forEach((item) => {
169
+ this.style["margin" + item] = v;
170
+ });
171
+ }
172
+ },
173
+ "style.padding"(v) {
174
+ if (v && v !== "custom") {
175
+ ["-top", "-right", "-bottom", "-left"].forEach((item) => {
176
+ this.style["padding" + item] = v;
177
+ });
178
+ }
179
+ },
180
+ "style.text"(v) {
181
+ const option = this.textOption.find((item) => item.value === v);
182
+ if (option && option.style) {
183
+ for (const key in option.style) {
184
+ this.style[key] = option.style[key];
185
+ }
186
+ }
187
+ },
188
+ isSameMargin(v) {
189
+ if (v) {
190
+ this.style.margin = this.style.marginTop || this.style.margin;
191
+ } else {
192
+ this.style.margin = "custom";
193
+ }
194
+ },
195
+ isSamePadding(v) {
196
+ if (v) {
197
+ this.style.padding = this.style.paddingTop || this.style.padding;
198
+ } else {
199
+ this.style.padding = "custom";
200
+ }
201
+ }
202
+ },
203
+ methods: {
204
+ updateStyle(v) {
205
+ if (this.mouseStatus === "hover") {
206
+ this.hoverStyle = v;
207
+ } else {
208
+ this.defaultStyle = v;
209
+ }
210
+ },
211
+ getOption() {
212
+ const textOption = [
213
+ {
214
+ label: this.$t("Translation of the title"),
215
+ value: "h1",
216
+ style: {
217
+ "font-size": "20px",
218
+ "font-weight": "700",
219
+ "line-height": "32px"
220
+ }
221
+ },
222
+ {
223
+ label: this.$t("SubTitle"),
224
+ value: "h2",
225
+ style: {
226
+ "font-size": "16px",
227
+ "font-weight": "700",
228
+ "line-height": "24px"
229
+ }
230
+ },
231
+ {
232
+ label: this.$t("main body"),
233
+ value: "default",
234
+ style: {
235
+ "font-size": "14px",
236
+ "line-height": "20px"
237
+ }
238
+ },
239
+ {
240
+ label: this.$t("auxiliary words"),
241
+ value: "second",
242
+ style: {
243
+ "font-size": "12px",
244
+ color: "#666",
245
+ "line-height": "16px"
246
+ }
247
+ },
248
+ {
249
+ label: this.$t("user-defined"),
250
+ value: "custom"
251
+ }
252
+ ];
253
+ this.textOption = textOption;
254
+ this.predefineColors = ["#ff4500", "#ff8c00", "#ffd700", "#90ee90"];
255
+ this.fontWeightOption = [
256
+ {
257
+ label: this.$t("overstriking"),
258
+ value: "700"
259
+ },
260
+ {
261
+ label: this.$t("thin"),
262
+ value: "400"
263
+ },
264
+ {
265
+ label: this.$t("default"),
266
+ value: "500"
267
+ }
268
+ ];
269
+ this.borderStyleOption = [
270
+ {
271
+ label: this.$t("full line"),
272
+ value: "solid"
273
+ },
274
+ {
275
+ label: this.$t("dotted line"),
276
+ value: "dashed"
277
+ },
278
+ {
279
+ label: this.$t("stipple line"),
280
+ value: "dotted"
281
+ },
282
+ {
283
+ label: this.$t("not"),
284
+ value: "none"
285
+ }
286
+ ];
287
+ this.borderWidthPositionList = [{
288
+ label: "上",
289
+ value: "top"
290
+ }, {
291
+ label: "右",
292
+ value: "right"
293
+ }, {
294
+ label: "下",
295
+ value: "bottom"
296
+ }, {
297
+ label: "左",
298
+ value: "left"
299
+ }];
300
+ this.borderRadiusPositionList = [{
301
+ label: "左上",
302
+ value: "top-left",
303
+ index: 0
304
+ }, {
305
+ label: "右上",
306
+ value: "top-right",
307
+ index: 1
308
+ }, {
309
+ label: "右下",
310
+ value: "bottom-right",
311
+ index: 2
312
+ }, {
313
+ label: "左下",
314
+ value: "bottom-left",
315
+ index: 3
316
+ }];
317
+ this.flexDirectionList = [{
318
+ icon: "epx-icon-fangxiang1",
319
+ value: "row",
320
+ tip: "水平"
321
+ }, {
322
+ icon: "epx-icon-fangxiang2",
323
+ value: "column",
324
+ tip: "垂直"
325
+ }, {
326
+ icon: "epx-icon-fangxiang1",
327
+ value: "row-reverse",
328
+ rotateY: "180deg",
329
+ tip: "水平逆序"
330
+ }, {
331
+ icon: "epx-icon-fangxiang2",
332
+ value: "column-reverse",
333
+ rotateX: "180deg",
334
+ tip: "垂直逆序"
335
+ }];
336
+ this.flexJustifyList = [{
337
+ icon: "epx-icon-left1",
338
+ value: "flex-start",
339
+ tip: "起点对齐"
340
+ }, {
341
+ icon: "epx-icon-justify-center",
342
+ value: "center",
343
+ tip: "居中"
344
+ }, {
345
+ icon: "epx-icon-right1",
346
+ value: "flex-end",
347
+ tip: "终点对齐"
348
+ }, {
349
+ icon: "epx-icon-fangxiang2",
350
+ value: "space-around",
351
+ tip: "均匀排列"
352
+ }, {
353
+ icon: "epx-icon-space-between",
354
+ value: "space-between",
355
+ tip: "两侧对齐"
356
+ }];
357
+ this.flexAlignList = [
358
+ {
359
+ icon: "epx-icon-top",
360
+ value: "flex-start",
361
+ tip: "起点对齐"
362
+ },
363
+ {
364
+ icon: "epx-icon-align-center",
365
+ value: "center",
366
+ tip: "居中"
367
+ },
368
+ {
369
+ icon: "epx-icon-end",
370
+ value: "flex-end",
371
+ tip: "终点对齐"
372
+ }
373
+ ];
374
+ },
375
+ changePx(key, v, unit = "px") {
376
+ if ((unit || v) === "auto") {
377
+ this.style[key] = unit;
378
+ } else {
379
+ const formatV = !Number.isNaN(parseFloat(v)) ? parseFloat(v) + unit : "";
380
+ if (formatV || v === "-") {
381
+ this.style[key] = formatV || v + unit;
382
+ } else {
383
+ delete this.style[key];
384
+ }
385
+ }
386
+ },
387
+ changeBorderWidthPosition(key, v) {
388
+ this.style[`border-${key}-width`] = v + "px";
389
+ },
390
+ changeBorderRadiusPosition(key, v) {
391
+ const borderRadiusPosition = {
392
+ ...this.borderRadiusPosition,
393
+ [key]: v + "px"
394
+ };
395
+ const same = Object.values(borderRadiusPosition).every((item) => item === v + "px");
396
+ if (same) {
397
+ this.style["border-radius"] = v + "px";
398
+ } else if (borderRadiusPosition["top-left"] === borderRadiusPosition["bottom-right"] && borderRadiusPosition["top-right"] === borderRadiusPosition["bottom-left"]) {
399
+ this.style["border-radius"] = `${borderRadiusPosition["top-left"]} ${borderRadiusPosition["top-right"]}`;
400
+ } else {
401
+ this.style["border-radius"] = `${borderRadiusPosition["top-left"]} ${borderRadiusPosition["top-right"]} ${borderRadiusPosition["bottom-right"]} ${borderRadiusPosition["bottom-left"]}`;
402
+ }
403
+ for (const key2 in borderRadiusPosition) {
404
+ delete this.style[`border-${key2}-radius`];
405
+ }
406
+ },
407
+ updateCss() {
408
+ if (!this.initStyle) return;
409
+ const {
410
+ margin,
411
+ "margin-top": marginTop,
412
+ "margin-right": marginRight,
413
+ "margin-bottom": marginBottom,
414
+ "margin-left": marginLeft,
415
+ padding,
416
+ "padding-top": paddingTop,
417
+ "padding-right": paddingRight,
418
+ "padding-bottom": paddingBottom,
419
+ "padding-left": paddingLeft,
420
+ hShadow = 0,
421
+ vShadow = 0,
422
+ shadowBlur = 0,
423
+ shadowSpread = 0,
424
+ shadowColor,
425
+ text,
426
+ ...otherStyle
427
+ } = this.style;
428
+ const style = {
429
+ ...otherStyle
430
+ };
431
+ if (hShadow || vShadow || shadowBlur) {
432
+ style.boxShadow = `${hShadow} ${vShadow} ${shadowBlur} ${shadowSpread} ${shadowColor}`;
433
+ }
434
+ if (margin !== "default") {
435
+ if (!this.isSameMargin) {
436
+ if (![marginTop, marginRight, marginBottom, marginLeft].includes("default") && ![marginTop, marginRight, marginBottom, marginLeft].includes(void 0)) {
437
+ style.margin = `${marginTop} ${marginRight} ${marginBottom} ${marginLeft}`;
438
+ } else {
439
+ if (marginTop && marginTop !== "default") style.marginTop = marginTop;
440
+ if (marginRight && marginRight !== "default") style.marginRight = marginRight;
441
+ if (marginBottom && marginBottom !== "default") style.marginBottom = marginBottom;
442
+ if (marginLeft && marginLeft !== "default") style.marginLeft = marginLeft;
443
+ }
444
+ } else if (margin) {
445
+ style.margin = margin;
446
+ }
447
+ }
448
+ if (padding) {
449
+ if (!this.isSamePadding) {
450
+ if (![paddingTop, paddingRight, paddingBottom, paddingLeft].includes("default") && ![paddingTop, paddingRight, paddingBottom, paddingLeft].includes(void 0)) {
451
+ style.padding = `${paddingTop} ${paddingRight} ${paddingBottom} ${paddingLeft}`;
452
+ } else {
453
+ if (paddingTop && paddingTop !== "default") style.paddingTop = paddingTop;
454
+ if (paddingRight && paddingRight !== "default") style.paddingRight = paddingRight;
455
+ if (paddingBottom && paddingBottom !== "default") style.paddingBottom = paddingBottom;
456
+ if (paddingLeft && paddingLeft !== "default") style.paddingLeft = paddingLeft;
457
+ }
458
+ } else {
459
+ style.padding = padding;
460
+ }
461
+ }
462
+ for (const key in style) {
463
+ if (!style[key]) delete style[key];
464
+ }
465
+ if (this.$_.isEqual(style, this.oldStyle)) return;
466
+ this.oldStyle = { ...style };
467
+ const css = this.styleToCss(style);
468
+ if (this.inlineStyle) {
469
+ this.$emit("input", css);
470
+ } else if (this.type === "page") {
471
+ this.designer.updatePageConfig({ css });
472
+ } else {
473
+ this.designer.updateWidget(this.designer.selectedWidget.id, { css });
474
+ }
475
+ },
476
+ cssToStyle() {
477
+ let style = {};
478
+ let hoverStyle = {};
479
+ const css = this.css || "";
480
+ if (css) {
481
+ const cssObject = this.cssToObject(css);
482
+ style = cssObject[":current"];
483
+ if (cssObject[":current:hover"]) hoverStyle = cssObject[":current:hover"];
484
+ }
485
+ const formatStyle = (style2) => {
486
+ const { margin, padding, "box-shadow": boxShadow, ...otherStyle } = style2;
487
+ const componentStyle = {};
488
+ for (const key in style2) {
489
+ const value = style2[key];
490
+ if (key === "box-shadow") {
491
+ if (value) {
492
+ const shadowColor = value.split("rgb")[1];
493
+ const shadowArr = value.split(/\s+/);
494
+ componentStyle.hShadow = shadowArr[0] || 0;
495
+ componentStyle.vShadow = shadowArr[1] || 0;
496
+ componentStyle.shadowBlur = shadowArr[2] || 0;
497
+ componentStyle.shadowSpread = shadowArr[3] || 0;
498
+ componentStyle.shadowColor = shadowColor ? "rgb" + shadowColor : "";
499
+ }
500
+ } else if (key === "margin") {
501
+ if (value) {
502
+ const arr = value.split(" ");
503
+ if (arr.length === 2) {
504
+ componentStyle.margin = "custom";
505
+ componentStyle["margin-top"] = arr[0];
506
+ componentStyle["margin-right"] = arr[1];
507
+ componentStyle["margin-bottom"] = arr[0];
508
+ componentStyle["margin-left"] = arr[1];
509
+ } else if (arr.length === 3) {
510
+ componentStyle.margin = "custom";
511
+ componentStyle["margin-top"] = arr[0];
512
+ componentStyle["margin-right"] = arr[1];
513
+ componentStyle["margin-bottom"] = arr[2];
514
+ componentStyle["margin-left"] = arr[1];
515
+ } else if (arr.length === 4) {
516
+ componentStyle.margin = "custom";
517
+ componentStyle["margin-top"] = arr[0];
518
+ componentStyle["margin-right"] = arr[1];
519
+ componentStyle["margin-bottom"] = arr[2];
520
+ componentStyle["margin-left"] = arr[3];
521
+ } else {
522
+ componentStyle.margin = margin;
523
+ }
524
+ }
525
+ } else if (key === "padding") {
526
+ if (value) {
527
+ const arr = value.split(" ");
528
+ if (arr.length === 2) {
529
+ componentStyle.padding = "custom";
530
+ componentStyle["padding-top"] = arr[0];
531
+ componentStyle["padding-right"] = arr[1];
532
+ componentStyle["padding-bottom"] = arr[0];
533
+ componentStyle["padding-left"] = arr[1];
534
+ } else if (arr.length === 3) {
535
+ componentStyle.padding = "custom";
536
+ componentStyle["padding-top"] = arr[0];
537
+ componentStyle["padding-right"] = arr[1];
538
+ componentStyle["padding-bottom"] = arr[2];
539
+ componentStyle["padding-left"] = arr[1];
540
+ } else if (arr.length === 4) {
541
+ componentStyle.padding = "custom";
542
+ componentStyle["padding-top"] = arr[0];
543
+ componentStyle["padding-right"] = arr[1];
544
+ componentStyle["padding-bottom"] = arr[2];
545
+ componentStyle["padding-left"] = arr[3];
546
+ } else {
547
+ componentStyle.padding = padding;
548
+ }
549
+ }
550
+ }
551
+ }
552
+ return { ...componentStyle, ...otherStyle };
553
+ };
554
+ this.defaultStyle = formatStyle(style);
555
+ this.hoverStyle = formatStyle(hoverStyle);
556
+ this.$nextTick(() => {
557
+ this.borderWidthType = Object.values(this.borderWidthPosition).every((item) => item === this.borderWidthPosition.top) ? "same" : "diff";
558
+ this.borderRadiusType = Object.values(this.borderRadiusPosition).every((item) => item === this.borderRadiusPosition["top-left"]) ? "same" : "diff";
559
+ this.initStyle = true;
560
+ });
561
+ },
562
+ cssToObject(css) {
563
+ const cssObject = {};
564
+ const regExp = /[\w-_.:#\s]+{[\w\s-.:;,()#%/]+}/g;
565
+ const classList = css.match(regExp);
566
+ classList.forEach((item) => {
567
+ const className = item.split("{")[0].trim();
568
+ const classContent = item.split("{")[1].split("}")[0];
569
+ var style = {};
570
+ const rules = classContent.split(";");
571
+ rules.forEach((rule) => {
572
+ try {
573
+ var pair = rule.split(":");
574
+ var property = pair[0].trim();
575
+ var value = pair[1].trim();
576
+ if (property && value) {
577
+ style[property] = value;
578
+ }
579
+ } catch (error) {
580
+ }
581
+ });
582
+ cssObject[className] = style;
583
+ });
584
+ return cssObject;
585
+ },
586
+ styleToCss(style) {
587
+ let str = (this.mouseStatus === "hover" ? ":current:hover" : ":current") + " {";
588
+ for (const key in style) {
589
+ const kebabCase = key.replace(/([A-Z])/g, ($1) => {
590
+ return "-" + $1.toLocaleLowerCase();
591
+ });
592
+ str += `\r
593
+ ${kebabCase}: ${style[key]};`;
594
+ }
595
+ str += "\r\n}";
596
+ const regExp = this.mouseStatus === "hover" ? /[\s]*:current:hover\s*{[\w\s-:;.,()%#!/]+}/ : /[\s]*:current\s*{[\w\s-:;.,()#%!/]+}/;
597
+ const css = this.css || "";
598
+ if (css.match(regExp)) {
599
+ return css.replace(regExp, this.mouseStatus === "hover" ? "\r\n" + str : str);
600
+ } else {
601
+ return css + "\r\n" + str;
602
+ }
603
+ },
604
+ changeCss(v) {
605
+ if (this.inlineStyle) {
606
+ this.$emit("input", v);
607
+ } else if (this.type === "page") {
608
+ this.designer.updatePageConfig({ css: v });
609
+ } else {
610
+ this.designer.updateWidget(this.designer.selectedWidget.id, { css: v });
611
+ }
612
+ this.cssToStyle();
613
+ }
614
+ },
615
+ created() {
616
+ this.getOption();
617
+ this.cssToStyle();
618
+ }
619
+ };
620
+ const _hoisted_1 = {
621
+ key: 0,
622
+ class: "epx-page-designer-setting-style"
623
+ };
624
+ const _hoisted_2 = { class: "epx-page-designer-setting-style__item--alone" };
625
+ const _hoisted_3 = { class: "epx-page-designer-setting-style__item--alone" };
626
+ const _hoisted_4 = {
627
+ class: "epx-page-designer-setting-style__label",
628
+ for: ""
629
+ };
630
+ const _hoisted_5 = { class: "epx-page-designer-setting-style__item--alone" };
631
+ const _hoisted_6 = {
632
+ class: "epx-page-designer-setting-style__label",
633
+ for: ""
634
+ };
635
+ const _hoisted_7 = { class: "epx-page-designer-setting-style__header" };
636
+ const _hoisted_8 = {
637
+ class: "epx-page-designer-setting-style__label",
638
+ for: ""
639
+ };
640
+ const _hoisted_9 = {
641
+ key: 0,
642
+ class: "epx-page-designer-setting-style__content"
643
+ };
644
+ const _hoisted_10 = { class: "epx-page-designer-setting-style__subitem" };
645
+ const _hoisted_11 = { class: "epx-page-designer-setting-style__subitem" };
646
+ const _hoisted_12 = {
647
+ class: "epx-page-designer-setting-style__label",
648
+ for: ""
649
+ };
650
+ const _hoisted_13 = { class: "epx-page-designer-setting-style__subitem" };
651
+ const _hoisted_14 = {
652
+ class: "epx-page-designer-setting-style__label",
653
+ for: ""
654
+ };
655
+ const _hoisted_15 = { class: "epx-page-designer-setting-style__header" };
656
+ const _hoisted_16 = ["onClick"];
657
+ const _hoisted_17 = {
658
+ class: "epx-page-designer-setting-style__label",
659
+ for: ""
660
+ };
661
+ const _hoisted_18 = { class: "epx-page-designer-setting-style__content" };
662
+ const _hoisted_19 = {
663
+ class: "epx-page-designer-setting-style__label",
664
+ for: ""
665
+ };
666
+ const _hoisted_20 = { class: "epx-page-designer-setting-style__header" };
667
+ const _hoisted_21 = {
668
+ class: "epx-page-designer-setting-style__label",
669
+ for: ""
670
+ };
671
+ const _hoisted_22 = { class: "epx-page-designer-setting-style__content" };
672
+ const _hoisted_23 = { class: "epx-page-designer-setting-style__subitem" };
673
+ const _hoisted_24 = {
674
+ class: "epx-page-designer-setting-style__label",
675
+ for: ""
676
+ };
677
+ const _hoisted_25 = { class: "epx-page-designer-setting-style__subitem" };
678
+ const _hoisted_26 = {
679
+ class: "epx-page-designer-setting-style__label",
680
+ for: ""
681
+ };
682
+ const _hoisted_27 = { class: "epx-page-designer-setting-style__subitem" };
683
+ const _hoisted_28 = {
684
+ class: "epx-page-designer-setting-style__label",
685
+ for: ""
686
+ };
687
+ const _hoisted_29 = { class: "epx-page-designer-setting-style__subitem" };
688
+ const _hoisted_30 = {
689
+ class: "epx-page-designer-setting-style__label",
690
+ for: ""
691
+ };
692
+ const _hoisted_31 = { class: "epx-page-designer-setting-style__subitem" };
693
+ const _hoisted_32 = {
694
+ class: "epx-page-designer-setting-style__label",
695
+ for: ""
696
+ };
697
+ const _hoisted_33 = { class: "epx-page-designer-setting-style__header" };
698
+ const _hoisted_34 = {
699
+ class: "epx-page-designer-setting-style__label",
700
+ for: ""
701
+ };
702
+ const _hoisted_35 = { class: "epx-page-designer-setting-style__content" };
703
+ const _hoisted_36 = { class: "epx-page-designer-setting-style__header" };
704
+ const _hoisted_37 = {
705
+ class: "epx-page-designer-setting-style__label",
706
+ for: ""
707
+ };
708
+ const _hoisted_38 = { class: "epx-page-designer-setting-style__content" };
709
+ const _hoisted_39 = { class: "epx-page-designer-setting-style__subitem" };
710
+ const _hoisted_40 = {
711
+ class: "epx-page-designer-setting-style__label",
712
+ for: ""
713
+ };
714
+ const _hoisted_41 = { class: "epx-page-designer-setting-style__subitem" };
715
+ const _hoisted_42 = {
716
+ class: "epx-page-designer-setting-style__label",
717
+ for: ""
718
+ };
719
+ const _hoisted_43 = {
720
+ key: 0,
721
+ class: "epx-page-designer-setting-style__border-position"
722
+ };
723
+ const _hoisted_44 = { class: "epx-page-designer-setting-style__subitem" };
724
+ const _hoisted_45 = {
725
+ class: "epx-page-designer-setting-style__label",
726
+ for: ""
727
+ };
728
+ const _hoisted_46 = { class: "epx-page-designer-setting-style__subitem" };
729
+ const _hoisted_47 = {
730
+ class: "epx-page-designer-setting-style__label",
731
+ for: ""
732
+ };
733
+ const _hoisted_48 = {
734
+ key: 0,
735
+ class: "epx-page-designer-setting-style__border-position"
736
+ };
737
+ const _hoisted_49 = { class: "epx-page-designer-setting-style__header" };
738
+ const _hoisted_50 = {
739
+ class: "epx-page-designer-setting-style__label",
740
+ for: ""
741
+ };
742
+ const _hoisted_51 = { class: "epx-page-designer-setting-style__content" };
743
+ const _hoisted_52 = { class: "epx-page-designer-setting-style__subitem" };
744
+ const _hoisted_53 = {
745
+ class: "epx-page-designer-setting-style__label",
746
+ for: ""
747
+ };
748
+ const _hoisted_54 = { class: "epx-page-designer-setting-style__subitem" };
749
+ const _hoisted_55 = {
750
+ class: "epx-page-designer-setting-style__label",
751
+ for: ""
752
+ };
753
+ const _hoisted_56 = { class: "epx-page-designer-setting-style__subitem" };
754
+ const _hoisted_57 = {
755
+ class: "epx-page-designer-setting-style__label",
756
+ for: ""
757
+ };
758
+ const _hoisted_58 = { class: "epx-page-designer-setting-style__subitem" };
759
+ const _hoisted_59 = {
760
+ class: "epx-page-designer-setting-style__label",
761
+ for: ""
762
+ };
763
+ const _hoisted_60 = { class: "epx-page-designer-setting-style__subitem" };
764
+ const _hoisted_61 = {
765
+ class: "epx-page-designer-setting-style__label",
766
+ for: ""
767
+ };
768
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
769
+ const _component_css_editor = resolveComponent("css-editor");
770
+ const _component_el_popover = resolveComponent("el-popover");
771
+ const _component_el_option = resolveComponent("el-option");
772
+ const _component_el_select = resolveComponent("el-select");
773
+ const _component_el_input = resolveComponent("el-input");
774
+ const _component_el_tooltip = resolveComponent("el-tooltip");
775
+ const _component_el_radio_button = resolveComponent("el-radio-button");
776
+ const _component_el_radio_group = resolveComponent("el-radio-group");
777
+ const _component_el_input_number = resolveComponent("el-input-number");
778
+ const _component_el_color_picker = resolveComponent("el-color-picker");
779
+ const _component_epx_visual_config_background = resolveComponent("epx-visual-config-background");
780
+ return $data.load ? (openBlock(), createElementBlock("div", _hoisted_1, [
781
+ createVNode(_component_el_popover, {
782
+ ref: "cssEditorPopover",
783
+ placement: "bottom",
784
+ width: "400",
785
+ trigger: "click",
786
+ onBeforeEnter: _cache[0] || (_cache[0] = ($event) => $data.showCssEditor = true),
787
+ onAfterLeave: _cache[1] || (_cache[1] = ($event) => $data.showCssEditor = false)
788
+ }, {
789
+ reference: withCtx(() => [..._cache[34] || (_cache[34] = [
790
+ createElementVNode("div", { class: "epx-page-designer-setting-style__custom-btn" }, [
791
+ createElementVNode("i", { class: "epx-icon-yangshi" }),
792
+ createElementVNode("span", null, "自定义样式")
793
+ ], -1)
794
+ ])]),
795
+ default: withCtx(() => [
796
+ $data.showCssEditor ? (openBlock(), createBlock(_component_css_editor, {
797
+ key: 0,
798
+ value: $options.css,
799
+ onChange: $options.changeCss
800
+ }, null, 8, ["value", "onChange"])) : createCommentVNode("", true)
801
+ ]),
802
+ _: 1
803
+ }, 512),
804
+ createElementVNode("div", _hoisted_2, [
805
+ _cache[35] || (_cache[35] = createElementVNode("label", {
806
+ class: "epx-page-designer-setting-style__label",
807
+ for: ""
808
+ }, "状态", -1)),
809
+ createVNode(_component_el_select, {
810
+ modelValue: $data.mouseStatus,
811
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.mouseStatus = $event),
812
+ size: "small"
813
+ }, {
814
+ default: withCtx(() => [
815
+ createVNode(_component_el_option, {
816
+ label: "默认状态",
817
+ value: "default"
818
+ }),
819
+ createVNode(_component_el_option, {
820
+ label: "悬浮状态",
821
+ value: "hover"
822
+ })
823
+ ]),
824
+ _: 1
825
+ }, 8, ["modelValue"])
826
+ ]),
827
+ createElementVNode("div", _hoisted_3, [
828
+ createElementVNode("label", _hoisted_4, toDisplayString(_ctx.$t("width")), 1),
829
+ createVNode(_component_el_input, {
830
+ class: "epx-page-designer-setting-style__number-with-unit",
831
+ size: "small",
832
+ "model-value": $options.clearSuffix($options.style["width"]),
833
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = (v) => $options.changePx("width", v, $options.unit("width")))
834
+ }, {
835
+ append: withCtx(() => [
836
+ createVNode(_component_el_select, {
837
+ class: "epx-page-designer-setting-style__unit",
838
+ "model-value": $options.unit("width"),
839
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = (v) => $options.changePx("width", $options.style["width"], v)),
840
+ size: "small",
841
+ placeholder: "-"
842
+ }, {
843
+ default: withCtx(() => [
844
+ createVNode(_component_el_option, {
845
+ label: "px",
846
+ value: "px"
847
+ }),
848
+ createVNode(_component_el_option, {
849
+ label: "%",
850
+ value: "%"
851
+ }),
852
+ createVNode(_component_el_option, {
853
+ label: "auto",
854
+ value: "auto"
855
+ })
856
+ ]),
857
+ _: 1
858
+ }, 8, ["model-value"])
859
+ ]),
860
+ _: 1
861
+ }, 8, ["model-value"])
862
+ ]),
863
+ createElementVNode("div", _hoisted_5, [
864
+ createElementVNode("label", _hoisted_6, toDisplayString(_ctx.$t("height")), 1),
865
+ createVNode(_component_el_input, {
866
+ class: "epx-page-designer-setting-style__number-with-unit",
867
+ size: "small",
868
+ "model-value": $options.clearSuffix($options.style["height"]),
869
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = (v) => $options.changePx("height", v, $options.unit("height")))
870
+ }, {
871
+ append: withCtx(() => [
872
+ createVNode(_component_el_select, {
873
+ class: "epx-page-designer-setting-style__unit",
874
+ "model-value": $options.unit("height"),
875
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = (v) => $options.changePx("height", $options.style["height"], v)),
876
+ size: "small",
877
+ placeholder: "-"
878
+ }, {
879
+ default: withCtx(() => [
880
+ createVNode(_component_el_option, {
881
+ label: "px",
882
+ value: "px"
883
+ }),
884
+ createVNode(_component_el_option, {
885
+ label: "%",
886
+ value: "%"
887
+ }),
888
+ createVNode(_component_el_option, {
889
+ label: "auto",
890
+ value: "auto"
891
+ })
892
+ ]),
893
+ _: 1
894
+ }, 8, ["model-value"])
895
+ ]),
896
+ _: 1
897
+ }, 8, ["model-value"])
898
+ ]),
899
+ createElementVNode("div", {
900
+ class: normalizeClass({ "epx-page-designer-setting-style__item": true, "epx-page-designer-setting-style__item--unfold": $data.unfold.display })
901
+ }, [
902
+ createElementVNode("div", _hoisted_7, [
903
+ createElementVNode("span", null, [
904
+ createElementVNode("i", {
905
+ class: "epx-page-designer-setting-style__fold-icon el-icon-caret-right",
906
+ onClick: _cache[7] || (_cache[7] = ($event) => $data.unfold["display"] = !$data.unfold.display)
907
+ }),
908
+ createElementVNode("label", _hoisted_8, toDisplayString(_ctx.$t("layout")), 1)
909
+ ]),
910
+ createVNode(_component_el_radio_group, {
911
+ class: "epx-page-designer-setting-style__radio-button-group",
912
+ modelValue: $options.style["display"],
913
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $options.style["display"] = $event),
914
+ size: "default"
915
+ }, {
916
+ default: withCtx(() => [
917
+ createVNode(_component_el_radio_button, {
918
+ label: "block",
919
+ value: "block"
920
+ }, {
921
+ default: withCtx(() => [
922
+ createVNode(_component_el_tooltip, {
923
+ effect: "dark",
924
+ content: "块级元素,独占一行"
925
+ }, {
926
+ default: withCtx(() => [..._cache[36] || (_cache[36] = [
927
+ createElementVNode("i", { class: "epx-icon-bolck" }, null, -1)
928
+ ])]),
929
+ _: 1
930
+ })
931
+ ]),
932
+ _: 1
933
+ }),
934
+ createVNode(_component_el_radio_button, {
935
+ label: "inline-block",
936
+ value: "inline-block"
937
+ }, {
938
+ default: withCtx(() => [
939
+ createVNode(_component_el_tooltip, {
940
+ effect: "dark",
941
+ content: "行内块元素,不独占一行"
942
+ }, {
943
+ default: withCtx(() => [..._cache[37] || (_cache[37] = [
944
+ createElementVNode("i", { class: "epx-icon-inline-bolck" }, null, -1)
945
+ ])]),
946
+ _: 1
947
+ })
948
+ ]),
949
+ _: 1
950
+ }),
951
+ createVNode(_component_el_radio_button, {
952
+ label: "inline",
953
+ value: "inline"
954
+ }, {
955
+ default: withCtx(() => [
956
+ createVNode(_component_el_tooltip, {
957
+ effect: "dark",
958
+ content: "内联元素,不独占一行,宽度为内容宽度不可设置"
959
+ }, {
960
+ default: withCtx(() => [..._cache[38] || (_cache[38] = [
961
+ createElementVNode("i", { class: "epx-icon-inline" }, null, -1)
962
+ ])]),
963
+ _: 1
964
+ })
965
+ ]),
966
+ _: 1
967
+ }),
968
+ createVNode(_component_el_radio_button, {
969
+ label: "flex",
970
+ value: "flex"
971
+ }, {
972
+ default: withCtx(() => [
973
+ createVNode(_component_el_tooltip, {
974
+ effect: "dark",
975
+ content: "弹性盒子,可设置子元素内部排列方式"
976
+ }, {
977
+ default: withCtx(() => [..._cache[39] || (_cache[39] = [
978
+ createElementVNode("i", { class: "epx-icon-flex" }, null, -1)
979
+ ])]),
980
+ _: 1
981
+ })
982
+ ]),
983
+ _: 1
984
+ })
985
+ ]),
986
+ _: 1
987
+ }, 8, ["modelValue"])
988
+ ]),
989
+ $options.style["display"] === "flex" ? (openBlock(), createElementBlock("div", _hoisted_9, [
990
+ createElementVNode("div", _hoisted_10, [
991
+ _cache[40] || (_cache[40] = createElementVNode("label", {
992
+ class: "epx-page-designer-setting-style__label",
993
+ for: ""
994
+ }, "方向", -1)),
995
+ createVNode(_component_el_radio_group, {
996
+ class: "epx-page-designer-setting-style__radio-button-group",
997
+ modelValue: $options.style["flex-direction"],
998
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $options.style["flex-direction"] = $event),
999
+ size: "small"
1000
+ }, {
1001
+ default: withCtx(() => [
1002
+ (openBlock(true), createElementBlock(Fragment, null, renderList(this.flexDirectionList, (item) => {
1003
+ return openBlock(), createBlock(_component_el_radio_button, {
1004
+ label: item.value,
1005
+ value: item.value,
1006
+ key: item.value
1007
+ }, {
1008
+ default: withCtx(() => [
1009
+ createVNode(_component_el_tooltip, {
1010
+ effect: "dark",
1011
+ content: item.tip,
1012
+ placement: "top"
1013
+ }, {
1014
+ default: withCtx(() => [
1015
+ createElementVNode("i", {
1016
+ class: normalizeClass(item.icon),
1017
+ style: normalizeStyle({ transform: `rotateY(${item.rotateY || 0}) rotateX(${item.rotateX || 0})` })
1018
+ }, null, 6)
1019
+ ]),
1020
+ _: 2
1021
+ }, 1032, ["content"])
1022
+ ]),
1023
+ _: 2
1024
+ }, 1032, ["label", "value"]);
1025
+ }), 128))
1026
+ ]),
1027
+ _: 1
1028
+ }, 8, ["modelValue"])
1029
+ ]),
1030
+ createElementVNode("div", _hoisted_11, [
1031
+ createElementVNode("label", _hoisted_12, toDisplayString(["column", "column-reverse"].includes($options.style["flex-direction"]) ? "垂直" : "水平"), 1),
1032
+ createVNode(_component_el_radio_group, {
1033
+ class: "epx-page-designer-setting-style__radio-button-group",
1034
+ modelValue: $options.style["justify-content"],
1035
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $options.style["justify-content"] = $event),
1036
+ size: "small"
1037
+ }, {
1038
+ default: withCtx(() => [
1039
+ (openBlock(true), createElementBlock(Fragment, null, renderList(this.flexJustifyList, (item) => {
1040
+ return openBlock(), createBlock(_component_el_radio_button, {
1041
+ label: item.value,
1042
+ value: item.value,
1043
+ key: item.value
1044
+ }, {
1045
+ default: withCtx(() => [
1046
+ createVNode(_component_el_tooltip, {
1047
+ effect: "dark",
1048
+ content: item.tip,
1049
+ placement: "top"
1050
+ }, {
1051
+ default: withCtx(() => [
1052
+ createElementVNode("i", {
1053
+ class: normalizeClass(item.icon)
1054
+ }, null, 2)
1055
+ ]),
1056
+ _: 2
1057
+ }, 1032, ["content"])
1058
+ ]),
1059
+ _: 2
1060
+ }, 1032, ["label", "value"]);
1061
+ }), 128))
1062
+ ]),
1063
+ _: 1
1064
+ }, 8, ["modelValue"])
1065
+ ]),
1066
+ createElementVNode("div", _hoisted_13, [
1067
+ createElementVNode("label", _hoisted_14, toDisplayString(["column", "column-reverse"].includes($options.style["flex-direction"]) ? "水平" : "垂直"), 1),
1068
+ createVNode(_component_el_radio_group, {
1069
+ class: "epx-page-designer-setting-style__radio-button-group",
1070
+ modelValue: $options.style["align-items"],
1071
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $options.style["align-items"] = $event),
1072
+ size: "small"
1073
+ }, {
1074
+ default: withCtx(() => [
1075
+ (openBlock(true), createElementBlock(Fragment, null, renderList(this.flexAlignList, (item) => {
1076
+ return openBlock(), createBlock(_component_el_radio_button, {
1077
+ label: item.value,
1078
+ value: item.value,
1079
+ key: item.value
1080
+ }, {
1081
+ default: withCtx(() => [
1082
+ createVNode(_component_el_tooltip, {
1083
+ effect: "dark",
1084
+ content: item.tip,
1085
+ placement: "top"
1086
+ }, {
1087
+ default: withCtx(() => [
1088
+ createElementVNode("i", {
1089
+ class: normalizeClass(item.icon)
1090
+ }, null, 2)
1091
+ ]),
1092
+ _: 2
1093
+ }, 1032, ["content"])
1094
+ ]),
1095
+ _: 2
1096
+ }, 1032, ["label", "value"]);
1097
+ }), 128))
1098
+ ]),
1099
+ _: 1
1100
+ }, 8, ["modelValue"])
1101
+ ])
1102
+ ])) : createCommentVNode("", true)
1103
+ ], 2),
1104
+ (openBlock(true), createElementBlock(Fragment, null, renderList([{ label: _ctx.$t("margin"), value: "margin" }, { label: _ctx.$t("padding"), value: "padding" }], (item) => {
1105
+ return openBlock(), createElementBlock("div", {
1106
+ key: item.value,
1107
+ class: normalizeClass({ "epx-page-designer-setting-style__item": true, "epx-page-designer-setting-style__item--unfold": $data.unfold[item.value] })
1108
+ }, [
1109
+ createElementVNode("div", _hoisted_15, [
1110
+ createElementVNode("span", null, [
1111
+ createElementVNode("i", {
1112
+ class: "epx-page-designer-setting-style__fold-icon el-icon-caret-right",
1113
+ onClick: ($event) => $data.unfold[item.value] = !$data.unfold[item.value]
1114
+ }, null, 8, _hoisted_16),
1115
+ createElementVNode("label", _hoisted_17, toDisplayString(item.label), 1)
1116
+ ]),
1117
+ createVNode(_component_el_select, {
1118
+ class: "selection",
1119
+ size: "small",
1120
+ modelValue: $options.style[item.value],
1121
+ "onUpdate:modelValue": ($event) => $options.style[item.value] = $event,
1122
+ placeholder: _ctx.$t("default")
1123
+ }, {
1124
+ default: withCtx(() => [
1125
+ (openBlock(true), createElementBlock(Fragment, null, renderList($data.space, (item2) => {
1126
+ return openBlock(), createBlock(_component_el_option, {
1127
+ key: item2.value,
1128
+ label: item2.label,
1129
+ value: item2.value
1130
+ }, null, 8, ["label", "value"]);
1131
+ }), 128)),
1132
+ createVNode(_component_el_input, {
1133
+ class: "epx-page-designer-setting-style__number-with-unit",
1134
+ size: "small",
1135
+ "model-value": $options.clearSuffix($options.style[item.value]),
1136
+ "onUpdate:modelValue": (v) => $options.changePx(item.value, v, $options.unit(item.value))
1137
+ }, {
1138
+ append: withCtx(() => [
1139
+ createVNode(_component_el_select, {
1140
+ class: "epx-page-designer-setting-style__unit",
1141
+ "model-value": $options.unit(item.value),
1142
+ "onUpdate:modelValue": (v) => $options.changePx(item.value, $options.style[item.value], v),
1143
+ size: "small",
1144
+ placeholder: "-"
1145
+ }, {
1146
+ default: withCtx(() => [
1147
+ createVNode(_component_el_option, {
1148
+ label: "px",
1149
+ value: "px"
1150
+ }),
1151
+ createVNode(_component_el_option, {
1152
+ label: "%",
1153
+ value: "%"
1154
+ }),
1155
+ createVNode(_component_el_option, {
1156
+ label: "auto",
1157
+ value: "auto"
1158
+ })
1159
+ ]),
1160
+ _: 1
1161
+ }, 8, ["model-value", "onUpdate:modelValue"])
1162
+ ]),
1163
+ _: 2
1164
+ }, 1032, ["model-value", "onUpdate:modelValue"])
1165
+ ]),
1166
+ _: 2
1167
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
1168
+ ]),
1169
+ createElementVNode("div", _hoisted_18, [
1170
+ (openBlock(true), createElementBlock(Fragment, null, renderList([{ label: _ctx.$t("top margin"), value: "-top" }, { label: _ctx.$t("right margin"), value: "-right" }, { label: _ctx.$t("bottom margin"), value: "-bottom" }, { label: _ctx.$t("left margin"), value: "-left" }], (subItem) => {
1171
+ return openBlock(), createElementBlock("div", {
1172
+ class: "epx-page-designer-setting-style__subitem",
1173
+ key: subItem.value
1174
+ }, [
1175
+ createElementVNode("label", _hoisted_19, toDisplayString(subItem.label), 1),
1176
+ createVNode(_component_el_select, {
1177
+ class: "selection",
1178
+ size: "small",
1179
+ modelValue: $options.style[item.value + subItem.value],
1180
+ "onUpdate:modelValue": ($event) => $options.style[item.value + subItem.value] = $event,
1181
+ placeholder: _ctx.$t("default")
1182
+ }, {
1183
+ default: withCtx(() => [
1184
+ (openBlock(true), createElementBlock(Fragment, null, renderList($data.space, (item2) => {
1185
+ return openBlock(), createBlock(_component_el_option, {
1186
+ key: item2.value,
1187
+ label: item2.label,
1188
+ value: item2.value
1189
+ }, null, 8, ["label", "value"]);
1190
+ }), 128)),
1191
+ createVNode(_component_el_input, {
1192
+ class: "epx-page-designer-setting-style__number-with-unit",
1193
+ size: "small",
1194
+ "model-value": $options.clearSuffix($options.style[item.value + subItem.value]),
1195
+ "onUpdate:modelValue": (v) => $options.changePx(item.value + subItem.value, v, $options.unit(item.value + subItem.value))
1196
+ }, {
1197
+ append: withCtx(() => [
1198
+ createVNode(_component_el_select, {
1199
+ class: "epx-page-designer-setting-style__unit",
1200
+ "model-value": $options.unit(item.value + subItem.value),
1201
+ "onUpdate:modelValue": (v) => $options.changePx(item.value + subItem.value, $options.style[item.value + subItem.value], v),
1202
+ size: "small",
1203
+ placeholder: "-"
1204
+ }, {
1205
+ default: withCtx(() => [
1206
+ createVNode(_component_el_option, {
1207
+ label: "px",
1208
+ value: "px"
1209
+ }),
1210
+ createVNode(_component_el_option, {
1211
+ label: "%",
1212
+ value: "%"
1213
+ }),
1214
+ createVNode(_component_el_option, {
1215
+ label: "auto",
1216
+ value: "auto"
1217
+ })
1218
+ ]),
1219
+ _: 1
1220
+ }, 8, ["model-value", "onUpdate:modelValue"])
1221
+ ]),
1222
+ _: 2
1223
+ }, 1032, ["model-value", "onUpdate:modelValue"])
1224
+ ]),
1225
+ _: 2
1226
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
1227
+ ]);
1228
+ }), 128))
1229
+ ])
1230
+ ], 2);
1231
+ }), 128)),
1232
+ createElementVNode("div", {
1233
+ class: normalizeClass({ "epx-page-designer-setting-style__item": true, "epx-page-designer-setting-style__item--unfold": $data.unfold.text })
1234
+ }, [
1235
+ createElementVNode("div", _hoisted_20, [
1236
+ createElementVNode("span", null, [
1237
+ createElementVNode("i", {
1238
+ class: "epx-page-designer-setting-style__fold-icon el-icon-caret-right",
1239
+ onClick: _cache[12] || (_cache[12] = ($event) => $data.unfold["text"] = !$data.unfold.text)
1240
+ }),
1241
+ createElementVNode("label", _hoisted_21, toDisplayString(_ctx.$t("word")), 1)
1242
+ ]),
1243
+ createVNode(_component_el_select, {
1244
+ class: "selection",
1245
+ size: "small",
1246
+ modelValue: $options.style.text,
1247
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $options.style.text = $event),
1248
+ placeholder: _ctx.$t("default")
1249
+ }, {
1250
+ default: withCtx(() => [
1251
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.textOption, (item) => {
1252
+ return openBlock(), createBlock(_component_el_option, {
1253
+ key: item.value,
1254
+ label: item.label,
1255
+ value: item.value
1256
+ }, null, 8, ["label", "value"]);
1257
+ }), 128))
1258
+ ]),
1259
+ _: 1
1260
+ }, 8, ["modelValue", "placeholder"])
1261
+ ]),
1262
+ createElementVNode("div", _hoisted_22, [
1263
+ createElementVNode("div", _hoisted_23, [
1264
+ createElementVNode("label", _hoisted_24, toDisplayString(_ctx.$t("word size")), 1),
1265
+ createVNode(_component_el_input_number, {
1266
+ size: "small",
1267
+ "model-value": $options.toNumber($options.clearSuffix($options.style["font-size"])),
1268
+ "controls-position": "right",
1269
+ onChange: _cache[14] || (_cache[14] = (v) => $options.style["font-size"] = v + "px")
1270
+ }, null, 8, ["model-value"])
1271
+ ]),
1272
+ createElementVNode("div", _hoisted_25, [
1273
+ createElementVNode("label", _hoisted_26, toDisplayString(_ctx.$t("row height")), 1),
1274
+ createVNode(_component_el_input_number, {
1275
+ size: "small",
1276
+ "model-value": $options.toNumber($options.clearSuffix($options.style["line-height"])),
1277
+ "controls-position": "right",
1278
+ onChange: _cache[15] || (_cache[15] = (v) => $options.style["line-height"] = v + "px")
1279
+ }, null, 8, ["model-value"])
1280
+ ]),
1281
+ createElementVNode("div", _hoisted_27, [
1282
+ createElementVNode("label", _hoisted_28, toDisplayString(_ctx.$t("text direction")), 1),
1283
+ createVNode(_component_el_radio_group, {
1284
+ modelValue: $options.style["text-align"],
1285
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => $options.style["text-align"] = $event),
1286
+ size: "default"
1287
+ }, {
1288
+ default: withCtx(() => [
1289
+ createVNode(_component_el_radio_button, {
1290
+ label: "left",
1291
+ value: "left"
1292
+ }, {
1293
+ default: withCtx(() => [..._cache[41] || (_cache[41] = [
1294
+ createElementVNode("i", { class: "epx-icon-left" }, null, -1)
1295
+ ])]),
1296
+ _: 1
1297
+ }),
1298
+ createVNode(_component_el_radio_button, {
1299
+ label: "center",
1300
+ value: "center"
1301
+ }, {
1302
+ default: withCtx(() => [..._cache[42] || (_cache[42] = [
1303
+ createElementVNode("i", { class: "epx-icon-center" }, null, -1)
1304
+ ])]),
1305
+ _: 1
1306
+ }),
1307
+ createVNode(_component_el_radio_button, {
1308
+ label: "right",
1309
+ value: "right"
1310
+ }, {
1311
+ default: withCtx(() => [..._cache[43] || (_cache[43] = [
1312
+ createElementVNode("i", { class: "epx-icon-right" }, null, -1)
1313
+ ])]),
1314
+ _: 1
1315
+ })
1316
+ ]),
1317
+ _: 1
1318
+ }, 8, ["modelValue"])
1319
+ ]),
1320
+ createElementVNode("div", _hoisted_29, [
1321
+ createElementVNode("label", _hoisted_30, toDisplayString(_ctx.$t("word again")), 1),
1322
+ createVNode(_component_el_select, {
1323
+ class: "selection",
1324
+ size: "small",
1325
+ modelValue: $options.style["font-weight"],
1326
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => $options.style["font-weight"] = $event),
1327
+ placeholder: _ctx.$t("default")
1328
+ }, {
1329
+ default: withCtx(() => [
1330
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fontWeightOption, (item) => {
1331
+ return openBlock(), createBlock(_component_el_option, {
1332
+ key: item.value,
1333
+ label: item.label,
1334
+ value: item.value
1335
+ }, null, 8, ["label", "value"]);
1336
+ }), 128))
1337
+ ]),
1338
+ _: 1
1339
+ }, 8, ["modelValue", "placeholder"])
1340
+ ]),
1341
+ createElementVNode("div", _hoisted_31, [
1342
+ createElementVNode("label", _hoisted_32, toDisplayString(_ctx.$t("font color")), 1),
1343
+ createVNode(_component_el_color_picker, {
1344
+ modelValue: $options.style.color,
1345
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => $options.style.color = $event),
1346
+ "show-alpha": "",
1347
+ predefine: _ctx.predefineColors
1348
+ }, null, 8, ["modelValue", "predefine"])
1349
+ ])
1350
+ ])
1351
+ ], 2),
1352
+ createElementVNode("div", {
1353
+ class: normalizeClass({ "epx-page-designer-setting-style__item": true, "epx-page-designer-setting-style__item--unfold": $data.unfold.background })
1354
+ }, [
1355
+ createElementVNode("div", _hoisted_33, [
1356
+ createElementVNode("span", null, [
1357
+ createElementVNode("i", {
1358
+ class: "epx-page-designer-setting-style__fold-icon el-icon-caret-right",
1359
+ onClick: _cache[19] || (_cache[19] = ($event) => $data.unfold["background"] = !$data.unfold.background)
1360
+ }),
1361
+ createElementVNode("label", _hoisted_34, toDisplayString(_ctx.$t("background")), 1)
1362
+ ])
1363
+ ]),
1364
+ createElementVNode("div", _hoisted_35, [
1365
+ createVNode(_component_epx_visual_config_background, {
1366
+ modelValue: $options.style,
1367
+ "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => $options.style = $event),
1368
+ onInput: $options.updateStyle,
1369
+ definingNameType: "kebab-case"
1370
+ }, null, 8, ["modelValue", "onInput"])
1371
+ ])
1372
+ ], 2),
1373
+ createElementVNode("div", {
1374
+ class: normalizeClass({ "epx-page-designer-setting-style__item": true, "epx-page-designer-setting-style__item--unfold": $data.unfold.border })
1375
+ }, [
1376
+ createElementVNode("div", _hoisted_36, [
1377
+ createElementVNode("span", null, [
1378
+ createElementVNode("i", {
1379
+ class: "epx-page-designer-setting-style__fold-icon el-icon-caret-right",
1380
+ onClick: _cache[21] || (_cache[21] = ($event) => $data.unfold["border"] = !$data.unfold.border)
1381
+ }),
1382
+ createElementVNode("label", _hoisted_37, toDisplayString(_ctx.$t("border")), 1)
1383
+ ])
1384
+ ]),
1385
+ createElementVNode("div", _hoisted_38, [
1386
+ createElementVNode("div", _hoisted_39, [
1387
+ createElementVNode("label", _hoisted_40, toDisplayString(_ctx.$t("linear")), 1),
1388
+ createVNode(_component_el_select, {
1389
+ class: "selection",
1390
+ size: "small",
1391
+ modelValue: $options.style["border-style"],
1392
+ "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => $options.style["border-style"] = $event),
1393
+ placeholder: _ctx.$t("not")
1394
+ }, {
1395
+ default: withCtx(() => [
1396
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.borderStyleOption, (item) => {
1397
+ return openBlock(), createBlock(_component_el_option, {
1398
+ key: item.value,
1399
+ label: item.label,
1400
+ value: item.value
1401
+ }, null, 8, ["label", "value"]);
1402
+ }), 128))
1403
+ ]),
1404
+ _: 1
1405
+ }, 8, ["modelValue", "placeholder"])
1406
+ ]),
1407
+ createElementVNode("div", _hoisted_41, [
1408
+ createElementVNode("label", _hoisted_42, toDisplayString(_ctx.$t("width")), 1),
1409
+ createVNode(_component_el_input, {
1410
+ class: "epx-page-designer-setting-style__input-number--small",
1411
+ size: "small",
1412
+ "model-value": $options.clearSuffix($options.style["border-width"]),
1413
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = (v) => $options.changePx("border-width", v, "px"))
1414
+ }, null, 8, ["model-value"]),
1415
+ createVNode(_component_el_radio_group, {
1416
+ class: "epx-page-designer-setting-style__border-width-radio",
1417
+ modelValue: $data.borderWidthType,
1418
+ "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => $data.borderWidthType = $event),
1419
+ size: "small"
1420
+ }, {
1421
+ default: withCtx(() => [
1422
+ createVNode(_component_el_radio_button, {
1423
+ label: "same",
1424
+ value: "same"
1425
+ }, {
1426
+ default: withCtx(() => [..._cache[44] || (_cache[44] = [
1427
+ createElementVNode("i", { class: "epx-icon-border" }, null, -1)
1428
+ ])]),
1429
+ _: 1
1430
+ }),
1431
+ createVNode(_component_el_radio_button, {
1432
+ label: "diff",
1433
+ value: "diff"
1434
+ }, {
1435
+ default: withCtx(() => [..._cache[45] || (_cache[45] = [
1436
+ createElementVNode("i", { class: "epx-icon-xuxian" }, null, -1)
1437
+ ])]),
1438
+ _: 1
1439
+ })
1440
+ ]),
1441
+ _: 1
1442
+ }, 8, ["modelValue"]),
1443
+ $data.borderWidthType === "diff" ? (openBlock(), createElementBlock("div", _hoisted_43, [
1444
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.borderWidthPositionList, (item) => {
1445
+ return openBlock(), createElementBlock("div", {
1446
+ class: "epx-page-designer-setting-style__border-position-item",
1447
+ key: item.value
1448
+ }, [
1449
+ createVNode(_component_el_input_number, {
1450
+ "model-value": $options.clearSuffix($options.borderWidthPosition[item.value]),
1451
+ controls: false,
1452
+ min: 0,
1453
+ size: "small",
1454
+ onChange: (v) => $options.changeBorderWidthPosition(item.value, v)
1455
+ }, null, 8, ["model-value", "onChange"]),
1456
+ createTextVNode(" " + toDisplayString(item.label), 1)
1457
+ ]);
1458
+ }), 128))
1459
+ ])) : createCommentVNode("", true)
1460
+ ]),
1461
+ createElementVNode("div", _hoisted_44, [
1462
+ createElementVNode("label", _hoisted_45, toDisplayString(_ctx.$t("color")), 1),
1463
+ createVNode(_component_el_color_picker, {
1464
+ modelValue: $options.style["border-color"],
1465
+ "onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => $options.style["border-color"] = $event),
1466
+ "show-alpha": "",
1467
+ predefine: _ctx.predefineColors
1468
+ }, null, 8, ["modelValue", "predefine"])
1469
+ ]),
1470
+ createElementVNode("div", _hoisted_46, [
1471
+ createElementVNode("label", _hoisted_47, toDisplayString(_ctx.$t("filleted corner")), 1),
1472
+ createVNode(_component_el_input_number, {
1473
+ size: "small",
1474
+ "model-value": $options.clearSuffix($options.style["border-radius"]),
1475
+ "controls-position": "right",
1476
+ onChange: _cache[26] || (_cache[26] = (v) => $options.style["border-radius"] = v + "px")
1477
+ }, null, 8, ["model-value"]),
1478
+ createVNode(_component_el_radio_group, {
1479
+ class: "epx-page-designer-setting-style__border-width-radio",
1480
+ modelValue: $data.borderRadiusType,
1481
+ "onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => $data.borderRadiusType = $event),
1482
+ size: "small"
1483
+ }, {
1484
+ default: withCtx(() => [
1485
+ createVNode(_component_el_radio_button, {
1486
+ label: "same",
1487
+ value: "same"
1488
+ }, {
1489
+ default: withCtx(() => [..._cache[46] || (_cache[46] = [
1490
+ createElementVNode("i", { class: "epx-icon-border" }, null, -1)
1491
+ ])]),
1492
+ _: 1
1493
+ }),
1494
+ createVNode(_component_el_radio_button, {
1495
+ label: "diff",
1496
+ value: "diff"
1497
+ }, {
1498
+ default: withCtx(() => [..._cache[47] || (_cache[47] = [
1499
+ createElementVNode("i", { class: "epx-icon-xuxian" }, null, -1)
1500
+ ])]),
1501
+ _: 1
1502
+ })
1503
+ ]),
1504
+ _: 1
1505
+ }, 8, ["modelValue"]),
1506
+ $data.borderRadiusType === "diff" ? (openBlock(), createElementBlock("div", _hoisted_48, [
1507
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.borderRadiusPositionList, (item) => {
1508
+ return openBlock(), createElementBlock("div", {
1509
+ class: "epx-page-designer-setting-style__border-position-item",
1510
+ key: item.value
1511
+ }, [
1512
+ createVNode(_component_el_input_number, {
1513
+ "model-value": $options.clearSuffix($options.borderRadiusPosition[item.value]),
1514
+ controls: false,
1515
+ min: 0,
1516
+ size: "small",
1517
+ onChange: (v) => $options.changeBorderRadiusPosition(item.value, v)
1518
+ }, null, 8, ["model-value", "onChange"]),
1519
+ createTextVNode(" " + toDisplayString(item.label), 1)
1520
+ ]);
1521
+ }), 128))
1522
+ ])) : createCommentVNode("", true)
1523
+ ])
1524
+ ])
1525
+ ], 2),
1526
+ createElementVNode("div", {
1527
+ class: normalizeClass({ "epx-page-designer-setting-style__item": true, "epx-page-designer-setting-style__item--unfold": $data.unfold.shadow })
1528
+ }, [
1529
+ createElementVNode("div", _hoisted_49, [
1530
+ createElementVNode("span", null, [
1531
+ createElementVNode("i", {
1532
+ class: "epx-page-designer-setting-style__fold-icon el-icon-caret-right",
1533
+ onClick: _cache[28] || (_cache[28] = ($event) => $data.unfold["shadow"] = !$data.unfold.shadow)
1534
+ }),
1535
+ createElementVNode("label", _hoisted_50, toDisplayString(_ctx.$t("shadow")), 1)
1536
+ ])
1537
+ ]),
1538
+ createElementVNode("div", _hoisted_51, [
1539
+ createElementVNode("div", _hoisted_52, [
1540
+ createElementVNode("label", _hoisted_53, toDisplayString(_ctx.$t("level of the shadow")), 1),
1541
+ createVNode(_component_el_input_number, {
1542
+ size: "small",
1543
+ "model-value": $options.clearSuffix($options.style.hShadow),
1544
+ "controls-position": "right",
1545
+ onChange: _cache[29] || (_cache[29] = (v) => $options.style["hShadow"] = v + "px")
1546
+ }, null, 8, ["model-value"])
1547
+ ]),
1548
+ createElementVNode("div", _hoisted_54, [
1549
+ createElementVNode("label", _hoisted_55, toDisplayString(_ctx.$t("vertical shadow")), 1),
1550
+ createVNode(_component_el_input_number, {
1551
+ size: "small",
1552
+ "model-value": $options.clearSuffix($options.style.vShadow),
1553
+ "controls-position": "right",
1554
+ onChange: _cache[30] || (_cache[30] = (v) => $options.style["vShadow"] = v + "px")
1555
+ }, null, 8, ["model-value"])
1556
+ ]),
1557
+ createElementVNode("div", _hoisted_56, [
1558
+ createElementVNode("label", _hoisted_57, toDisplayString(_ctx.$t("fuzzy distance")), 1),
1559
+ createVNode(_component_el_input_number, {
1560
+ size: "small",
1561
+ "model-value": $options.clearSuffix($options.style.shadowBlur),
1562
+ "controls-position": "right",
1563
+ onChange: _cache[31] || (_cache[31] = (v) => $options.style["shadowBlur"] = v + "px")
1564
+ }, null, 8, ["model-value"])
1565
+ ]),
1566
+ createElementVNode("div", _hoisted_58, [
1567
+ createElementVNode("label", _hoisted_59, toDisplayString(_ctx.$t("size of the shadow")), 1),
1568
+ createVNode(_component_el_input_number, {
1569
+ size: "small",
1570
+ "model-value": $options.clearSuffix($options.style.shadowSpread),
1571
+ "controls-position": "right",
1572
+ onChange: _cache[32] || (_cache[32] = (v) => $options.style["shadowSpread"] = v + "px")
1573
+ }, null, 8, ["model-value"])
1574
+ ]),
1575
+ createElementVNode("div", _hoisted_60, [
1576
+ createElementVNode("label", _hoisted_61, toDisplayString(_ctx.$t("shadow color")), 1),
1577
+ createVNode(_component_el_color_picker, {
1578
+ modelValue: $options.style.shadowColor,
1579
+ "onUpdate:modelValue": _cache[33] || (_cache[33] = ($event) => $options.style.shadowColor = $event),
1580
+ "show-alpha": "",
1581
+ predefine: _ctx.predefineColors
1582
+ }, null, 8, ["modelValue", "predefine"])
1583
+ ])
1584
+ ])
1585
+ ], 2)
1586
+ ])) : createCommentVNode("", true);
1587
+ }
1588
+ const SettingStyle = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
1589
+ export {
1590
+ SettingStyle as default
1591
+ };