@vue-start/pro 0.5.36 → 0.5.37

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 CHANGED
@@ -3,6 +3,11 @@
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.37
7
+
8
+ - ProPage class 新增 has-header has-footer 标记
9
+ - ProForm 新增 userOpe 属性:标记用户是否操作过 Form
10
+
6
11
  # 0.5.36
7
12
 
8
13
  - ProTable 新增 toolbar 高度计算,值为 css 变量:--pro-table-toolbar-hei;
package/dist/index.css CHANGED
@@ -154,13 +154,13 @@
154
154
  .pro-search-form {
155
155
  }
156
156
 
157
- .pro-search-form .pro-search-form-operate {
157
+ .pro-search-form .pro-form-operate {
158
158
  display: inline-flex;
159
159
  vertical-align: middle;
160
160
  margin-bottom: 18px;
161
161
  }
162
162
 
163
- .pro-search-form .pro-search-form-operate button:not(:first-child) {
163
+ .pro-search-form .pro-form-operate button:not(:first-child) {
164
164
  margin-left: 12px;
165
165
  }
166
166
 
package/dist/index.d.ts CHANGED
@@ -656,13 +656,13 @@ declare const proConfigProps: () => {
656
656
  }>;
657
657
  };
658
658
  showMsg: {
659
- type: ObjectConstructor;
659
+ type: FunctionConstructor;
660
660
  };
661
661
  showModal: {
662
- type: ObjectConstructor;
662
+ type: FunctionConstructor;
663
663
  };
664
664
  showNotify: {
665
- type: ObjectConstructor;
665
+ type: FunctionConstructor;
666
666
  };
667
667
  };
668
668
  declare const useProConfig: () => IProConfigProvide;
@@ -703,13 +703,13 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
703
703
  }>;
704
704
  };
705
705
  showMsg: {
706
- type: ObjectConstructor;
706
+ type: FunctionConstructor;
707
707
  };
708
708
  showModal: {
709
- type: ObjectConstructor;
709
+ type: FunctionConstructor;
710
710
  };
711
711
  showNotify: {
712
- type: ObjectConstructor;
712
+ type: FunctionConstructor;
713
713
  };
714
714
  }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
715
715
  elementMap: {
@@ -741,13 +741,13 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
741
741
  }>;
742
742
  };
743
743
  showMsg: {
744
- type: ObjectConstructor;
744
+ type: FunctionConstructor;
745
745
  };
746
746
  showModal: {
747
- type: ObjectConstructor;
747
+ type: FunctionConstructor;
748
748
  };
749
749
  showNotify: {
750
- type: ObjectConstructor;
750
+ type: FunctionConstructor;
751
751
  };
752
752
  }>>>, {}>;
