@wx-design/components 0.1.4 → 0.1.6

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.
Files changed (47) hide show
  1. package/es/core/Table/components/CellEditors/Boolean.d.ts +1 -1
  2. package/es/core/Table/components/CellEditors/Color.d.ts +1 -1
  3. package/es/core/Table/components/CellEditors/DatePicker.d.ts +1 -1
  4. package/es/core/Table/components/CellEditors/Image.d.ts +1 -1
  5. package/es/core/Table/components/CellEditors/Input.d.ts +1 -1
  6. package/es/core/Table/components/CellEditors/InputNumber.d.ts +1 -1
  7. package/es/core/Table/components/CellEditors/PopOver.d.ts +1 -0
  8. package/es/core/Table/components/CellEditors/Select.d.ts +1 -1
  9. package/es/core/Table/components/CellRender.d.ts +1 -1
  10. package/es/core/Table/components/Toolbar/index.vue.d.ts +1 -1
  11. package/es/core/Table/configs/column.d.ts +1 -1
  12. package/es/core/Table/configs/table.d.ts +1 -1
  13. package/es/core/Table/constants.d.ts +9 -0
  14. package/es/core/Table/index.d.ts +1 -1
  15. package/es/core/Table/index.vue.d.ts +2 -2
  16. package/es/index.mjs +264 -18450
  17. package/lib/core/Table/components/CellEditors/Boolean.d.ts +1 -1
  18. package/lib/core/Table/components/CellEditors/Color.d.ts +1 -1
  19. package/lib/core/Table/components/CellEditors/DatePicker.d.ts +1 -1
  20. package/lib/core/Table/components/CellEditors/Image.d.ts +1 -1
  21. package/lib/core/Table/components/CellEditors/Input.d.ts +1 -1
  22. package/lib/core/Table/components/CellEditors/InputNumber.d.ts +1 -1
  23. package/lib/core/Table/components/CellEditors/PopOver.d.ts +1 -0
  24. package/lib/core/Table/components/CellEditors/Select.d.ts +1 -1
  25. package/lib/core/Table/components/CellRender.d.ts +1 -1
  26. package/lib/core/Table/components/Toolbar/index.vue.d.ts +1 -1
  27. package/lib/core/Table/configs/column.d.ts +1 -1
  28. package/lib/core/Table/configs/table.d.ts +1 -1
  29. package/lib/core/Table/constants.d.ts +9 -0
  30. package/lib/core/Table/index.d.ts +1 -1
  31. package/lib/core/Table/index.vue.d.ts +2 -2
  32. package/lib/index.js +1 -4
  33. package/package.json +3 -3
  34. package/types/index.d.ts +8 -0
  35. package/types/table/column.d.ts +98 -0
  36. package/types/table/index.d.ts +10 -0
  37. package/types/table/table.d.ts +19 -0
  38. package/types/table/toolbar.d.ts +22 -0
  39. package/es/core/Table/types/column.d.ts +0 -74
  40. package/es/core/Table/types/index.d.ts +0 -3
  41. package/es/core/Table/types/table.d.ts +0 -11
  42. package/es/core/Table/types/toolbar.d.ts +0 -11
  43. package/index.d.ts +0 -1
  44. package/lib/core/Table/types/column.d.ts +0 -74
  45. package/lib/core/Table/types/index.d.ts +0 -3
  46. package/lib/core/Table/types/table.d.ts +0 -11
  47. package/lib/core/Table/types/toolbar.d.ts +0 -11
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 单元格-Boolean
3
3
  */
