Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
75b7a9b9
U
uni-app
项目概览
DCloud
/
uni-app
3 个月 前同步成功
通知
725
Star
38705
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
75b7a9b9
编写于
2月 09, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(app): nvue
上级
081f069c
变更
12
展开全部
隐藏空白更改
内联
并排
Showing
12 changed file
with
33 addition
and
12 deletion
+33
-12
packages/global.d.ts
packages/global.d.ts
+1
-0
packages/uni-app-plus/build.json
packages/uni-app-plus/build.json
+1
-0
packages/uni-app-plus/dist/uni-app-view.umd.js
packages/uni-app-plus/dist/uni-app-view.umd.js
+1
-1
packages/uni-app-plus/vite.config.ts
packages/uni-app-plus/vite.config.ts
+1
-0
packages/uni-components/build.json
packages/uni-components/build.json
+15
-1
packages/uni-components/dist/components.js
packages/uni-components/dist/components.js
+2
-2
packages/uni-components/dist/nvue.js
packages/uni-components/dist/nvue.js
+0
-0
packages/uni-components/src/nvue/bridge.ts
packages/uni-components/src/nvue/bridge.ts
+0
-2
packages/uni-components/src/nvue/components.ts
packages/uni-components/src/nvue/components.ts
+4
-0
packages/uni-components/src/nvue/index.ts
packages/uni-components/src/nvue/index.ts
+2
-4
packages/uni-components/vite.config.ts
packages/uni-components/vite.config.ts
+5
-1
packages/uni-vue/src/componentOptions/index.ts
packages/uni-vue/src/componentOptions/index.ts
+1
-1
未找到文件。
packages/global.d.ts
浏览文件 @
75b7a9b9
...
@@ -5,6 +5,7 @@ declare var qa: any
...
@@ -5,6 +5,7 @@ declare var qa: any
declare
var
swan
:
any
declare
var
swan
:
any
declare
var
qq
:
any
declare
var
qq
:
any
declare
var
ks
:
any
declare
var
ks
:
any
declare
var
__NVUE__
:
undefined
|
boolean
declare
var
__PLATFORM__
:
UniApp
.
PLATFORM
declare
var
__PLATFORM__
:
UniApp
.
PLATFORM
declare
var
__PLATFORM_PREFIX__
:
declare
var
__PLATFORM_PREFIX__
:
|
'
wx
'
|
'
wx
'
...
...
packages/uni-app-plus/build.json
浏览文件 @
75b7a9b9
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
"inlineDynamicImports"
:
true
"inlineDynamicImports"
:
true
},
},
"replacements"
:
{
"replacements"
:
{
"__NVUE__"
:
"false"
,
"__PLATFORM__"
:
"'app'"
,
"__PLATFORM__"
:
"'app'"
,
"__APP_VIEW__"
:
"false"
,
"__APP_VIEW__"
:
"false"
,
"__VUE_OPTIONS_API__"
:
"true"
,
"__VUE_OPTIONS_API__"
:
"true"
,
...
...
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
75b7a9b9
此差异已折叠。
点击以展开。
packages/uni-app-plus/vite.config.ts
浏览文件 @
75b7a9b9
...
@@ -57,6 +57,7 @@ export default defineConfig({
...
@@ -57,6 +57,7 @@ export default defineConfig({
define
:
{
define
:
{
global
:
'
window
'
,
global
:
'
window
'
,
__DEV__
:
false
,
__DEV__
:
false
,
__NVUE__
:
false
,
__TEST__
:
false
,
__TEST__
:
false
,
__PLATFORM__
:
JSON
.
stringify
(
'
app
'
),
__PLATFORM__
:
JSON
.
stringify
(
'
app
'
),
__NODE_JS__
:
false
,
__NODE_JS__
:
false
,
...
...
packages/uni-components/build.json
浏览文件 @
75b7a9b9
[
[
{
{
"input"
:
{
"input"
:
{
"src/nvue/bridge.ts"
:
[
"dist/bridge.js"
]
"src/nvue/index.ts"
:
[
"dist/nvue.js"
]
},
"replacements"
:
{
"__NVUE__"
:
"true"
,
"__PLATFORM__"
:
"'app'"
,
"__APP_VIEW__"
:
"false"
,
"__VUE_OPTIONS_API__"
:
"true"
,
"__VUE_PROD_DEVTOOLS__"
:
"false"
,
"__UNI_FEATURE_WX__"
:
"false"
,
"__UNI_FEATURE_PROMISE__"
:
"false"
,
"__UNI_FEATURE_I18N_EN__"
:
"true"
,
"__UNI_FEATURE_I18N_ES__"
:
"true"
,
"__UNI_FEATURE_I18N_FR__"
:
"true"
,
"__UNI_FEATURE_I18N_ZH_HANS__"
:
"true"
,
"__UNI_FEATURE_I18N_ZH_HANT__"
:
"true"
}
}
}
}
]
]
packages/uni-components/dist/components.js
浏览文件 @
75b7a9b9
...
@@ -118,10 +118,10 @@ export function initComponents({ uni, Vue, weex, plus, BroadcastChannel, UniView
...
@@ -118,10 +118,10 @@ export function initComponents({ uni, Vue, weex, plus, BroadcastChannel, UniView
};
};
}
}
});
});
var
index
=
{
var
components2
=
{
Navigator
Navigator
};
};
return
index
;
return
components2
;
}(
Vue
,
VueShared
);
}(
Vue
,
VueShared
);
return
components
;
return
components
;
}
}
packages/uni-components/dist/
bridg
e.js
→
packages/uni-components/dist/
nvu
e.js
浏览文件 @
75b7a9b9
文件已移动
packages/uni-components/src/nvue/bridge.ts
已删除
100644 → 0
浏览文件 @
081f069c
import
{
initBridge
}
from
'
@dcloudio/uni-core
'
export
const
UniViewJSBridge
=
initBridge
(
'
nvue
'
)
packages/uni-components/src/nvue/components.ts
0 → 100644
浏览文件 @
75b7a9b9
import
Navigator
from
'
./navigator
'
export
default
{
Navigator
,
}
packages/uni-components/src/nvue/index.ts
浏览文件 @
75b7a9b9
import
Navigator
from
'
./navigator
'
import
{
initBridge
}
from
'
@dcloudio/uni-core
'
export
default
{
export
const
UniViewJSBridge
=
initBridge
(
'
nvue
'
)
Navigator
,
}
packages/uni-components/vite.config.ts
浏览文件 @
75b7a9b9
...
@@ -9,6 +9,10 @@ function resolve(file: string) {
...
@@ -9,6 +9,10 @@ function resolve(file: string) {
export
default
defineConfig
({
export
default
defineConfig
({
root
:
__dirname
,
root
:
__dirname
,
define
:
{
global
:
'
window
'
,
__NVUE__
:
true
,
},
resolve
:
{
resolve
:
{
alias
:
[
alias
:
[
{
{
...
@@ -21,7 +25,7 @@ export default defineConfig({
...
@@ -21,7 +25,7 @@ export default defineConfig({
minify
:
false
,
minify
:
false
,
lib
:
{
lib
:
{
name
:
'
components
'
,
name
:
'
components
'
,
entry
:
path
.
resolve
(
__dirname
,
'
src/nvue/
index
.ts
'
),
entry
:
path
.
resolve
(
__dirname
,
'
src/nvue/
components
.ts
'
),
formats
:
[
'
iife
'
],
formats
:
[
'
iife
'
],
},
},
rollupOptions
:
{
rollupOptions
:
{
...
...
packages/uni-vue/src/componentOptions/index.ts
浏览文件 @
75b7a9b9
...
@@ -14,7 +14,7 @@ export function applyOptions(
...
@@ -14,7 +14,7 @@ export function applyOptions(
instance
:
ComponentInternalInstance
,
instance
:
ComponentInternalInstance
,
publicThis
:
ComponentPublicInstance
publicThis
:
ComponentPublicInstance
)
{
)
{
if
(
__PLATFORM__
===
'
app
'
)
{
if
(
__PLATFORM__
===
'
app
'
&&
!
__NVUE__
)
{
initWxs
(
options
,
instance
)
initWxs
(
options
,
instance
)
initRenderjs
(
options
,
instance
)
initRenderjs
(
options
,
instance
)
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录