提交 82d394f2 编写于 作者: fxy060608's avatar fxy060608

wip(app): nvue

上级 775d1e7d
export function initComponents(Vue, weex) { export function initComponents(uni, Vue, weex) {
var components = function(vue) { var components = function(vue) {
"use strict"; "use strict";
const OPEN_TYPES = [ const OPEN_TYPES = [
...@@ -95,9 +95,7 @@ export function initComponents(Vue, weex) { ...@@ -95,9 +95,7 @@ export function initComponents(Vue, weex) {
}) { }) {
const onClick = createNavigatorOnClick(props); const onClick = createNavigatorOnClick(props);
return () => { return () => {
return vue.createVNode("div", vue.mergeProps({ return vue.createVNode("div", vue.mergeProps(useHoverClass(props.hoverClass), {
"class": "clazz"
}, useHoverClass(props.hoverClass), {
"onClick": onClick "onClick": onClick
}), [slots.default && slots.default()]); }), [slots.default && slots.default()]);
}; };
......
...@@ -14,7 +14,7 @@ export default defineConfig({ ...@@ -14,7 +14,7 @@ export default defineConfig({
rollupOptions: { rollupOptions: {
external: ['uni', 'vue', 'weex'], external: ['uni', 'vue', 'weex'],
output: { output: {
banner: 'export function initComponents(Vue, weex) {', banner: 'export function initComponents(uni, Vue, weex) {',
footer: 'return components\n}', footer: 'return components\n}',
entryFileNames: 'components.js', entryFileNames: 'components.js',
globals: { globals: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册