@vue-start/pro 0.5.37 → 0.5.39
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/CHANGELOG.md +8 -0
- package/dist/index.css +21 -0
- package/dist/index.d.ts +65 -2
- package/dist/index.es.js +1183 -1120
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 0.5.38
|
|
7
|
+
|
|
8
|
+
- 新增 ProTip 组件
|
|
9
|
+
- ProFormItem label 新增 tip 提示配置
|
|
10
|
+
- ProOperate items 新增 tip 提示配置
|
|
11
|
+
- ProTable operate element 方法参数换为 item 重写后的对象
|
|
12
|
+
- ProForm class 新增 empty 标记
|
|
13
|
+
|
|
6
14
|
# 0.5.37
|
|
7
15
|
|
|
8
16
|
- ProPage class 新增 has-header has-footer 标记
|
package/dist/index.css
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
.pro-layout {
|
|
26
26
|
/*section高度*/
|
|
27
27
|
--pro-secion-hei: calc(100vh - var(--pro-header-hei) - var(--pro-divide-ver-hei));
|
|
28
|
+
--pro-section-hei: calc(100vh - var(--pro-header-hei) - var(--pro-divide-ver-hei));
|
|
28
29
|
/*左侧菜单高度*/
|
|
29
30
|
--pro-left-menu-hei: calc(var(--pro-secion-hei) - var(--pro-menu-start-hei) - var(--pro-menu-end-hei));
|
|
30
31
|
}
|
|
@@ -150,6 +151,12 @@
|
|
|
150
151
|
margin-left: 12px;
|
|
151
152
|
}
|
|
152
153
|
|
|
154
|
+
/*tip*/
|
|
155
|
+
.pro-form .pro-form-item .pro-tip-dom {
|
|
156
|
+
align-self: center;
|
|
157
|
+
margin-left: 6px;
|
|
158
|
+
}
|
|
159
|
+
|
|
153
160
|
/********************************** pro-search-form ***********************************/
|
|
154
161
|
.pro-search-form {
|
|
155
162
|
}
|
|
@@ -300,3 +307,17 @@
|
|
|
300
307
|
z-index: 1;
|
|
301
308
|
background-color: white;
|
|
302
309
|
}
|
|
310
|
+
|
|
311
|
+
/********************************** pro-tip ***********************************/
|
|
312
|
+
.pro-tip-dom {
|
|
313
|
+
display: inline-block;
|
|
314
|
+
width: 14px;
|
|
315
|
+
height: 14px;
|
|
316
|
+
line-height: 14px;
|
|
317
|
+
border-radius: 50%;
|
|
318
|
+
background-color: #606266;
|
|
319
|
+
color: white;
|
|
320
|
+
font-size: 10px;
|
|
321
|
+
text-align: center;
|
|
322
|
+
cursor: default;
|
|
323
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1076,6 +1076,12 @@ declare const proFormItemProps: () => {
|
|
|
1076
1076
|
slots: {
|
|
1077
1077
|
type: ObjectConstructor;
|
|
1078
1078
|
};
|
|
1079
|
+
tip: {
|
|
1080
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
1081
|
+
};
|
|
1082
|
+
tipProps: {
|
|
1083
|
+
type: ObjectConstructor;
|
|
1084
|
+
};
|
|
1079
1085
|
};
|
|
1080
1086
|
declare type ProFormItemProps = Partial<ExtractPropTypes<ReturnType<typeof proFormItemProps>>> & Record<string, any>;
|
|
1081
1087
|
declare const createFormItemCompFn: <T extends FormItemProps>(FormItem: any, convertInputCompProps: (value: any, setValue: (v: any) => void, disabled: boolean | undefined) => Record<string, any>) => ({ InputComp, valueType, name }: {
|
|
@@ -1096,6 +1102,12 @@ declare const createFormItemCompFn: <T extends FormItemProps>(FormItem: any, con
|
|
|
1096
1102
|
slots: {
|
|
1097
1103
|
type: ObjectConstructor;
|
|
1098
1104
|
};
|
|
1105
|
+
tip: {
|
|
1106
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
1107
|
+
};
|
|
1108
|
+
tipProps: {
|
|
1109
|
+
type: ObjectConstructor;
|
|
1110
|
+
};
|
|
1099
1111
|
}>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<T & Partial<ExtractPropTypes<{
|
|
1100
1112
|
readonly: {
|
|
1101
1113
|
type: BooleanConstructor;
|
|
@@ -1110,6 +1122,12 @@ declare const createFormItemCompFn: <T extends FormItemProps>(FormItem: any, con
|
|
|
1110
1122
|
slots: {
|
|
1111
1123
|
type: ObjectConstructor;
|
|
1112
1124
|
};
|
|
1125
|
+
tip: {
|
|
1126
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
1127
|
+
};
|
|
1128
|
+
tipProps: {
|
|
1129
|
+
type: ObjectConstructor;
|
|
1130
|
+
};
|
|
1113
1131
|
}>> & Record<string, any> extends infer T_1 ? T_1 extends T & Partial<ExtractPropTypes<{
|
|
1114
1132
|
readonly: {
|
|
1115
1133
|
type: BooleanConstructor;
|
|
@@ -1124,6 +1142,12 @@ declare const createFormItemCompFn: <T extends FormItemProps>(FormItem: any, con
|
|
|
1124
1142
|
slots: {
|
|
1125
1143
|
type: ObjectConstructor;
|
|
1126
1144
|
};
|
|
1145
|
+
tip: {
|
|
1146
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
1147
|
+
};
|
|
1148
|
+
tipProps: {
|
|
1149
|
+
type: ObjectConstructor;
|
|
1150
|
+
};
|
|
1127
1151
|
}>> & Record<string, any> ? T_1 extends vue.ComponentPropsOptions<{
|
|
1128
1152
|
[x: string]: unknown;
|
|
1129
1153
|
}> ? ExtractPropTypes<T_1> : T_1 : never : never>, vue.ExtractDefaultPropTypes<T & Partial<ExtractPropTypes<{
|
|
@@ -1140,6 +1164,12 @@ declare const createFormItemCompFn: <T extends FormItemProps>(FormItem: any, con
|
|
|
1140
1164
|
slots: {
|
|
1141
1165
|
type: ObjectConstructor;
|
|
1142
1166
|
};
|
|
1167
|
+
tip: {
|
|
1168
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
1169
|
+
};
|
|
1170
|
+
tipProps: {
|
|
1171
|
+
type: ObjectConstructor;
|
|
1172
|
+
};
|
|
1143
1173
|
}>> & Record<string, any>>>;
|
|
1144
1174
|
|
|
1145
1175
|
interface IProFormListProvide {
|
|
@@ -1199,13 +1229,15 @@ interface IOpeItem {
|
|
|
1199
1229
|
disabled?: boolean | (() => boolean);
|
|
1200
1230
|
loading?: boolean | (() => boolean);
|
|
1201
1231
|
extraProps?: object | (() => Record<string, any>);
|
|
1202
|
-
onClick?: (
|
|
1232
|
+
onClick?: (item: IOpeItem) => void;
|
|
1203
1233
|
element?: (item?: Omit<IOpeItem, "show" | "disabled" | "opeProps" | "element"> & {
|
|
1204
1234
|
disabled?: boolean;
|
|
1205
1235
|
}) => VNode | null;
|
|
1206
1236
|
sort?: number;
|
|
1207
1237
|
per?: string;
|
|
1208
1238
|
perSuffix?: string;
|
|
1239
|
+
tip?: string | VNode;
|
|
1240
|
+
tipProps?: Record<string, any>;
|
|
1209
1241
|
}
|
|
1210
1242
|
declare const proOperateProps: () => {
|
|
1211
1243
|
/**
|
|
@@ -1310,6 +1342,8 @@ interface IOperateItem {
|
|
|
1310
1342
|
sort?: number;
|
|
1311
1343
|
per?: string;
|
|
1312
1344
|
perSuffix?: string;
|
|
1345
|
+
tip?: string | VNode | ((record: Record<string, any>) => string | VNode);
|
|
1346
|
+
tipProps?: Record<string, any> | ((record: Record<string, any>) => Record<string, any>);
|
|
1313
1347
|
}
|
|
1314
1348
|
/**
|
|
1315
1349
|
* 整个操作栏描述
|
|
@@ -2279,6 +2313,31 @@ declare const ProUploadList: vue.DefineComponent<{
|
|
|
2279
2313
|
fieldNames: Record<string, any>;
|
|
2280
2314
|
}>;
|
|
2281
2315
|
|
|
2316
|
+
declare const proTip: () => {
|
|
2317
|
+
title: StringConstructor;
|
|
2318
|
+
content: StringConstructor;
|
|
2319
|
+
renderDom: {
|
|
2320
|
+
type: PropType<() => VNode>;
|
|
2321
|
+
default: () => JSX.Element;
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
declare type ProTipProps = Partial<ExtractPropTypes<ReturnType<typeof proTip>>>;
|
|
2325
|
+
declare const ProTip: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
2326
|
+
title: StringConstructor;
|
|
2327
|
+
content: StringConstructor;
|
|
2328
|
+
renderDom: {
|
|
2329
|
+
type: PropType<() => VNode>;
|
|
2330
|
+
default: () => JSX.Element;
|
|
2331
|
+
};
|
|
2332
|
+
}>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
|
|
2333
|
+
title: StringConstructor;
|
|
2334
|
+
content: StringConstructor;
|
|
2335
|
+
renderDom: {
|
|
2336
|
+
type: PropType<() => VNode>;
|
|
2337
|
+
default: () => JSX.Element;
|
|
2338
|
+
};
|
|
2339
|
+
}>>>, {}>;
|
|
2340
|
+
|
|
2282
2341
|
/******************************** 组件key ********************************/
|
|
2283
2342
|
declare const ElementKeys: {
|
|
2284
2343
|
TypographyKey: string;
|
|
@@ -2290,20 +2349,24 @@ declare const ElementKeys: {
|
|
|
2290
2349
|
DescriptionsItemKey: string;
|
|
2291
2350
|
PaginationKey: string;
|
|
2292
2351
|
PopoverKey: string;
|
|
2352
|
+
TooltipKey: string;
|
|
2293
2353
|
CheckboxKey: string;
|
|
2294
2354
|
MenusKey: string;
|
|
2295
2355
|
ModalKey: string;
|
|
2296
2356
|
ScrollKey: string;
|
|
2357
|
+
PageKey: string;
|
|
2297
2358
|
FormKey: string;
|
|
2298
2359
|
FormItemKey: string;
|
|
2299
2360
|
TableKey: string;
|
|
2300
2361
|
TableOperateKey: string;
|
|
2301
2362
|
UploaderKey: string;
|
|
2363
|
+
EmptyKey: string;
|
|
2302
2364
|
ProFormKey: string;
|
|
2303
2365
|
ProSearchFormKey: string;
|
|
2304
2366
|
ProTableKey: string;
|
|
2305
2367
|
ProCurdKey: string;
|
|
2306
2368
|
ProListKey: string;
|
|
2369
|
+
ProPageKey: string;
|
|
2307
2370
|
};
|
|
2308
2371
|
/**
|
|
2309
2372
|
* 根据elementKey获取组件
|
|
@@ -2595,4 +2658,4 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
|
|
|
2595
2658
|
*/
|
|
2596
2659
|
declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
|
|
2597
2660
|
|
|
2598
|
-
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, ModalCurdOpe, 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, ProUploadList, ProUploaderText, ProValue, RequestAction, RouterMethods, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TConfigData, TCurdActionEvent, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLogonUserProvide, TMeta, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRender, TRouter, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getRealRender, getSignValue, getValidValues, isValidConfig, isValidNode, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, showValue, useAccess, useAccessMgr, useComposeRequestActor, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useHasPer, useHasPer2, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore };
|
|
2661
|
+
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, ModalCurdOpe, 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, ProTip, ProTipProps, ProTypography, ProTypographyProps, ProUploadList, ProUploaderText, ProValue, RequestAction, RouterMethods, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TConfigData, TCurdActionEvent, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLogonUserProvide, TMeta, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRender, TRouter, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getRealRender, getSignValue, getValidValues, isValidConfig, isValidNode, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, showValue, useAccess, useAccessMgr, useComposeRequestActor, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useHasPer, useHasPer2, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore };
|