小说小程序前端代码仓库(小程序)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
690 B

  1. <template>
  2. <div class="agreement-check">
  3. <input type="checkbox" v-model="checked" @change="$emit('update:checked', checked)" id="agreement" />
  4. <label for="agreement">
  5. <slot />
  6. </label>
  7. </div>
  8. </template>
  9. <script>
  10. export default {
  11. name: 'AgreementCheck',
  12. props: {
  13. checked: {
  14. type: Boolean,
  15. default: false
  16. }
  17. }
  18. }
  19. </script>
  20. <style scoped>
  21. .agreement-check {
  22. display: flex;
  23. align-items: center;
  24. font-size: 14px;
  25. color: #b3b3b3;
  26. margin-top: 16px;
  27. }
  28. .agreement-check input[type='checkbox'] {
  29. margin-right: 6px;
  30. accent-color: #183b6b;
  31. }
  32. .agreement-check a {
  33. color: #183b6b;
  34. text-decoration: underline;
  35. margin: 0 2px;
  36. }
  37. </style>