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 113
113
"vite-plugin-vue-devtools" : " ^7.2.1" ,
114
114
"vitest" : " ^2.0.1" ,
115
115
"vitest-canvas-mock" : " ^0.3.3" ,
116
- "vue" : " ^3.4.31 " ,
116
+ "vue" : " ^3.5.10 " ,
117
117
"vue-tsc" : " ^1.8.27"
118
118
},
119
119
"engines" : {
Original file line number Diff line number Diff line change 94
94
| [ @nutui/icons-vue ] ( https://github.com/jdf2e/nutui-icons ) | ` @nutui/nutui ` 使用的图标库 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/icons-vue.svg?label=%20 ) |
95
95
| [ @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 ) |
96
96
| [ @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 ) |
98
98
| [ @nutui/playground ] ( packages/nutui-playground ) | NutUI 在线 Playground | - |
99
99
| [ nutui-demo] ( https://github.com/jdf2e/nutui-demo ) | NutUI 官方示例合集 | - |
100
100
Original file line number Diff line number Diff line change 94
94
| [ @nutui/icons-vue ] ( https://github.com/jdf2e/nutui-icons ) | ` @nutui/nutui ` 使用的图标库 | ![ nutui] ( https://img.shields.io/npm/v/@nutui/icons-vue.svg?label=%20 ) |
95
95
| [ @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 ) |
96
96
| [ @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 ) |
98
98
| [ @nutui/playground ] ( packages/nutui-playground ) | NutUI 在线 Playground | - |
99
99
| [ nutui-demo] ( https://github.com/jdf2e/nutui-demo ) | NutUI 官方示例合集 | - |
100
100
Original file line number Diff line number Diff line change 11
11
<view class =" nut-comment-images__play" ></view >
12
12
</view >
13
13
<!-- images -->
14
- <template v-for =" (itI , index ) in images " :key =" itI . id " >
14
+ <template v-for =" (itI , index ) in images " :key =" index " >
15
15
<view
16
16
v-if =" (type == 'multi' && videos.length + index < 9) || type != 'multi'"
17
17
class =" nut-comment-images__item nut-comment-images__item--imgbox"
@@ -37,16 +37,7 @@ import { createComponent } from '@/packages/utils/create'
37
37
const { create } = createComponent (' comment-images' )
38
38
import { Right } from ' @nutui/icons-vue-taro'
39
39
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'
50
41
export default create ({
51
42
props: {
52
43
type: {
Original file line number Diff line number Diff line change 11
11
<view class =" nut-comment-images__play" ></view >
12
12
</view >
13
13
<!-- images -->
14
- <template v-for =" (itI , index ) in images " :key =" itI . id " >
14
+ <template v-for =" (itI , index ) in images " :key =" index " >
15
15
<view
16
16
v-if =" (type == 'multi' && videos.length + index < 9) || type != 'multi'"
17
17
class =" nut-comment-images__item nut-comment-images__item--imgbox"
@@ -37,16 +37,7 @@ import { createComponent } from '@/packages/utils/create'
37
37
const { create } = createComponent (' comment-images' )
38
38
import { Right } from ' @nutui/icons-vue'
39
39
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'
50
41
export default create ({
51
42
props: {
52
43
type: {
Original file line number Diff line number Diff line change @@ -50,17 +50,7 @@ import CommentHeader from './components/CmtHeader.taro.vue'
50
50
import CommentImages from ' ./components/CmtImages.taro.vue'
51
51
import CommentBottom from ' ./components/CmtBottom.taro.vue'
52
52
import { 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'
64
54
65
55
const { create } = createComponent (' comment' )
66
56
const cN = ' NutComment'
Original file line number Diff line number Diff line change @@ -50,17 +50,7 @@ import CommentHeader from './components/CmtHeader.vue'
50
50
import CommentImages from ' ./components/CmtImages.vue'
51
51
import CommentBottom from ' ./components/CmtBottom.vue'
52
52
import { 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'
64
54
65
55
const { create } = createComponent (' comment' )
66
56
const 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 19
19
<script lang="ts">
20
20
import { ref , watch , onMounted } from ' vue'
21
21
import { createComponent } from ' @/packages/utils/create'
22
- const { create } = createComponent ( ' sku-select ' )
22
+ import { SkuInfo } from ' ../type '
23
23
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' )
31
25
export default create ({
32
26
props: {
33
27
sku: {
You can’t perform that action at this time.
0 commit comments