@wx-design/components 1.1.10 → 1.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wx-design/components",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
package/types/index.d.ts CHANGED
@@ -3,8 +3,9 @@ import { App, Plugin } from 'vue'
3
3
  import { SabTable, SabTableSet, SabDesignConfigProvider } from './table'
4
4
 
5
5
  import { SabSelect } from './select'
6
+ import { SabModal } from './modal'
6
7
 
7
- export { SabTable, SabTableSet, SabDesignConfigProvider, SabSelect }
8
+ export { SabTable, SabTableSet, SabDesignConfigProvider, SabSelect, SabModal }
8
9
 
9
10
  declare module '@vue/runtime-core' {
10
11
  export interface GlobalComponents {
@@ -14,6 +15,8 @@ declare module '@vue/runtime-core' {
14
15
 
15
16
  // 下拉选择器
16
17
  SabSelect: typeof SabSelect
18
+ // 弹窗
19
+ SabModal: typeof SabModal
17
20
 
18
21
  // 全局配置项
19
22
  SabDesignConfigProvider: typeof SabDesignConfigProvider
@@ -0,0 +1,8 @@
1
+ import type { SABComponent } from "../common";
2
+ import { VxeModalProps, VxeModalEmits, VxeModalSlots } from "vxe-pc-ui";
3
+
4
+ export const SabModal: SABComponent<
5
+ VxeModalProps,
6
+ VxeModalEmits,
7
+ VxeModalSlots
8
+ >;
@@ -197,6 +197,8 @@ export type SabCellEditorParams =
197
197
 
198
198
  // 弹出层配置
199
199
  export type SabPopoverParams = Partial<PopoverProps & DialogProps> & {
200
+ // 触发元素, cell 整个单元格,buttton 按钮,默认 button
201
+ triggerEl?: 'button' | 'cell'
200
202
  // 触发事件,默认 click
201
203
  // 如果 showType === dialog 则只支持 click
202
204
  trigger?: "click" | "hover" | "focus" | "contextmenu";