cnhis-design-vue 3.1.11-beta.0 → 3.1.11-beta.1
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
|
@@ -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
|
```
|
|
@@ -1385,7 +1385,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1385
1385
|
arrow: {
|
|
1386
1386
|
type: import("vue").PropType<boolean | undefined>;
|
|
1387
1387
|
default: undefined;
|
|
1388
|
-
};
|
|
1388
|
+
}; /**
|
|
1389
|
+
* 针对 bigTable 的设置列
|
|
1390
|
+
* type: 列的类型
|
|
1391
|
+
* field: 列字段名(注:属性层级越深,渲染性能将直线下降)
|
|
1392
|
+
* title: 列标题(支持开启国际化)
|
|
1393
|
+
* width: 列宽度(如果为空则均匀分配剩余宽度,如果全部列固定了,可能会存在宽屏下不会铺满,可以配合 "%" 或者 "min-width" 布局)
|
|
1394
|
+
* minWidth: 最小列宽度;会自动将剩余空间按比例分配
|
|
1395
|
+
* resizable: 列是否允许拖动列宽调整大小
|
|
1396
|
+
* visible: 列是否显示
|
|
1397
|
+
* fixed: 将列固定在左侧或者右侧(注意:固定列应该放在左右两侧的位置)
|
|
1398
|
+
* align: 列对齐方式
|
|
1399
|
+
* headerAlign: 表头列的对齐方式
|
|
1400
|
+
* footerAlign: 表尾列的对齐方式
|
|
1401
|
+
* formatter: 格式化显示内容 Function({cellValue, row, column})
|
|
1402
|
+
* sortable: 是否允许列排序
|
|
1403
|
+
*/
|
|
1389
1404
|
minWidth: NumberConstructor;
|
|
1390
1405
|
maxWidth: NumberConstructor;
|
|
1391
1406
|
}, {
|
|
@@ -975,10 +975,11 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
975
975
|
if (index === 0) {
|
|
976
976
|
return null;
|
|
977
977
|
} else if (index === 1) {
|
|
978
|
-
return
|
|
978
|
+
return getFooterGroup(columns, data, props);
|
|
979
979
|
}
|
|
980
980
|
return null;
|
|
981
981
|
});
|
|
982
|
+
console.log("\u603B\u8BA1", groupText);
|
|
982
983
|
emit("setGroupText", groupText);
|
|
983
984
|
state.groupText = groupText;
|
|
984
985
|
return [groupColumns];
|
|
@@ -2251,9 +2252,6 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2251
2252
|
reserve: true,
|
|
2252
2253
|
highlight: true
|
|
2253
2254
|
},
|
|
2254
|
-
"scroll-x": {
|
|
2255
|
-
enabled: false
|
|
2256
|
-
},
|
|
2257
2255
|
"scroll-y": {
|
|
2258
2256
|
gt: 50
|
|
2259
2257
|
},
|
|
@@ -101,11 +101,12 @@ 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;
|
|
105
105
|
readonly collapsedRows: {
|
|
106
106
|
readonly type: NumberConstructor;
|
|
107
107
|
readonly default: 1;
|
|
108
108
|
};
|
|
109
|
+
/** line 类型 */
|
|
109
110
|
readonly itemStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
110
111
|
readonly xGap: {
|
|
111
112
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -15326,7 +15327,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15326
15327
|
dotColorActive: string;
|
|
15327
15328
|
dotColorDisabled: string;
|
|
15328
15329
|
buttonBorderColor: string;
|
|
15329
|
-
buttonBorderColorActive: string;
|
|
15330
|
+
buttonBorderColorActive: string;
|
|
15330
15331
|
buttonBorderColorHover: string;
|
|
15331
15332
|
buttonColor: string;
|
|
15332
15333
|
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 {};
|