Skip to content

Commit

Permalink
config: build webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver3109 committed Sep 4, 2020
1 parent f7a2c84 commit 48bf8f3
Show file tree
Hide file tree
Showing 15 changed files with 1,962 additions and 96 deletions.
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# registry = https://registry.npm.taobao.org
12 changes: 7 additions & 5 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,19 @@ <h1>dragon-totem.js demo</h1>
<button onclick="onClickWidthSmaller()">宽度 -2px</button>
</div>
</div>
<link rel="stylesheet" href="../dist/graffiti.css" />
<script src="../dist/dragon-totem.min.js"></script>
<link rel="stylesheet" href="../dist/umd/dragon-totem.css" />
<script src="../dist/umd/dragon-totem.bundle.js"></script>
<script>
let textFieldDom = null
let textFieldComponent = null
let graf = null
window.onload = function () {
console.log('document 初始化')
graf = new dragon() - totem('content')
graf.init(375, 590)
graf.addBgImg('./bg.jpeg')
graf = new DragonTotem('content', 375, 590)
const img = new Image()
img.src =
'http://uplus.huwei1024.com:50080/upload/wxb/static/2020/09/04/c0df84b7e8194ce29f2e8ab792519a06.jpeg'
graf.addBgImg(img)
// 监听事件
graf.on('textFieldFocus', (e) => {
textFieldDom = e
Expand Down
Loading

0 comments on commit 48bf8f3

Please sign in to comment.