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
@@ -1,4 +1,12 @@
1
1
  # **组件库2.0**
2
+
3
+ ```
4
+ version:2.0.305
5
+ 2025年10月21日15:05:11
6
+ 更新日志:
7
+ 1.NsDialog添加修改标题的方法
8
+ ```
9
+
2
10
  ```
3
11
  version:2.0.302
4
12
  2025年10月21日10:03:50
@@ -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
- params: { test: 'updated_' + Date.now() }
147
+ title: '更新后的标题',
148
+ params: { test: '更新后的参数' }
147
149
  })
148
- console.log('已更新弹窗选项')
150
+ console.log('已更新弹窗标题和选项')
149
151
  } else {
150
152
  console.warn('没有打开的弹窗实例')
151
153
  }