sykj 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +68 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ <h1 align="center" >SYKJ</h1>
2
+
3
+ - 🤓 SY_UI
4
+ - 💪 Vue 3 Composition API
5
+ - 🔥 Written in TypeScript
6
+
7
+ ## 快速开始
8
+
9
+ ### 安装
10
+
11
+ ```typescript
12
+ # NPM
13
+ $ npm install sykj --save
14
+
15
+ # Yarn
16
+ $ yarn add sykj
17
+
18
+ # pnpm
19
+ $ pnpm install sykj
20
+ ```
21
+
22
+ ### 使用
23
+
24
+ ```typescript
25
+ // main.ts
26
+ import { createApp } from "vue";
27
+ import sykj from "sykj";
28
+ import App from "./App.vue";
29
+
30
+ const app = createApp(App);
31
+
32
+ app.use(sykj);
33
+ app.mount("#app");
34
+ ```
35
+
36
+ ```vue
37
+ // App.vue
38
+ <template>
39
+ <div class="app">
40
+ <input type="text" />
41
+ <SyKeyboard />
42
+ </div>
43
+ </template>
44
+
45
+ <script setup>
46
+ import SyKeyboard from "sykj";
47
+ </script>
48
+
49
+ <style lang="scss" scoped>
50
+ .app {
51
+ height: 100vh;
52
+ display: flex;
53
+ justify-content: center;
54
+ align-items: center;
55
+ }
56
+ </style>
57
+ ```
58
+
59
+ ```vue
60
+ // ***.vue
61
+
62
+ <template>
63
+ <div class="app">
64
+ <input type="text" />
65
+ <!-- 使用input or textarea 聚焦时自动打开键盘-->
66
+ </div>
67
+ </template>
68
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sykj",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "main": "lib/common.ts",
6
6
  "files": [
@@ -12,6 +12,6 @@
12
12
  "test": "echo \"Error: no test specified\" && exit 1"
13
13
  },
14
14
  "keywords": [],
15
- "author": "IU",
15
+ "author": "IUHua",
16
16
  "license": "MIT"
17
17
  }