Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
我本凡人 一念云泥
uni-app
提交
edd7281d
uni-app
项目概览
我本凡人 一念云泥
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
edd7281d
编写于
1月 13, 2020
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(v3): dataset
上级
cb4c0b87
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
22 deletion
+29
-22
packages/uni-app-plus/dist/index.v3.js
packages/uni-app-plus/dist/index.v3.js
+23
-21
packages/uni-app-plus/dist/service.runtime.esm.js
packages/uni-app-plus/dist/service.runtime.esm.js
+6
-1
未找到文件。
packages/uni-app-plus/dist/index.v3.js
浏览文件 @
edd7281d
...
...
@@ -2328,7 +2328,7 @@ var serviceContext = (function () {
}
else
if
(
res
.
errMsg
.
indexOf
(
'
:cancel
'
)
!==
-
1
)
{
res
.
errMsg
=
apiName
+
'
:cancel
'
;
}
else
if
(
res
.
errMsg
.
indexOf
(
'
:fail
'
)
!==
-
1
)
{
res
.
errMsg
=
apiName
+
'
:fail
'
;
res
.
errMsg
=
apiName
+
'
:fail
'
+
res
.
errMsg
.
substr
(
res
.
errMsg
.
indexOf
(
'
'
))
;
}
const
errMsg
=
res
.
errMsg
;
...
...
@@ -6204,7 +6204,7 @@ var serviceContext = (function () {
hasContentType
=
true
;
headers
[
'
Content-Type
'
]
=
header
[
name
];
// TODO 需要重构
if
(
method
===
'
POST
'
&&
header
[
name
].
indexOf
(
'
application/x-www-form-urlencoded
'
)
===
0
)
{
if
(
method
!==
'
GET
'
&&
header
[
name
].
indexOf
(
'
application/x-www-form-urlencoded
'
)
===
0
&&
typeof
data
!==
'
string
'
&&
!
(
data
instanceof
ArrayBuffer
)
)
{
let
bodyArray
=
[];
for
(
let
key
in
data
)
{
if
(
data
.
hasOwnProperty
(
key
))
{
...
...
@@ -6275,7 +6275,7 @@ var serviceContext = (function () {
requestTaskId
,
state
:
'
fail
'
,
statusCode
,
errMsg
:
'
abort
'
errMsg
:
'
abort
statusCode:
'
+
statusCode
});
}
});
...
...
@@ -10154,36 +10154,38 @@ var serviceContext = (function () {
invokeMethod
(
'
operateMapPlayer
'
,
mapId
,
pageVm
,
type
,
data
);
}
UniServiceJSBridge
.
subscribe
(
'
onMapMethodCallback
'
,
({
callbackId
,
data
})
=>
{
callback
.
invoke
(
callbackId
,
data
);
});
const
methods
=
[
'
getCenterLocation
'
,
'
translateMarker
'
,
'
getScale
'
,
'
getRegion
'
];
class
MapContext
{
constructor
(
id
,
pageVm
)
{
this
.
id
=
id
;
this
.
pageVm
=
pageVm
;
}
getCenterLocation
(
args
)
{
operateMapPlayer$3
(
this
.
id
,
this
.
pageVm
,
'
getCenterLocation
'
,
args
);
}
moveToLocation
()
{
operateMapPlayer$3
(
this
.
id
,
this
.
pageVm
,
'
moveToLocation
'
);
}
translateMarker
(
args
)
{
operateMapPlayer$3
(
this
.
id
,
this
.
pageVm
,
'
translateMarker
'
,
args
);
}
includePoints
(
args
)
{
operateMapPlayer$3
(
this
.
id
,
this
.
pageVm
,
'
includePoints
'
,
args
);
}
}
getRegion
(
args
)
{
operateMapPlayer$3
(
this
.
id
,
this
.
pageVm
,
'
getRegion
'
,
args
);
}
getScale
(
args
)
{
operateMapPlayer$3
(
this
.
id
,
this
.
pageVm
,
'
getScale
'
,
args
);
}
}
methods
.
forEach
(
function
(
method
)
{
MapContext
.
prototype
[
method
]
=
callback
.
warp
(
function
(
options
,
callbackId
)
{
operateMapPlayer$3
(
this
.
id
,
this
.
pageVm
,
method
,
{
options
,
callbackId
}
);
}
);
}
);
function
createMapContext$1
(
id
,
context
)
{
if
(
context
)
{
...
...
@@ -10277,7 +10279,7 @@ var serviceContext = (function () {
callback
.
invoke
(
callbackId
,
data
);
});
const
methods
=
[
'
insertDivider
'
,
'
insertImage
'
,
'
insertText
'
,
'
setContents
'
,
'
getContents
'
,
'
clear
'
,
'
removeFormat
'
,
'
undo
'
,
'
redo
'
];
const
methods
$1
=
[
'
insertDivider
'
,
'
insertImage
'
,
'
insertText
'
,
'
setContents
'
,
'
getContents
'
,
'
clear
'
,
'
removeFormat
'
,
'
undo
'
,
'
redo
'
];
class
EditorContext
{
constructor
(
id
,
pageId
)
{
...
...
@@ -10294,7 +10296,7 @@ var serviceContext = (function () {
}
}
methods
.
forEach
(
function
(
method
)
{
methods
$1
.
forEach
(
function
(
method
)
{
EditorContext
.
prototype
[
method
]
=
callback
.
warp
(
function
(
options
,
callbackId
)
{
operateEditor
(
this
.
id
,
this
.
pageId
,
method
,
{
options
,
...
...
packages/uni-app-plus/dist/service.runtime.esm.js
浏览文件 @
edd7281d
...
...
@@ -6693,7 +6693,12 @@ function parseDataset(attrs) {
var
dataset
=
Object
.
create
(
null
);
Object
.
keys
(
attrs
).
forEach
(
function
(
name
)
{
if
(
name
.
indexOf
(
'
data-
'
)
===
0
)
{
dataset
[
camelize
(
name
.
replace
(
'
data-
'
,
''
))]
=
JSON
.
parse
(
attrs
[
name
]);
var
camelizeName
=
camelize
(
name
.
replace
(
'
data-
'
,
''
));
try
{
dataset
[
camelizeName
]
=
JSON
.
parse
(
attrs
[
name
]);
}
catch
(
e
)
{
dataset
[
camelizeName
]
=
attrs
[
name
];
}
}
});
return
dataset
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录