@jinntec/fore 1.4.0 → 1.5.0
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/dist/fore-dev.js +8 -8
- package/dist/fore-dev.js.map +1 -1
- package/dist/fore.js +7 -7
- package/dist/fore.js.map +1 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/src/actions/abstract-action.js +42 -15
- package/src/fore.js +1 -0
- package/src/fx-fore.js +56 -0
- package/src/getInScopeContext.js +17 -1
- package/src/ui/fx-repeat-attributes.js +442 -0
- package/src/ui/fx-repeat.js +8 -0
package/src/ui/fx-repeat.js
CHANGED
|
@@ -90,9 +90,15 @@ export class FxRepeat extends foreElementMixin(HTMLElement) {
|
|
|
90
90
|
this.setAttribute('index', idx);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
_getRef(){
|
|
94
|
+
return this.getAttribute('ref');
|
|
95
|
+
}
|
|
96
|
+
|
|
93
97
|
connectedCallback() {
|
|
98
|
+
console.log('connectedCallback',this);
|
|
94
99
|
// this.display = window.getComputedStyle(this, null).getPropertyValue("display");
|
|
95
100
|
this.ref = this.getAttribute('ref');
|
|
101
|
+
// this.ref = this._getRef();
|
|
96
102
|
// console.log('### fx-repeat connected ', this.id);
|
|
97
103
|
this.addEventListener('item-changed', e => {
|
|
98
104
|
console.log('handle index event ', e);
|
|
@@ -164,6 +170,8 @@ export class FxRepeat extends foreElementMixin(HTMLElement) {
|
|
|
164
170
|
</style>
|
|
165
171
|
${html}
|
|
166
172
|
`;
|
|
173
|
+
|
|
174
|
+
// this.init();
|
|
167
175
|
}
|
|
168
176
|
|
|
169
177
|
init() {
|