monkukui No title
No License TypeScript
2019年08月30日
Copy Clone
/// Questions.vue
<template>
  <div class="pagi-nation">
    <p>curPageId: {{curPageId}}</p>
    <p>totalItemNum: {{totalItemNum}}</p>

    <div v-for="id in questionsList">
      <div class="box">
        <p>title {{id}}</p>
        <p>description {{id}}</p>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Prop, Vue, Emit, Watch} from 'vue-property-decorator';

@Component
export default class PagiNation extends Vue {

  @Prop()
  private curPageId!: number; // 現在のページ番号
  @Prop()
  private totalItemNum!: number; // アイテムの合計数

  private questionsList: number[] = [];
  
  private getQuestionsList(): void {
    this.questionsList = [];
    for(let i: number = 1; i <= 10; i++) {
      this.questionsList.push(i + (this.curPageId - 1) * 10);
    }
  };
  public mounted(): void {
    this.getQuestionsList();
  };

  @Watch('curPageId')
  onCurPageIdChanged(): void {
    this.getQuestionsList();
  }

}
</script>

<style scoped>
.box {
  padding: 0.5em 1em;
  margin: 2em 0;
  font-weight: bold;
  color: #6091d3;/*文字色*/
  background: #FFF;
  border: solid 3px #6091d3;/*線*/
  border-radius: 10px;/*角の丸み*/
}
.box p {
  margin: 0; 
  padding: 0;
}
</style>
/// Questions.vue
<template>
  <div class="pagi-nation">
    <p>curPageId: {{curPageId}}</p>
    <p>totalItemNum: {{totalItemNum}}</p>

    <div v-for="id in questionsList">
      <div class="box">
        <p>title {{id}}</p>
        <p>description {{id}}</p>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Prop, Vue, Emit, Watch} from 'vue-property-decorator';

@Component
export default class PagiNation extends Vue {

  @Prop()
  private curPageId!: number; // 現在のページ番号
  @Prop()
  private totalItemNum!: number; // アイテムの合計数

  private questionsList: number[] = [];
  
  private getQuestionsList(): void {
    this.questionsList = [];
    for(let i: number = 1; i <= 10; i++) {
      this.questionsList.push(i + (this.curPageId - 1) * 10);
    }
  };
  public mounted(): void {
    this.getQuestionsList();
  };

  @Watch('curPageId')
  onCurPageIdChanged(): void {
    this.getQuestionsList();
  }

}
</script>

