<template>
  <view class="aske-questions">
    <wd-collapse v-model="curColl">
      <wd-collapse-item
        v-for="ques in questionData"
        :key="ques.id"
        :name="ques.id"
        :title="ques.title"
      >
        <!-- <view v-html="ques.des"></view> -->
        <rich-text class="des" :nodes="ques.des"></rich-text>
      </wd-collapse-item>
    </wd-collapse>
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import questionData from './questions.js';
const curColl = ref(['']);
</script>

<style lang="scss">
.aske-questions {
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
  .des {
    line-height: 25px;
    color: #999;
  }
}
</style>
