Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
798b0978
U
uni-app
项目概览
DCloud
/
uni-app
14 天 前同步成功
通知
751
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
798b0978
编写于
1月 30, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(app): nvue
上级
feb85a52
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
39 addition
and
39 deletion
+39
-39
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
+13
-13
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
+13
-13
packages/uni-app-vue/lib/nvue.runtime.esm.js
packages/uni-app-vue/lib/nvue.runtime.esm.js
+13
-13
未找到文件。
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
浏览文件 @
798b0978
...
...
@@ -11030,7 +11030,7 @@ export function nvueFactory(exports, document) {
var
instance
=
arguments
.
length
>
3
&&
arguments
[
3
]
!==
undefined
?
arguments
[
3
]
:
null
;
if
(
instance
)
{
value
=
transformAttr
(
el
,
key
,
value
,
instance
);
[
key
,
value
]
=
transformAttr
(
el
,
key
,
value
,
instance
);
}
if
(
value
==
null
)
;
else
{
...
...
@@ -11038,13 +11038,13 @@ export function nvueFactory(exports, document) {
}
}
var
ATTR_HOVER_CLASS
=
'
hover
C
lass
'
;
var
ATTR_PLACEHOLDER_CLASS
=
'
placeholder
C
lass
'
;
var
ATTR_PLACEHOLDER_STYLE
=
'
placeholder
S
tyle
'
;
var
ATTR_INDICATOR_CLASS
=
'
indicator
C
lass
'
;
var
ATTR_INDICATOR_STYLE
=
'
indicator
S
tyle
'
;
var
ATTR_MASK_CLASS
=
'
mask
C
lass
'
;
var
ATTR_MASK_STYLE
=
'
mask
S
tyle
'
;
var
ATTR_HOVER_CLASS
=
'
hover
-c
lass
'
;
var
ATTR_PLACEHOLDER_CLASS
=
'
placeholder
-c
lass
'
;
var
ATTR_PLACEHOLDER_STYLE
=
'
placeholder
-s
tyle
'
;
var
ATTR_INDICATOR_CLASS
=
'
indicator
-c
lass
'
;
var
ATTR_INDICATOR_STYLE
=
'
indicator
-s
tyle
'
;
var
ATTR_MASK_CLASS
=
'
mask
-c
lass
'
;
var
ATTR_MASK_STYLE
=
'
mask
-s
tyle
'
;
var
CLASS_AND_STYLES
=
{
view
:
{
class
:
[
ATTR_HOVER_CLASS
],
...
...
@@ -11074,26 +11074,26 @@ export function nvueFactory(exports, document) {
function
transformAttr
(
el
,
key
,
value
,
instance
)
{
if
(
!
value
)
{
return
value
;
return
[
key
,
value
]
;
}
var
opts
=
CLASS_AND_STYLES
[
el
.
type
];
if
(
opts
)
{
if
(
opts
[
'
class
'
].
indexOf
(
key
)
!==
-
1
)
{
return
parseStylesheet
(
instance
)[
value
]
||
{}
;
return
[
camelize
(
key
),
parseStylesheet
(
instance
)[
value
]
||
{}]
;
}
if
(
opts
[
'
style
'
].
indexOf
(
key
)
!==
-
1
)
{
if
(
isString
(
value
))
{
return
parseStringStyle
(
value
)
;
return
[
camelize
(
key
),
parseStringStyle
(
value
)]
;
}
return
normalizeStyle
(
value
)
;
return
[
camelize
(
key
),
normalizeStyle
(
value
)]
;
}
}
return
value
;
return
[
key
,
value
]
;
}
// compiler should normalize class + :class bindings on the same element
// into a single binding ['staticClass', dynamic]
...
...
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
浏览文件 @
798b0978
...
...
@@ -9205,7 +9205,7 @@ export function nvueFactory(exports, document) {
var
instance
=
arguments
.
length
>
3
&&
arguments
[
3
]
!==
undefined
?
arguments
[
3
]
:
null
;
if
(
instance
)
{
value
=
transformAttr
(
el
,
key
,
value
,
instance
);
[
key
,
value
]
=
transformAttr
(
el
,
key
,
value
,
instance
);
}
if
(
value
==
null
)
;
else
{
...
...
@@ -9213,13 +9213,13 @@ export function nvueFactory(exports, document) {
}
}
var
ATTR_HOVER_CLASS
=
'
hover
C
lass
'
;
var
ATTR_PLACEHOLDER_CLASS
=
'
placeholder
C
lass
'
;
var
ATTR_PLACEHOLDER_STYLE
=
'
placeholder
S
tyle
'
;
var
ATTR_INDICATOR_CLASS
=
'
indicator
C
lass
'
;
var
ATTR_INDICATOR_STYLE
=
'
indicator
S
tyle
'
;
var
ATTR_MASK_CLASS
=
'
mask
C
lass
'
;
var
ATTR_MASK_STYLE
=
'
mask
S
tyle
'
;
var
ATTR_HOVER_CLASS
=
'
hover
-c
lass
'
;
var
ATTR_PLACEHOLDER_CLASS
=
'
placeholder
-c
lass
'
;
var
ATTR_PLACEHOLDER_STYLE
=
'
placeholder
-s
tyle
'
;
var
ATTR_INDICATOR_CLASS
=
'
indicator
-c
lass
'
;
var
ATTR_INDICATOR_STYLE
=
'
indicator
-s
tyle
'
;
var
ATTR_MASK_CLASS
=
'
mask
-c
lass
'
;
var
ATTR_MASK_STYLE
=
'
mask
-s
tyle
'
;
var
CLASS_AND_STYLES
=
{
view
:
{
class
:
[
ATTR_HOVER_CLASS
],
...
...
@@ -9249,26 +9249,26 @@ export function nvueFactory(exports, document) {
function
transformAttr
(
el
,
key
,
value
,
instance
)
{
if
(
!
value
)
{
return
value
;
return
[
key
,
value
]
;
}
var
opts
=
CLASS_AND_STYLES
[
el
.
type
];
if
(
opts
)
{
if
(
opts
[
'
class
'
].
indexOf
(
key
)
!==
-
1
)
{
return
parseStylesheet
(
instance
)[
value
]
||
{}
;
return
[
camelize
(
key
),
parseStylesheet
(
instance
)[
value
]
||
{}]
;
}
if
(
opts
[
'
style
'
].
indexOf
(
key
)
!==
-
1
)
{
if
(
isString
(
value
))
{
return
parseStringStyle
(
value
)
;
return
[
camelize
(
key
),
parseStringStyle
(
value
)]
;
}
return
normalizeStyle
(
value
)
;
return
[
camelize
(
key
),
normalizeStyle
(
value
)]
;
}
}
return
value
;
return
[
key
,
value
]
;
}
// compiler should normalize class + :class bindings on the same element
// into a single binding ['staticClass', dynamic]
...
...
packages/uni-app-vue/lib/nvue.runtime.esm.js
浏览文件 @
798b0978
...
...
@@ -8909,20 +8909,20 @@ function isUndef(val) {
function
patchAttr
(
el
,
key
,
value
,
instance
=
null
)
{
if
(
instance
)
{
value
=
transformAttr
(
el
,
key
,
value
,
instance
);
[
key
,
value
]
=
transformAttr
(
el
,
key
,
value
,
instance
);
}
if
(
value
==
null
)
;
else
{
el
.
setAttr
(
key
,
value
);
}
}
const
ATTR_HOVER_CLASS
=
'
hover
C
lass
'
;
const
ATTR_PLACEHOLDER_CLASS
=
'
placeholder
C
lass
'
;
const
ATTR_PLACEHOLDER_STYLE
=
'
placeholder
S
tyle
'
;
const
ATTR_INDICATOR_CLASS
=
'
indicator
C
lass
'
;
const
ATTR_INDICATOR_STYLE
=
'
indicator
S
tyle
'
;
const
ATTR_MASK_CLASS
=
'
mask
C
lass
'
;
const
ATTR_MASK_STYLE
=
'
mask
S
tyle
'
;
const
ATTR_HOVER_CLASS
=
'
hover
-c
lass
'
;
const
ATTR_PLACEHOLDER_CLASS
=
'
placeholder
-c
lass
'
;
const
ATTR_PLACEHOLDER_STYLE
=
'
placeholder
-s
tyle
'
;
const
ATTR_INDICATOR_CLASS
=
'
indicator
-c
lass
'
;
const
ATTR_INDICATOR_STYLE
=
'
indicator
-s
tyle
'
;
const
ATTR_MASK_CLASS
=
'
mask
-c
lass
'
;
const
ATTR_MASK_STYLE
=
'
mask
-s
tyle
'
;
const
CLASS_AND_STYLES
=
{
view
:
{
class
:
[
ATTR_HOVER_CLASS
],
...
...
@@ -8951,21 +8951,21 @@ const CLASS_AND_STYLES = {
};
function
transformAttr
(
el
,
key
,
value
,
instance
)
{
if
(
!
value
)
{
return
value
;
return
[
key
,
value
]
;
}
const
opts
=
CLASS_AND_STYLES
[
el
.
type
];
if
(
opts
)
{
if
(
opts
[
'
class
'
].
indexOf
(
key
)
!==
-
1
)
{
return
parseStylesheet
(
instance
)[
value
]
||
{}
;
return
[
camelize
(
key
),
parseStylesheet
(
instance
)[
value
]
||
{}]
;
}
if
(
opts
[
'
style
'
].
indexOf
(
key
)
!==
-
1
)
{
if
(
isString
(
value
))
{
return
parseStringStyle
(
value
)
;
return
[
camelize
(
key
),
parseStringStyle
(
value
)]
;
}
return
normalizeStyle
(
value
)
;
return
[
camelize
(
key
),
normalizeStyle
(
value
)]
;
}
}
return
value
;
return
[
key
,
value
]
;
}
// compiler should normalize class + :class bindings on the same element
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录