Odoo Owl学习笔记15-- 使用插槽创建通用组件
我们在这里展示如何使用插槽创建通用组件。
const { Component, useState, mount } = owl;
class Card extends Component {
static template = "Card";
setup() {
this.state = useState({ showContent: true });
}
Odoo Owl学习笔记15-- 使用插槽创建通用组件
我们在这里展示如何使用插槽创建通用组件。
const { Component, useState, mount } = owl;
class Card extends Component {
static template = "Card";
setup() {
this.state = useState({ showContent: true });
}