Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
0bf4fe2d
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,发现更多精彩内容 >>
提交
0bf4fe2d
编写于
2月 09, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(app): remove nvue.ts
上级
2a0a278d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
103 deletion
+0
-103
packages/uni-components/build.json
packages/uni-components/build.json
+0
-20
packages/uni-components/dist/nvue.js
packages/uni-components/dist/nvue.js
+0
-81
packages/uni-components/src/nvue/index.ts
packages/uni-components/src/nvue/index.ts
+0
-2
未找到文件。
packages/uni-components/build.json
已删除
100644 → 0
浏览文件 @
2a0a278d
[
{
"input"
:
{
"src/nvue/index.ts"
:
[
"dist/nvue.js"
]
},
"replacements"
:
{
"__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/nvue.js
已删除
100644 → 0
浏览文件 @
2a0a278d
const
E
=
function
()
{
// Keep this empty so it's easier to inherit from
// (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)
};
E
.
prototype
=
{
on
:
function
(
name
,
callback
,
ctx
)
{
var
e
=
this
.
e
||
(
this
.
e
=
{});
(
e
[
name
]
||
(
e
[
name
]
=
[])).
push
({
fn
:
callback
,
ctx
:
ctx
,
});
return
this
;
},
once
:
function
(
name
,
callback
,
ctx
)
{
var
self
=
this
;
function
listener
()
{
self
.
off
(
name
,
listener
);
callback
.
apply
(
ctx
,
arguments
);
}
listener
.
_
=
callback
;
return
this
.
on
(
name
,
listener
,
ctx
);
},
emit
:
function
(
name
)
{
var
data
=
[].
slice
.
call
(
arguments
,
1
);
var
evtArr
=
((
this
.
e
||
(
this
.
e
=
{}))[
name
]
||
[]).
slice
();
var
i
=
0
;
var
len
=
evtArr
.
length
;
for
(
i
;
i
<
len
;
i
++
)
{
evtArr
[
i
].
fn
.
apply
(
evtArr
[
i
].
ctx
,
data
);
}
return
this
;
},
off
:
function
(
name
,
callback
)
{
var
e
=
this
.
e
||
(
this
.
e
=
{});
var
evts
=
e
[
name
];
var
liveEvents
=
[];
if
(
evts
&&
callback
)
{
for
(
var
i
=
0
,
len
=
evts
.
length
;
i
<
len
;
i
++
)
{
if
(
evts
[
i
].
fn
!==
callback
&&
evts
[
i
].
fn
.
_
!==
callback
)
liveEvents
.
push
(
evts
[
i
]);
}
}
// Remove event from queue to prevent memory leak
// Suggested by https://github.com/lazd
// Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910
liveEvents
.
length
?
(
e
[
name
]
=
liveEvents
)
:
delete
e
[
name
];
return
this
;
},
};
var
E$1
=
E
;
function
initBridge
(
subscribeNamespace
)
{
const
emitter
=
new
E$1
();
return
{
on
(
event
,
callback
)
{
return
emitter
.
on
(
event
,
callback
);
},
once
(
event
,
callback
)
{
return
emitter
.
once
(
event
,
callback
);
},
off
(
event
,
callback
)
{
return
emitter
.
off
(
event
,
callback
);
},
emit
(
event
,
...
args
)
{
return
emitter
.
emit
(
event
,
...
args
);
},
subscribe
(
event
,
callback
,
once
=
false
)
{
emitter
[
once
?
'
once
'
:
'
on
'
](
`
${
subscribeNamespace
}
.
${
event
}
`
,
callback
);
},
unsubscribe
(
event
,
callback
)
{
emitter
.
off
(
`
${
subscribeNamespace
}
.
${
event
}
`
,
callback
);
},
subscribeHandler
(
event
,
args
,
pageId
)
{
emitter
.
emit
(
`
${
subscribeNamespace
}
.
${
event
}
`
,
args
,
pageId
);
},
};
}
const
UniViewJSBridge
=
initBridge
(
'
nvue
'
);
export
{
UniViewJSBridge
};
packages/uni-components/src/nvue/index.ts
已删除
100644 → 0
浏览文件 @
2a0a278d
import
{
initBridge
}
from
'
@dcloudio/uni-core
'
export
const
UniViewJSBridge
=
initBridge
(
'
nvue
'
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录