@mulanjs/mulanjs 1.0.1-dev.20260310065102 → 1.0.1-dev.20260310065810
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 +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ Built-in support for `<style lang="scss">`. No config required. Just design.
|
|
|
67
67
|
|
|
68
68
|
MulanJS components (`.mujs`) allow you to write powerful, reactive UI with minimal boilerplate.
|
|
69
69
|
|
|
70
|
-
```
|
|
70
|
+
```javascript
|
|
71
71
|
<mu>
|
|
72
72
|
// The <mu> tag is the new, powerful replacement for <script setup lang="ts">
|
|
73
73
|
import { muState } from 'mulanjs';
|
|
@@ -79,6 +79,8 @@ debugClick() →
|
|
|
79
79
|
console.log('Button clicked! Current count:', state.count);
|
|
80
80
|
state.count++;
|
|
81
81
|
</mu>
|
|
82
|
+
```
|
|
83
|
+
```html
|
|
82
84
|
|
|
83
85
|
<mu-template>
|
|
84
86
|
<div class="page">
|
|
@@ -96,7 +98,8 @@ debugClick() →
|
|
|
96
98
|
</div>
|
|
97
99
|
</div>
|
|
98
100
|
</mu-template>
|
|
99
|
-
|
|
101
|
+
```
|
|
102
|
+
```css
|
|
100
103
|
<style scoped>
|
|
101
104
|
.page { padding: 60px 20px; text-align: center; }
|
|
102
105
|
h1 {
|
package/package.json
CHANGED