sync: 对齐小程序 v1.0.2 生产代码并脱敏
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
diff --git a/components/wd-button/wd-button.vue b/components/wd-button/wd-button.vue
|
||||
index 8b2610d90c8ebe78e2726179bb83f2b688ec0d96..c25b26965ccfb9470cc3c2ab9e3b2a1576c3220d 100644
|
||||
--- a/components/wd-button/wd-button.vue
|
||||
+++ b/components/wd-button/wd-button.vue
|
||||
@@ -18,7 +18,7 @@
|
||||
]"
|
||||
:hover-start-time="hoverStartTime"
|
||||
:hover-stay-time="hoverStayTime"
|
||||
- :open-type="openTypeValue"
|
||||
+ :open-type="openTypeValue as UniHelper.ButtonOpenType"
|
||||
:send-message-title="sendMessageTitle"
|
||||
:send-message-path="sendMessagePath"
|
||||
:send-message-img="sendMessageImg"
|
||||
diff --git a/components/wd-fab/types.ts b/components/wd-fab/types.ts
|
||||
index 50ca94f1a95a54c95fe68d9ed3535b45f1e36bcc..57b5ceb1143a0e9385cc280fe8054ed87f255807 100644
|
||||
--- a/components/wd-fab/types.ts
|
||||
+++ b/components/wd-fab/types.ts
|
||||
@@ -87,7 +87,7 @@ export const fabProps = {
|
||||
*/
|
||||
gap: {
|
||||
type: Object as PropType<FabGap>,
|
||||
- default: () => ({})
|
||||
+ default: (): FabGap => ({})
|
||||
},
|
||||
/**
|
||||
* 点击时是否展开菜单
|
||||
diff --git a/components/wd-swiper/wd-swiper.vue b/components/wd-swiper/wd-swiper.vue
|
||||
index c662e565171dad9c350b7215dddd3e8fc11320ab..54a5260a40ed1d6554a7e1b2158f94d8598b1c10 100644
|
||||
--- a/components/wd-swiper/wd-swiper.vue
|
||||
+++ b/components/wd-swiper/wd-swiper.vue
|
||||
@@ -158,9 +158,9 @@ const swiperIndicator = computed(() => {
|
||||
indicatorPosition: indicatorPosition || 'bottom'
|
||||
}
|
||||
if (isObj(indicator)) {
|
||||
- swiperIndicator.type = indicator.type || 'dots'
|
||||
- swiperIndicator.minShowNum = indicator.minShowNum || 2
|
||||
- swiperIndicator.showControls = indicator.showControls || false
|
||||
+ swiperIndicator.type = (indicator as Partial<SwiperNavProps>).type || 'dots'
|
||||
+ swiperIndicator.minShowNum = (indicator as Partial<SwiperNavProps>).minShowNum || 2
|
||||
+ swiperIndicator.showControls = (indicator as Partial<SwiperNavProps>).showControls || false
|
||||
}
|
||||
return swiperIndicator
|
||||
})
|
||||
diff --git a/components/wd-tour/wd-tour.vue b/components/wd-tour/wd-tour.vue
|
||||
index d1c6e895a819a4e15178930c3869a7034d741887..2eacba3bb4b20621d94465d17a94d88ccea6195e 100644
|
||||
--- a/components/wd-tour/wd-tour.vue
|
||||
+++ b/components/wd-tour/wd-tour.vue
|
||||
@@ -69,7 +69,7 @@ export default {
|
||||
<script lang="ts" setup>
|
||||
import { ref, computed, watch, nextTick, type CSSProperties } from 'vue'
|
||||
import { addUnit, getRect, getSystemInfo, isDef, objToStyle } from '../../common/util'
|
||||
-import { tourProps, type TourEmits, type TourExpose } from './types'
|
||||
+import { tourProps, type TourEmits, type TourExpose, type TourStep } from './types'
|
||||
import { useRaf } from '../../composables/useRaf'
|
||||
import { useTranslate } from '../../composables/useTranslate'
|
||||
import wdButton from '../wd-button/wd-button.vue'
|
||||
@@ -122,7 +122,7 @@ const highlightClass = computed(() => {
|
||||
})
|
||||
|
||||
// 计算属性
|
||||
-const currentStep = computed(() => {
|
||||
+const currentStep = computed<Partial<TourStep>>(() => {
|
||||
return props.steps[currentIndex.value] || {}
|
||||
})
|
||||
// 提取公共的默认样式函数
|
||||
diff --git a/composables/useUpload.ts b/composables/useUpload.ts
|
||||
index acad05a461562cb197299623100371280d559918..83b02be95ebb380b8d1cd9f03a742a8727ece502 100644
|
||||
--- a/composables/useUpload.ts
|
||||
+++ b/composables/useUpload.ts
|
||||
@@ -174,7 +174,7 @@ export function useUpload(): UseUploadReturn {
|
||||
path: item.path || '',
|
||||
name: item.name || '',
|
||||
size: item.size,
|
||||
- type: 'image',
|
||||
+ type: 'image' as const,
|
||||
thumb: item.path || ''
|
||||
}))
|
||||
}
|
||||
@@ -183,7 +183,7 @@ export function useUpload(): UseUploadReturn {
|
||||
path: (res.tempFiles as any).path || '',
|
||||
name: (res.tempFiles as any).name || '',
|
||||
size: (res.tempFiles as any).size,
|
||||
- type: 'image',
|
||||
+ type: 'image' as const,
|
||||
thumb: (res.tempFiles as any).path || ''
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user