Examples of code I've written in PHP, Javascript, SCSS, etc.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

29 行
1023 B

  1. <template>
  2. <section class="services-pane youtube" >
  3. <h4>{{site.charAt(0).toUpperCase() + site.slice(1)}}</h4>
  4. <ul :key="service.id" v-for="service in filter">
  5. <li v-if="service.available"><span>{{service.name}}</span><span>{{(service.price/100).toLocaleString('en')}}</span><span>{{service.minimum.toLocaleString('en')}}</span><span>{{service.maximum.toLocaleString('en')}}</span>
  6. <svg @click="$emit('select', service)" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-plus-square-fill" viewBox="0 0 16 16">
  7. <path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z"/>
  8. </svg>
  9. </li>
  10. </ul>
  11. </section>
  12. </template>
  13. <script>
  14. function filter() {
  15. if (!this.services || !this.site) {return}
  16. return this.services.filter((s) => {
  17. return s.site == this.site
  18. })
  19. }
  20. export default {
  21. props: ['services', 'site'],
  22. emits: ['select'],
  23. computed: {filter}
  24. }
  25. </script>