Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
0adcf0aa
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6132
Star
98
Fork
169
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
0adcf0aa
编写于
1月 22, 2024
作者:
杜庆泉
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://gitcode.net/dcloud/hello-uni-app-x
into dev
上级
f8a46ff1
ff8ad6f0
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
72 addition
and
70 deletion
+72
-70
components/boolean-data/boolean-data.vue
components/boolean-data/boolean-data.vue
+1
-1
components/enum-data/enum-data.vue
components/enum-data/enum-data.vue
+3
-4
pages/API/action-sheet/action-sheet.uvue
pages/API/action-sheet/action-sheet.uvue
+4
-4
pages/API/choose-image/choose-image.uvue
pages/API/choose-image/choose-image.uvue
+2
-2
pages/API/get-location/get-location.uvue
pages/API/get-location/get-location.uvue
+4
-4
pages/API/loading/loading.uvue
pages/API/loading/loading.uvue
+2
-2
pages/API/modal/modal.uvue
pages/API/modal/modal.uvue
+6
-6
pages/API/preview-image/preview-image.uvue
pages/API/preview-image/preview-image.uvue
+2
-2
pages/component/checkbox/checkbox.uvue
pages/component/checkbox/checkbox.uvue
+2
-2
pages/component/form/form.uvue
pages/component/form/form.uvue
+2
-2
pages/component/general-event/transition-event.uvue
pages/component/general-event/transition-event.uvue
+16
-13
pages/component/input/input.uvue
pages/component/input/input.uvue
+2
-2
pages/component/picker-view/picker-view.uvue
pages/component/picker-view/picker-view.uvue
+1
-1
pages/component/progress/progress.uvue
pages/component/progress/progress.uvue
+1
-1
pages/component/radio/radio.uvue
pages/component/radio/radio.uvue
+2
-2
pages/component/scroll-view/scroll-view-props.uvue
pages/component/scroll-view/scroll-view-props.uvue
+2
-2
pages/component/slider-100/slider-100.uvue
pages/component/slider-100/slider-100.uvue
+2
-2
pages/component/slider/slider.uvue
pages/component/slider/slider.uvue
+1
-1
pages/component/swiper/swiper.uvue
pages/component/swiper/swiper.uvue
+13
-13
pages/component/switch/switch.uvue
pages/component/switch/switch.uvue
+2
-2
pages/component/unicloud-db-contacts/add.uvue
pages/component/unicloud-db-contacts/add.uvue
+1
-1
pages/component/unicloud-db-contacts/edit.uvue
pages/component/unicloud-db-contacts/edit.uvue
+1
-1
未找到文件。
components/boolean-data/boolean-data.vue
浏览文件 @
0adcf0aa
...
...
@@ -21,7 +21,7 @@
},
methods
:
{
// @ts-ignore
_change
(
e
:
SwitchChangeEvent
)
{
_change
(
e
:
Uni
SwitchChangeEvent
)
{
this
.
_checked
=
e
.
detail
.
value
;
this
.
$emit
(
'
change
'
,
this
.
_checked
)
}
...
...
components/enum-data/enum-data.vue
浏览文件 @
0adcf0aa
...
...
@@ -22,11 +22,10 @@
// @ts-ignore
_change
(
e
:
RadioGroupChangeEvent
)
{
const
selected
=
this
.
items
.
find
((
item
:
ItemType
)
:
boolean
=>
{
return
item
.
name
==
e
.
detail
.
value
return
item
.
value
.
toString
()
==
e
.
detail
.
value
})
if
(
selected
!=
null
)
{
this
.
current
=
selected
.
value
this
.
$emit
(
'
change
'
,
this
.
current
)
this
.
$emit
(
'
change
'
,
selected
.
value
)
uni
.
showToast
({
icon
:
'
none
'
,
title
:
'
当前选中:
'
+
selected
.
name
,
...
...
@@ -46,7 +45,7 @@
<view
class=
"uni-list uni-common-pl"
>
<radio-group
@
change=
"_change"
>
<radio
class=
"uni-list-cell uni-list-cell-pd radio"
v-for=
"(item, index) in items"
:key=
"item.name"
:class=
"index
<
items.length
-
1
?
'
uni-list-cell-line
'
:
''"
:value=
"item.
name"
:checked=
"index === current
"
>
:class=
"index
<
items.length
-
1
?
'
uni-list-cell-line
'
:
''"
:value=
"item.
value
"
>
{{
item
.
name
}}
</radio>
</radio-group>
...
...
pages/API/action-sheet/action-sheet.uvue
浏览文件 @
0adcf0aa
...
...
@@ -65,7 +65,7 @@
})
},
methods: {
radioChange(e : RadioGroupChangeEvent) {
radioChange(e :
Uni
RadioGroupChangeEvent) {
for (let i = 0; i < this.items.length; i++) {
if (this.items[i].value === e.detail.value) {
this.current = i;
...
...
@@ -73,13 +73,13 @@
}
}
},
itemContentLargeChange: function (e : SwitchChangeEvent) {
itemContentLargeChange: function (e :
Uni
SwitchChangeEvent) {
this.itemContentLarge = e.detail.value
},
itemColorChange: function (e : SwitchChangeEvent) {
itemColorChange: function (e :
Uni
SwitchChangeEvent) {
this.itemColorCustom = e.detail.value
},
itemNumLargeChange: function (e : SwitchChangeEvent) {
itemNumLargeChange: function (e :
Uni
SwitchChangeEvent) {
this.itemNumLargeSelect = e.detail.value
},
actionSheetTap() {
...
...
pages/API/choose-image/choose-image.uvue
浏览文件 @
0adcf0aa
...
...
@@ -171,10 +171,10 @@
})
}
},
cropResizeChange(e : SwitchChangeEvent) {
cropResizeChange(e :
Uni
SwitchChangeEvent) {
this.cropResize = e.detail.value
},
switchCrop(e : SwitchChangeEvent) {
switchCrop(e :
Uni
SwitchChangeEvent) {
this.isCrop = e.detail.value
},
removeImage(index : number) {
...
...
pages/API/get-location/get-location.uvue
浏览文件 @
0adcf0aa
...
...
@@ -63,16 +63,16 @@
}
},
methods: {
altitudeChange: function (e : SwitchChangeEvent) {
altitudeChange: function (e :
Uni
SwitchChangeEvent) {
this.altitudeSelect = e.detail.value
},
geocodeChange: function (e : SwitchChangeEvent) {
geocodeChange: function (e :
Uni
SwitchChangeEvent) {
this.geocodeSelect = e.detail.value
},
highAccuracySelectChange: function (e : SwitchChangeEvent) {
highAccuracySelectChange: function (e :
Uni
SwitchChangeEvent) {
this.isHighAccuracySelect = e.detail.value
},
radioChange(e : RadioGroupChangeEvent) {
radioChange(e :
Uni
RadioGroupChangeEvent) {
for (let i = 0; i < this.items.length; i++) {
if (this.items[i].value === e.detail.value) {
this.current = i;
...
...
pages/API/loading/loading.uvue
浏览文件 @
0adcf0aa
...
...
@@ -68,7 +68,7 @@
},
methods: {
radioChange(e : RadioGroupChangeEvent) {
radioChange(e :
Uni
RadioGroupChangeEvent) {
const selected = this.items.find((item) : boolean => {
return item.value == e.detail.value
})
...
...
@@ -76,7 +76,7 @@
this.titleSelect = selected.value
}
},
maskChange: function (e : SwitchChangeEvent) {
maskChange: function (e :
Uni
SwitchChangeEvent) {
this.maskSelect = e.detail.value
},
showLoading: function () {
...
...
pages/API/modal/modal.uvue
浏览文件 @
0adcf0aa
...
...
@@ -87,22 +87,22 @@
})
},
methods: {
showCancelChange: function (e : SwitchChangeEvent) {
showCancelChange: function (e :
Uni
SwitchChangeEvent) {
this.showCancelSelect = e.detail.value
},
cancelTextChange: function (e : SwitchChangeEvent) {
cancelTextChange: function (e :
Uni
SwitchChangeEvent) {
this.cancelTextSelect = e.detail.value
},
confirmTextChange: function (e : SwitchChangeEvent) {
confirmTextChange: function (e :
Uni
SwitchChangeEvent) {
this.confirmTextSelect = e.detail.value
},
editableChange: function (e : SwitchChangeEvent) {
editableChange: function (e :
Uni
SwitchChangeEvent) {
this.editableSelect = e.detail.value
},
placeholderTextChange: function (e : SwitchChangeEvent) {
placeholderTextChange: function (e :
Uni
SwitchChangeEvent) {
this.placeholderTextSelect = e.detail.value
},
radioChange(e : RadioGroupChangeEvent) {
radioChange(e :
Uni
RadioGroupChangeEvent) {
for (let i = 0; i < this.items.length; i++) {
if (this.items[i].value === e.detail.value) {
this.current = i;
...
...
pages/API/preview-image/preview-image.uvue
浏览文件 @
0adcf0aa
...
...
@@ -79,10 +79,10 @@
}
})
},
onIndicatorChanged(e : RadioGroupChangeEvent) {
onIndicatorChanged(e :
Uni
RadioGroupChangeEvent) {
this.currentIndicator = e.detail.value
},
onCheckboxChange(_ : CheckboxGroupChangeEvent) {
onCheckboxChange(_ :
Uni
CheckboxGroupChangeEvent) {
this.isLoop = !this.isLoop
}
}
...
...
pages/component/checkbox/checkbox.uvue
浏览文件 @
0adcf0aa
...
...
@@ -58,7 +58,7 @@
}
},
methods: {
checkboxChange: function (e : CheckboxGroupChangeEvent) {
checkboxChange: function (e :
Uni
CheckboxGroupChangeEvent) {
const selectedNames : string[] = []
this.items.forEach((item) => {
if (e.detail.value.includes(item.value)) {
...
...
@@ -70,7 +70,7 @@
title: '当前选中:' + selectedNames.join(','),
})
},
testChange: function (e : CheckboxGroupChangeEvent) {
testChange: function (e :
Uni
CheckboxGroupChangeEvent) {
this.value = e.detail.value
},
checkbox_click() { console.log("组件被点击时触发") },
...
...
pages/component/form/form.uvue
浏览文件 @
0adcf0aa
...
...
@@ -71,10 +71,10 @@
}
},
methods: {
onFormSubmit: function (e : FormSubmitEvent) {
onFormSubmit: function (e :
Uni
FormSubmitEvent) {
this.formData = e.detail.value
},
onFormReset: function (_ : FormResetEvent) {
onFormReset: function (_ :
Uni
FormResetEvent) {
this.formData = {}
}
}
...
...
pages/component/general-event/transition-event.uvue
浏览文件 @
0adcf0aa
<template>
<!-- #ifdef APP -->
<scroll-view style="flex:1;
padding: 10px;
">
<scroll-view style="flex:1;">
<!-- #endif -->
<button @click="switchBtn">{{buttonValue}}</button>
<image class="transition-transform" id="transition-transform" @transitionend="onEnd" src="/static/uni.png"></image>
<text>对图片设置transform进行旋转,在旋转完成的transitionend事件后,继续旋转</text>
<text class="adjust">对图片设置transform进行旋转,在旋转完成的transitionend事件后,继续旋转</text>
<button class="adjust" @click="switchBtn">{{buttonValue}}</button>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
...
...
@@ -52,14 +52,17 @@
</script>
<style>
.transition-transform {
width: 200px;
height: 200px;
margin: 25px auto;
border-radius: 100px;
transition-duration: 2000ms;
transition-property: transform;
transition-timing-function: linear;
transform: rotate(0deg);
}
.adjust {
margin: 10px;
}
.transition-transform {
width: 200px;
height: 200px;
margin: 25px auto;
border-radius: 100px;
transition-duration: 2000ms;
transition-property: transform;
transition-timing-function: linear;
transform: rotate(0deg);
}
</style>
pages/component/input/input.uvue
浏览文件 @
0adcf0aa
...
...
@@ -322,7 +322,7 @@
test_check_input_value() : number {
return this.onMaxLengthInputValue.length
},
changeCursorColor(event : SwitchChangeEvent) {
changeCursorColor(event :
Uni
SwitchChangeEvent) {
const checked = event.detail.value;
if (checked) {
this.cursor_color = "red"
...
...
@@ -332,7 +332,7 @@
const input = uni.getElementById<UniInputElement>("uni-input-cursor-color")
input?.focus()
},
changeHoldKeyboard(event : SwitchChangeEvent) {
changeHoldKeyboard(event :
Uni
SwitchChangeEvent) {
const checked = event.detail.value;
this.holdKeyboard = checked
}
...
...
pages/component/picker-view/picker-view.uvue
浏览文件 @
0adcf0aa
...
...
@@ -57,7 +57,7 @@
}
},
methods: {
bindChange(e : PickerViewChangeEvent) {
bindChange(e :
Uni
PickerViewChangeEvent) {
const val = e.detail.value
this.result = val
this.year = this.years[val[0]]
...
...
pages/component/progress/progress.uvue
浏览文件 @
0adcf0aa
...
...
@@ -31,7 +31,7 @@
clearProgress() {
this.pgList = [0, 0, 0, 0] as number[]
},
activeend(e : ProgressActiveendEvent) {
activeend(e :
Uni
ProgressActiveendEvent) {
this.curPercent = e.detail.curPercent
},
progress_touchstart() { console.log("手指触摸动作开始") },
...
...
pages/component/radio/radio.uvue
浏览文件 @
0adcf0aa
...
...
@@ -53,7 +53,7 @@
}
},
methods: {
radioChange(e : RadioGroupChangeEvent) {
radioChange(e :
Uni
RadioGroupChangeEvent) {
const selected = this.items.find((item) : boolean => {
return item.value == e.detail.value
})
...
...
@@ -62,7 +62,7 @@
title: '当前选中:' + selected?.name,
})
},
testChange(e : RadioGroupChangeEvent) {
testChange(e :
Uni
RadioGroupChangeEvent) {
this.value = e.detail.value
},
radio_click() { console.log("组件被点击时触发") },
...
...
pages/component/scroll-view/scroll-view-props.uvue
浏览文件 @
0adcf0aa
...
...
@@ -111,10 +111,10 @@
}
},
methods: {
handleChangeScrollLeft(e : SliderChangeEvent) {
handleChangeScrollLeft(e :
Uni
SliderChangeEvent) {
this.scrollLeft = e.detail.value;
},
handleChangeScrollTop(e : SliderChangeEvent) {
handleChangeScrollTop(e :
Uni
SliderChangeEvent) {
this.scrollTop = e.detail.value;
},
changeDirectionX() {
...
...
pages/component/slider-100/slider-100.uvue
浏览文件 @
0adcf0aa
...
...
@@ -31,10 +31,10 @@
}
},
methods: {
sliderChange(e : SliderChangeEvent) {
sliderChange(e :
Uni
SliderChangeEvent) {
this.updateSliderValue(e.detail.value)
},
sliderChanging(e : SliderChangeEvent) {
sliderChanging(e :
Uni
SliderChangeEvent) {
this.updateSliderValue(e.detail.value)
},
updateSliderValue(value : number) {
...
...
pages/component/slider/slider.uvue
浏览文件 @
0adcf0aa
...
...
@@ -21,7 +21,7 @@
};
},
methods: {
sliderChange(e : SliderChangeEvent) {
sliderChange(e :
Uni
SliderChangeEvent) {
console.log("value 发生变化:" + e.detail.value);
},
slider_click() {
...
...
pages/component/swiper/swiper.uvue
浏览文件 @
0adcf0aa
...
...
@@ -129,28 +129,28 @@
}
},
dotsChange: function (e : SwitchChangeEvent) {
dotsChange: function (e :
Uni
SwitchChangeEvent) {
this.dotsSelect = e.detail.value
},
swiperTransitionChange: function (e : SwitchChangeEvent) {
swiperTransitionChange: function (e :
Uni
SwitchChangeEvent) {
this.swiperTransitionSelect = e.detail.value
},
swiperChangeChange: function (e : SwitchChangeEvent) {
swiperChangeChange: function (e :
Uni
SwitchChangeEvent) {
this.swiperChangeSelect = e.detail.value
},
swiperAnimationfinishChange: function (e : SwitchChangeEvent) {
swiperAnimationfinishChange: function (e :
Uni
SwitchChangeEvent) {
this.swiperAnimationfinishSelect = e.detail.value
},
autoplayChange: function (e : SwitchChangeEvent) {
autoplayChange: function (e :
Uni
SwitchChangeEvent) {
this.autoplaySelect = e.detail.value
},
verticalChange: function (e : SwitchChangeEvent) {
verticalChange: function (e :
Uni
SwitchChangeEvent) {
this.verticalSelect = e.detail.value
},
disableTouchChange: function (e : SwitchChangeEvent) {
disableTouchChange: function (e :
Uni
SwitchChangeEvent) {
this.disableTouchSelect = e.detail.value
},
currentItemIdChange: function (e : SwitchChangeEvent) {
currentItemIdChange: function (e :
Uni
SwitchChangeEvent) {
this.currentItemIdSelect = e.detail.value
if (this.currentItemIdSelect) {
this.currentItemIdVal = 'C'
...
...
@@ -158,7 +158,7 @@
this.currentItemIdVal = 'A'
}
},
currentChange: function (e : SwitchChangeEvent) {
currentChange: function (e :
Uni
SwitchChangeEvent) {
this.currentSelect = e.detail.value
if (this.currentSelect) {
this.currentVal = 2
...
...
@@ -167,18 +167,18 @@
}
},
circularChange: function (e : SwitchChangeEvent) {
circularChange: function (e :
Uni
SwitchChangeEvent) {
this.circularSelect = e.detail.value
console.log(this.circularSelect)
},
reboundSelectChange: function (e : SwitchChangeEvent) {
reboundSelectChange: function (e :
Uni
SwitchChangeEvent) {
this.reboundSelect = e.detail.value
console.log(this.reboundSelect)
},
sliderChange(e : SliderChangeEvent) {
sliderChange(e :
Uni
SliderChangeEvent) {
this.intervalSelect = e.detail.value
},
indicatorColorChange(e : SwitchChangeEvent) {
indicatorColorChange(e :
Uni
SwitchChangeEvent) {
this.indicatorColorSelect = e.detail.value
if (this.indicatorColorSelect) {
// 选择了定制指示器颜色
...
...
pages/component/switch/switch.uvue
浏览文件 @
0adcf0aa
...
...
@@ -43,11 +43,11 @@
}
},
methods: {
switch1Change: function (e : SwitchChangeEvent) {
switch1Change: function (e :
Uni
SwitchChangeEvent) {
this.clickCheckedValue = e.detail.value
console.log('switch1 发生 change 事件,携带值为', e.detail.value)
},
switch2Change: function (e : SwitchChangeEvent) {
switch2Change: function (e :
Uni
SwitchChangeEvent) {
console.log('switch2 发生 change 事件,携带值为', e.detail.value)
}
}
...
...
pages/component/unicloud-db-contacts/add.uvue
浏览文件 @
0adcf0aa
...
...
@@ -47,7 +47,7 @@
this.uniCloudElement = this.$refs['udb'] as UniCloudDBElement
},
methods: {
onFormSubmit: function (e : FormSubmitEvent) {
onFormSubmit: function (e :
Uni
FormSubmitEvent) {
const formData = e.detail.value
const genderString = formData['gender'] as string
formData['gender'] = (genderString.length > 0) ? parseInt(genderString) : -1
...
...
pages/component/unicloud-db-contacts/edit.uvue
浏览文件 @
0adcf0aa
...
...
@@ -62,7 +62,7 @@
this.uniCloudElement = this.$refs['udb'] as UniCloudDBElement
},
methods: {
onFormSubmit: function (e : FormSubmitEvent) {
onFormSubmit: function (e :
Uni
FormSubmitEvent) {
const formData = e.detail.value
const genderString = formData['gender'] as string
formData['gender'] = (genderString.length > 0) ? parseInt(genderString) : -1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录