Files
ruo-shan-cloud-pharmacy/miniprogram/package-live/volc-mini-sdk/pubComponents/drawer/drawer.js
T
陈誉午 994b267f5c feat: 电子药箱小程序 - 4Tab药品管理
- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡
- 药品百科: 搜索 + 分类筛选 + 20种药品静态数据
- 惠教中心: 4条药品使用指南课程
- 我的: 家庭成员信息管理
- 自定义TabBar + navigation-bar组件
- SVG药品分类插图
2026-07-29 11:20:52 +08:00

1 line
1010 B
JavaScript

"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Component({options:{styleIsolation:"apply-shared"},externalClasses:["custom-drawer"],properties:{needCancel:{type:Boolean,value:!0},mask:{type:Boolean,value:!0},themeColor:{type:Object,value:null}},data:{flag:!1,wrapAnimate:"wrapAnimate",bgOpacity:0,frameAnimate:"frameAnimate"},methods:{showFrame:function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.setData({flag:!0,wrapAnimate:"wrapAnimate",frameAnimate:"frameAnimate"})},hideFrame:function(t){var e=!(!t||"object"!==_typeof(t)||!0!==t.silent),a=this;a.setData({wrapAnimate:"wrapAnimateOut",frameAnimate:"frameAnimateOut"}),e||a.onCancel(),this.timer=setTimeout(function(){a.setData({flag:!1})},400)},onCancel:function(){this.triggerEvent("myCancel")},catchNone:function(){}}});