File tree Expand file tree Collapse file tree 12 files changed +266
-122
lines changed Expand file tree Collapse file tree 12 files changed +266
-122
lines changed Original file line number Diff line number Diff line change 113113 "vite-plugin-vue-devtools" : " ^7.2.1" ,
114114 "vitest" : " ^2.0.1" ,
115115 "vitest-canvas-mock" : " ^0.3.3" ,
116- "vue" : " ^3.4.31 " ,
116+ "vue" : " ^3.5.10 " ,
117117 "vue-tsc" : " ^1.8.27"
118118 },
119119 "engines" : {
Original file line number Diff line number Diff line change 9494| [ @nutui/icons-vue ] ( https://github.com/jdf2e/nutui-icons ) | ` @nutui/nutui ` 使用的图标库 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/icons-vue.svg?label=%20 ) |
9595| [ @nutui/icons-vue-taro ] ( https://github.com/jdf2e/nutui-icons ) | ` @nutui/nutui-taro ` 使用的图标库 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/icons-vue-taro.svg?label=%20 ) |
9696| [ @nutui/touch-emulator ] ( packages/nutui-touch-emulator ) | 在桌面端使用 NutUI 的辅助库 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/touch-emulator.svg?label=%20 ) |
97- | [ @nutui/auto-import-resolver ] ( packages/nutui-auto-import-resolver ) | ` unplugin-auto-import ` 插件的 reolver 配置 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/auto-import-resolver.svg?label=%20 ) |
97+ | [ @nutui/auto-import-resolver ] ( packages/nutui-auto-import-resolver ) | ` unplugin-auto-import ` 插件的 resolver 配置 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/auto-import-resolver.svg?label=%20 ) |
9898| [ @nutui/playground ] ( packages/nutui-playground ) | NutUI 在线 Playground | - |
9999| [ nutui-demo] ( https://github.com/jdf2e/nutui-demo ) | NutUI 官方示例合集 | - |
100100
Original file line number Diff line number Diff line change 9494| [ @nutui/icons-vue ] ( https://github.com/jdf2e/nutui-icons ) | ` @nutui/nutui ` 使用的图标库 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/icons-vue.svg?label=%20 ) |
9595| [ @nutui/icons-vue-taro ] ( https://github.com/jdf2e/nutui-icons ) | ` @nutui/nutui-taro ` 使用的图标库 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/icons-vue-taro.svg?label=%20 ) |
9696| [ @nutui/touch-emulator ] ( packages/nutui-touch-emulator ) | 在桌面端使用 NutUI 的辅助库 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/touch-emulator.svg?label=%20 ) |
97- | [ @nutui/auto-import-resolver ] ( packages/nutui-auto-import-resolver ) | ` unplugin-auto-import ` 插件的 reolver 配置 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/auto-import-resolver.svg?label=%20 ) |
97+ | [ @nutui/auto-import-resolver ] ( packages/nutui-auto-import-resolver ) | ` unplugin-auto-import ` 插件的 resolver 配置 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/auto-import-resolver.svg?label=%20 ) |
9898| [ @nutui/playground ] ( packages/nutui-playground ) | NutUI 在线 Playground | - |
9999| [ nutui-demo] ( https://github.com/jdf2e/nutui-demo ) | NutUI 官方示例合集 | - |
100100
Original file line number Diff line number Diff line change 1111 <view class =" nut-comment-images__play" ></view >
1212 </view >
1313 <!-- images -->
14- <template v-for =" (itI , index ) in images " :key =" itI . id " >
14+ <template v-for =" (itI , index ) in images " :key =" index " >
1515 <view
1616 v-if =" (type == 'multi' && videos.length + index < 9) || type != 'multi'"
1717 class =" nut-comment-images__item nut-comment-images__item--imgbox"
@@ -37,16 +37,7 @@ import { createComponent } from '@/packages/utils/create'
3737const { create } = createComponent (' comment-images' )
3838import { Right } from ' @nutui/icons-vue-taro'
3939
40- interface VideosType {
41- id? : number | string
42- mainUrl: string
43- videoUrl: string
44- }
45- interface ImagesType {
46- smallImgUrl: string
47- bigImgUrl: string
48- imgUrl: string
49- }
40+ import { VideosType , ImagesType } from ' ../type'
5041export default create ({
5142 props: {
5243 type: {
Original file line number Diff line number Diff line change 1111 <view class =" nut-comment-images__play" ></view >
1212 </view >
1313 <!-- images -->
14- <template v-for =" (itI , index ) in images " :key =" itI . id " >
14+ <template v-for =" (itI , index ) in images " :key =" index " >
1515 <view
1616 v-if =" (type == 'multi' && videos.length + index < 9) || type != 'multi'"
1717 class =" nut-comment-images__item nut-comment-images__item--imgbox"
@@ -37,16 +37,7 @@ import { createComponent } from '@/packages/utils/create'
3737const { create } = createComponent (' comment-images' )
3838import { Right } from ' @nutui/icons-vue'
3939
40- interface VideosType {
41- id? : number | string
42- mainUrl: string
43- videoUrl: string
44- }
45- interface ImagesType {
46- smallImgUrl: string
47- bigImgUrl: string
48- imgUrl: string
49- }
40+ import { VideosType , ImagesType } from ' ../type'
5041export default create ({
5142 props: {
5243 type: {
Original file line number Diff line number Diff line change @@ -50,17 +50,7 @@ import CommentHeader from './components/CmtHeader.taro.vue'
5050import CommentImages from ' ./components/CmtImages.taro.vue'
5151import CommentBottom from ' ./components/CmtBottom.taro.vue'
5252import { useLocale } from ' @/packages/utils/useLocale'
53-
54- interface VideosType {
55- id? : number | string
56- mainUrl: string
57- videoUrl: string
58- }
59- interface ImagesType {
60- smallImgUrl: string
61- bigImgUrl: string
62- imgUrl: string
63- }
53+ import { VideosType , ImagesType } from ' ./type'
6454
6555const { create } = createComponent (' comment' )
6656const cN = ' NutComment'
Original file line number Diff line number Diff line change @@ -50,17 +50,7 @@ import CommentHeader from './components/CmtHeader.vue'
5050import CommentImages from ' ./components/CmtImages.vue'
5151import CommentBottom from ' ./components/CmtBottom.vue'
5252import { useLocale } from ' @/packages/utils/useLocale'
53-
54- interface VideosType {
55- id? : number | string
56- mainUrl: string
57- videoUrl: string
58- }
59- interface ImagesType {
60- smallImgUrl: string
61- bigImgUrl: string
62- imgUrl: string
63- }
53+ import { VideosType , ImagesType } from ' ./type'
6454
6555const { create } = createComponent (' comment' )
6656const cN = ' NutComment'
Original file line number Diff line number Diff line change 1+ export interface VideosType {
2+ id ?: number | string
3+ mainUrl : string
4+ videoUrl : string
5+ }
6+ export interface ImagesType {
7+ smallImgUrl : string
8+ bigImgUrl : string
9+ imgUrl : string
10+ }
Original file line number Diff line number Diff line change 1919<script lang="ts">
2020import { ref , watch , onMounted } from ' vue'
2121import { createComponent } from ' @/packages/utils/create'
22- const { create } = createComponent ( ' sku-select ' )
22+ import { SkuInfo } from ' ../type '
2323
24- interface SkuInfo {
25- name: string
26- id: number
27- active: boolean
28- disable: boolean
29- [props : string ]: any
30- }
24+ const { create } = createComponent (' sku-select' )
3125export default create ({
3226 props: {
3327 sku: {
You can’t perform that action at this time.
0 commit comments