windwalker-io / core

The framework extended library for Windwalker Starter application.
https://github.com/ventoviro/windwalker-starter
MIT License
4 stars 3 forks source link

[Edge] Compiled Component supports set attributes in component class #1255

Closed asika32764 closed 2 months ago

asika32764 commented 2 months ago

in php tmpl, the

<?php $component->withAttributes([]); ?>

Must use merge, this will clear all attributes.

asika32764 commented 2 months ago

https://github.com/windwalker-io/framework/commit/d46efcaceadcb35ae56feb151ac09aabea4dbb7e