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/dialog/dialog.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/dialog/dialog.js b/miniprogram_npm/tdesign-miniprogram/dialog/dialog.js
index 2ce509c..879cb21 100644
--- a/miniprogram_npm/tdesign-miniprogram/dialog/dialog.js
+++ b/miniprogram_npm/tdesign-miniprogram/dialog/dialog.js
@@ -8,14 +8,15 @@
import config from '../common/config';
import props from './props';
import { isObject, toCamel } from '../common/utils';
+import useCustomNavbar from '../mixins/using-custom-navbar';
const { prefix } = config;
const name = `${prefix}-dialog`;
let Dialog = class Dialog extends SuperComponent {
constructor() {
super(...arguments);
+ this.behaviors = [useCustomNavbar];
this.options = {
multipleSlots: true,
- addGlobalClass: true,
};
this.externalClasses = [
`${prefix}-class`,
@@ -72,7 +73,7 @@
};
this.methods = {
onTplButtonTap(e) {
- var _a, _b;
+ var _a, _b, _c;
const evtType = e.type;
const { type, extra } = e.target.dataset;
const button = this.data[`_${type}`];
@@ -92,7 +93,7 @@
(_a = this[toCamel(`on-${type}`)]) === null || _a === void 0 ? void 0 : _a.call(this, type);
}
if (evtType !== 'tap') {
- const success = ((_b = e.detail) === null || _b === void 0 ? void 0 : _b.errMsg.indexOf('ok')) > -1;
+ const success = ((_c = (_b = e.detail) === null || _b === void 0 ? void 0 : _b.errMsg) === null || _c === void 0 ? void 0 : _c.indexOf('ok')) > -1;
this.triggerEvent(success ? 'open-type-event' : 'open-type-error-event', e.detail);
}
},
--
Gitblit v1.9.3