<style scoped>
.box {
  padding: 0.5em 1em;
  margin: 2em 0;
  font-weight: bold;
  color: #6091d3;/*文字色*/
  background: #FFF;
  border: solid 3px #6091d3;/*線*/
  border-radius: 10px;/*角の丸み*/
}
.box p {
  margin: 0; 
  padding: 0;
}
</style>
anonymous
Anonymous
2021年04月21日
Medication information sheet. Effects of Drug Abuse. <a href="https://toplyrica.top">where to buy lyrica without prescription</a> in the USA All trends of medicine. Get here.
anonymous
Anonymous
2021年04月25日
Drug prescribing information. Short-Term Effects. <a href="https://lyricafor.top">where to get generic lyrica without a prescription</a> in the USA All about meds. Read now.
anonymous
Anonymous
2021年04月30日
how often can you take cialis <a href="https://mycialistabs.com/">what is cialis used for</a> best time to take cialis 20mg
anonymous
Anonymous
2021年04月30日
cialis reddit <a href="https://mycialistabs.com/">cialis dosage 40 mg</a> is generic cialis available
anonymous
Anonymous
2021年05月02日
cialis price cvs <a href="https://toptadalafiltabs.com/">teva generic cialis</a> how to buy cialis online
anonymous
Anonymous
2021年05月02日
cialis for prostate <a href="https://toptadalafiltabs.com/">cialis super active</a> cialis generic canada
anonymous
Anonymous
2021年05月04日
how to write an interview essay in apa format <a href="https://topessaywriterfas.com/">cheap essay writing service usa</a> how to write an essay at the last minute
anonymous
Anonymous
2021年05月04日
how to write analysis essay <a href="https://topessaywriterfas.com/">cheap essay writing service</a> how to write a 1 page essay
anonymous
Anonymous
2021年05月06日
assertive essay service <a href="http://writemyessayslfd.com/">write an analysis essay</a> 500 word essay on customer service
anonymous
Anonymous
2021年05月06日
essay wrriting service <a href="http://writemyessayslfd.com/">write essays online</a> good customer service essay in hindi
anonymous
Anonymous
2021年05月06日
over the counter viagra substitute walgreens <a href="https://mrviagrashop.com">online viagra</a> cheap viagra online
anonymous
Anonymous
2021年05月07日
goodrx sildenafil <a href="https://mrviagrashop.com">viagra boys</a> viagra online canada
anonymous
Anonymous
2021年05月07日
get viagra <a href="https://mysildenafilkr.com/">viagra cost per pill</a> sildenafil 50 mg
anonymous
Anonymous
2021年05月07日
sildenafil <a href="https://mysildenafilkr.com/">viagra boys</a> sildenafil over the counter
anonymous
Anonymous
2021年05月11日
levitra vs cialis <a href="http://tadalafilled.com/">side effects of cialis</a> free trial cialis
anonymous
Anonymous
2021年05月11日
addressing a cover letter <a href="http://coverletterforresumetop.com/">career change resume</a> babysitter resume
anonymous
Anonymous
2021年05月11日
is generic cialis available in canada <a href="http://tadalafilled.com/">active ingredient in cialis</a> cialis doses
anonymous
Anonymous
2021年05月11日
gpa on resume <a href="http://coverletterforresumetop.com/">resume review service</a> front end developer resume
anonymous
Anonymous
2021年05月12日
resume in spanish <a href="https://writingacoverletteronline.com/">https://writingacoverletteronline.com/</a> resume styles
anonymous
Anonymous
2021年05月13日
academic cover letter <a href="https://writingacoverletteronline.com/">consulting resume</a> skills in resume
anonymous
Anonymous
2021年05月13日
canadian pharmacy viagra <a href="https://edviagramaster.net/">womens viagra</a> viagra online usa
anonymous
Anonymous
2021年05月13日
cost of viagra <a href="https://edviagramaster.net/">viagra triangle</a> viagra without a doctor prescription canada
anonymous
Anonymous
2021年05月15日
herbal viagra green box <a href="https://sildenafilviagratop.com">sildenafil goodrx</a> super viagra
anonymous
Anonymous
2021年05月15日
roman viagra <a href="https://sildenafilviagratop.com">walgreen viagra</a> buy viagra
anonymous
Anonymous
2021年05月15日
cialis otc switch <a href="https://cialisortadalafil.com/">how long does it take cialis to work</a> is generic cialis available in canada
anonymous
Anonymous
2021年05月15日
active ingredient in cialis <a href="https://cialisortadalafil.com/">cialis and viagra together</a> cialis pricing
anonymous
Anonymous
2021年05月16日
cialis daily <a href="https://topcialistabs.com/">cialis canadian pharmacy ezzz</a> cost of cialis 20mg
anonymous
Anonymous
2021年05月16日
cialis 5 mg <a href="https://topcialistabs.com/">can i take 40mg of cialis</a> cialis canadian pharmacy
anonymous
Anonymous
2021年05月18日
Medicines information for patients. What side effects can this medication cause? <a href="https://meclizine4u.top">buying generic meclizine</a> in Canada Best what you want to know about medicine. Read information now.
anonymous
Anonymous
2021年05月21日
<a href="https://5bz.ru/">база предприятий россии 2020</a>
anonymous
Anonymous
2021年07月19日
<a href="https://krasota4u.ru">where can i buy cheap trazodone</a>
anonymous
Anonymous
2021年07月25日
Pills information sheet. Effects of Drug Abuse. <a href="https://plaquenil4people.top">can i purchase plaquenil without dr prescription</a> in USA Best what you want to know about medicine. Get information here.