@vxe-ui/plugin-render-element 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/src/util/comp.ts CHANGED
@@ -1,21 +1,21 @@
1
- import { resolveComponent } from 'vue'
2
- import { globalConfig, componentMaps } from '../store'
3
- import type { VxeGlobalRendererHandles } from 'vxe-table'
4
-
5
- export function getCurrComponent (name: string) {
6
- const comp = componentMaps[name] || (globalConfig.ElementPlus ? globalConfig.ElementPlus[name] : null)
7
- if (comp) {
8
- return comp
9
- }
10
- return resolveComponent(name)
11
- }
12
-
13
- export function hasInputType (renderOpts: VxeGlobalRendererHandles.RenderOptions) {
14
- switch (renderOpts.name) {
15
- case 'ElInput':
16
- case 'ElInputNumber':
17
- case 'ElTextarea':
18
- return true
19
- }
20
- return false
21
- }
1
+ import { resolveComponent } from 'vue'
2
+ import { globalConfig, componentMaps } from '../store'
3
+ import type { VxeGlobalRendererHandles } from 'vxe-table'
4
+
5
+ export function getCurrComponent (name: string) {
6
+ const comp = componentMaps[name] || (globalConfig.ElementPlus ? globalConfig.ElementPlus[name] : null)
7
+ if (comp) {
8
+ return comp
9
+ }
10
+ return resolveComponent(name)
11
+ }
12
+
13
+ export function hasInputType (renderOpts: VxeGlobalRendererHandles.RenderOptions) {
14
+ switch (renderOpts.name) {
15
+ case 'ElInput':
16
+ case 'ElInputNumber':
17
+ case 'ElTextarea':
18
+ return true
19
+ }
20
+ return false
21
+ }
package/types/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- import { VxeUIExport } from 'vxe-pc-ui'
2
-
3
- export interface VxeUIPluginRenderElementOptions {
4
- ElementPlus?: any
5
- /**
6
- * 前缀 class,默认 'el-'
7
- */
8
- prefixCls?: string
9
- }
10
-
11
- /**
12
- * 基于 Vxe UI 的适配插件,用于兼容 element-plus 组件库
13
- */
14
- export declare const VxeUIPluginRenderElement: {
15
- component (comp: any): void
16
- install (VxeUI: VxeUIExport, options?: VxeUIPluginRenderElementOptions): void
17
- }
18
-
19
- export default VxeUIPluginRenderElement
1
+ import { VxeUIExport } from 'vxe-pc-ui'
2
+
3
+ export interface VxeUIPluginRenderElementOptions {
4
+ ElementPlus?: any
5
+ /**
6
+ * 前缀 class,默认 'el-'
7
+ */
8
+ prefixCls?: string
9
+ }
10
+
11
+ /**
12
+ * 基于 Vxe UI 的适配插件,用于兼容 element-plus 组件库
13
+ */
14
+ export declare const VxeUIPluginRenderElement: {
15
+ component (comp: any): void
16
+ install (VxeUI: VxeUIExport, options?: VxeUIPluginRenderElementOptions): void
17
+ }
18
+
19
+ export default VxeUIPluginRenderElement