当前位置:   article > 正文

可视化elementUI一键生成代码,拖拽自动布局_前端拖拽自动生成代码

前端拖拽自动生成代码

 

体验地址:https://we7.diyhey.com/admin/tabledataicon-default.png?t=N7T8https://we7.diyhey.com/admin/tabledata

1.可视化网页设计布局,前端拖拽自动布局,一键拖拽网页整体结构,以下容器快速拖拽到设计页面,

2.可视化拖拽表格,快速自定义设计

 

 3.表单一键直接拖拽

 快速查看到代码

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
  6. <title>可视化PC端网页设计</title>
  7. <link rel="stylesheet" href="./colorui/main.css">
  8. <link rel="stylesheet" href="./colorui/icon.css">
  9. <link rel="stylesheet" href="./colorui/animation.css">
  10. <link rel="stylesheet" href="./css/swiper.css">
  11. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  12. <script src="./js/swiper.js"></script>
  13. <script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"></script>
  14. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  15. </head>
  16. <body>
  17. <div id="app">
  18. <div class="pageconfig">
  19. <!--vuetop-->
  20. <!--表单form0的布局样式-->
  21. <el-form ref="form" label-position="" :model="form68001" class=" commoncss68001 ">
  22. <!--表单输入框0的布局样式-->
  23. <div class=" commoncss66380 ">
  24. <el-form-item label="活动标题">
  25. <el-input clearable v-model="elinput66380" type="" prefix-icon="" size="large" placeholder="请输入提示信息"></el-input>
  26. </el-form-item>
  27. </div>
  28. <!--表单单选1的布局样式-->
  29. <div class=" commoncss94930 ">
  30. <el-form-item label="特殊资源">
  31. <el-radio-group v-model="radio94930">
  32. <el-radio v-for="(item,index) in label94930List" :key="index" :label="item.value">{{ item.name }}</el-radio>
  33. </el-radio-group>
  34. </el-form-item>
  35. </div>
  36. <!--表单Switch开关2的布局样式-->
  37. <div class=" commoncss64718 ">
  38. <el-form-item label="即时配送">
  39. <el-switch v-model="elinput64718" active-color="" inactive-color="" active-text="" inactive-text="">
  40. </el-switch>
  41. </el-form-item>
  42. </div>
  43. <!--表单输入框3的布局样式-->
  44. <div class=" commoncss91867 ">
  45. <el-form-item label="活动描述">
  46. <el-input clearable v-model="elinput91867" type="textarea" prefix-icon="" size="large" placeholder="请输入描述"></el-input>
  47. </el-form-item>
  48. </div>
  49. <!--表单复选4的布局样式-->
  50. <div class=" commoncss39534 ">
  51. <el-form-item label="活动性质">
  52. <el-checkbox-group v-model="checkbox39534">
  53. <el-checkbox v-for="(item,index) in label39534List" :key="index" :label="item.value">{{ item.name }}</el-checkbox>
  54. </el-checkbox-group>
  55. </el-form-item>
  56. </div>
  57. <!--Row/col栅格分栏布局5的布局样式-->
  58. <div class=" commoncss25805 ">
  59. <el-row type="flex" justify="start" :gutter="0">
  60. <el-col :span="4">
  61. <!--按钮0的布局样式-->
  62. <div class=" commoncss2422 ">
  63. <el-button icon="" type="primary" size="small">提交</el-button>
  64. </div>
  65. </el-col>
  66. <el-col :span="4">
  67. <!--按钮0的布局样式-->
  68. <div class=" commoncss17292 ">
  69. <el-button icon="" type="info" size="small">重置</el-button>
  70. </div>
  71. </el-col>
  72. </el-row>
  73. </div>
  74. </el-form>
  75. <!--vuebottom-->
  76. </div>
  77. </div>
  78. <script>
  79. new Vue({
  80. el: '#app',
  81. data: {
  82. elinput66380: '',
  83. /**single**/
  84. radio94930: 0,
  85. /**single**/
  86. elinput64718: 2,
  87. /**single**/
  88. elinput91867: '',
  89. /**single**/
  90. checkbox39534: [],
  91. /**single**/
  92. form68001: {},
  93. /**single**/
  94. label94930List: [{
  95. "name": "线上品牌商赞助",
  96. "choose": "0",
  97. "value": "2"
  98. }, {
  99. "name": "线下场地免费",
  100. "choose": "0",
  101. "value": "3"
  102. }],
  103. /**vuejs**/
  104. label39534List: [{
  105. "name": "美食\/餐厅线上活动",
  106. "choose": "1",
  107. "value": "1"
  108. }, {
  109. "name": "地推活动",
  110. "choose": "0",
  111. "value": "2"
  112. }, {
  113. "name": "线下主题活动",
  114. "choose": "0",
  115. "value": "3"
  116. }],
  117. /**vuejs**/
  118. optionData: {}
  119. },
  120. mounted() {
  121. },
  122. methods: {
  123. /**
  124. * $vuetag = "";
  125. * $vuecss = "";
  126. * $vuejs = "";
  127. *
  128. */
  129. handleChange64718(e) {
  130. this.elinput64718 = e
  131. },
  132. handleChange25805(e) {
  133. this.elinput25805 = e
  134. },
  135. }
  136. });
  137. </script>
  138. </body>
  139. <style type="text/css">
  140. body {
  141. margin: 0px;
  142. padding: 0px;
  143. background-color: #F8F9FB;
  144. }
  145. /**本页全局配置的代码**/
  146. .pageconfig {
  147. width: 100%;
  148. height: 100vh;
  149. overflow: hidden;
  150. overflow-y: scroll;
  151. background-color: ;
  152. background-image: url();
  153. background-position: ;
  154. background-repeat: ;
  155. background-size: ;
  156. }
  157. /**pagedomcss**/
  158. /**本页表单form0的css代码**/
  159. .commoncss68001 {
  160. width: 100%;
  161. background-color: #ffffff !important;
  162. padding-top: 5px !important;
  163. padding-bottom: 5px !important;
  164. padding-left: 5px !important;
  165. padding-right: 5px !important;
  166. }
  167. /**vuecss**/
  168. /**本页表单输入框0的css代码**/
  169. .commoncss66380 {
  170. width: 100%;
  171. }
  172. /**vuecss**/
  173. /**本页表单单选1的css代码**/
  174. .commoncss94930 {
  175. width: 100%;
  176. }
  177. /**vuecss**/
  178. /**本页表单Switch开关2的css代码**/
  179. .commoncss64718 {}
  180. /**vuecss**/
  181. /**本页表单输入框3的css代码**/
  182. .commoncss91867 {
  183. width: 100%;
  184. }
  185. /**vuecss**/
  186. /**本页表单复选4的css代码**/
  187. .commoncss39534 {
  188. width: 100%;
  189. }
  190. /**vuecss**/
  191. /**本页按钮0的css代码**/
  192. .commoncss2422 {}
  193. /**vuecss**/
  194. /**本页按钮0的css代码**/
  195. .commoncss17292 {}
  196. /**vuecss**/
  197. /**本页Row/col栅格分栏布局5的css代码**/
  198. .commoncss25805 {}
  199. /**vuecss**/
  200. </style>
  201. </html>

4.可视化自定义强大栅格系统

 5.一个不错的elementUI代码生成器,欢迎大家使用,可视化拖拽自动布局

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/490254
推荐阅读
相关标签
  

闽ICP备14008679号