cnhis-design-vue 3.1.11-beta.8 → 3.1.11
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 +22 -22
- package/es/packages/drag-layout/src/DragLayout.vue.d.ts +2 -3
- package/global.d.ts +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# Vue 3 + Typescript + Vite
|
|
2
|
-
|
|
3
|
-
This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
-
|
|
5
|
-
## Recommended IDE Setup
|
|
6
|
-
|
|
7
|
-
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
|
|
8
|
-
|
|
9
|
-
## Type Support For `.vue` Imports in TS
|
|
10
|
-
|
|
11
|
-
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
|
|
12
|
-
|
|
13
|
-
## 使用
|
|
14
|
-
```JavaScript
|
|
15
|
-
import { createApp } from "vue";
|
|
16
|
-
import App from "./App.vue";
|
|
17
|
-
import cui from "cnhis-design-vue";
|
|
18
|
-
import "cnhis-design-vue/es/index.css";
|
|
19
|
-
|
|
20
|
-
const app = createApp(App);
|
|
21
|
-
app.use(cui);
|
|
22
|
-
app.mount("#app");
|
|
1
|
+
# Vue 3 + Typescript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
|
|
8
|
+
|
|
9
|
+
## Type Support For `.vue` Imports in TS
|
|
10
|
+
|
|
11
|
+
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
|
|
12
|
+
|
|
13
|
+
## 使用
|
|
14
|
+
```JavaScript
|
|
15
|
+
import { createApp } from "vue";
|
|
16
|
+
import App from "./App.vue";
|
|
17
|
+
import cui from "cnhis-design-vue";
|
|
18
|
+
import "cnhis-design-vue/es/index.css";
|
|
19
|
+
|
|
20
|
+
const app = createApp(App);
|
|
21
|
+
app.use(cui);
|
|
22
|
+
app.mount("#app");
|
|
23
23
|
```
|
|
@@ -101,12 +101,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
101
|
readonly default: 24;
|
|
102
102
|
};
|
|
103
103
|
readonly itemResponsive: BooleanConstructor;
|
|
104
|
-
readonly collapsed: BooleanConstructor;
|
|
104
|
+
readonly collapsed: BooleanConstructor; /** line 类型 */
|
|
105
105
|
readonly collapsedRows: {
|
|
106
106
|
readonly type: NumberConstructor;
|
|
107
107
|
readonly default: 1;
|
|
108
108
|
};
|
|
109
|
-
/** line 类型 */
|
|
110
109
|
readonly itemStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
111
110
|
readonly xGap: {
|
|
112
111
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -15327,7 +15326,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15327
15326
|
dotColorActive: string;
|
|
15328
15327
|
dotColorDisabled: string;
|
|
15329
15328
|
buttonBorderColor: string;
|
|
15330
|
-
buttonBorderColorActive: string;
|
|
15329
|
+
buttonBorderColorActive: string; /** line 类型 */
|
|
15331
15330
|
buttonBorderColorHover: string;
|
|
15332
15331
|
buttonColor: string;
|
|
15333
15332
|
buttonColorActive: string;
|
package/global.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as NaiveUI from 'naive-ui';
|
|
2
|
-
|
|
3
|
-
declare module 'naive-ui' {
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
export const NTree: any;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export {};
|
|
1
|
+
import * as NaiveUI from 'naive-ui';
|
|
2
|
+
|
|
3
|
+
declare module 'naive-ui' {
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
export const NTree: any;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export {};
|