From af930887f9972b7dd21c80599e697e44f5e5a579 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 13 十一月 2024 14:05:04 +0800
Subject: [PATCH] 移除视频相关组件
---
miniprogram_npm/tdesign-miniprogram/dropdown-menu/dropdown-menu.js | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/dropdown-menu/dropdown-menu.js b/miniprogram_npm/tdesign-miniprogram/dropdown-menu/dropdown-menu.js
index 7b28044..e3f5ac8 100644
--- a/miniprogram_npm/tdesign-miniprogram/dropdown-menu/dropdown-menu.js
+++ b/miniprogram_npm/tdesign-miniprogram/dropdown-menu/dropdown-menu.js
@@ -7,6 +7,7 @@
import { SuperComponent, wxComponent } from '../common/src/index';
import config from '../common/config';
import props from './props';
+import { calcIcon } from '../common/utils';
const { prefix } = config;
const name = `${prefix}-dropdown-menu`;
let DropdownMenu = class DropdownMenu extends SuperComponent {
@@ -21,6 +22,7 @@
menus: null,
activeIdx: -1,
bottom: 0,
+ _arrowIcon: { name: props.arrowIcon.value },
};
this.relations = {
'../dropdown-item/dropdown-item': {
@@ -30,6 +32,16 @@
this.lifetimes = {
ready() {
this.getAllItems();
+ },
+ };
+ this.observers = {
+ arrowIcon(v) {
+ this.setData({
+ _arrowIcon: calcIcon(v),
+ });
+ },
+ activeIdx(v) {
+ this.triggerEvent(v === -1 ? 'close' : 'open');
},
};
this.methods = {
@@ -81,6 +93,7 @@
const { index } = e.currentTarget.dataset;
this.toggle(index);
},
+ noop() { },
};
}
};
--
Gitblit v1.9.3