@cc-component/cc-ex-component 1.2.4 → 1.2.6

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.
@@ -208,7 +208,7 @@ export class ReferenceComponent extends Component {
208
208
  public refreshUI(data: ${iinterface}) { super.refreshUI(data); }
209
209
 
210
210
  //#region ✅ 使用新装饰器(自动响应式 + 路径推导)
211
- @BindViewModel(new ${className}Data())
211
+ @BindViewModel(${className}Data)
212
212
  viewModel: ${className}Data;`
213
213
  text += viewModel + "\n\n"
214
214
  text += ` //#region ✅ UI属性`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-ex-component",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",