@vue-start/pro 0.5.11 → 0.5.13

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/dist/index.css CHANGED
@@ -85,3 +85,32 @@
85
85
  .pro-search-form .pro-search-form-operate button:not(:first-child) {
86
86
  margin-left: 12px;
87
87
  }
88
+
89
+ /********************************** pro-table ***********************************/
90
+ .pro-table {
91
+ }
92
+
93
+ .pro-table .pro-table-toolbar {
94
+ display: flex;
95
+ align-items: center;
96
+ }
97
+
98
+ .pro-table .pro-table-toolbar-valid {
99
+ margin-bottom: 10px;
100
+ }
101
+
102
+ .pro-table .pro-table-toolbar .pro-table-toolbar-start {
103
+ display: flex;
104
+ align-items: center;
105
+ flex-grow: 1;
106
+ }
107
+
108
+ .pro-table .pro-table-toolbar .pro-table-toolbar-start .el-form-item {
109
+ margin-bottom: 0px;
110
+ }
111
+
112
+ .pro-table-toolbar-column .pro-table-toolbar-column-header {
113
+ display: flex;
114
+ align-items: center;
115
+ justify-content: space-between;
116
+ }
package/dist/index.d.ts CHANGED
@@ -967,9 +967,7 @@ interface IOperateItem {
967
967
  interface ITableOperate {
968
968
  column?: TColumn;
969
969
  items?: IOperateItem[];
970
- itemState?: {
971
- [key: string]: Omit<IOperateItem, "value">;
972
- };
970
+ itemState?: Record<string, IOperateItem>;
973
971
  elementKey?: ProOperateProps["elementKey"];
974
972
  }
975
973
  declare const proTableProps: () => {
@@ -980,9 +978,21 @@ declare const proTableProps: () => {
980
978
  type: StringConstructor;
981
979
  default: string;
982
980
  };
981
+ /**
982
+ * 操作栏
983
+ */
983
984
  operate: {
984
985
  type: PropType<ITableOperate>;
985
986
  };
987
+ operateItemState: {
988
+ type: PropType<Record<string, IOperateItem> | undefined>;
989
+ };
990
+ operateItemClickMap: {
991
+ type: PropType<Record<string, (record: Record<string, any>, item: IOperateItem) => void>>;
992
+ };
993
+ /**
994
+ * 默认空字符串
995
+ */
986
996
  columnEmptyText: {
987
997
  type: StringConstructor;
988
998
  };
@@ -1029,6 +1039,12 @@ declare const proTableProps: () => {
1029
1039
  onColumnSelectChange: {
1030
1040
  type: PropType<(selectIds: (string | number)[]) => void>;
1031
1041
  };
1042
+ renderDom: {
1043
+ type: PropType<() => VNode<vue.RendererNode, vue.RendererElement, {
1044
+ [key: string]: any;
1045
+ }>>;
1046
+ default: () => string;
1047
+ };
1032
1048
  }>> | undefined;
1033
1049
  }>;
1034
1050
  };
@@ -1051,6 +1067,82 @@ declare type ProTableProps = Partial<ExtractPropTypes<ReturnType<typeof proTable
1051
1067
  };
1052
1068
  declare const ProTable: vue.DefineComponent<ProTableProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProTableProps>, {}>;
1053
1069
 
