cnhis-design-vue 3.0.2 → 3.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.
- package/CHANGELOG.md +2 -0
- package/es/big-table/index.css +1 -0
- package/es/big-table/index.js +36656 -6037
- package/es/button-print/index.css +1 -0
- package/es/drag-layout/index.css +1 -0
- package/es/drag-layout/index.js +5733 -75
- package/es/grid/index.css +43 -41
- package/es/grid/index.js +30625 -6
- package/es/index.css +1 -0
- package/es/index.js +30768 -149
- package/package.json +1 -1
- package/packages/grid/index.ts +4 -2
- package/packages/grid/src/Grid.tsx +1 -6
- package/packages/grid/src/hooks.ts +1 -2
- package/packages/index.ts +12 -12
- package/tsconfig.node.json +1 -1
package/package.json
CHANGED
package/packages/grid/index.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { App } from "vue";
|
|
2
2
|
|
|
3
3
|
// 导入组件
|
|
4
|
-
|
|
4
|
+
import 'vxe-table/lib/style.css'
|
|
5
|
+
import 'xe-utils'
|
|
6
|
+
import VXETable from 'vxe-table'
|
|
5
7
|
import Grid from "./src/Grid"
|
|
6
8
|
|
|
7
9
|
// type SFCWithInstall<T> = T & { install(app: App): void }; // vue 安装
|
|
8
10
|
|
|
9
11
|
// 为组件提供 install 安装方法,供按需引入
|
|
10
12
|
Grid.install = function(app: App) {
|
|
11
|
-
|
|
13
|
+
app.use(VXETable);
|
|
12
14
|
app.component(Grid.name, Grid);
|
|
13
15
|
};
|
|
14
16
|
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { defineComponent } from "vue"
|
|
2
|
-
import 'xe-utils'
|
|
3
|
-
// import VXETable, { Grid } from 'vxe-table'
|
|
4
|
-
import { Grid } from 'vxe-table'
|
|
5
|
-
// import 'vxe-table/lib/style.css'
|
|
6
2
|
import create from '@/core/create.js';
|
|
7
3
|
import { useMethods } from './hooks'
|
|
8
4
|
|
|
9
|
-
// export { VXETable }
|
|
10
5
|
|
|
11
6
|
export default defineComponent(create({
|
|
12
7
|
name: "Grid",
|
|
13
8
|
setup(props: any, { attrs, slots }: any) {
|
|
14
|
-
const renderVN = () => <
|
|
9
|
+
const renderVN = () => <vxe-grid ref="xGrid" { ...attrs }>{slots}</vxe-grid>
|
|
15
10
|
return {
|
|
16
11
|
...useMethods(),
|
|
17
12
|
renderVN
|
|
@@ -156,8 +156,7 @@ export const useMethods = () => {
|
|
|
156
156
|
const funcs: any = {}
|
|
157
157
|
methodKeys.forEach(name => {
|
|
158
158
|
funcs[name] = (...args: any[]) => {
|
|
159
|
-
|
|
160
|
-
return $xGrid && $xGrid[name](...args)
|
|
159
|
+
return xGrid.value && xGrid.value[name](...args)
|
|
161
160
|
}
|
|
162
161
|
})
|
|
163
162
|
|
package/packages/index.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { App } from "vue";
|
|
2
2
|
// 导入组件
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
3
|
+
import { default as CGrid } from './grid';
|
|
4
|
+
import { default as CBigTable } from './big-table';
|
|
5
|
+
import { default as CDragLayout } from './drag-layout';
|
|
6
|
+
import { default as CButtonPrint } from './button-print';
|
|
7
7
|
|
|
8
8
|
// 存储组件列表
|
|
9
9
|
const components: any[] = [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
CGrid,
|
|
11
|
+
CBigTable,
|
|
12
|
+
CDragLayout,
|
|
13
|
+
CButtonPrint
|
|
14
14
|
];
|
|
15
15
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
16
16
|
const install = function(app: App) {
|
|
@@ -21,10 +21,10 @@ const install = function(app: App) {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
CGrid,
|
|
25
|
+
CBigTable,
|
|
26
|
+
CDragLayout,
|
|
27
|
+
CButtonPrint
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export default {
|
package/tsconfig.node.json
CHANGED