Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小浣熊撸代码
uni-app
提交
0aff5211
U
uni-app
项目概览
小浣熊撸代码
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0aff5211
编写于
9月 02, 2019
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update weex-template-compiler
上级
c1161501
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
16 addition
and
8 deletion
+16
-8
packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js
...plugin-hbuilderx/packages/weex-template-compiler/build.js
+16
-8
未找到文件。
packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js
浏览文件 @
0aff5211
...
...
@@ -555,6 +555,7 @@ function parseHTML (html, options) {
var
splitRE
=
/
\r?\n
/g
;
var
replaceRE
=
/./g
;
var
isSpecialTag
=
makeMap
(
'
script,style,template
'
,
true
);
var
isCustomBlock
=
makeMap
(
'
wxs,filter,sjs
'
,
true
);
// fixed by xxxxxx
/**
* Parse a single-file component (*.vue) file into an SFC Descriptor Object.
...
...
@@ -611,8 +612,8 @@ function parseComponent (
cumulated
[
name
]
=
value
||
true
;
return
cumulated
},
{})
};
if
(
isSpecialTag
(
tag
))
{
};
// fixed by xxxxxx
if
(
isSpecialTag
(
tag
)
&&
!
isCustomBlock
(
currentBlock
.
attrs
.
lang
||
''
)
)
{
checkAttrs
(
currentBlock
,
attrs
);
if
(
tag
===
'
style
'
)
{
sfc
.
styles
.
push
(
currentBlock
);
...
...
@@ -669,7 +670,8 @@ function parseComponent (
return
content
.
slice
(
0
,
block
.
start
).
replace
(
replaceRE
,
'
'
)
}
else
{
var
offset
=
content
.
slice
(
0
,
block
.
start
).
split
(
splitRE
).
length
;
var
padChar
=
block
.
type
===
'
script
'
&&
!
block
.
lang
var
lang
=
block
.
attrs
&&
block
.
attrs
.
lang
;
// fixed by xxxxxx
var
padChar
=
block
.
type
===
'
script
'
&&
!
block
.
lang
&&
!
isCustomBlock
(
lang
||
''
)
?
'
//
\n
'
:
'
\n
'
;
return
Array
(
offset
).
join
(
padChar
)
...
...
@@ -2804,8 +2806,8 @@ Dep.prototype.removeSub = function removeSub (sub) {
};
Dep
.
prototype
.
depend
=
function
depend
()
{
if
(
Dep
.
target
)
{
Dep
.
target
.
addDep
(
this
);
if
(
Dep
.
SharedObject
.
target
)
{
Dep
.
SharedObject
.
target
.
addDep
(
this
);
}
};
...
...
@@ -2826,7 +2828,11 @@ Dep.prototype.notify = function notify () {
// The current target watcher being evaluated.
// This is globally unique because only one watcher
// can be evaluated at a time.
Dep
.
target
=
null
;
// fixed by xxxxxx (nvue shared vuex)
/* eslint-disable no-undef */
Dep
.
SharedObject
=
typeof
SharedObject
!==
'
undefined
'
?
SharedObject
:
{};
Dep
.
SharedObject
.
target
=
null
;
Dep
.
SharedObject
.
targetStack
=
[];
/* */
...
...
@@ -2945,7 +2951,9 @@ var Observer = function Observer (value) {
def
(
value
,
'
__ob__
'
,
this
);
if
(
Array
.
isArray
(
value
))
{
if
(
hasProto
)
{
{
protoAugment
(
value
,
arrayMethods
);
}
}
else
{
copyAugment
(
value
,
arrayMethods
,
arrayKeys
);
}
...
...
@@ -3057,7 +3065,7 @@ function defineReactive$$1 (
configurable
:
true
,
get
:
function
reactiveGetter
()
{
var
value
=
getter
?
getter
.
call
(
obj
)
:
val
;
if
(
Dep
.
target
)
{
if
(
Dep
.
SharedObject
.
target
)
{
// fixed by xxxxxx
dep
.
depend
();
if
(
childOb
)
{
childOb
.
dep
.
depend
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录