dydx-naive-ui-for-vue 0.1.2 → 0.1.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.
package/README.md
CHANGED
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
## 安装
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
pnpm add dydx-naive-ui
|
|
16
|
+
pnpm add dydx-naive-ui-for-vue
|
|
17
17
|
# 或者
|
|
18
|
-
npm install dydx-naive-ui
|
|
18
|
+
npm install dydx-naive-ui-for-vue
|
|
19
19
|
# 或者
|
|
20
|
-
yarn add dydx-naive-ui
|
|
20
|
+
yarn add dydx-naive-ui-for-vue
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 快速上手
|
|
@@ -27,7 +27,7 @@ yarn add dydx-naive-ui
|
|
|
27
27
|
在你的入口文件(如 `main.ts`)中引入样式:
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
|
-
import 'dydx-naive-ui/style.css';
|
|
30
|
+
import 'dydx-naive-ui-for-vue/style.css';
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
### 全局注册
|
|
@@ -35,7 +35,7 @@ import 'dydx-naive-ui/style.css';
|
|
|
35
35
|
```ts
|
|
36
36
|
import { createApp } from 'vue';
|
|
37
37
|
import App from './App.vue';
|
|
38
|
-
import DydxNaiveUI from 'dydx-naive-ui';
|
|
38
|
+
import DydxNaiveUI from 'dydx-naive-ui-for-vue';
|
|
39
39
|
|
|
40
40
|
const app = createApp(App);
|
|
41
41
|
app.use(DydxNaiveUI);
|
|
@@ -46,7 +46,7 @@ app.mount('#app');
|
|
|
46
46
|
|
|
47
47
|
```vue
|
|
48
48
|
<script setup lang="ts">
|
|
49
|
-
import { DydxNaiveForm, DydxNaiveTable } from 'dydx-naive-ui';
|
|
49
|
+
import { DydxNaiveForm, DydxNaiveTable } from 'dydx-naive-ui-for-vue';
|
|
50
50
|
</script>
|
|
51
51
|
```
|
|
52
52
|
|
package/package.json
CHANGED
|
File without changes
|