cnhis-design-vue 3.1.14-beta.7 → 3.1.14-beta.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +22 -22
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/packages/field-set/index.d.ts +22 -16
- package/es/packages/field-set/src/FieldSet.vue.d.ts +212 -207
- package/es/packages/field-set/src/FieldSet.vue_vue_type_script_setup_true_lang.js +18 -7
- package/es/packages/field-set/src/NewFieldSet.vue.d.ts +1 -0
- package/es/packages/field-set/src/NewFieldSet.vue_vue_type_script_setup_true_lang.js +40 -36
- package/es/packages/field-set/src/OldFieldSet.vue.d.ts +11 -1
- package/es/packages/field-set/src/OldFieldSet.vue_vue_type_script_setup_true_lang.js +41 -36
- package/global.d.ts +8 -8
- package/package.json +153 -153
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
|
```
|
@@ -2245,7 +2245,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
2245
2245
|
const handleMenuClickEvent = (payload) => emit("menuClick", payload);
|
2246
2246
|
expose({
|
2247
2247
|
formatData,
|
2248
|
-
xGrid
|
2248
|
+
xGrid,
|
2249
|
+
loadColumn,
|
2250
|
+
loadData
|
2249
2251
|
});
|
2250
2252
|
return (_ctx, _cache) => {
|
2251
2253
|
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(` <div
|
@@ -2,13 +2,10 @@ import { SFCWithInstall } from '../../../es/src/types';
|
|
2
2
|
declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
3
3
|
type: {
|
4
4
|
type: StringConstructor;
|
5
|
-
required: false;
|
6
5
|
default: string;
|
7
6
|
};
|
8
7
|
}, {
|
9
|
-
|
10
|
-
type: string;
|
11
|
-
};
|
8
|
+
asyncInstance: import("vue").Ref<any>;
|
12
9
|
OldFieldSet: import("vue").DefineComponent<{
|
13
10
|
fields: {
|
14
11
|
type: import("vue").PropType<any[]>;
|
@@ -84,6 +81,16 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
84
81
|
isMiddleAndAdmin: import("vue").ComputedRef<boolean>;
|
85
82
|
showCheckBox: (key: string) => boolean;
|
86
83
|
hideTab: () => void;
|
84
|
+
getTableFields: () => {
|
85
|
+
id: string;
|
86
|
+
field: string;
|
87
|
+
visible: boolean;
|
88
|
+
sequence: number;
|
89
|
+
sortable: boolean;
|
90
|
+
title: string;
|
91
|
+
fixed: string;
|
92
|
+
minWidth: number;
|
93
|
+
}[];
|
87
94
|
handleFieldSave: () => void;
|
88
95
|
onCancle: () => void;
|
89
96
|
onChangeShow: (e: boolean, ele: {
|
@@ -108,17 +115,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
108
115
|
isFixed: number;
|
109
116
|
colWidth: number;
|
110
117
|
}) => void;
|
111
|
-
onButtonChecked: (e: boolean, itemButton: {
|
112
|
-
[key: string]: any;
|
113
|
-
sid: string;
|
114
|
-
columnName: string;
|
115
|
-
isShow: number;
|
116
|
-
isSort: number;
|
117
|
-
title: string;
|
118
|
-
alias: string;
|
119
|
-
isFixed: number;
|
120
|
-
colWidth: number;
|
121
|
-
}) => void;
|
122
118
|
calculateCheck: (key: string) => boolean;
|
123
119
|
handleAllCheck: (e: boolean, key: string) => void;
|
124
120
|
handleFieldClick: (item: {
|
@@ -2740,6 +2736,17 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
2740
2736
|
isMiddleAndAdmin: import("vue").ComputedRef<boolean>;
|
2741
2737
|
showCheckBox: (key: string) => boolean;
|
2742
2738
|
hideTab: () => void;
|
2739
|
+
getTableFields: () => {
|
2740
|
+
[key: string]: any;
|
2741
|
+
id: string;
|
2742
|
+
name: string;
|
2743
|
+
show: boolean;
|
2744
|
+
sort: boolean;
|
2745
|
+
alias: string;
|
2746
|
+
fixedShow: boolean;
|
2747
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
2748
|
+
columnWidth: number;
|
2749
|
+
}[];
|
2743
2750
|
handleFieldSave: () => void;
|
2744
2751
|
onCancle: () => void;
|
2745
2752
|
calculateCheck: (key: string) => boolean;
|
@@ -5291,7 +5298,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
5291
5298
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
5292
5299
|
type: {
|
5293
5300
|
type: StringConstructor;
|
5294
|
-
required: false;
|
5295
5301
|
default: string;
|
5296
5302
|
};
|
5297
5303
|
}>>, {
|