Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
56ff1c98
U
uni-app
项目概览
DCloud
/
uni-app
6 个月 前同步成功
通知
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看板
提交
56ff1c98
编写于
2月 07, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(app): nvue
上级
7cd502ff
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
52 addition
and
39 deletion
+52
-39
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
+18
-13
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
+18
-13
packages/uni-app-vue/lib/nvue.runtime.esm.js
packages/uni-app-vue/lib/nvue.runtime.esm.js
+16
-13
未找到文件。
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
浏览文件 @
56ff1c98
...
...
@@ -11015,7 +11015,10 @@ export function nvueFactory(exports, document) {
styles
.
push
(
appContext
.
provides
.
__appStyles
);
}
type
.
styles
.
forEach
(
style
=>
styles
.
push
(
style
));
if
(
isArray
(
type
.
styles
))
{
type
.
styles
.
forEach
(
style
=>
styles
.
push
(
style
));
}
type
.
__styles
=
useCssStyles
(
styles
);
}
...
...
@@ -11038,13 +11041,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
],
...
...
@@ -11080,16 +11083,18 @@ export function nvueFactory(exports, document) {
var
opts
=
CLASS_AND_STYLES
[
el
.
type
];
if
(
opts
)
{
if
(
opts
[
'
class
'
].
indexOf
(
key
)
!==
-
1
)
{
return
[
camelize
(
key
),
parseStylesheet
(
instance
)[
value
]
||
{}];
var
camelized
=
camelize
(
key
);
if
(
opts
[
'
class
'
].
indexOf
(
camelized
)
>
-
1
)
{
return
[
camelized
,
parseStylesheet
(
instance
)[
value
]
||
{}];
}
if
(
opts
[
'
style
'
].
indexOf
(
key
)
!==
-
1
)
{
if
(
opts
[
'
style
'
].
indexOf
(
key
)
>
-
1
)
{
if
(
isString
(
value
))
{
return
[
camelize
(
key
)
,
parseStringStyle
(
value
)];
return
[
camelize
d
,
parseStringStyle
(
value
)];
}
return
[
camelize
(
key
)
,
normalizeStyle
(
value
)];
return
[
camelize
d
,
normalizeStyle
(
value
)];
}
}
...
...
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
浏览文件 @
56ff1c98
...
...
@@ -9190,7 +9190,10 @@ export function nvueFactory(exports, document) {
styles
.
push
(
appContext
.
provides
.
__appStyles
);
}
type
.
styles
.
forEach
(
style
=>
styles
.
push
(
style
));
if
(
isArray
(
type
.
styles
))
{
type
.
styles
.
forEach
(
style
=>
styles
.
push
(
style
));
}
type
.
__styles
=
useCssStyles
(
styles
);
}
...
...
@@ -9213,13 +9216,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
],
...
...
@@ -9255,16 +9258,18 @@ export function nvueFactory(exports, document) {
var
opts
=
CLASS_AND_STYLES
[
el
.
type
];
if
(
opts
)
{
if
(
opts
[
'
class
'
].
indexOf
(
key
)
!==
-
1
)
{
return
[
camelize
(
key
),
parseStylesheet
(
instance
)[
value
]
||
{}];
var
camelized
=
camelize
(
key
);
if
(
opts
[
'
class
'
].
indexOf
(
camelized
)
>
-
1
)
{
return
[
camelized
,
parseStylesheet
(
instance
)[
value
]
||
{}];
}
if
(
opts
[
'
style
'
].
indexOf
(
key
)
!==
-
1
)
{
if
(
opts
[
'
style
'
].
indexOf
(
key
)
>
-
1
)
{
if
(
isString
(
value
))
{
return
[
camelize
(
key
)
,
parseStringStyle
(
value
)];
return
[
camelize
d
,
parseStringStyle
(
value
)];
}
return
[
camelize
(
key
)
,
normalizeStyle
(
value
)];
return
[
camelize
d
,
normalizeStyle
(
value
)];
}
}
...
...
packages/uni-app-vue/lib/nvue.runtime.esm.js
浏览文件 @
56ff1c98
...
...
@@ -8897,7 +8897,9 @@ function parseStylesheet({ type, vnode: { appContext } }) {
if
(
appContext
)
{
styles
.
push
(
appContext
.
provides
.
__appStyles
);
}
type
.
styles
.
forEach
(
style
=>
styles
.
push
(
style
));
if
(
isArray
(
type
.
styles
))
{
type
.
styles
.
forEach
(
style
=>
styles
.
push
(
style
));
}
type
.
__styles
=
useCssStyles
(
styles
);
}
return
type
.
__styles
;
...
...
@@ -8916,13 +8918,13 @@ function patchAttr(el, key, value, instance = null) {
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
],
...
...
@@ -8955,14 +8957,15 @@ function transformAttr(el, key, value, instance) {
}
const
opts
=
CLASS_AND_STYLES
[
el
.
type
];
if
(
opts
)
{
if
(
opts
[
'
class
'
].
indexOf
(
key
)
!==
-
1
)
{
return
[
camelize
(
key
),
parseStylesheet
(
instance
)[
value
]
||
{}];
const
camelized
=
camelize
(
key
);
if
(
opts
[
'
class
'
].
indexOf
(
camelized
)
>
-
1
)
{
return
[
camelized
,
parseStylesheet
(
instance
)[
value
]
||
{}];
}
if
(
opts
[
'
style
'
].
indexOf
(
key
)
!==
-
1
)
{
if
(
opts
[
'
style
'
].
indexOf
(
key
)
>
-
1
)
{
if
(
isString
(
value
))
{
return
[
camelize
(
key
)
,
parseStringStyle
(
value
)];
return
[
camelize
d
,
parseStringStyle
(
value
)];
}
return
[
camelize
(
key
)
,
normalizeStyle
(
value
)];
return
[
camelize
d
,
normalizeStyle
(
value
)];
}
}
return
[
key
,
value
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录