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

wip(app): nvue

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