753
753
  /**
@@ -894,6 +894,8 @@ interface IProFormProvide extends IProFormProvideExtra {
894
894
  elementMap?: TElementMap;
895
895
  formElementMap?: TElementMap;
896
896
  columns: Ref<TColumns>;
897
+ userOpe: Ref<boolean>;
898
+ asyncNum: Ref<number>;
897
899
  }
898
900
  declare const useProForm: () => IProFormProvide;
899
901
  declare const useFormSubmit: (cb: (...e: any[]) => void, wait?: number, options?: Record<string, any>) => lodash.DebouncedFunc<(...e: any[]) => void>;
@@ -1002,7 +1004,7 @@ declare const proFormProps: () => {
1002
1004
  };
1003
1005
  };
1004
1006
  declare type ProFormProps = Partial<ExtractPropTypes<ReturnType<typeof proFormProps>>> & ProBaseProps & Omit<ProGridProps, "items"> & {
1005
- onFinish?: (showValues?: Record<string, any>, values?: Record<string, any>) => void;
1007
+ onFinish?: (showValues?: Record<string, any>, values?: Record<string, any>, opts?: Pick<IProFormProvide, "userOpe" | "asyncNum">) => void;
1006
1008
  onFinishFailed?: (errs: any) => void;
1007
1009
  };
1008
1010
  declare const ProForm: vue.DefineComponent<ProFormProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProFormProps>, {}>;
@@ -1520,6 +1522,49 @@ declare const proPageHeaderProps: () => {
1520
1522
  };
1521
1523
  };
1522
1524
  declare type PageHeaderProps = Partial<ExtractPropTypes<ReturnType<typeof proPageHeaderProps>>>;
1525
+ declare const PageHeader: vue.DefineComponent<{
1526
+ title: {
1527
+ type: StringConstructor;
1528
+ };
1529
+ subTitle: {
1530
+ type: StringConstructor;
1531
+ };
1532
+ showBack: BooleanConstructor;
1533
+ hideWhileNoHistory: {
1534
+ type: BooleanConstructor;
1535
+ default: boolean;
1536
+ };
1537
+ onBackClick: {
1538
+ type: FunctionConstructor;
1539
+ };
1540
+ renderBackIcon: {
1541
+ type: PropType<() => VNode>;
1542
+ default: () => string;
1543
+ };
1544
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ExtractPropTypes<{
1545
+ title: {
1546
+ type: StringConstructor;
1547
+ };
1548
+ subTitle: {
1549
+ type: StringConstructor;
1550
+ };
1551
+ showBack: BooleanConstructor;
1552
+ hideWhileNoHistory: {
1553
+ type: BooleanConstructor;
1554
+ default: boolean;
1555
+ };
1556
+ onBackClick: {
1557
+ type: FunctionConstructor;
1558
+ };
1559
+ renderBackIcon: {
1560
+ type: PropType<() => VNode>;
1561
+ default: () => string;
1562
+ };
1563
+ }>>, {
1564
+ showBack: boolean;
1565
+ hideWhileNoHistory: boolean;
1566
+ renderBackIcon: () => VNode;
1567
+ }>;
1523
1568
  declare const proPageProps: () => {
1524
1569
  loading: {
1525
1570
  type: BooleanConstructor;
@@ -1686,6 +1731,30 @@ declare const ProDesc: vue.DefineComponent<ProDescProps, {}, {}, {}, {}, vue.Com
1686
1731
  model?: any;
1687
1732
  }>;
1688
1733
 
1734
+ /**
1735
+ * 展示值,主要规避掉 0 的情况
1736
+ * @param v
1737
+ * @param emptyText
1738
+ */
1739
+ declare const showValue: (v: string | number, emptyText?: string) => string | number | undefined;
1740
+ /**
1741
+ * 展示值组件
1742
+ */
1743
+ declare const ProValue: vue.DefineComponent<{
1744
+ value: {
1745
+ type: (NumberConstructor | StringConstructor)[];
1746
+ };
1747
+ emptyText: {
1748
+ type: StringConstructor;
1749
+ };
1750
+ }, () => string | number | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ExtractPropTypes<{
1751
+ value: {
1752
+ type: (NumberConstructor | StringConstructor)[];
1753
+ };
1754
+ emptyText: {
1755
+ type: StringConstructor;
1756
+ };
1757
+ }>>, {}>;
1689
1758
  declare const typographyProps: () => {
1690
1759
  content: {
1691
1760
  type: (NumberConstructor | StringConstructor)[];
@@ -1697,6 +1766,9 @@ declare const typographyProps: () => {
1697
1766
  }>)[];
1698
1767
  };
1699
1768
  popoverProps: ObjectConstructor;
1769
+ emptyText: {
1770
+ type: StringConstructor;
1771
+ };
1700
1772
  };
1701
1773
  declare type ProTypographyProps = Partial<ExtractPropTypes<ReturnType<typeof typographyProps>>>;
1702
1774
  declare const ProTypography: vue.DefineComponent<Partial<ExtractPropTypes<{
@@ -1710,6 +1782,9 @@ declare const ProTypography: vue.DefineComponent<Partial<ExtractPropTypes<{
1710
1782
  }>)[];
1711
1783
  };
1712
1784
  popoverProps: ObjectConstructor;
1785
+ emptyText: {
1786
+ type: StringConstructor;
1787
+ };
1713
1788
  }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
1714
1789
  content: {
1715
1790
  type: (NumberConstructor | StringConstructor)[];
@@ -1721,6 +1796,9 @@ declare const ProTypography: vue.DefineComponent<Partial<ExtractPropTypes<{
1721
1796
  }>)[];
1722
1797
  };
1723
1798
  popoverProps: ObjectConstructor;