1070
+ declare const proColumnSetting: () => {
1071
+ /**
1072
+ * class名称
1073
+ */
1074
+ clsName: {
1075
+ type: StringConstructor;
1076
+ default: string;
1077
+ };
1078
+ signName: {
1079
+ type: StringConstructor;
1080
+ default: string;
1081
+ };
1082
+ popoverProps: ObjectConstructor;
1083
+ useSelectedStatus: {
1084
+ type: BooleanConstructor;
1085
+ default: boolean;
1086
+ };
1087
+ onColumnSelectChange: {
1088
+ type: PropType<(selectIds: Array<string | number>) => void>;
1089
+ };
1090
+ renderDom: {
1091
+ type: PropType<() => VNode>;
1092
+ default: () => string;
1093
+ };
1094
+ };
1095
+ declare type ProColumnSettingProps = Partial<ExtractPropTypes<ReturnType<typeof proColumnSetting>>>;
1096
+ declare const ColumnSetting: vue.DefineComponent<Partial<ExtractPropTypes<{
1097
+ /**
1098
+ * class名称
1099
+ */
1100
+ clsName: {
1101
+ type: StringConstructor;
1102
+ default: string;
1103
+ };
1104
+ signName: {
1105
+ type: StringConstructor;
1106
+ default: string;
1107
+ };
1108
+ popoverProps: ObjectConstructor;
1109
+ useSelectedStatus: {
1110
+ type: BooleanConstructor;
1111
+ default: boolean;
1112
+ };
1113
+ onColumnSelectChange: {
1114
+ type: PropType<(selectIds: Array<string | number>) => void>;
1115
+ };
1116
+ renderDom: {
1117
+ type: PropType<() => VNode>;
1118
+ default: () => string;
1119
+ };
1120
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
1121
+ /**
1122
+ * class名称
1123
+ */
1124
+ clsName: {
1125
+ type: StringConstructor;
1126
+ default: string;
1127
+ };
1128
+ signName: {
1129
+ type: StringConstructor;
1130
+ default: string;
1131
+ };
1132
+ popoverProps: ObjectConstructor;
1133
+ useSelectedStatus: {
1134
+ type: BooleanConstructor;
1135
+ default: boolean;
1136
+ };
1137
+ onColumnSelectChange: {
1138
+ type: PropType<(selectIds: Array<string | number>) => void>;
1139
+ };
1140
+ renderDom: {
1141
+ type: PropType<() => VNode>;
1142
+ default: () => string;
1143
+ };
1144
+ }>>>, {}>;
1145
+
1054
1146
  declare const proPageHeaderProps: () => {
1055
1147
  title: {
1056
1148
  type: StringConstructor;
@@ -1123,6 +1215,10 @@ declare const proListProps: () => {
1123
1215
  searchProps: {
1124
1216
  type: PropType<Record<string, any>>;
1125
1217
  };
1218
+ searchInTable: {
1219
+ type: BooleanConstructor;
1220
+ default: boolean;
1221
+ };
1126
1222
  tableProps: {
1127
1223
  type: PropType<Record<string, any>>;
1128
1224
  };
@@ -1158,6 +1254,10 @@ declare const ProList: vue.DefineComponent<Partial<ExtractPropTypes<{
1158
1254
  searchProps: {
1159
1255
  type: PropType<Record<string, any>>;
1160
1256
  };
1257
+ searchInTable: {
1258
+ type: BooleanConstructor;
1259
+ default: boolean;
1260
+ };
1161
1261
  tableProps: {
1162
1262
  type: PropType<Record<string, any>>;
1163
1263
  };
@@ -1179,6 +1279,10 @@ declare const ProList: vue.DefineComponent<Partial<ExtractPropTypes<{
1179
1279
  searchProps: {
1180
1280
  type: PropType<Record<string, any>>;
1181
1281
  };
1282
+ searchInTable: {
1283
+ type: BooleanConstructor;
1284
+ default: boolean;
1285
+ };
1182
1286
  tableProps: {
1183
1287
  type: PropType<Record<string, any>>;
1184
1288
  };
@@ -1704,10 +1808,13 @@ declare const ElementKeys: {
1704
1808
  FormKey: string;
1705
1809
  FormItemKey: string;
1706
1810
  TableKey: string;
1811
+ TableOperateKey: string;
1707
1812
  UploaderKey: string;
1708
1813
  ProFormKey: string;
1709
1814
  ProSearchFormKey: string;
1710
1815
  ProTableKey: string;
1816
+ ProCurdKey: string;
1817
+ ProListKey: string;
1711
1818
  };
1712
1819
  /**
1713
1820
  * 根据elementKey获取组件
@@ -1756,6 +1863,9 @@ declare const proCurdProps: () => {
1756
1863
  operates: {
1757
1864
  type: PropType<ICurdOperateOpts[]>;
1758
1865
  };
1866
+ convertOperate: {
1867
+ type: PropType<(operate: ICurdOperateOpts) => ICurdOperateOpts>;
1868
+ };
1759
1869
  /************************* 子组件props *******************************/
1760
1870
  listProps: {
1761
1871
  type: PropType<Record<string, any>>;
@@ -1864,46 +1974,23 @@ declare type PageCurdProps = Partial<ExtractPropTypes<ReturnType<typeof pageCurd
1864
1974
  declare type ProPageCurdProps = PageCurdProps & ProCurdProps;
1865
1975
  declare const ProPageCurd: vue.DefineComponent<ProPageCurdProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProPageCurdProps>, {}>;
1866
1976
 
1977
+ declare const curdListProps: () => {
1978
+ addConfig: {
1979
+ type: PropType<{
1980
+ inSearch: boolean;
1981
+ inTable: boolean;
1982
+ buttonProps: Record<string, any>;
1983
+ }>;
1984
+ default: {
1985
+ inSearch: boolean;
1986
+ };
1987
+ };
1988
+ };
1989
+ declare type ProCurdListProps = Partial<ExtractPropTypes<ReturnType<typeof curdListProps>>> & ProListProps;
1867
1990
  /**
1868
1991
  *
1869
1992
  */
1870
- declare const ProCurdList: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
1871
- clsName: {
1872
- type: StringConstructor;
1873
- default: string;
1874
- };
1875
- searchProps: {
1876
- type: vue.PropType<Record<string, any>>;
1877
- };
1878
- tableProps: {
1879
- type: vue.PropType<Record<string, any>>;
1880
- };
1881
- paginationProps: {
1882
- type: (vue.PropType<Record<string, any>> | vue.PropType<boolean>)[];
1883
- default: undefined;
1884
- };
1885
- pageState: {
1886
- type: vue.PropType<TPageState>;
1887
- };
1888
- }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<vue.ExtractPropTypes<{
1889
- clsName: {
1890
- type: StringConstructor;
1891
- default: string;
1892
- };
1893
- searchProps: {
1894
- type: vue.PropType<Record<string, any>>;
1895
- };
1896
- tableProps: {
1897
- type: vue.PropType<Record<string, any>>;
1898
- };
1899
- paginationProps: {
1900
- type: (vue.PropType<Record<string, any>> | vue.PropType<boolean>)[];
1901
- default: undefined;
1902
- };
1903
- pageState: {
1904
- type: vue.PropType<TPageState>;
1905
- };
1906
- }>>>, {}>;
1993
+ declare const ProCurdList: vue.DefineComponent<ProCurdListProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProCurdListProps>, {}>;
1907
1994
  declare const ProCurdListConnect: vue.DefineComponent<unknown, () => JSX.Element, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
1908
1995
 
1909
1996
  declare const proCurdFormProps: () => {
@@ -1931,6 +2018,12 @@ declare const proCurdModalProps: () => {
1931
2018
  type: ArrayConstructor;
1932
2019
  default: CurdAction[];
1933
2020
  };
2021
+ loadingOpts: {
2022
+ type: ObjectConstructor;
2023
+ };
2024
+ overrideProps: {
2025
+ type: ObjectConstructor;
2026
+ };
1934
2027
  };
1935
2028
  declare type ProCurdModalProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdModalProps>>> & Record<string, any>;
1936
2029
  declare const ProCurdModal: vue.DefineComponent<ProCurdModalProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ExtractPropTypes<ProCurdModalProps>>, {
@@ -1945,6 +2038,14 @@ declare const ProCurdModalForm: vue.DefineComponent<{
1945
2038
  }>>, {}>;
1946
2039
  declare const ProCurdModalFormConnect: vue.DefineComponent<unknown, () => JSX.Element, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
1947
2040
 
2041
+ declare const AddButton: vue.DefineComponent<{
2042
+ buttonProps: ObjectConstructor;
2043
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2044
+ [key: string]: any;
2045
+ }>[] | JSX.Element | null, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
2046
+ buttonProps: ObjectConstructor;
2047
+ }>>, {}>;
2048
+
1948
2049
  /**
1949
2050
  * 剔除showState或showStateRules规则为!true的值
1950
2051
  * @param values
@@ -1989,4 +2090,4 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
1989
2090
  */
1990
2091
  declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
1991
2092
 
1992
- export { BooleanObjType, BooleanRulesObjType, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, ElementKeys, FieldNames, FormAction, FormItemProps, FormRulePrefixMap, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IPer, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, IUser, InternalNamePath, LogonUser, LogonUserKey, MustLogon, NamePath, PageHeader, PageHeaderProps, PaginationSlotProps, PerSuffix, Permission, PermissionProps, ProBaseProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProLayout, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTypography, ProTypographyProps, ProUploaderText, RequestAction, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TCurdActionEvent, TDefaultValueType, TElementMap, TFile, TFormExtraMap, TInitialState, TLogonUserProvide, TMeta, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, UploadList, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createProConfig, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getFormItemEl, getItemEl, getSignValue, getValidValues, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderElement, renderElements, useAccess, useAccessMgr, useComposeRequestActor, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useGetCompByKey, useHasPer, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModule, useProTable, useReadStore };
2093
+ export { AddButton, BooleanObjType, BooleanRulesObjType, ColumnSetting, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, ElementKeys, FieldNames, FormAction, FormItemProps, FormRulePrefixMap, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IPer, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, IUser, InternalNamePath, LogonUser, LogonUserKey, MustLogon, NamePath, PageHeader, PageHeaderProps, PaginationSlotProps, PerSuffix, Permission, PermissionProps, ProBaseProps, ProColumnSettingProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdListProps, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProLayout, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTypography, ProTypographyProps, ProUploaderText, RequestAction, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TCurdActionEvent, TDefaultValueType, TElementMap, TFile, TFormExtraMap, TInitialState, TLogonUserProvide, TMeta, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, UploadList, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createProConfig, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getFormItemEl, getItemEl, getSignValue, getValidValues, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderElement, renderElements, useAccess, useAccessMgr, useComposeRequestActor, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useGetCompByKey, useHasPer, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModule, useProTable, useReadStore };