matrix_components 2.0.303 → 2.0.305
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -142,10 +142,12 @@ function updateDialogOption() {
|
|
|
142
142
|
if (dialogInstances.value.length > 0) {
|
|
143
143
|
// 更新最后一个弹窗的选项
|
|
144
144
|
const lastInstance = dialogInstances.value[dialogInstances.value.length - 1]
|
|
145
|
+
// 现在可以直接更新弹窗标题了
|
|
145
146
|
lastInstance.updateOption({
|
|
146
|
-
|
|
147
|
+
title: '更新后的标题',
|
|
148
|
+
params: { test: '更新后的参数' }
|
|
147
149
|
})
|
|
148
|
-
console.log('
|
|
150
|
+
console.log('已更新弹窗标题和选项')
|
|
149
151
|
} else {
|
|
150
152
|
console.warn('没有打开的弹窗实例')
|
|
151
153
|
}
|