@vue-start/pro 0.5.6 → 0.5.8

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 ADDED
@@ -0,0 +1,87 @@
1
+ /********************************** pro-layout ***********************************/
2
+
3
+ .pro-layout {
4
+ }
5
+
6
+ .pro-layout .pro-layout-header {
7
+ height: var(--header-hei);
8
+ display: flex;
9
+ align-items: center;
10
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
11
+ }
12
+
13
+ .pro-layout .pro-layout-header .pro-layout-menus {
14
+ flex: 1;
15
+ }
16
+
17
+ /*vertical*/
18
+ .pro-layout-vertical {
19
+ }
20
+
21
+ /*horizontal*/
22
+
23
+ .pro-layout-horizontal {
24
+ display: flex;
25
+ }
26
+
27
+ .pro-layout-horizontal .pro-layout-menus {
28
+ width: 240px;
29
+ min-width: 240px;
30
+ max-width: 240px;
31
+ }
32
+
33
+ .pro-layout-horizontal .pro-layout-structure {
34
+ flex-grow: 1;
35
+ }
36
+
37
+ /*compose*/
38
+
39
+ .pro-layout-compose {
40
+ }
41
+
42
+ .pro-layout-compose .pro-layout-structure {
43
+ display: flex;
44
+ }
45
+
46
+ .pro-layout-compose .pro-layout-structure .pro-layout-menus {
47
+ width: 220px;
48
+ min-width: 220px;
49
+ max-width: 220px;
50
+ }
51
+
52
+ .pro-layout-compose .pro-layout-structure .pro-layout-section {
53
+ flex-grow: 1;
54
+ }
55
+
56
+ /********************************** pro-typography ***********************************/
57
+ .pro-typography-ellipsis {
58
+ overflow: hidden;
59
+ text-overflow: ellipsis;
60
+ display: -webkit-box;
61
+ -webkit-box-orient: vertical;
62
+ }
63
+
64
+ /********************************** pro-form ***********************************/
65
+ .pro-form {
66
+ }
67
+
68
+ .pro-form .pro-form-operate {
69
+ }
70
+
71
+ .pro-form .pro-form-operate button:not(:first-child) {
72
+ margin-left: 12px;
73
+ }
74
+
75
+ /********************************** pro-search-form ***********************************/
76
+ .pro-search-form {
77
+ }
78
+
79
+ .pro-search-form .pro-search-form-operate {
80
+ display: inline-flex;
81
+ vertical-align: middle;
82
+ margin-bottom: 18px;
83
+ }
84
+
85
+ .pro-search-form .pro-search-form-operate button:not(:first-child) {
86
+ margin-left: 12px;
87
+ }
package/dist/index.d.ts CHANGED
@@ -705,13 +705,6 @@ declare enum SearchMode {
705
705
  }
706
706
  declare type ISearchMode = keyof typeof SearchMode;
707
707
  declare const proSearchFormProps: () => {
708
- /**
709
- * class
710
- */
711
- clsName: {
712
- type: StringConstructor;
713
- default: string;
714
- };
715
708
  /**
716
709
  * 初始化触发 onFinish
717
710
  */
@@ -977,7 +970,6 @@ interface ITableOperate {
977
970
  itemState?: {
978
971
  [key: string]: Omit<IOperateItem, "value">;
979
972
  };
980
- clsName?: ProOperateProps["clsName"];
981
973
  elementKey?: ProOperateProps["elementKey"];
982
974
  }
983
975
  declare const proTableProps: () => {
@@ -1593,7 +1585,16 @@ declare const ProLayout: vue.DefineComponent<{
1593
1585
  label: string;
1594
1586
  };
1595
1587
  };
1596
- }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1588
+ convertSubMenuProps: {
1589
+ type: FunctionConstructor;
1590
+ };
1591
+ convertMenuItemProps: {
1592
+ type: FunctionConstructor;
1593
+ };
1594
+ onMenuItemClick: {
1595
+ type: FunctionConstructor;
1596
+ };
1597
+ }, () => JSX.Element | null, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1597
1598
  /**
1598
1599
  * class名称
1599
1600
  */
@@ -1632,6 +1633,15 @@ declare const ProLayout: vue.DefineComponent<{
1632
1633
  label: string;
1633
1634
  };
1634
1635
  };
