@vxe-ui/plugin-render-antd 4.3.1 → 4.4.0
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/LICENSE +20 -20
- package/README.md +171 -171
- package/dist/index.umd.js +44 -13
- package/dist/index.umd.min.js +1 -1
- package/es/index.esm.js +3 -3
- package/es/index.js +3 -3
- package/es/table/index.js +27 -4
- package/lib/index.common.js +3 -3
- package/lib/index.js +3 -3
- package/lib/index.umd.js +44 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/table/index.js +36 -5
- package/package.json +77 -77
- package/src/form/index.ts +313 -313
- package/src/form-design/checkbox-widget.ts +165 -165
- package/src/form-design/date-picker-widget.ts +145 -145
- package/src/form-design/index.ts +101 -101
- package/src/form-design/input-widget.ts +145 -145
- package/src/form-design/number-input-widget.ts +145 -145
- package/src/form-design/radio-widget.ts +165 -165
- package/src/form-design/select-widget.ts +157 -157
- package/src/form-design/switch-widget.ts +141 -141
- package/src/form-design/textarea-widget.ts +149 -149
- package/src/form-design/use.ts +255 -255
- package/src/index.ts +118 -118
- package/src/store/index.ts +5 -5
- package/src/table/index.ts +568 -544
- package/src/util/comp.ts +10 -10
- package/types/index.d.ts +19 -19
package/src/util/comp.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { resolveComponent } from 'vue'
|
|
2
|
-
import { globalConfig, componentMaps } from '../store'
|
|
3
|
-
|
|
4
|
-
export function getCurrComponent (name: string) {
|
|
5
|
-
const comp = componentMaps[name] || (globalConfig.Antd ? globalConfig.Antd[name] : null)
|
|
6
|
-
if (comp) {
|
|
7
|
-
return comp
|
|
8
|
-
}
|
|
9
|
-
return resolveComponent(name)
|
|
10
|
-
}
|
|
1
|
+
import { resolveComponent } from 'vue'
|
|
2
|
+
import { globalConfig, componentMaps } from '../store'
|
|
3
|
+
|
|
4
|
+
export function getCurrComponent (name: string) {
|
|
5
|
+
const comp = componentMaps[name] || (globalConfig.Antd ? globalConfig.Antd[name] : null)
|
|
6
|
+
if (comp) {
|
|
7
|
+
return comp
|
|
8
|
+
}
|
|
9
|
+
return resolveComponent(name)
|
|
10
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { VxeUIExport } from 'vxe-pc-ui'
|
|
2
|
-
|
|
3
|
-
export interface VxeUIPluginRenderAntdOptions {
|
|
4
|
-
Antd?: any
|
|
5
|
-
/**
|
|
6
|
-
* 前缀 class,默认 'ant-'
|
|
7
|
-
*/
|
|
8
|
-
prefixCls?: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* 基于 Vxe UI 的适配插件,用于兼容 ant-design-vue 组件库
|
|
13
|
-
*/
|
|
14
|
-
export declare const VxeUIPluginRenderAntd: {
|
|
15
|
-
component (comp: any): void
|
|
16
|
-
install (VxeUI: VxeUIExport, options?: VxeUIPluginRenderAntdOptions): void
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default VxeUIPluginRenderAntd
|
|
1
|
+
import { VxeUIExport } from 'vxe-pc-ui'
|
|
2
|
+
|
|
3
|
+
export interface VxeUIPluginRenderAntdOptions {
|
|
4
|
+
Antd?: any
|
|
5
|
+
/**
|
|
6
|
+
* 前缀 class,默认 'ant-'
|
|
7
|
+
*/
|
|
8
|
+
prefixCls?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 基于 Vxe UI 的适配插件,用于兼容 ant-design-vue 组件库
|
|
13
|
+
*/
|
|
14
|
+
export declare const VxeUIPluginRenderAntd: {
|
|
15
|
+
component (comp: any): void
|
|
16
|
+
install (VxeUI: VxeUIExport, options?: VxeUIPluginRenderAntdOptions): void
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default VxeUIPluginRenderAntd
|