File tree 1 file changed +13
-9
lines changed
src/packages/__VUE/signature
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 9
9
``` javascript
10
10
import { createApp } from ' vue' ;
11
11
// vue
12
- import { Signature } from ' @nutui/nutui' ;
12
+ import { Signature } from ' @nutui/nutui-taro ' ;
13
13
14
14
const app = createApp ();
15
15
app .use (Signature);
@@ -22,14 +22,16 @@ app.use(Signature);
22
22
23
23
``` html
24
24
<div class =" demo" >
25
- <nut-signature
26
- :lineWidth =" lineWidth"
27
- :strokeStyle =" strokeStyle"
28
- @confirm =" confirm"
29
- @clear =" clear"
30
- />
31
- </div >
32
- setup() {
25
+ <nut-signature
26
+ :lineWidth =" lineWidth"
27
+ :strokeStyle =" strokeStyle"
28
+ @confirm =" confirm"
29
+ @clear =" clear"
30
+ ></nut-signature >
31
+ </div >
32
+ <script >
33
+ export default {
34
+ setup () {
33
35
const state = reactive ({
34
36
lineWidth: 4 ,
35
37
strokeStyle: ' green' ,
@@ -56,6 +58,8 @@ setup() {
56
58
};
57
59
return { ... state, confirm, clear };
58
60
}
61
+ }
62
+ </script >
59
63
```
60
64
61
65
## API
You can’t perform that action at this time.
0 commit comments