未验证 提交 fe693889 编写于 作者: R REJack

added collapse, expand & toggleMaximize to run via js script

上级 64ef08f3
......@@ -170,7 +170,7 @@ const Widget = (($) => {
$(this).data(DATA_KEY, typeof config === 'string' ? data : config)
}
if (typeof config === 'string' && config.match(/remove|toggle/)) {
if (typeof config === 'string' && config.match(/collapse|expand|remove|toggle|toggleMaximize/)) {
data[config]()
} else if (typeof config === 'object') {
data._init($(this))
......
......@@ -1051,7 +1051,7 @@
$(this).data(DATA_KEY, typeof config === 'string' ? data : config);
}
if (typeof config === 'string' && config.match(/remove|toggle/)) {
if (typeof config === 'string' && config.match(/remove|toggle|toggleMaximize/)) {
data[config]();
} else if (typeof config === 'object') {
data._init($(this));
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册