fix(core): update
This commit is contained in:
1
test/elements/index.ts
Normal file
1
test/elements/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './test-demoelement';
|
27
test/elements/test-demoelement.ts
Normal file
27
test/elements/test-demoelement.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import { LitElement, customElement, TemplateResult, html } from 'lit-element';
|
||||
|
||||
import * as domtools from '@designestate/dees-domtools';
|
||||
|
||||
@customElement('test-demoelement')
|
||||
export class TestDemoelement extends LitElement {
|
||||
public static demo = () => html`<test-demoelement></test-demoelement>`;
|
||||
|
||||
public render() {
|
||||
return html`
|
||||
<style>
|
||||
.maincontainer {
|
||||
display: block;
|
||||
background: #fff;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
${domtools.breakpoints.cssForPhablet(`
|
||||
.maincontainer {
|
||||
background: #000;
|
||||
}
|
||||
`)}
|
||||
</style>
|
||||
<div class="maincontainer">This is a demo element</div>
|
||||
`;
|
||||
}
|
||||
}
|
3
test/index.ts
Normal file
3
test/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import * as wcctools from '../ts_web/index';
|
||||
import * as elements from './elements';
|
||||
wcctools.setupWccTools(elements as any, {});
|
Reference in New Issue
Block a user