| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <template>
- <view class="question-card__wrap">
- <view class="question-card__head">
- <view class="question-card__head-title">{{ props.datas ? props.datas.title : '' }}</view>
- </view>
- <view class="question-card__body">
- <view class="question-card__item" v-for="(content, index) in props.datas.lists" :key="index">
- <view class="question-card__item-left">
- <text class="question-card__item-content">{{index + 1}}. {{ content }}</text>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script setup>
- const props = defineProps({
- datas: {
- type: Object,
- default() {
- return null
- }
- }
- })
- </script>
- <style lang="less" scoped>
- .question-card__wrap {
- width: 100%;
- height: auto;
- padding: 16rpx 30rpx;
- border-radius: 20rpx;
- background: #FAFAFA;
- }
- .question-card__head {
- width: 100%;
- height: 44rpx;
-
- .question-card__head-title {
- font-size: 26rpx;
- font-weight: 500;
- color: #000;
- }
- }
- .question-card__body {
- margin-top: 4px;
-
- .question-card__item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 3px 0;
- }
-
- .question-card__item-left {
- width: calc(100% - 0rpx);
- font-size: 28rpx;
- color: #3D3D3D;
- // padding-right: 30rpx;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .question-card__item-content {
- width: 100%;
- text-align: justify;
- /* white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis; */
- }
- }
- </style>
|