Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
genary
uni-app
提交
e37c6459
U
uni-app
项目概览
genary
/
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,发现更多精彩内容 >>
提交
e37c6459
编写于
7月 27, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
4a5fc2d6
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
578 addition
and
587 deletion
+578
-587
packages/uni-app-plus/dist/uni-app-service.es.js
packages/uni-app-plus/dist/uni-app-service.es.js
+3
-2
packages/uni-app-vue/dist/service.runtime.esm.js
packages/uni-app-vue/dist/service.runtime.esm.js
+495
-507
packages/uni-h5/dist/uni-h5.cjs.js
packages/uni-h5/dist/uni-h5.cjs.js
+2
-1
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+2
-1
packages/uni-mp-vue/dist/vue.runtime.esm.js
packages/uni-mp-vue/dist/vue.runtime.esm.js
+76
-76
未找到文件。
packages/uni-app-plus/dist/uni-app-service.es.js
浏览文件 @
e37c6459
...
...
@@ -8106,7 +8106,8 @@ var serviceContext = (function (vue) {
}, RequestPaymentProtocol);
function applyOptions(options, instance, publicThis) {
if (!publicThis.$mpType) {
const mpType = options.mpType || publicThis.$mpType;
if (!mpType) {
// 仅 App,Page 类型支持 on 生命周期
return;
}
...
...
@@ -8118,7 +8119,7 @@ var serviceContext = (function (vue) {
}
}
});
if (
publicThis.$
mpType === 'page') {
if (mpType === 'page') {
invokeHook(publicThis, ON_LOAD, instance.attrs.__pageQuery);
invokeHook(publicThis, ON_SHOW);
}
...
...
packages/uni-app-vue/dist/service.runtime.esm.js
浏览文件 @
e37c6459
此差异已折叠。
点击以展开。
packages/uni-h5/dist/uni-h5.cjs.js
浏览文件 @
e37c6459
...
...
@@ -6533,7 +6533,8 @@ function useContextInfo(_id) {
return
`
${
type
}
.
${
id
}
`
;
}
function
applyOptions
(
options
,
instance
,
publicThis
)
{
if
(
!
publicThis
.
$mpType
)
{
const
mpType
=
options
.
mpType
||
publicThis
.
$mpType
;
if
(
!
mpType
)
{
return
;
}
Object
.
keys
(
options
).
forEach
((
name
)
=>
{
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
e37c6459
...
...
@@ -13102,7 +13102,8 @@ function getContextInfo(el) {
return el.__uniContextInfo;
}
function applyOptions(options, instance2, publicThis) {
if (!publicThis.$mpType) {
const mpType = options.mpType || publicThis.$mpType;
if (!mpType) {
return;
}
Object.keys(options).forEach((name) => {
...
...
packages/uni-mp-vue/dist/vue.runtime.esm.js
浏览文件 @
e37c6459
...
...
@@ -197,8 +197,8 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
}
};
effects
.
forEach
(
run
);
}
}
const
isNonTrackableKeys
=
/*#__PURE__*/
makeMap
(
`__proto__,__v_isRef,__isVue`
);
const
builtInSymbols
=
new
Set
(
Object
.
getOwnPropertyNames
(
Symbol
)
.
map
(
key
=>
Symbol
[
key
])
...
...
@@ -363,8 +363,8 @@ const shallowReactiveHandlers = extend({}, mutableHandlers, {
// retain the reactivity of the normal readonly object.
const
shallowReadonlyHandlers
=
extend
({},
readonlyHandlers
,
{
get
:
shallowReadonlyGet
});
});
const
toReactive
=
(
value
)
=>
isObject
(
value
)
?
reactive
(
value
)
:
value
;
const
toReadonly
=
(
value
)
=>
isObject
(
value
)
?
readonly
(
value
)
:
value
;
const
toShallow
=
(
value
)
=>
value
;
...
...
@@ -639,8 +639,8 @@ function checkIdentityKeys(target, has, key) {
`Avoid differentiating between the raw and reactive versions `
+
`of an object and only use the reactive version if possible.`
);
}
}
}
const
reactiveMap
=
new
WeakMap
();
const
shallowReactiveMap
=
new
WeakMap
();
const
readonlyMap
=
new
WeakMap
();
...
...
@@ -740,8 +740,8 @@ function toRaw(observed) {
function
markRaw
(
value
)
{
def
(
value
,
"
__v_skip
"
/* SKIP */
,
true
);
return
value
;
}
}
const
convert
=
(
val
)
=>
isObject
(
val
)
?
reactive
(
val
)
:
val
;
function
isRef
(
r
)
{
return
Boolean
(
r
&&
r
.
__v_isRef
===
true
);
...
...
@@ -845,8 +845,8 @@ function toRef(object, key) {
return
isRef
(
object
[
key
])
?
object
[
key
]
:
new
ObjectRefImpl
(
object
,
key
);
}
}
class
ComputedRefImpl
{
constructor
(
getter
,
_setter
,
isReadonly
)
{
this
.
_setter
=
_setter
;
...
...
@@ -893,8 +893,8 @@ function computed(getterOrOptions) {
setter
=
getterOrOptions
.
set
;
}
return
new
ComputedRefImpl
(
getter
,
setter
,
isFunction
(
getterOrOptions
)
||
!
getterOrOptions
.
set
);
}
}
const
stack
=
[];
function
pushWarningContext
(
vnode
)
{
stack
.
push
(
vnode
);
...
...
@@ -1007,8 +1007,8 @@ function formatProp(key, value, raw) {
value
=
toRaw
(
value
);
return
raw
?
value
:
[
`
${
key
}
=`
,
value
];
}
}
}
const
ErrorTypeStrings
=
{
[
"
bc
"
/* BEFORE_CREATE */
]:
'
beforeCreate hook
'
,
[
"
c
"
/* CREATED */
]:
'
created hook
'
,
...
...
@@ -1117,8 +1117,8 @@ function logError(err, type, contextVNode, throwInDev = true) {
// recover in prod to reduce the impact on end-user
console
.
error
(
err
);
}
}
}
let
isFlushing
=
false
;
let
isFlushPending
=
false
;
// fixed by xxxxxx
...
...
@@ -1303,8 +1303,8 @@ function checkRecursiveUpdates(seen, fn) {
seen
.
set
(
fn
,
count
+
1
);
}
}
}
}
function
emit
(
instance
,
event
,
...
rawArgs
)
{
const
props
=
instance
.
vnode
.
props
||
EMPTY_OBJ
;
if
((
process
.
env
.
NODE_ENV
!==
'
production
'
))
{
...
...
@@ -1423,21 +1423,21 @@ function isEmitListener(options, key) {
return
(
hasOwn
(
options
,
key
[
0
].
toLowerCase
()
+
key
.
slice
(
1
))
||
hasOwn
(
options
,
hyphenate
(
key
))
||
hasOwn
(
options
,
key
));
}
}
let
isRenderingCompiledSlot
=
0
;
const
setCompiledSlotRendering
=
(
n
)
=>
(
isRenderingCompiledSlot
+=
n
);
const
setCompiledSlotRendering
=
(
n
)
=>
(
isRenderingCompiledSlot
+=
n
);
/**
* mark the current rendering instance for asset resolution (e.g.
* resolveComponent, resolveDirective) during render
*/
let
currentRenderingInstance
=
null
;
let
currentScopeId
=
null
;
let
currentScopeId
=
null
;
function
markAttrsAccessed
()
{
}
}
function
initProps
(
instance
,
rawProps
,
isStateful
,
// result of bitwise flag comparison
isSSR
=
false
)
{
const
props
=
{};
...
...
@@ -1756,8 +1756,8 @@ function isExplicable(type) {
*/
function
isBoolean
(...
args
)
{
return
args
.
some
(
elem
=>
elem
.
toLowerCase
()
===
'
boolean
'
);
}
}
function
injectHook
(
type
,
hook
,
target
=
currentInstance
,
prepend
=
false
)
{
if
(
target
)
{
const
hooks
=
target
[
type
]
||
(
target
[
type
]
=
[]);
...
...
@@ -1810,8 +1810,8 @@ const onRenderTriggered = createHook("rtg" /* RENDER_TRIGGERED */);
const
onRenderTracked
=
createHook
(
"
rtc
"
/* RENDER_TRACKED */
);
const
onErrorCaptured
=
(
hook
,
target
=
currentInstance
)
=>
{
injectHook
(
"
ec
"
/* ERROR_CAPTURED */
,
hook
,
target
);
};
};
// Simple effect.
function
watchEffect
(
effect
,
options
)
{
return
doWatch
(
effect
,
null
,
options
);
...
...
@@ -2015,8 +2015,8 @@ function traverse(value, seen = new Set()) {
}
}
return
value
;
}
}
const
isKeepAlive
=
(
vnode
)
=>
vnode
.
type
.
__isKeepAlive
;
function
onActivated
(
hook
,
target
)
{
registerKeepAliveHook
(
hook
,
"
a
"
/* ACTIVATED */
,
target
);
...
...
@@ -2063,15 +2063,15 @@ function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
onUnmounted
(()
=>
{
remove
(
keepAliveRoot
[
type
],
injected
);
},
target
);
}
}
/**
Runtime helper for applying directives to a vnode. Example usage:
const comp = resolveComponent('comp')
const foo = resolveDirective('foo')
const bar = resolveDirective('bar')
return withDirectives(h(comp), [
[foo, this.x],
[bar, this.y]
...
...
@@ -2091,8 +2091,8 @@ function withDirectives(vnode, directives) {
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
&&
warn
(
`withDirectives can only be used inside render functions.`
);
return
vnode
;
}
}
}
function
createAppContext
()
{
return
{
app
:
null
,
...
...
@@ -2219,17 +2219,17 @@ function createAppAPI() {
});
return
app
;
};
}
}
// implementation, close to no-op
function
defineComponent
(
options
)
{
return
isFunction
(
options
)
?
{
setup
:
options
,
name
:
options
.
name
}
:
options
;
}
const
queuePostRenderEffect
=
queuePostFlushCb
;
const
isTeleport
=
(
type
)
=>
type
.
__isTeleport
;
}
const
queuePostRenderEffect
=
queuePostFlushCb
;
const
isTeleport
=
(
type
)
=>
type
.
__isTeleport
;
const
COMPONENTS
=
'
components
'
;
const
DIRECTIVES
=
'
directives
'
;
const
NULL_DYNAMIC_COMPONENT
=
Symbol
();
...
...
@@ -2279,8 +2279,8 @@ function resolve(registry, name) {
(
registry
[
name
]
||
registry
[
camelize
(
name
)]
||
registry
[
capitalize
(
camelize
(
name
))]));
}
}
const
Fragment
=
Symbol
((
process
.
env
.
NODE_ENV
!==
'
production
'
)
?
'
Fragment
'
:
undefined
);
const
Text
=
Symbol
((
process
.
env
.
NODE_ENV
!==
'
production
'
)
?
'
Text
'
:
undefined
);
const
Comment
=
Symbol
((
process
.
env
.
NODE_ENV
!==
'
production
'
)
?
'
Comment
'
:
undefined
);
...
...
@@ -2568,8 +2568,8 @@ function mergeProps(...args) {
}
}
return
ret
;
}
}
function
provide
(
key
,
value
)
{
if
(
!
currentInstance
)
{
if
((
process
.
env
.
NODE_ENV
!==
'
production
'
))
{
...
...
@@ -2618,8 +2618,8 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
else
if
((
process
.
env
.
NODE_ENV
!==
'
production
'
))
{
warn
(
`inject() can only be used inside setup() or functional components.`
);
}
}
}
function
createDuplicateChecker
()
{
const
cache
=
Object
.
create
(
null
);
return
(
type
,
key
)
=>
{
...
...
@@ -3027,8 +3027,8 @@ function mergeOptions(to, from, instance) {
to
[
key
]
=
from
[
key
];
}
}
}
}
/**
* #2437 In Vue 3, functional components do not have a public instance proxy but
* they exist in the internal parent chain. For code that relies on traversing
...
...
@@ -3290,8 +3290,8 @@ function exposeSetupStateOnRenderContext(instance) {
set
:
NOOP
});
});
}
}
const
emptyAppContext
=
createAppContext
();
let
uid$2
=
0
;
function
createComponentInstance
(
vnode
,
parent
,
suspense
)
{
...
...
@@ -3607,14 +3607,14 @@ function formatComponentName(instance, Component, isRoot = false) {
}
function
isClassComponent
(
value
)
{
return
isFunction
(
value
)
&&
'
__vccOpts
'
in
value
;
}
}
function
computed$1
(
getterOrOptions
)
{
const
c
=
computed
(
getterOrOptions
);
recordInstanceBoundEffect
(
c
.
effect
);
return
c
;
}
}
// implementation
function
defineProps
()
{
if
((
process
.
env
.
NODE_ENV
!==
'
production
'
))
{
...
...
@@ -3632,11 +3632,11 @@ function defineEmit() {
`compiled away and passing it at runtime has no effect.`
);
}
return
null
;
}
}
// Core API ------------------------------------------------------------------
const
version
=
"
3.0.9
"
;
const
version
=
"
3.0.9
"
;
// import deepCopy from './deepCopy'
/**
* https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
...
...
@@ -3747,8 +3747,8 @@ function _diff(current, pre, path, result) {
}
function
setResult
(
result
,
k
,
v
)
{
result
[
k
]
=
v
;
//deepCopy(v)
}
}
function
hasComponentEffect
(
instance
)
{
return
queue
.
includes
(
instance
.
update
);
}
...
...
@@ -3815,8 +3815,8 @@ function nextTick$1(instance, fn) {
return
new
Promise
(
resolve
=>
{
_resolve
=
resolve
;
});
}
}
function
getMPInstanceData
(
instance
,
keys
)
{
const
data
=
instance
.
data
;
const
ret
=
Object
.
create
(
null
);
...
...
@@ -3893,14 +3893,14 @@ function patch(instance) {
flushCallbacks
(
instance
);
}
}
}
}
function
initAppConfig
(
appConfig
)
{
appConfig
.
globalProperties
.
$nextTick
=
function
$nextTick
(
fn
)
{
return
nextTick$1
(
this
.
$
,
fn
);
};
}
}
function
onApplyOptions
(
options
,
instance
,
publicThis
)
{
instance
.
appContext
.
config
.
globalProperties
.
$applyOptions
(
options
,
instance
,
publicThis
);
const
computedOptions
=
options
.
computed
;
...
...
@@ -3916,8 +3916,8 @@ function onApplyOptions(options, instance, publicThis) {
}
// remove
delete
instance
.
ctx
.
$onApplyOptions
;
}
}
var
MPType
;
(
function
(
MPType
)
{
MPType
[
"
APP
"
]
=
"
app
"
;
...
...
@@ -4046,8 +4046,8 @@ function createVueApp(rootComponent, rootProps = null) {
warn
(
`Cannot unmount an app.`
);
};
return
app
;
}
}
function
withModifiers
()
{
}
function
createVNode$1
()
{
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录