4
- import { SabColumnProps } from "../../types";
4
+ import type { SabColumnProps } from "../../../../types/table";
5
5
  declare const SabCellBoolean: import("vue").DefineComponent<{
6
6
  modelValue: StringConstructor;
7
7
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 单元格-颜色
3
3
  */
4
- import { SabColumnProps } from "../../types";
4
+ import type { SabColumnProps } from "../../../../types/table";
5
5
  declare const SabCellColor: import("vue").DefineComponent<{
6
6
  color: StringConstructor;
7
7
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -2,7 +2,7 @@
2
2
  * 单元格编辑-日期输入
3
3
  */
4
4
  import { DatePickerProps } from "element-plus";
5
- import { SabColumnProps } from "../../types";
5
+ import type { SabColumnProps } from "../../../../types/table";
6
6
  declare const SabCellEditDatePicker: import("vue").DefineComponent<DatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<DatePickerProps>, {
7
7
  readonly popperOptions: any;
8
8
  }, {}>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 单元格-图片
3
3
  */
4
- import { SabColumnProps } from "../../types";
4
+ import type { SabColumnProps } from "../../../../types/table";
5
5
  declare const SabCellImage: import("vue").DefineComponent<{
6
6
  src: StringConstructor;
7
7
  preview: BooleanConstructor;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 单元格编辑-输入框
3
3
  */
4
- import { SabColumnProps } from "../../types";
4
+ import type { SabColumnProps } from "../../../../types/table";
5
5
  declare const SabCellEditInput: import("vue").DefineComponent<{
6
6
  modelValue?: string | undefined;
7
7
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 单元格编辑-数值输入框
3
3
  */
4
- import { SabColumnProps } from "../../types";
4
+ import type { SabColumnProps } from "../../../../types/table";
5
5
  declare const SabCellEditInputNumber: import("vue").DefineComponent<{
6
6
  modelValue?: number | undefined;
7
7
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -8,6 +8,7 @@ type SabCellEditPopoverProps = PopoverProps & {
8
8
  };
9
9
  declare const SabCellEditPopover: import("vue").DefineComponent<Partial<SabCellEditPopoverProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<Partial<SabCellEditPopoverProps>>, {
10
10
  readonly popperOptions?: any;
11
+ column?: any;
11
12
  readonly placement?: any;
12
13
  }, {}>;
13
14
  export default SabCellEditPopover;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 单元格编辑-下拉选择
3
3
  */
4
- import { SabColumnProps } from "../../types";
4
+ import type { SabColumnProps } from "../../../../types/table";
5
5
  declare const SabCellEditSelect: import("vue").DefineComponent<{
6
6
  options: ArrayConstructor;
7
7
  modelValue: {
@@ -1,4 +1,4 @@
1
- import { SabColumnProps } from "../types";
1
+ import type { SabColumnProps } from "../../../types/table";
2
2
  declare const CellRender: import("vue").DefineComponent<SabColumnProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<SabColumnProps>, {
3
3
  params?: any;
4
4
  }, {}>;
@@ -1,4 +1,4 @@
1
- import { ToolbarProps } from "../../types/toolbar";
1
+ import type { ToolbarProps } from "../../../../types/table";
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ToolbarProps<import("vxe-table").VxeTableDataRow>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ToolbarProps<import("vxe-table").VxeTableDataRow>>>>, {}, {}>, {
3
3
  default?(_: {}): any;
4
4
  }>;
@@ -1,3 +1,3 @@
1
- import { SabColumnProps } from "../types";
1
+ import type { SabColumnProps } from "../../../types/table";
2
2
  export declare const defaultColumnConfig: (column: SabColumnProps) => SabColumnProps;
3
3
  export declare const setDefaultColumnConfigs: (columns: SabColumnProps[]) => SabColumnProps[];
@@ -1,6 +1,6 @@
1
1
  import { Ref } from "vue";
2
2
  import { VxeTableInstance } from "vxe-table";
3
- import { SabTableProps } from "../types";
3
+ import type { SabTableProps } from "../../../types/table";
4
4
  export declare const defaultTableConfig: Partial<SabTableProps>;
5
5
  /**
6
6
  * 修改表格配置项
@@ -0,0 +1,9 @@
1
+ export declare enum SabCellType {
2
+ Input = "input",
3
+ InputNumber = "input-number",
4
+ Select = "select",
5
+ DatePciker = "date-picker",
6
+ Image = "image",
7
+ Color = "color",
8
+ Boolean = "boolean"
9
+ }
@@ -1,4 +1,4 @@
1
1
  import SabTable from './index.vue';
2
- export * from './types';
3
2
  export default SabTable;
3
+ export * from './constants';
4
4
  export { SabTable };
@@ -1,5 +1,5 @@
1
1
  import { VxeTableInstance } from "vxe-table";
2
- import { SabTableProps } from "./types";
2
+ import type { SabTableProps } from "../../types/table";
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabTableProps>, Partial<SabTableProps>>, {
4
4
  $?: import("vue").ComponentInternalInstance | undefined;
5
5
  $data?: {} | undefined;
@@ -503,11 +503,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
503
503
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabTableProps>, Partial<SabTableProps>>>>, {
504
504
  data: import("vxe-table").VxeTablePropTypes.Data<import("vxe-table").VxeTableDataRow>;
505
505
  class: any;
506
+ columns: Partial<import("../../types/table").SabColumnProps<import("vxe-table").VxeTableDataRow>>[];
506
507
  id: string;
507
508
  size: import("vxe-table").SizeType;
508
509
  cellClassName: import("vxe-table").VxeTablePropTypes.CellClassName<import("vxe-table").VxeTableDataRow>;
509
510
  editable: boolean;
510
- columns: Partial<import("./types").SabColumnProps<import("vxe-table").VxeTableDataRow>>[];
511
511
  loading: boolean;
512
512
  round: boolean;
513
513
  height: import("vxe-table").VxeTablePropTypes.Height;