Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MuGuiLin
uni-app
提交
23aeef05
U
uni-app
项目概览
MuGuiLin
/
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,发现更多精彩内容 >>
提交
23aeef05
编写于
1月 17, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(app): nvue
上级
ffafdf3b
变更
9
展开全部
显示空白变更内容
内联
并排
Showing
9 changed file
with
6 addition
and
18946 deletion
+6
-18946
packages/uni-app-plus/build.json
packages/uni-app-plus/build.json
+1
-1
packages/uni-app-plus/dist/uni.runtime.esm.js
packages/uni-app-plus/dist/uni.runtime.esm.js
+0
-0
packages/uni-app-vue/build.json
packages/uni-app-vue/build.json
+2
-26
packages/uni-app-vue/dist/nvue.factory.cjs.js
packages/uni-app-vue/dist/nvue.factory.cjs.js
+0
-9725
packages/uni-app-vue/dist/nvue.service.cjs.js
packages/uni-app-vue/dist/nvue.service.cjs.js
+0
-114
packages/uni-app-vue/dist/service.runtime.esm.dev.js
packages/uni-app-vue/dist/service.runtime.esm.dev.js
+1
-1
packages/uni-app-vue/dist/service.runtime.esm.prod.js
packages/uni-app-vue/dist/service.runtime.esm.prod.js
+1
-1
packages/uni-app-vue/lib/nvue.runtime.esm.js
packages/uni-app-vue/lib/nvue.runtime.esm.js
+0
-9074
packages/uni-app-vue/package.json
packages/uni-app-vue/package.json
+1
-4
未找到文件。
packages/uni-app-plus/build.json
浏览文件 @
23aeef05
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
},
},
{
{
"input"
:
{
"input"
:
{
"src/service/index.ts"
:
"dist/uni
-app-service.es
.js"
"src/service/index.ts"
:
"dist/uni
.runtime.esm
.js"
},
},
"output"
:
{
"output"
:
{
"freeze"
:
false
,
"freeze"
:
false
,
...
...
packages/uni-app-plus/dist/uni
-app-service.es
.js
→
packages/uni-app-plus/dist/uni
.runtime.esm
.js
浏览文件 @
23aeef05
文件已移动
packages/uni-app-vue/build.json
浏览文件 @
23aeef05
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"src/service/index.ts"
:
[
"dist/service.runtime.esm.dev.js"
]
"src/service/index.ts"
:
[
"dist/service.runtime.esm.dev.js"
]
},
},
"output"
:
{
"output"
:
{
"banner"
:
"export
default
function vueFactory (exports) {
\n
"
,
"banner"
:
"export function vueFactory (exports) {
\n
"
,
"footer"
:
"}"
"footer"
:
"}"
},
},
"replacements"
:
{
"replacements"
:
{
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
"src/service/index.ts"
:
[
"dist/service.runtime.esm.prod.js"
]
"src/service/index.ts"
:
[
"dist/service.runtime.esm.prod.js"
]
},
},
"output"
:
{
"output"
:
{
"banner"
:
"export
default
function vueFactory (exports) {
\n
"
,
"banner"
:
"export function vueFactory (exports) {
\n
"
,
"footer"
:
"}"
"footer"
:
"}"
},
},
"replacements"
:
{
"replacements"
:
{
...
@@ -40,29 +40,5 @@
...
@@ -40,29 +40,5 @@
"__VUE_PROD_DEVTOOLS__"
:
"false"
"__VUE_PROD_DEVTOOLS__"
:
"false"
},
},
"external"
:
[
"@vue/shared"
]
"external"
:
[
"@vue/shared"
]
},
{
"input"
:
{
"src/nvue/factory.ts"
:
[
"dist/nvue.factory.cjs.js"
]
},
"output"
:
{
"banner"
:
"export default function vueFactory (exports) {
\n
"
,
"footer"
:
"}"
},
"replacements"
:
{
"process.env.NODE_ENV"
:
"
\"
production
\"
"
},
"external"
:
false
,
"babel"
:
true
},
{
"input"
:
{
"src/nvue/index.ts"
:
[
"dist/nvue.service.cjs.js"
]
},
"replacements"
:
{
"process.env.NODE_ENV"
:
"
\"
production
\"
"
},
"external"
:
false
,
"babel"
:
true
}
}
]
]
packages/uni-app-vue/dist/nvue.factory.cjs.js
已删除
100644 → 0
浏览文件 @
ffafdf3b
此差异已折叠。
点击以展开。
packages/uni-app-vue/dist/nvue.service.cjs.js
已删除
100644 → 0
浏览文件 @
ffafdf3b
'
use strict
'
;
Object
.
defineProperty
(
exports
,
'
__esModule
'
,
{
value
:
true
});
// eslint-disable-next-line no-restricted-globals
var
VueFactory
=
require
(
'
./nvue.factory.cjs
'
);
var
instanceOptions
=
{};
function
createInstanceContext
(
instanceId
,
runtimeContext
)
{
var
data
=
arguments
.
length
>
2
&&
arguments
[
2
]
!==
undefined
?
arguments
[
2
]
:
{};
var
nvue
=
runtimeContext
.
nvue
;
var
instance
=
instanceOptions
[
instanceId
]
=
{
instanceId
,
config
:
nvue
.
config
,
document
:
nvue
.
document
,
data
};
var
Vue
=
instance
.
Vue
=
createVueModuleInstance
(
instanceId
,
nvue
,
runtimeContext
.
SharedObject
);
var
instanceContext
=
{
Vue
};
Object
.
freeze
(
instanceContext
);
return
instanceContext
;
}
function
destroyInstance
(
instanceId
)
{
var
instance
=
instanceOptions
[
instanceId
];
if
(
instance
&&
instance
.
app
&&
instance
.
document
)
{
try
{
instance
.
app
.
$
.
appContext
.
app
.
unmount
();
instance
.
document
.
destroy
();
}
catch
(
e
)
{}
delete
instance
.
document
;
delete
instance
.
app
;
}
delete
instanceOptions
[
instanceId
];
}
function
refreshInstance
(
instanceId
,
data
)
{
var
instance
=
instanceOptions
[
instanceId
];
if
(
!
instance
||
!
instance
.
app
)
{
return
new
Error
(
"
refreshInstance: instance
"
.
concat
(
instanceId
,
"
not found!
"
));
}
instance
.
document
.
taskCenter
.
send
(
'
dom
'
,
{
action
:
'
refreshFinish
'
},
[]);
}
function
createVueModuleInstance
(
instanceId
,
nvue
,
SharedObject
)
{
var
exports
=
{};
VueFactory
(
exports
,
nvue
.
document
,
SharedObject
);
var
Vue
=
exports
.
Vue
;
var
{
createApp
}
=
Vue
;
Vue
.
createApp
=
(
rootComponent
,
rootProps
)
=>
initApp
(
createApp
(
rootComponent
,
rootProps
),
{
instanceId
,
nvue
});
return
Vue
;
}
function
initApp
(
app
,
_ref
)
{
var
{
instanceId
,
nvue
}
=
_ref
;
var
{
config
:
{
compilerOptions
,
globalProperties
},
mount
}
=
app
;
compilerOptions
.
isCustomElement
=
name
=>
{
return
!!
nvue
.
supports
(
"
@component/
"
.
concat
(
name
));
};
var
instance
=
instanceOptions
[
instanceId
];
globalProperties
.
$instanceId
=
instanceId
;
globalProperties
.
$document
=
instance
.
document
;
globalProperties
.
$requireModule
=
nvue
.
requireModule
;
app
.
mount
=
rootContainer
=>
{
var
proxy
=
instance
.
app
=
mount
(
rootContainer
);
if
(
rootContainer
===
'
#root
'
)
{
try
{
// Send "createFinish" signal to native.
nvue
.
document
.
taskCenter
.
send
(
'
dom
'
,
{
action
:
'
createFinish
'
},
[]);
}
catch
(
e
)
{}
}
return
proxy
;
};
return
app
;
}
exports
.
createInstanceContext
=
createInstanceContext
;
exports
.
destroyInstance
=
destroyInstance
;
exports
.
refreshInstance
=
refreshInstance
;
packages/uni-app-vue/dist/service.runtime.esm.dev.js
浏览文件 @
23aeef05
export
default
function
vueFactory
(
exports
)
{
export
function
vueFactory
(
exports
)
{
/**
/**
* Make a map and return a function for checking if a key
* Make a map and return a function for checking if a key
* is in that map.
* is in that map.
...
...
packages/uni-app-vue/dist/service.runtime.esm.prod.js
浏览文件 @
23aeef05
export
default
function
vueFactory
(
exports
)
{
export
function
vueFactory
(
exports
)
{
/**
/**
* Make a map and return a function for checking if a key
* Make a map and return a function for checking if a key
* is in that map.
* is in that map.
...
...
packages/uni-app-vue/lib/nvue.runtime.esm.js
已删除
100644 → 0
浏览文件 @
ffafdf3b
此差异已折叠。
点击以展开。
packages/uni-app-vue/package.json
浏览文件 @
23aeef05
...
@@ -17,8 +17,5 @@
...
@@ -17,8 +17,5 @@
"bugs"
:
{
"bugs"
:
{
"url"
:
"https://github.com/dcloudio/uni-app/issues"
"url"
:
"https://github.com/dcloudio/uni-app/issues"
},
},
"gitHead"
:
"33e807d66e1fe47e2ee08ad9c59247e37b8884da"
,
"gitHead"
:
"33e807d66e1fe47e2ee08ad9c59247e37b8884da"
"devDependencies"
:
{
"@dcloudio/uni-shared"
:
"3.0.0-alpha-3030820220114001"
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录