ike-weblca-html 1.0.1 → 1.0.3
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/MyComponent.ts +20 -0
- package/index.ts +0 -0
- package/package.json +5 -3
- package/index.js +0 -1
- package/src/header.js +0 -19
package/MyComponent.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit-element';
|
|
2
|
+
|
|
3
|
+
export class MyComponent extends LitElement {
|
|
4
|
+
static styles = css`
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
padding: 16px;
|
|
8
|
+
background-color: #f1f1f1;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
render() {
|
|
14
|
+
return html`
|
|
15
|
+
<h1>Hello, Lit Element!</h1>
|
|
16
|
+
`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
customElements.define('my-component', MyComponent);
|
package/index.ts
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ike-weblca-html",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "weblca-html-header&footer",
|
|
5
|
-
"main": "index.
|
|
5
|
+
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"author": "yzp",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"lit": "^2.7.6"
|
|
12
|
+
"lit": "^2.7.6",
|
|
13
|
+
"lit-element": "^3.3.2",
|
|
14
|
+
"lit-html": "^2.7.5"
|
|
13
15
|
}
|
|
14
16
|
}
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ikeWebHeader } from "./src/header.js"
|
package/src/header.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { html, css, LitElement } from 'lit';
|
|
2
|
-
|
|
3
|
-
export class ikeWebHeader extends LitElement {
|
|
4
|
-
static styles = css`
|
|
5
|
-
.button {
|
|
6
|
-
padding: 10px 20px;
|
|
7
|
-
background-color: #3498db;
|
|
8
|
-
color: #fff;
|
|
9
|
-
border: none;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
render() {
|
|
15
|
-
return html`<div>这是一个页头</div>`;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
customElements.define('ike-weblca-header', ikeWebHeader);
|