-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add react-at & fix loadJsForceUmd deps
- Loading branch information
Showing
7 changed files
with
46 additions
and
4 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,4 +1,5 @@ | ||
- hello-world.jsx | ||
- react-at.jsx | ||
- vue-at.js | ||
- vue-render-h.js | ||
- vue-string-template.js | ||
|
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,35 @@ | ||
//// hack for current version of react-at | ||
await loadJs('https://unpkg.com/[email protected]/prop-types.min.js') | ||
React.PropTypes = PropTypes | ||
|
||
// await loadJs('https://unpkg.com/react-at') | ||
await loadJsForceUmd({ | ||
url: 'https://unpkg.com/[email protected]/dist/index.js', | ||
name: 'ReactAt', | ||
deps: { react: 'React' }, | ||
}) | ||
//// | ||
|
||
let { default: At } = ReactAt | ||
|
||
appendCss(` | ||
.editor { margin-top:20px; padding:4px 8px; height:120px; border:solid 1px gray; white-space:pre-wrap } | ||
`) | ||
|
||
let members = ['fritx', 'linguokang', 'huangruichang'] | ||
|
||
let App = () => { | ||
return ( | ||
<div style={{ padding: 20 }}> | ||
<h1>react-at</h1> | ||
<a target="_blank" href="https://github.com/fritx/react-at"> | ||
https://github.com/fritx/react-at | ||
</a> | ||
<At members={members}> | ||
<div style={{ height: 100 }}> | ||
<div class="editor" contentEditable>@fritx @huangruichang </div> | ||
</div> | ||
</At> | ||
</div> | ||
) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ await loadJs('https://unpkg.com/[email protected]/dist/vue.min.js') | |
await loadJsForceUmd({ | ||
url: 'https://unpkg.com/[email protected]/dist/vue-at.js', | ||
name: 'VueAt', | ||
deps: { vue: Vue }, | ||
}) | ||
|
||
appendCss(` | ||
|
@@ -18,6 +17,9 @@ let App = { | |
template: ` | ||
<div class="container"> | ||
<h1>Vue At</h1> | ||
<a target="_blank" href="https://github.com/fritx/vue-at"> | ||
https://github.com/fritx/vue-at | ||
</a> | ||
<at :members="members" v-model="input"> | ||
<div class="editor" contenteditable></div> | ||
</at> | ||
|
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