MVVM component framework San 3.5.8 released with optimizations and new features

  

San 3.5.8 has been released, this update not only introduces new features, but also includes optimizations and bug fixes, as follows:

  • [New feature] - The splice method of data supports the startIndex parameter as a negative value

  • [New feature] - Supports s-bind instruction, which is used for the generic data transfer of components and the generic attribute setting of elements

  • [Optimization] - When element is updated, the null value of common attribute is set to an empty string

  • [Bug Fix] - Array data operation is performed in created, the view is incorrectly updated in the next clock cycle

San is an MVVM component framework. It's small size (12K), good compatibility (IE6), and excellent performance. It is a reliable and dependable solution for implementing responsive user interfaces.

Through declarative HTML-like view templates, San not only supports all the syntax features of native HTML, but also supports data-to-view binding instructions, the most commonly used branch and loop instructions in business development, etc., while maintaining good ease of use. On this basis, the framework completes string-based template parsing, constructs the node relationship tree of the view layer, and quickly generates UI views through a high-performance view engine. The data defined in San will be encapsulated, so that when the data changes effectively, the San component will be notified. The San component relies on the node relationship tree generated in the template compilation phase to determine the minimum view that needs to be changed, and then complete the asynchronous update of the view, ensuring the view update. of efficiency.

Component is the basic unit of San, which is the encapsulation unit of independent data, logic and view. From a page perspective, a component is an extension of an HTML element; from a functional pattern perspective, a component is a ViewModel. The San component provides a complete life cycle, which is consistent with the life cycle of WebComponent. There is a nestable tree relationship between components, which fully supports component hierarchy and communication between components, and facilitates data flow between components. San's component mechanism can effectively support the componentization requirements of business development.

San supports component inverse solution to provide server-side rendering capabilities, which can solve the delay and SEO problems in response to user interaction caused by pure front-end rendering. In addition, San also provides some peripheral open source products, which can be used in conjunction with San to help developers quickly build maintainable large-scale SPA applications.

Source code download:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325841797&siteId=291194637