vsn 0.1.110 → 0.1.111
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/demo/examples/component-slots.html +12 -10
- package/demo/vsn.js +2 -2
- package/dist/Component.js +51 -30
- package/dist/Component.js.map +1 -1
- package/dist/DOM.js +1 -1
- package/dist/DOM.js.map +1 -1
- package/dist/Tag/SlottedTag.js +4 -13
- package/dist/Tag/SlottedTag.js.map +1 -1
- package/dist/attributes/Bind.d.ts +0 -1
- package/dist/attributes/Bind.js +3 -16
- package/dist/attributes/Bind.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/Component.ts +22 -10
- package/src/DOM.ts +2 -2
- package/src/Tag/SlottedTag.ts +1 -3
- package/src/attributes/Bind.ts +2 -5
- package/src/version.ts +1 -1
- package/dist/vsn.min.js +0 -3
- package/dist/vsn.min.js.LICENSE.txt +0 -9
|
@@ -7,22 +7,24 @@
|
|
|
7
7
|
<style></style>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<test-component>
|
|
16
|
-
<button slot="cta" type="button">Component Two <span vsn-bind="data.count"></span></button>
|
|
17
|
-
<h1 slot="display">Hihi</h1>
|
|
18
|
-
</test-component>
|
|
10
|
+
<div vsn-scope:options="{'testing': true}">
|
|
11
|
+
<test-component>
|
|
12
|
+
<button slot="cta" type="button">Component One <strong vsn-bind="data.count"></strong></button>
|
|
13
|
+
<h1 slot="display">Hihi <span vsn-if="options.testing">worky</span></h1>
|
|
14
|
+
</test-component>
|
|
19
15
|
|
|
16
|
+
<test-component>
|
|
17
|
+
<button slot="cta" type="button">Component Two <strong vsn-bind="data.count"></strong></button>
|
|
18
|
+
<h1 slot="display">Hihi <span vsn-if="options.testing">worky</span></h1>
|
|
19
|
+
</test-component>
|
|
20
|
+
</div>
|
|
20
21
|
<script type="text/javascript" src="../vsn.js"></script>
|
|
21
22
|
|
|
22
23
|
<template vsn-component:test-component>
|
|
23
24
|
<div vsn-scope:data="{'count': -1}">
|
|
24
25
|
<slot name="cta" vsn-on:click="data.count += 1; log(data.count);"></slot>
|
|
25
|
-
<slot name="display" vsn-if="data.count
|
|
26
|
+
<slot name="display" vsn-if="data.count > 5"></slot>
|
|
27
|
+
<button vsn-on:click="options.testing = !options.testing; log(options.testing);" type="button">Toggle</button>
|
|
26
28
|
</div>
|
|
27
29
|
</template>
|
|
28
30
|
</body>
|