Skip to content

Commit

Permalink
chore: revert p-v4-components-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
shining-mind committed Jan 24, 2024
1 parent 62b1181 commit 0353819
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 49 deletions.
28 changes: 0 additions & 28 deletions src/components/pages/p-v4-components-demo/p-v4-components-demo.ss
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,3 @@
- include 'components/super/i-static-page/i-static-page.component.ss'|b as placeholder

- template index() extends ['i-static-page.component'].index
- block body
< b-dummy ref = dummy
< b-select &
ref = select |
v-func = false |
:value = '1' |
:items = [
{value: '1', label: '001'},
{value: '2', label: '002'}
] |
:native = true |
:form = false
.

< . v-async-target
+= self.loadModules('components/dummies/b-dummy')
< b-dummy ref = dummyAsync
< b-select &
ref = selectAsync |
v-func = false |
:value = '3' |
:items = [
{value: '3', label: '003'},
{value: '4', label: '004'}
] |
:native = true |
:form = false
.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
* @packageDocumentation
*/

import iStaticPage, { component, prop, field, system, hook } from 'components/super/i-static-page/i-static-page';
import iStaticPage, { component, prop, field, system } from 'components/super/i-static-page/i-static-page';
import VDOM, * as VDOMAPI from 'components/friends/vdom';
import type iBlock from 'components/super/i-block/i-block';

export * from 'components/super/i-static-page/i-static-page';

Expand All @@ -28,13 +27,6 @@ console.time('Initializing');
*/
@component({root: true})
export default class pV4ComponentsDemo extends iStaticPage {
protected override readonly $refs!: iStaticPage['$refs'] & {
select?: iBlock;
selectAsync?: iBlock;
dummy?: iBlock;
dummyAsync?: iBlock;
};

/** {@link iStaticPage.selfDispatching} */
@prop(Boolean)
readonly selfDispatchingProp: boolean = false;
Expand All @@ -54,18 +46,6 @@ export default class pV4ComponentsDemo extends iStaticPage {
@field()
someField: unknown = 'foo';


@hook('mounted')
protected logRefs(): void {
this.console.log('select ref', this.$refs.select);
this.console.log('dummy ref', this.$refs.dummy);

this.waitRef('dummyAsync').then(() => {
this.console.log('async select ref', this.$refs.selectAsync);
this.console.log('async dummy ref', this.$refs.dummyAsync);
});
}

protected beforeCreate(): void {
//#unless runtime has storybook
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 0353819

Please sign in to comment.