Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qianlong66
uni-app
提交
0aba5c86
U
uni-app
项目概览
qianlong66
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0aba5c86
编写于
5月 11, 2022
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
47316adf
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
8 deletion
+16
-8
packages/uni-app-plus/dist/style.css
packages/uni-app-plus/dist/style.css
+1
-1
packages/uni-app-plus/dist/uni-app-view.umd.js
packages/uni-app-plus/dist/uni-app-view.umd.js
+3
-3
packages/uni-h5/dist/uni-h5.cjs.js
packages/uni-h5/dist/uni-h5.cjs.js
+6
-2
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+6
-2
未找到文件。
packages/uni-app-plus/dist/style.css
浏览文件 @
0aba5c86
此差异已折叠。
点击以展开。
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
0aba5c86
此差异已折叠。
点击以展开。
packages/uni-h5/dist/uni-h5.cjs.js
浏览文件 @
0aba5c86
...
@@ -6474,6 +6474,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -6474,6 +6474,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
emit
:
emit2
emit
:
emit2
})
{
})
{
const
rootRef
=
vue
.
ref
(
null
);
const
rootRef
=
vue
.
ref
(
null
);
const
wrapperRef
=
vue
.
ref
(
null
);
const
{
const
{
fieldRef
,
fieldRef
,
state
,
state
,
...
@@ -6488,6 +6489,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -6488,6 +6489,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
vue
.
watch
(()
=>
heightRef
.
value
,
(
height
)
=>
{
vue
.
watch
(()
=>
heightRef
.
value
,
(
height
)
=>
{
const
el
=
rootRef
.
value
;
const
el
=
rootRef
.
value
;
const
lineEl
=
lineRef
.
value
;
const
lineEl
=
lineRef
.
value
;
const
wrapper2
=
wrapperRef
.
value
;
let
lineHeight
=
parseFloat
(
getComputedStyle
(
el
).
lineHeight
);
let
lineHeight
=
parseFloat
(
getComputedStyle
(
el
).
lineHeight
);
if
(
isNaN
(
lineHeight
))
{
if
(
isNaN
(
lineHeight
))
{
lineHeight
=
lineEl
.
offsetHeight
;
lineHeight
=
lineEl
.
offsetHeight
;
...
@@ -6499,7 +6501,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -6499,7 +6501,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
lineCount
lineCount
});
});
if
(
props2
.
autoHeight
)
{
if
(
props2
.
autoHeight
)
{
el
.
style
.
height
=
height
+
"
px
"
;
el
.
style
.
height
=
"
auto
"
;
wrapper2
.
style
.
height
=
height
+
"
px
"
;
}
}
});
});
function
onResize
({
function
onResize
({
...
@@ -6564,6 +6567,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -6564,6 +6567,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
return
vue
.
createVNode
(
"
uni-textarea
"
,
{
return
vue
.
createVNode
(
"
uni-textarea
"
,
{
"
ref
"
:
rootRef
"
ref
"
:
rootRef
},
[
vue
.
createVNode
(
"
div
"
,
{
},
[
vue
.
createVNode
(
"
div
"
,
{
"
ref
"
:
wrapperRef
,
"
class
"
:
"
uni-textarea-wrapper
"
"
class
"
:
"
uni-textarea-wrapper
"
},
[
vue
.
withDirectives
(
vue
.
createVNode
(
"
div
"
,
vue
.
mergeProps
(
scopedAttrsState
.
attrs
,
{
},
[
vue
.
withDirectives
(
vue
.
createVNode
(
"
div
"
,
vue
.
mergeProps
(
scopedAttrsState
.
attrs
,
{
"
style
"
:
props2
.
placeholderStyle
,
"
style
"
:
props2
.
placeholderStyle
,
...
@@ -6580,7 +6584,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -6580,7 +6584,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
"
action
"
:
""
,
"
action
"
:
""
,
"
onSubmit
"
:
()
=>
false
,
"
onSubmit
"
:
()
=>
false
,
"
class
"
:
"
uni-input-form
"
"
class
"
:
"
uni-input-form
"
},
[
textareaNode
],
40
,
[
"
onSubmit
"
])
:
textareaNode
])],
512
);
},
[
textareaNode
],
40
,
[
"
onSubmit
"
])
:
textareaNode
]
,
512
)],
512
);
};
};
}
}
});
});
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
0aba5c86
...
@@ -13475,6 +13475,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -13475,6 +13475,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
emit: emit2
emit: emit2
}) {
}) {
const rootRef = ref(null);
const rootRef = ref(null);
const wrapperRef = ref(null);
const {
const {
fieldRef,
fieldRef,
state: state2,
state: state2,
...
@@ -13489,6 +13490,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -13489,6 +13490,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
watch(() => heightRef.value, (height) => {
watch(() => heightRef.value, (height) => {
const el = rootRef.value;
const el = rootRef.value;
const lineEl = lineRef.value;
const lineEl = lineRef.value;
const wrapper2 = wrapperRef.value;
let lineHeight = parseFloat(getComputedStyle(el).lineHeight);
let lineHeight = parseFloat(getComputedStyle(el).lineHeight);
if (isNaN(lineHeight)) {
if (isNaN(lineHeight)) {
lineHeight = lineEl.offsetHeight;
lineHeight = lineEl.offsetHeight;
...
@@ -13500,7 +13502,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -13500,7 +13502,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
lineCount
lineCount
});
});
if (props2.autoHeight) {
if (props2.autoHeight) {
el.style.height = height + "px";
el.style.height = "auto";
wrapper2.style.height = height + "px";
}
}
});
});
function onResize2({
function onResize2({
...
@@ -13568,6 +13571,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -13568,6 +13571,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
return createVNode("uni-textarea", {
return createVNode("uni-textarea", {
"ref": rootRef
"ref": rootRef
}, [createVNode("div", {
}, [createVNode("div", {
"ref": wrapperRef,
"class": "uni-textarea-wrapper"
"class": "uni-textarea-wrapper"
}, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, {
}, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, {
"style": props2.placeholderStyle,
"style": props2.placeholderStyle,
...
@@ -13584,7 +13588,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
...
@@ -13584,7 +13588,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
"action": "",
"action": "",
"onSubmit": () => false,
"onSubmit": () => false,
"class": "uni-input-form"
"class": "uni-input-form"
}, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512);
}, [textareaNode], 40, ["onSubmit"]) : textareaNode]
, 512
)], 512);
};
};
}
}
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录