1636
+ convertSubMenuProps: {
1637
+ type: FunctionConstructor;
1638
+ };
1639
+ convertMenuItemProps: {
1640
+ type: FunctionConstructor;
1641
+ };
1642
+ onMenuItemClick: {
1643
+ type: FunctionConstructor;
1644
+ };
1635
1645
  }>>, {
1636
1646
  clsName: string;
1637
1647
  fieldNames: {
@@ -1642,6 +1652,41 @@ declare const ProLayout: vue.DefineComponent<{
1642
1652
  layout: "vertical" | "horizontal" | "compose";
1643
1653
  }>;
1644
1654
 
1655
+ declare type TFile = {
1656
+ id: string;
1657
+ name: string;
1658
+ size?: number;
1659
+ };
1660
+ declare const ProUploaderText: vue.DefineComponent<Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Record<string, any>>>, {
1661
+ [x: string]: any;
1662
+ }>;
1663
+ /**
1664
+ * 文件列表
1665
+ */
1666
+ declare const UploadList: vue.DefineComponent<{
1667
+ value: (ArrayConstructor | StringConstructor)[];
1668
+ fieldNames: {
1669
+ type: ObjectConstructor;
1670
+ default: {
1671
+ id: string;
1672
+ name: string;
1673
+ size: string;
1674
+ };
1675
+ };
1676
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1677
+ value: (ArrayConstructor | StringConstructor)[];
1678
+ fieldNames: {
1679
+ type: ObjectConstructor;
1680
+ default: {
1681
+ id: string;
1682
+ name: string;
1683
+ size: string;
1684
+ };
1685
+ };
1686
+ }>>, {
1687
+ fieldNames: Record<string, any>;
1688
+ }>;
1689
+
1645
1690
  /******************************** 组件key ********************************/
1646
1691
  declare const ElementKeys: {
1647
1692
  TypographyKey: string;
@@ -1654,13 +1699,12 @@ declare const ElementKeys: {
1654
1699
  PaginationKey: string;
1655
1700
  PopoverKey: string;
1656
1701
  CheckboxKey: string;
1657
- MenuKey: string;
1658
- MenuSubKey: string;
1659
- MenuItemKey: string;
1702
+ MenusKey: string;
1660
1703
  ModalKey: string;
1661
1704
  FormKey: string;
1662
1705
  FormItemKey: string;
1663
1706
  TableKey: string;
1707
+ UploaderKey: string;
1664
1708
  ProFormKey: string;
1665
1709
  ProSearchFormKey: string;
1666
1710
  ProTableKey: string;
@@ -1863,13 +1907,6 @@ declare const ProCurdList: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
1863
1907
  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>, {}>;
1864
1908
 
1865
1909
  declare const proCurdFormProps: () => {
1866
- /**
1867
- * class名称
1868
- */
1869
- clsName: {
1870
- type: StringConstructor;
1871
- default: string;
1872
- };
1873
1910
  signName: {
1874
1911
  type: StringConstructor;
1875
1912
  };
@@ -1879,13 +1916,6 @@ declare const ProCurdForm: vue.DefineComponent<ProCurdFormProps, {}, {}, {}, {},
1879
1916
  declare const ProCurdFormConnect: vue.DefineComponent<unknown, () => JSX.Element, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
1880
1917
 
1881
1918
  declare const proCurdDescProps: () => {
1882
- /**
1883
- * class名称
1884
- */
1885
- clsName: {
1886
- type: StringConstructor;
1887
- default: string;
1888
- };
1889
1919
  signName: {
1890
1920
  type: StringConstructor;
1891
1921
  };
@@ -1897,13 +1927,6 @@ declare const ProCurdDesc: vue.DefineComponent<ProCurdDescProps, {}, {}, {}, {},
1897
1927
  declare const ProCurdDescConnect: vue.DefineComponent<unknown, () => JSX.Element, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
1898
1928
 
1899
1929
  declare const proCurdModalProps: () => {
1900
- /**
1901
- * class名称
1902
- */
1903
- clsName: {
1904
- type: StringConstructor;
1905
- default: string;
1906
- };
1907
1930
  validMode: {
1908
1931
  type: ArrayConstructor;
1909
1932
  default: CurdAction[];
@@ -1966,4 +1989,4 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
1966
1989
  */
1967
1990
  declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
1968
1991
 
1969
- 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, RequestAction, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TCurdActionEvent, TDefaultValueType, TElementMap, TFormExtraMap, TInitialState, TLogonUserProvide, TMeta, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, 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 };
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 };