企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 1.定义behaviors 在components文件夹下建一个共有behavior ~~~ let classicBeh = Behavior({ properties: { imgUrl: String, content: String } }) export {classicBeh} ~~~ ### 2.在组件中引入behavior ~~~ // components/movie/index.js import {classicBeh} from "../classic-beh"; Component({ /** * 组件的属性列表 */ behaviors:[classicBeh], properties: { }, data: { }, methods: { } }) ~~~