-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[optimize] replace Web Field mixin with Form Field decorator
[fix] JSX props & children types
- Loading branch information
Showing
12 changed files
with
164 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.parcelrc | ||
.eslintrc.json | ||
jest.config.ts | ||
test/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "@parcel/config-default", | ||
"transformers": { | ||
"*.{ts,tsx}": [ | ||
"@parcel/transformer-typescript-tsc" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { HTMLFieldProps } from 'web-utility'; | ||
import { component, formField, observer } from '../source'; | ||
|
||
@component({ | ||
tagName: 'test-field', | ||
mode: 'open' | ||
}) | ||
@formField | ||
@observer | ||
export class TestField extends HTMLElement { | ||
declare props: HTMLFieldProps; | ||
|
||
declare name: string; | ||
declare value: string; | ||
|
||
render() { | ||
const { name } = this; | ||
|
||
return ( | ||
<input | ||
name={name} | ||
// @ts-ignore | ||
onChange={({ currentTarget: { value } }) => | ||
(this.value = value) | ||
} | ||
/> | ||
); | ||
} | ||
} |
Oops, something went wrong.
54d9099
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for web-cell ready!
✅ Preview
https://web-cell-6e1dj0kis-techquery.vercel.app
Built with commit 54d9099.
This pull request is being automatically deployed with vercel-action