Skip to content

Commit 48a4887

Browse files
chore(deps): update vue/core to v3.5.10 (#3206)
* fix: ts-vue bug * fix: ts * fix: ts * fix: ts * fix: ts * fix: ts * fix: ts
1 parent 6367898 commit 48a4887

File tree

12 files changed

+266
-122
lines changed

12 files changed

+266
-122
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
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": {

pnpm-lock.yaml

+238-65
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

publish/nutui-taro/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
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

publish/nutui/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
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

src/packages/__VUE/comment/components/CmtImages.taro.vue

+2-11
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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'
3737
const { create } = createComponent('comment-images')
3838
import { 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'
5041
export default create({
5142
props: {
5243
type: {

src/packages/__VUE/comment/components/CmtImages.vue

+2-11
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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'
3737
const { create } = createComponent('comment-images')
3838
import { 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'
5041
export default create({
5142
props: {
5243
type: {

src/packages/__VUE/comment/index.taro.vue

+1-11
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,7 @@ import CommentHeader from './components/CmtHeader.taro.vue'
5050
import CommentImages from './components/CmtImages.taro.vue'
5151
import CommentBottom from './components/CmtBottom.taro.vue'
5252
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'
6454
6555
const { create } = createComponent('comment')
6656
const cN = 'NutComment'

src/packages/__VUE/comment/index.vue

+1-11
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,7 @@ import CommentHeader from './components/CmtHeader.vue'
5050
import CommentImages from './components/CmtImages.vue'
5151
import CommentBottom from './components/CmtBottom.vue'
5252
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'
6454
6555
const { create } = createComponent('comment')
6656
const cN = 'NutComment'

src/packages/__VUE/comment/type.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
}

src/packages/__VUE/sku/components/SkuSelect.vue

+2-8
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,9 @@
1919
<script lang="ts">
2020
import { ref, watch, onMounted } from 'vue'
2121
import { 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')
3125
export default create({
3226
props: {
3327
sku: {

src/packages/__VUE/sku/components/SkuStepper.vue

-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { ref, onMounted } from 'vue'
2020
import { createComponent } from '@/packages/utils/create'
2121
import NutInputNumber from '../../inputnumber'
2222
const { create } = createComponent('sku-stepper')
23-
2423
export default create({
2524
props: {
2625
// 购买数量最大值
@@ -47,7 +46,6 @@ export default create({
4746
}
4847
},
4948
emits: ['click', 'changeSku', 'changeStepper', 'clickBtnOptions', 'overLimit', 'reduce', 'add'],
50-
5149
components: {
5250
NutInputNumber
5351
},

src/packages/__VUE/sku/type.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export interface SkuInfo {
2+
name: string
3+
id: number
4+
active: boolean
5+
disable: boolean
6+
[props: string]: any
7+
}

0 commit comments

Comments
 (0)