Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
1b22ba52
U
uni-app
项目概览
DCloud
/
uni-app
通知
699
Star
38703
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1b22ba52
编写于
1月 17, 2024
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
3c41c635
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
13 deletion
+19
-13
packages/uni-h5/dist-x/uni-h5.cjs.js
packages/uni-h5/dist-x/uni-h5.cjs.js
+3
-1
packages/uni-h5/dist-x/uni-h5.es.js
packages/uni-h5/dist-x/uni-h5.es.js
+10
-10
packages/uni-h5/dist/uni-h5.cjs.js
packages/uni-h5/dist/uni-h5.cjs.js
+2
-0
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+2
-0
packages/uni-shared/dist/uni-shared.d.ts
packages/uni-shared/dist/uni-shared.d.ts
+2
-2
未找到文件。
packages/uni-h5/dist-x/uni-h5.cjs.js
浏览文件 @
1b22ba52
...
...
@@ -2554,6 +2554,7 @@ const index$v = /* @__PURE__ */ defineBuiltInComponent({
});
function
useCheckboxInject
(
checkboxChecked
,
checkboxValue
,
reset
)
{
const
field
=
vue
.
computed
(()
=>
({
// @ts-ignore
checkboxChecked
:
Boolean
(
checkboxChecked
.
value
),
value
:
checkboxValue
.
value
}));
...
...
@@ -5579,6 +5580,7 @@ const index$m = /* @__PURE__ */ defineBuiltInComponent({
function
useRadioInject
(
radioChecked
,
radioValue
,
reset
)
{
const
field
=
vue
.
computed
({
get
:
()
=>
({
// @ts-ignore
radioChecked
:
Boolean
(
radioChecked
.
value
),
value
:
radioValue
.
value
}),
...
...
@@ -6310,7 +6312,7 @@ class UniSliderElement extends UniElement {
__publicField
(
this
,
"
_initialValue
"
,
0
);
}
init
()
{
this
.
htmlSlider
=
this
.
querySelector
(
"
.uni-slider-brower-input-range
"
);
this
.
htmlSlider
=
this
.
querySelector
(
"
.uni-slider-brow
s
er-input-range
"
);
this
.
trackValue
=
this
.
querySelector
(
"
.uni-slider-track-value
"
);
this
.
thumbValue
=
this
.
querySelector
(
"
.uni-slider-thumb-value
"
);
this
.
inputValue
=
this
.
querySelector
(
"
.uni-slider-value
"
);
...
...
packages/uni-h5/dist-x/uni-h5.es.js
浏览文件 @
1b22ba52
...
...
@@ -7916,7 +7916,7 @@ const index$r = /* @__PURE__ */ defineBuiltInComponent({
const {
uniCheckGroup,
uniLabel
} = useCheckboxInject(checkboxChecked, checkboxValue, reset);
} = useCheckboxInject(
rootRef,
checkboxChecked, checkboxValue, reset);
const _onClick = ($event) => {
if (props2.disabled) {
return;
...
...
@@ -7977,9 +7977,9 @@ const index$r = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
function useCheckboxInject(checkboxChecked, checkboxValue, reset) {
function useCheckboxInject(
rootRef,
checkboxChecked, checkboxValue, reset) {
const field = computed(() => ({
checkboxChecked:
Boolean(checkboxChecked.value)
,
checkboxChecked:
rootRef.value.checked
,
value: checkboxValue.value
}));
const formField = {
...
...
@@ -12964,7 +12964,7 @@ const index$k = /* @__PURE__ */ defineBuiltInComponent({
uniCheckGroup,
uniLabel,
field
} = useRadioInject(radioChecked, radioValue, reset);
} = useRadioInject(r
ootRef, r
adioChecked, radioValue, reset);
const _onClick = ($event) => {
if (props2.disabled || radioChecked.value) {
return;
...
...
@@ -13025,10 +13025,10 @@ const index$k = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
function useRadioInject(radioChecked, radioValue, reset) {
function useRadioInject(r
ootRef, r
adioChecked, radioValue, reset) {
const field = computed({
get: () => ({
radioChecked:
Boolean(radioChecked.value)
,
radioChecked:
rootRef.value.checked
,
value: radioValue.value
}),
set: ({
...
...
@@ -13963,7 +13963,7 @@ class UniSliderElement extends UniElement {
__publicField(this, "_initialValue", 0);
}
init() {
this.htmlSlider = this.querySelector(".uni-slider-brower-input-range");
this.htmlSlider = this.querySelector(".uni-slider-brow
s
er-input-range");
this.trackValue = this.querySelector(".uni-slider-track-value");
this.thumbValue = this.querySelector(".uni-slider-thumb-value");
this.inputValue = this.querySelector(".uni-slider-value");
...
...
@@ -14976,7 +14976,7 @@ const index$i = /* @__PURE__ */ defineBuiltInComponent({
}) {
const rootRef = ref(null);
const switchChecked = ref(props2.checked);
const uniLabel = useSwitchInject(props2, switchChecked);
const uniLabel = useSwitchInject(
rootRef,
props2, switchChecked);
const trigger = useCustomEvent(rootRef, emit2);
watch(() => props2.checked, (val) => {
switchChecked.value = val;
...
...
@@ -15043,7 +15043,7 @@ const index$i = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
function useSwitchInject(props2, switchChecked) {
function useSwitchInject(
rootRef,
props2, switchChecked) {
const initialCheckedValue = props2.checked;
const uniForm = inject(uniFormKey, false);
const uniLabel = inject(uniLabelKey, false);
...
...
@@ -15052,7 +15052,7 @@ function useSwitchInject(props2, switchChecked) {
const data = ["", null];
if (props2.name) {
data[0] = props2.name;
data[1] =
switchChecked.value
;
data[1] =
rootRef.value.checked
;
}
return data;
},
...
...
packages/uni-h5/dist/uni-h5.cjs.js
浏览文件 @
1b22ba52
...
...
@@ -2504,6 +2504,7 @@ const index$x = /* @__PURE__ */ defineBuiltInComponent({
});
function
useCheckboxInject
(
checkboxChecked
,
checkboxValue
,
reset
)
{
const
field
=
vue
.
computed
(()
=>
({
// @ts-ignore
checkboxChecked
:
Boolean
(
checkboxChecked
.
value
),
value
:
checkboxValue
.
value
}));
...
...
@@ -5529,6 +5530,7 @@ const index$o = /* @__PURE__ */ defineBuiltInComponent({
function
useRadioInject
(
radioChecked
,
radioValue
,
reset
)
{
const
field
=
vue
.
computed
({
get
:
()
=>
({
// @ts-ignore
radioChecked
:
Boolean
(
radioChecked
.
value
),
value
:
radioValue
.
value
}),
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
1b22ba52
...
...
@@ -7965,6 +7965,7 @@ const index$t = /* @__PURE__ */ defineBuiltInComponent({
});
function useCheckboxInject(checkboxChecked, checkboxValue, reset) {
const field = computed(() => ({
// @ts-ignore
checkboxChecked: Boolean(checkboxChecked.value),
value: checkboxValue.value
}));
...
...
@@ -12812,6 +12813,7 @@ const index$m = /* @__PURE__ */ defineBuiltInComponent({
function useRadioInject(radioChecked, radioValue, reset) {
const field = computed({
get: () => ({
// @ts-ignore
radioChecked: Boolean(radioChecked.value),
value: radioValue.value
}),
...
...
packages/uni-shared/dist/uni-shared.d.ts
浏览文件 @
1b22ba52
...
...
@@ -257,7 +257,7 @@ Partial<UniNodeJSON | UniNodeJSONMinify>?
export
declare
const
invokeArrayFns
:
(
fns
:
Function
[],
arg
?:
any
)
=>
any
;
export
declare
const
invokeCreateErrorHandler
:
(
app
:
App
,
createErrorHandler
:
(
app
:
App
)
=>
App
[
'
config
'
][
'
errorHandler
'
])
=>
((
err
:
unknown
,
instance
:
ComponentPublicInstance_2
<
{},
{},
{},
{},
{},
{},
{},
{},
false
,
ComponentOptionsBase_2
<
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
{},
{},
string
,
{}
>
,
{}
,
{}
>
|
null
,
info
:
string
)
=>
void
)
|
undefined
;
export
declare
const
invokeCreateErrorHandler
:
(
app
:
App
,
createErrorHandler
:
(
app
:
App
)
=>
App
[
'
config
'
][
'
errorHandler
'
])
=>
((
err
:
unknown
,
instance
:
ComponentPublicInstance_2
<
{},
{},
{},
{},
{},
{},
{},
{},
false
,
ComponentOptionsBase_2
<
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
{},
{},
string
>
,
{}
>
|
null
,
info
:
string
)
=>
void
)
|
undefined
;
export
declare
function
invokeCreateVueAppHook
(
app
:
App
):
void
;
...
...
@@ -627,7 +627,7 @@ export declare function resolveOwnerEl(instance: ComponentInternalInstance, mult
export
declare
function
resolveOwnerEl
(
instance
:
ComponentInternalInstance
):
RendererNode
|
null
;
export
declare
function
resolveOwnerVm
(
vm
:
ComponentInternalInstance
):
ComponentPublicInstance
<
{},
{},
{},
{},
{},
{},
{},
{},
false
,
ComponentOptionsBase
<
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
{},
{},
string
,
{}
>
,
{}
,
{}
>
|
undefined
;
export
declare
function
resolveOwnerVm
(
vm
:
ComponentInternalInstance
):
ComponentPublicInstance
<
{},
{},
{},
{},
{},
{},
{},
{},
false
,
ComponentOptionsBase
<
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
{},
{},
string
>
,
{}
>
|
undefined
;
export
declare
const
RESPONSIVE_MIN_WIDTH
=
768
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录