h5-button.vue 412 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <div :class="config.classText.join(' ')">
  3. <button class="el-button">{{config.content}}</button>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: "h5-button",
  9. props: {
  10. config: {
  11. type: Object,
  12. default: () => ({})
  13. }
  14. }
  15. };
  16. </script>
  17. <style src="./css/base.css"></style>
  18. <style lang="scss" scoped>
  19. img{
  20. width: 100% !important;
  21. }
  22. .el-button{
  23. width: 100%;
  24. }
  25. </style>