index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <template>
  2. <div class="bf-button">
  3. <!-- 1 2是公用头部按钮 3是左边长按钮 4 10导入新增 8 9调用规则管理-->
  4. <el-row>
  5. <el-button :class="{'but':type == 1 , 'buter': type == 2 , 'butewid': type == 3 , 'butdao': type == 4 , 'butdaoadd': type == 10 ,'butedit': type == 5 , 'butels': type == 6 , 'buteles': type == 7 , 'butcan': type == 8 , 'butsub': type == 9, 'butout': type == 11 , 'butmod': type == 12, 'butb': type == 13, 'butc': type == 14,'butd': type == 15, 'bute': type == 16, 'butmods': type == 17, 'butsuber': type == 18}">{{butName}}</el-button>
  6. </el-row>
  7. </div>
  8. </template>
  9. <script>
  10. export default {
  11. props: ['butName', 'type'],
  12. data () {
  13. return {}
  14. },
  15. mounted () {
  16. console.log(this.type)
  17. }
  18. }
  19. </script>
  20. <style lang="scss">
  21. .bf-button{
  22. // height: 48px;
  23. border-radius: 16px;
  24. >.el-row{
  25. width: 100%;
  26. height: 100%;
  27. >.but{
  28. width: 100%;
  29. height: 100%;
  30. padding: 0 32px 0 32px;
  31. font-size: 16px;
  32. font-family: Microsoft YaHei;
  33. font-weight: bold;
  34. color: #FFFFFF;
  35. border: none;
  36. background: linear-gradient(0deg, #777DBA, #6983BE);
  37. // box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.18);
  38. }
  39. .but:hover{
  40. background: #87A6D3
  41. }
  42. .but:focus{
  43. background: #2D4F80;
  44. }
  45. >.buter{
  46. width: 100%;
  47. height: 100%;
  48. padding: 1px 32px 1px 32px;
  49. background: #F5F7FA;
  50. font-size: 16px;
  51. font-family: Microsoft YaHei;
  52. font-weight: bold;
  53. color: #5077AE;
  54. border: 1px solid #90A8C9;
  55. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  56. }
  57. .buter:hover{
  58. background: #87A6D3;
  59. color: #FFFFFF;
  60. }
  61. .buter:focus{
  62. background: #2D4F80;
  63. color: #FFFFFF;
  64. }
  65. >.butewid{
  66. width: 100%;
  67. height: 100%;
  68. padding: 0 92px 0 92px;
  69. background: linear-gradient(0deg, #777DBA, #6983BE);
  70. font-size: 16px;
  71. font-family: Microsoft YaHei;
  72. font-weight: bold;
  73. color: #FFFFFF;
  74. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  75. }
  76. .butewid:hover{
  77. background: #87A6D3;
  78. color: #FFFFFF;
  79. }
  80. .butewid:focus{
  81. background: #2D4F80;
  82. color: #FFFFFF;
  83. }
  84. .butdao{
  85. width: 100%;
  86. height: 100%;
  87. padding: 0 47px 0 47px;
  88. background: #FFFFFF;
  89. font-size: 16px;
  90. font-family: Microsoft YaHei;
  91. font-weight: bold;
  92. color: #5077AE;
  93. border: 1px solid #E4E8F0;
  94. border-radius: 6px;
  95. }
  96. .butdao:hover{
  97. background: #87A6D3;
  98. color: #FFFFFF;
  99. }
  100. .butdao:focus{
  101. background: #2D4F80;
  102. color: #FFFFFF;
  103. }
  104. .butdaoadd{
  105. width: 100%;
  106. height: 100%;
  107. padding: 0 47px 0 47px;
  108. background: linear-gradient(0deg, #777DBA, #6983BE);
  109. font-size: 16px;
  110. font-family: Microsoft YaHei;
  111. font-weight: bold;
  112. color: #FFFFFF;
  113. border-radius: 6px;
  114. }
  115. .butdaoadd:hover{
  116. background: #87A6D3;
  117. color: #FFFFFF;
  118. }
  119. .butdaoadd:focus{
  120. background: #2D4F80;
  121. color: #FFFFFF;
  122. }
  123. .butedit{
  124. width: 100%;
  125. height: 100%;
  126. padding: 0 16px 0 16px;
  127. background: #5077AE;
  128. font-size: 16px;
  129. font-family: Microsoft YaHei;
  130. font-weight: bold;
  131. color: #FFFFFF;
  132. }
  133. .butedit:hover{
  134. background: #87A6D3;
  135. color: #FFFFFF;
  136. }
  137. .butedit:focus{
  138. background: #2D4F80;
  139. color: #FFFFFF;
  140. }
  141. .butels{
  142. width: 100%;
  143. height: 100%;
  144. padding: 0 15px 0 15px;
  145. background: #F56C6C;
  146. font-size: 16px;
  147. font-family: Microsoft YaHei;
  148. font-weight: bold;
  149. color: #FFFFFF;
  150. }
  151. .butels:hover{
  152. background: #F88585;
  153. color: #FFFFFF;
  154. }
  155. .butels:focus{
  156. background: #DD4343;
  157. color: #FFFFFF;
  158. }
  159. .buteles{
  160. width: 100%;
  161. height: 100%;
  162. display: flex;
  163. align-items: center;
  164. justify-content: center;
  165. padding: 0 24px 0 24px;
  166. background: #F56C6C;
  167. font-size: 16px;
  168. font-family: Microsoft YaHei;
  169. font-weight: bold;
  170. color: #FFFFFF;
  171. border: none;
  172. }
  173. .buteles:hover{
  174. background: #F88585;
  175. color: #FFFFFF;
  176. }
  177. .buteles:focus{
  178. background: #DD4343;
  179. color: #FFFFFF;
  180. border: none;
  181. }
  182. .butcan{
  183. width: 100%;
  184. height: 100%;
  185. padding: 0 24px 0 24px;
  186. display: flex;
  187. align-items: center;
  188. justify-content: center;
  189. background: #FFFFFF;
  190. border: 1px solid #E4E8F0;
  191. font-size: 16px;
  192. font-family: Microsoft YaHei;
  193. font-weight: bold;
  194. color: #5077AE;
  195. }
  196. .butcan:hover{
  197. background: #87A6D3;
  198. color: #FFFFFF;
  199. }
  200. .butcan:focus{
  201. background: #2D4F80;
  202. color: #FFFFFF;
  203. }
  204. .butsub{
  205. width: 100%;
  206. height: 100%;
  207. padding: 0 24px 0 24px;
  208. background: linear-gradient(0deg, #777DBA, #6983BE);
  209. font-size: 16px;
  210. font-family: Microsoft YaHei;
  211. font-weight: bold;
  212. color: #FFFFFF;
  213. }
  214. .butsub:hover{
  215. background: #87A6D3;
  216. color: #FFFFFF;
  217. }
  218. .butsub:focus{
  219. background: #2D4F80;
  220. color: #FFFFFF;
  221. }
  222. .butsuber{
  223. width: 100%;
  224. height: 100%;
  225. padding: 0 15px 0 15px;
  226. background: linear-gradient(0deg, #777DBA, #6983BE);
  227. font-size: 16px;
  228. font-family: Microsoft YaHei;
  229. font-weight: bold;
  230. color: #FFFFFF;
  231. }
  232. .butsuber:hover{
  233. background: #87A6D3;
  234. color: #FFFFFF;
  235. }
  236. .butsuber:focus{
  237. background: #2D4F80;
  238. color: #FFFFFF;
  239. }
  240. .butout{
  241. width: 100%;
  242. height: 100%;
  243. padding: 0 20px 0 20px;
  244. // background: #F56C6C;
  245. font-size: 16px;
  246. font-family: Microsoft YaHei;
  247. font-weight: bold;
  248. color: #F56C6C;
  249. border: 1px solid #F56C6C
  250. }
  251. .butout:hover{
  252. background: #F88585;
  253. color: #FFFFFF;
  254. }
  255. .butout:focus{
  256. background: #DD4343;
  257. color: #FFFFFF;
  258. }
  259. .butmod{
  260. width: 100%;
  261. height: 100%;
  262. padding: 0 20px 0 20px;
  263. // background: #F56C6C;
  264. font-size: 16px;
  265. font-family: Microsoft YaHei;
  266. font-weight: bold;
  267. color: #303133;
  268. border: 1px solid #E3E5E8;
  269. }
  270. .butmod:hover{
  271. background: #6f80bc;
  272. color: #FFFFFF;
  273. // border: none;
  274. }
  275. .butmod:focus{
  276. background: #6f80bc;
  277. color: #FFFFFF;
  278. // border: none;
  279. }
  280. .butb{
  281. width: 100%;
  282. height: 100%;
  283. padding: 0 24px 0 24px;
  284. display: flex;
  285. align-items: center;
  286. justify-content: center;
  287. background: #FFFFFF;
  288. border: 1px solid #E4E8F0;
  289. font-size: 14px;
  290. font-family: Microsoft YaHei;
  291. font-weight: bold;
  292. color: #5077AE;
  293. }
  294. .butb:hover{
  295. background: #6f80bc;
  296. color: #FFFFFF;
  297. // border: none;
  298. }
  299. .butb:focus{
  300. background: #6f80bc;
  301. color: #FFFFFF;
  302. // border: none;
  303. }
  304. .butc{
  305. width: 100%;
  306. height: 100%;
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. padding: 0 24px 0 24px;
  311. background: #F56C6C;
  312. font-size: 14px;
  313. font-family: Microsoft YaHei;
  314. font-weight: bold;
  315. color: #FFFFFF;
  316. }
  317. .butc:hover{
  318. background: #F88585;
  319. color: #FFFFFF;
  320. }
  321. .butc:focus{
  322. background: #DD4343;
  323. color: #FFFFFF;
  324. }
  325. .butd{
  326. width: 100%;
  327. height: 100%;
  328. display: flex;
  329. align-items: center;
  330. justify-content: center;
  331. padding: 0 8px 0 8px;
  332. background: #6E81BC;
  333. font-size: 14px;
  334. font-family: Microsoft YaHei;
  335. font-weight: bold;
  336. color: #FFFFFF;
  337. }
  338. .butd:hover{
  339. background: #6f80bc;
  340. color: #FFFFFF;
  341. // border: none;
  342. }
  343. .butd:focus{
  344. background: #6f80bc;
  345. color: #FFFFFF;
  346. // border: none;
  347. }
  348. .bute{
  349. width: 100%;
  350. height: 100%;
  351. display: flex;
  352. align-items: center;
  353. justify-content: center;
  354. padding: 0 74px 0 74px;
  355. background: #6E81BC;
  356. font-size: 14px;
  357. font-family: Microsoft YaHei;
  358. font-weight: bold;
  359. color: #FFFFFF;
  360. }
  361. .bute:hover{
  362. background: #6f80bc;
  363. color: #FFFFFF;
  364. // border: none;
  365. }
  366. .bute:focus{
  367. background: #6f80bc;
  368. color: #FFFFFF;
  369. // border: none;
  370. }
  371. .butmods{
  372. width: 100%;
  373. height: 100%;
  374. padding: 0 20px 0 20px;
  375. // background: #F56C6C;
  376. font-size: 16px;
  377. font-family: Microsoft YaHei;
  378. font-weight: bold;
  379. color: #303133;
  380. border: 1px solid #E3E5E8;
  381. }
  382. }
  383. }
  384. </style>