|
@@ -17,8 +17,7 @@
|
|
{{item.start_read_chapter_id>0?item.start_read_chapter_id:0}}章 / {{item.chapter_count}}章
|
|
{{item.start_read_chapter_id>0?item.start_read_chapter_id:0}}章 / {{item.chapter_count}}章
|
|
</view>
|
|
</view>
|
|
<view class="book-list__item__edit-icon" v-if="is_edit">
|
|
<view class="book-list__item__edit-icon" v-if="is_edit">
|
|
- <uni-icons v-if="edit_book_list.indexOf(item.book_id)==-1" type="circle" size="35"></uni-icons>
|
|
|
|
- <uni-icons v-else type="circle-filled" size="35"></uni-icons>
|
|
|
|
|
|
+ <uni-icons :type="edit_book_list.indexOf(item.book_id)==-1?'circle':'circle-filled'" size="35"></uni-icons>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -45,7 +44,7 @@ import { tools } from '../../framework/tools';
|
|
let is_selected_all = ref(false)
|
|
let is_selected_all = ref(false)
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
- book_list: Array,
|
|
|
|
|
|
+ book_list: Array<book_item_data>,
|
|
})
|
|
})
|
|
const emits = defineEmits(['clickBook','clickDeleteBook'])
|
|
const emits = defineEmits(['clickBook','clickDeleteBook'])
|
|
// watch(()=>props.book_list, (new_v,old_v)=>{
|
|
// watch(()=>props.book_list, (new_v,old_v)=>{
|
|
@@ -93,7 +92,6 @@ import { tools } from '../../framework/tools';
|
|
if(is_selected_all.value) {
|
|
if(is_selected_all.value) {
|
|
is_selected_all.value = false
|
|
is_selected_all.value = false
|
|
} else {
|
|
} else {
|
|
- console.log('全选')
|
|
|
|
if(props.book_list) {
|
|
if(props.book_list) {
|
|
for (let i = 0; i < props.book_list.length; i++) {
|
|
for (let i = 0; i < props.book_list.length; i++) {
|
|
let element = props.book_list[i]
|
|
let element = props.book_list[i]
|