- 新增 components.d.json 文件,包含所有组件的属性配置 - 添加 card-item-plugin 组件及其相关文件(json、ts、wxml、wxss) - 在 app.json 中添加新的生产流程管理页面路径 - 添加多个SVG图标文件用于菜单项 - 重构 popup-plugin 组件样式和关闭逻辑 - 更新 tab-bar-plugin 的激活状态逻辑 - 优化 search-popup 使用全局样式类 - 在首页添加菜单配置和页面跳转功能 - 调整组件样式细节和间距
33 lines
537 B
TypeScript
33 lines
537 B
TypeScript
Component({
|
|
/**
|
|
* 组件的属性列表
|
|
*/
|
|
properties: {
|
|
visible: null,
|
|
placement: null,
|
|
title: null,
|
|
},
|
|
|
|
/**
|
|
* 组件的初始数据
|
|
*/
|
|
data: {},
|
|
|
|
/**
|
|
* 组件的方法列表
|
|
*/
|
|
methods: {
|
|
onVisibleChange(e: any) {
|
|
// console.log(e.detail.visible);
|
|
this.setData({ open: e.detail.visible });
|
|
if (!e.detail.visible) {
|
|
this.triggerEvent("close");
|
|
}
|
|
},
|
|
onClose() {
|
|
this.setData({ open: false });
|
|
this.triggerEvent("close");
|
|
},
|
|
},
|
|
});
|