1799
+ emptyText: {
1800
+ type: StringConstructor;
1801
+ };
1724
1802
  }>>>, {}>;
1725
1803
 
1726
1804
  declare const ProShowText: vue.DefineComponent<{
@@ -1739,6 +1817,9 @@ declare const ProShowText: vue.DefineComponent<{
1739
1817
  }>)[];
1740
1818
  };
1741
1819
  popoverProps: ObjectConstructor;
1820
+ emptyText: {
1821
+ type: StringConstructor;
1822
+ };
1742
1823
  }>>>;
1743
1824
  };
1744
1825
  convert: {
@@ -1760,6 +1841,9 @@ declare const ProShowText: vue.DefineComponent<{
1760
1841
  }>)[];
1761
1842
  };
1762
1843
  popoverProps: ObjectConstructor;
1844
+ emptyText: {
1845
+ type: StringConstructor;
1846
+ };
1763
1847
  }>>>;
1764
1848
  };
1765
1849
  convert: {
@@ -1790,6 +1874,9 @@ declare const ProShowDigit: vue.DefineComponent<{
1790
1874
  }>)[];
1791
1875
  };
1792
1876
  popoverProps: ObjectConstructor;
1877
+ emptyText: {
1878
+ type: StringConstructor;
1879
+ };
1793
1880
  }>>>;
1794
1881
  };
1795
1882
  convert: {
@@ -1819,6 +1906,9 @@ declare const ProShowDigit: vue.DefineComponent<{
1819
1906
  }>)[];
1820
1907
  };
1821
1908
  popoverProps: ObjectConstructor;
1909
+ emptyText: {
1910
+ type: StringConstructor;
1911
+ };
1822
1912
  }>>>;
1823
1913
  };
1824
1914
  convert: {
@@ -1852,6 +1942,9 @@ declare const ProShowOptions: vue.DefineComponent<{
1852
1942
  }>)[];
1853
1943
  };
1854
1944
  popoverProps: ObjectConstructor;
1945
+ emptyText: {
1946
+ type: StringConstructor;
1947
+ };
1855
1948
  }>>>;
1856
1949
  };
1857
1950
  convert: {
@@ -1881,6 +1974,9 @@ declare const ProShowOptions: vue.DefineComponent<{
1881
1974
  }>)[];
1882
1975
  };
1883
1976
  popoverProps: ObjectConstructor;
1977
+ emptyText: {
1978
+ type: StringConstructor;
1979
+ };
1884
1980
  }>>>;
1885
1981
  };
1886
1982
  convert: {
@@ -1914,6 +2010,9 @@ declare const ProShowTree: vue.DefineComponent<{
1914
2010
  }>)[];
1915
2011
  };
1916
2012
  popoverProps: ObjectConstructor;
2013
+ emptyText: {
2014
+ type: StringConstructor;
2015
+ };
1917
2016
  }>>>;
1918
2017
  };
1919
2018
  convert: {
@@ -1944,6 +2043,9 @@ declare const ProShowTree: vue.DefineComponent<{
1944
2043
  }>)[];
1945
2044
  };
1946
2045
  popoverProps: ObjectConstructor;
2046
+ emptyText: {
2047
+ type: StringConstructor;
2048
+ };
1947
2049
  }>>>;
1948
2050
  };
1949
2051
  convert: {
@@ -1980,6 +2082,9 @@ declare const ProShowDate: vue.DefineComponent<{
1980
2082
  }>)[];
1981
2083
  };
1982
2084
  popoverProps: ObjectConstructor;
2085
+ emptyText: {
2086
+ type: StringConstructor;
2087
+ };
1983
2088
  }>>>;
1984
2089
  };
1985
2090
  convert: {
@@ -2013,6 +2118,9 @@ declare const ProShowDate: vue.DefineComponent<{
2013
2118
  }>)[];
2014
2119
  };
2015
2120
  popoverProps: ObjectConstructor;
2121
+ emptyText: {
2122
+ type: StringConstructor;
2123
+ };
2016
2124
  }>>>;
2017
2125
  };
2018
2126
  convert: {
@@ -2487,4 +2595,4 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
2487
2595
  */
2488
2596
  declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
2489
2597
 
2490
- 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, 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, 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, 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 };
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 };