Skip to content

Commit

Permalink
Merge pull request #1 from tobe-fe-dalao/main
Browse files Browse the repository at this point in the history
pull
  • Loading branch information
ershisi214 committed Jul 8, 2022
2 parents 5cd23ac + ae6d72d commit 315b92d
Show file tree
Hide file tree
Showing 4 changed files with 662 additions and 162 deletions.
27 changes: 25 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ <h1 align="center">Hello 我是扫地盲僧!</h1>
<button id="param">param</button>
<div style="height:800px"></div>
<img src="./logo.svg" />
<!-- Target -->
<input id="foo" value="https://github.com/zenorocha/clipboard.js.git" />

<!-- Trigger -->
<button class="btn" data-clipboard-target="#foo">
<img src="assets/clippy.svg" alt="Copy to clipboard" />
</button>
</div>
</body>
<script type="text/javascript">
Expand All @@ -42,7 +49,8 @@ <h1 align="center">Hello 我是扫地盲僧!</h1>
keyCode,
start,
dayJs,
log
log,
copyJs
} = fastool
const obj = { name: '爱神的箭卡萨丁', age: 34, lib: { home: 'index' } }

Expand All @@ -51,7 +59,22 @@ <h1 align="center">Hello 我是扫地盲僧!</h1>
}
let state = observeProxy(obj, handle)
document.getElementById('param').onclick = () => {
console.log(dayJs())
copyJs().then(res => {
console.log(res, 'dasasdasd')
let test = new ClipboardJS('.btn');
console.log(test, '插件')
test.on('success', function (e) {
console.info('Action:', e.action);
console.info('Text:', e.text);
console.info('Trigger:', e.trigger);
e.clearSelection();
});

test.on('error', function (e) {
console.error('Action:', e.action);
console.error('Trigger:', e.trigger);
});
})
}
document.getElementById('set').onclick = () => {
state.age = 32
Expand Down
Loading

0 comments on commit 315b92d

Please sign in to comment.