StdFormCard.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div class="std-form-card">
  3. <a-row
  4. :align="'middle'"
  5. :type="'flex'"
  6. class="container"
  7. >
  8. <a-col
  9. :lg="8"
  10. :md="10"
  11. :sm="12"
  12. :xl="6"
  13. :xs="24"
  14. :xxl="5"
  15. class="content"
  16. >
  17. <std-form-card-content
  18. :error="error" :options="options"
  19. @onSubmit="value => {$emit('onSubmit', value)}"/>
  20. <vue-particles
  21. :click-effect="false"
  22. :hover-effect="false"
  23. :move-speed="3"
  24. :particlesNumber="60"
  25. class="particles"
  26. color="#dedede"/>
  27. </a-col>
  28. </a-row>
  29. </div>
  30. </template>
  31. <script>
  32. import Vue from 'vue'
  33. import VueParticles from 'vue-particles'
  34. import StdFormCardContent from '@/components/StdFormCard/StdFormCardContent'
  35. Vue.use(VueParticles)
  36. export default {
  37. name: 'StdFormCard',
  38. components: {
  39. StdFormCardContent
  40. },
  41. props: {
  42. options: Object,
  43. error: {
  44. type: Object,
  45. default() {
  46. return {}
  47. }
  48. },
  49. }
  50. }
  51. </script>
  52. <style lang="less" scoped>
  53. .particles {
  54. position: fixed;
  55. z-index: -1;
  56. left: 0;
  57. top: 0;
  58. width: 100%;
  59. height: 100%;
  60. }
  61. .container {
  62. position: fixed;
  63. height: 100%;
  64. width: 100%;
  65. background-color: #f5f5f5;
  66. .content {
  67. max-width: 360px;
  68. margin: 0 auto;
  69. }
  70. }
  71. </style>