index.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <div class="element-container">
  3. <el-row :gutter="20">
  4. <el-col :xs="24" :sm="24" :md="18" :lg="18" :xl="16">
  5. <el-button type="primary" @click="dialogVisible = !dialogVisible">
  6. element全部文档点这里
  7. </el-button>
  8. <el-dialog
  9. :fullscreen="true"
  10. title="element文档"
  11. :visible.sync="dialogVisible"
  12. >
  13. <iframe
  14. class="element-iframe"
  15. src="https://element.eleme.cn/#/zh-CN/component/installation"
  16. frameborder="0"
  17. ></iframe>
  18. </el-dialog>
  19. <el-divider content-position="left">
  20. Tag 标签
  21. <a
  22. target="_blank"
  23. href="https://element.eleme.cn/#/zh-CN/component/tag"
  24. >
  25. 文档
  26. </a>
  27. </el-divider>
  28. <el-tag>标签一</el-tag>
  29. <el-tag type="success">标签二</el-tag>
  30. <el-tag type="info">标签三</el-tag>
  31. <el-tag type="warning">标签四</el-tag>
  32. <el-tag type="danger">标签五</el-tag>
  33. <el-tag effect="dark">标签一</el-tag>
  34. <el-tag effect="dark" type="success">标签二</el-tag>
  35. <el-tag effect="dark" type="info">标签三</el-tag>
  36. <el-tag effect="dark" type="warning">标签四</el-tag>
  37. <el-tag effect="dark" type="danger">标签五</el-tag>
  38. <el-divider content-position="left">
  39. 进度条
  40. <a
  41. target="_blank"
  42. href="https://element.eleme.cn/#/zh-CN/component/progress"
  43. >
  44. 文档
  45. </a>
  46. </el-divider>
  47. <el-progress :percentage="50"></el-progress>
  48. <el-progress :percentage="100" status="success"></el-progress>
  49. <el-progress :percentage="100" status="warning"></el-progress>
  50. <el-progress :percentage="50" status="exception"></el-progress>
  51. <el-progress
  52. :text-inside="true"
  53. :stroke-width="26"
  54. :percentage="70"
  55. ></el-progress>
  56. <el-progress
  57. :text-inside="true"
  58. :stroke-width="24"
  59. :percentage="100"
  60. status="success"
  61. ></el-progress>
  62. <el-progress
  63. :text-inside="true"
  64. :stroke-width="22"
  65. :percentage="80"
  66. status="warning"
  67. ></el-progress>
  68. <el-progress
  69. :text-inside="true"
  70. :stroke-width="20"
  71. :percentage="50"
  72. status="exception"
  73. ></el-progress>
  74. <el-progress type="circle" :percentage="0"></el-progress>
  75. <el-progress type="circle" :percentage="25"></el-progress>
  76. <el-progress
  77. type="circle"
  78. :percentage="100"
  79. status="success"
  80. ></el-progress>
  81. <el-progress
  82. type="circle"
  83. :percentage="70"
  84. status="warning"
  85. ></el-progress>
  86. <el-progress
  87. type="circle"
  88. :percentage="50"
  89. status="exception"
  90. ></el-progress>
  91. <el-divider content-position="left">
  92. 按钮
  93. <a
  94. target="_blank"
  95. href="https://element.eleme.cn/#/zh-CN/component/button"
  96. >
  97. 文档
  98. </a>
  99. </el-divider>
  100. <el-button>默认按钮</el-button>
  101. <el-button type="primary">主要按钮</el-button>
  102. <el-button type="success">成功按钮</el-button>
  103. <el-button type="info">信息按钮</el-button>
  104. <el-button type="warning">警告按钮</el-button>
  105. <el-button type="danger">危险按钮</el-button>
  106. <el-button plain>朴素按钮</el-button>
  107. <el-button type="primary" plain>主要按钮</el-button>
  108. <el-button type="success" plain>成功按钮</el-button>
  109. <el-button type="info" plain>信息按钮</el-button>
  110. <el-button type="warning" plain>警告按钮</el-button>
  111. <el-button type="danger" plain>危险按钮</el-button>
  112. <el-button round>圆角按钮</el-button>
  113. <el-button type="primary" round>主要按钮</el-button>
  114. <el-button type="success" round>成功按钮</el-button>
  115. <el-button type="info" round>信息按钮</el-button>
  116. <el-button type="warning" round>警告按钮</el-button>
  117. <el-button type="danger" round>危险按钮</el-button>
  118. <el-button icon="el-icon-search" circle></el-button>
  119. <el-button type="primary" icon="el-icon-edit" circle></el-button>
  120. <el-button type="success" icon="el-icon-check" circle></el-button>
  121. <el-button type="info" icon="el-icon-message" circle></el-button>
  122. <el-button type="warning" icon="el-icon-star-off" circle></el-button>
  123. <el-button type="danger" icon="el-icon-delete" circle></el-button>
  124. <el-button disabled>默认按钮</el-button>
  125. <el-button type="primary" disabled>主要按钮</el-button>
  126. <el-button type="success" disabled>成功按钮</el-button>
  127. <el-button type="info" disabled>信息按钮</el-button>
  128. <el-button type="warning" disabled>警告按钮</el-button>
  129. <el-button type="danger" disabled>危险按钮</el-button>
  130. <el-button type="primary" icon="el-icon-edit"></el-button>
  131. <el-button type="primary" icon="el-icon-share"></el-button>
  132. <el-button type="primary" icon="el-icon-delete"></el-button>
  133. <el-button type="primary" icon="el-icon-search">搜索</el-button>
  134. <el-button type="primary">
  135. 上传
  136. <i class="el-icon-upload el-icon--right"></i>
  137. </el-button>
  138. <el-button type="primary" :loading="true">加载中</el-button>
  139. <el-divider content-position="left">
  140. 文字链接
  141. <a
  142. target="_blank"
  143. href="https://element.eleme.cn/#/zh-CN/component/link"
  144. >
  145. 文档
  146. </a>
  147. </el-divider>
  148. <el-link href="https://element.eleme.io" target="_blank">
  149. 默认链接
  150. </el-link>
  151. <el-link type="primary">主要链接</el-link>
  152. <el-link type="success">成功链接</el-link>
  153. <el-link type="warning">警告链接</el-link>
  154. <el-link type="danger">危险链接</el-link>
  155. <el-link type="info">信息链接</el-link>
  156. <el-link disabled>默认链接</el-link>
  157. <el-link type="primary" disabled>主要链接</el-link>
  158. <el-link type="success" disabled>成功链接</el-link>
  159. <el-link type="warning" disabled>警告链接</el-link>
  160. <el-link type="danger" disabled>危险链接</el-link>
  161. <el-link type="info" disabled>信息链接</el-link>
  162. <el-link :underline="false">无下划线</el-link>
  163. <el-link>有下划线</el-link>
  164. <el-divider content-position="left">
  165. 头像
  166. <a
  167. target="_blank"
  168. href="https://element.eleme.cn/#/zh-CN/component/avatar"
  169. >
  170. 文档
  171. </a>
  172. </el-divider>
  173. <el-avatar icon="el-icon-user-solid"></el-avatar>
  174. <el-divider content-position="left">
  175. 页头
  176. <a
  177. target="_blank"
  178. href="https://element.eleme.cn/#/zh-CN/component/page-header"
  179. >
  180. 文档
  181. </a>
  182. </el-divider>
  183. <el-page-header content="详情页面"></el-page-header>
  184. <el-divider content-position="left">
  185. 面包屑
  186. <a
  187. target="_blank"
  188. href="https://element.eleme.cn/#/zh-CN/component/breadcrumb"
  189. >
  190. 文档
  191. </a>
  192. </el-divider>
  193. <el-breadcrumb separator="/">
  194. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  195. <el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
  196. <el-breadcrumb-item>活动列表</el-breadcrumb-item>
  197. <el-breadcrumb-item>活动详情</el-breadcrumb-item>
  198. </el-breadcrumb>
  199. </el-col>
  200. </el-row>
  201. </div>
  202. </template>
  203. <script>
  204. export default {
  205. name: "Element",
  206. components: {},
  207. data() {
  208. return {
  209. dialogVisible: false,
  210. };
  211. },
  212. created() {},
  213. mounted() {},
  214. methods: {},
  215. };
  216. </script>
  217. <style lang="scss" scoped>
  218. .element-container {
  219. ::v-deep {
  220. .el-dialog__wrapper {
  221. position: fixed;
  222. top: 20px;
  223. right: 20px;
  224. bottom: 20px;
  225. left: 20px;
  226. }
  227. .el-tag,
  228. .el-button,
  229. .el-link {
  230. margin: 5px;
  231. }
  232. .el-progress {
  233. margin: 20px;
  234. }
  235. }
  236. .element-iframe {
  237. position: absolute;
  238. top: 55px;
  239. right: 0;
  240. bottom: 0;
  241. left: 0;
  242. width: 100%;
  243. height: 89vh;
  244. }
  245. }
  246. </style>