@vue-start/pro 0.5.63 → 0.5.65
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.d.ts +33 -27
- package/dist/index.es.js +2199 -2115
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
2
|
import * as vue from 'vue';
|
|
3
|
-
import { VNode, ExtractPropTypes, PropType, DefineComponent, App, UnwrapNestedRefs as UnwrapNestedRefs$1, Ref as Ref$1 } from 'vue';
|
|
3
|
+
import { VNode, ExtractPropTypes, PropType, DefineComponent, ComputedRef, App, UnwrapNestedRefs as UnwrapNestedRefs$1, Ref as Ref$1 } from 'vue';
|
|
4
4
|
import * as _vue_reactivity from '@vue/reactivity';
|
|
5
|
-
import { UnwrapNestedRefs, Ref, UnwrapRef, ComputedRef } from '@vue/reactivity';
|
|
5
|
+
import { UnwrapNestedRefs, Ref, UnwrapRef, ComputedRef as ComputedRef$1 } from '@vue/reactivity';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
7
|
import { IRequestActor } from '@vue-start/request';
|
|
8
8
|
import * as _vue_start_store from '@vue-start/store';
|
|
@@ -733,6 +733,7 @@ declare const AppConfig: {
|
|
|
733
733
|
isGray: boolean;
|
|
734
734
|
isInvert: boolean;
|
|
735
735
|
isWatermark: boolean;
|
|
736
|
+
locale: string;
|
|
736
737
|
};
|
|
737
738
|
declare type TAppConfig = typeof AppConfig;
|
|
738
739
|
|
|
@@ -789,7 +790,7 @@ interface IProConfigProvide {
|
|
|
789
790
|
* form组件集(使用FormItem包裹的组件集合)
|
|
790
791
|
*/
|
|
791
792
|
formElementMap?: TElementMap;
|
|
792
|
-
formExtraMap?: TFormExtraMap
|
|
793
|
+
formExtraMap?: ComputedRef<TFormExtraMap>;
|
|
793
794
|
/**
|
|
794
795
|
* 注册的全局状态
|
|
795
796
|
*/
|
|
@@ -819,6 +820,8 @@ interface IProConfigProvide {
|
|
|
819
820
|
showModal: (opts: Record<string, any>) => any;
|
|
820
821
|
showNotify: (opts: Record<string, any>) => any;
|
|
821
822
|
appConfig: TAppConfig;
|
|
823
|
+
localeConfig: ComputedRef<Record<string, string>>;
|
|
824
|
+
t: ComputedRef<(k: string) => string>;
|
|
822
825
|
}
|
|
823
826
|
declare const proConfigProps: () => {
|
|
824
827
|
elementMap: {
|
|
@@ -876,6 +879,7 @@ declare const proConfigProps: () => {
|
|
|
876
879
|
isGray: boolean;
|
|
877
880
|
isInvert: boolean;
|
|
878
881
|
isWatermark: boolean;
|
|
882
|
+
locale: string;
|
|
879
883
|
}>;
|
|
880
884
|
default: {
|
|
881
885
|
layout: string;
|
|
@@ -894,8 +898,12 @@ declare const proConfigProps: () => {
|
|
|
894
898
|
isGray: boolean;
|
|
895
899
|
isInvert: boolean;
|
|
896
900
|
isWatermark: boolean;
|
|
901
|
+
locale: string;
|
|
897
902
|
};
|
|
898
903
|
};
|
|
904
|
+
localeConfig: {
|
|
905
|
+
type: ObjectConstructor;
|
|
906
|
+
};
|
|
899
907
|
};
|
|
900
908
|
declare const useProConfig: () => IProConfigProvide;
|
|
901
909
|
declare const useProMsg: () => (opts: Record<string, any>) => any;
|
|
@@ -961,6 +969,7 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
961
969
|
isGray: boolean;
|
|
962
970
|
isInvert: boolean;
|
|
963
971
|
isWatermark: boolean;
|
|
972
|
+
locale: string;
|
|
964
973
|
}>;
|
|
965
974
|
default: {
|
|
966
975
|
layout: string;
|
|
@@ -979,8 +988,12 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
979
988
|
isGray: boolean;
|
|
980
989
|
isInvert: boolean;
|
|
981
990
|
isWatermark: boolean;
|
|
991
|
+
locale: string;
|
|
982
992
|
};
|
|
983
993
|
};
|
|
994
|
+
localeConfig: {
|
|
995
|
+
type: ObjectConstructor;
|
|
996
|
+
};
|
|
984
997
|
}>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
|
|
985
998
|
elementMap: {
|
|
986
999
|
type: PropType<TElementMap>;
|
|
@@ -1037,6 +1050,7 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
1037
1050
|
isGray: boolean;
|
|
1038
1051
|
isInvert: boolean;
|
|
1039
1052
|
isWatermark: boolean;
|
|
1053
|
+
locale: string;
|
|
1040
1054
|
}>;
|
|
1041
1055
|
default: {
|
|
1042
1056
|
layout: string;
|
|
@@ -1055,8 +1069,12 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
1055
1069
|
isGray: boolean;
|
|
1056
1070
|
isInvert: boolean;
|
|
1057
1071
|
isWatermark: boolean;
|
|
1072
|
+
locale: string;
|
|
1058
1073
|
};
|
|
1059
1074
|
};
|
|
1075
|
+
localeConfig: {
|
|
1076
|
+
type: ObjectConstructor;
|
|
1077
|
+
};
|
|
1060
1078
|
}>>>, {}>;
|
|
1061
1079
|
/**
|
|
1062
1080
|
* app.use 方式注册
|
|
@@ -1284,6 +1302,9 @@ declare const proFormProps: () => {
|
|
|
1284
1302
|
operate: {
|
|
1285
1303
|
type: PropType<TProFormOperate>;
|
|
1286
1304
|
};
|
|
1305
|
+
opeItems: {
|
|
1306
|
+
type: PropType<() => IOpeItem[]>;
|
|
1307
|
+
};
|
|
1287
1308
|
submitLoading: {
|
|
1288
1309
|
type: BooleanConstructor;
|
|
1289
1310
|
};
|
|
@@ -1740,15 +1761,12 @@ declare const proTableProps: () => {
|
|
|
1740
1761
|
type: PropType<() => VNode<vue.RendererNode, vue.RendererElement, {
|
|
1741
1762
|
[key: string]: any;
|
|
1742
1763
|
}>>;
|
|
1743
|
-
default: () => string;
|
|
1744
1764
|
};
|
|
1745
1765
|
allTitle: {
|
|
1746
1766
|
type: StringConstructor;
|
|
1747
|
-
default: string;
|
|
1748
1767
|
};
|
|
1749
1768
|
resetTitle: {
|
|
1750
1769
|
type: StringConstructor;
|
|
1751
|
-
default: string;
|
|
1752
1770
|
};
|
|
1753
1771
|
}>> | undefined;
|
|
1754
1772
|
}>;
|
|
@@ -1802,15 +1820,12 @@ declare const proColumnSetting: () => {
|
|
|
1802
1820
|
};
|
|
1803
1821
|
renderDom: {
|
|
1804
1822
|
type: PropType<() => VNode>;
|
|
1805
|
-
default: () => string;
|
|
1806
1823
|
};
|
|
1807
1824
|
allTitle: {
|
|
1808
1825
|
type: StringConstructor;
|
|
1809
|
-
default: string;
|
|
1810
1826
|
};
|
|
1811
1827
|
resetTitle: {
|
|
1812
1828
|
type: StringConstructor;
|
|
1813
|
-
default: string;
|
|
1814
1829
|
};
|
|
1815
1830
|
};
|
|
1816
1831
|
declare type ProColumnSettingProps = Partial<ExtractPropTypes<ReturnType<typeof proColumnSetting>>>;
|
|
@@ -1836,15 +1851,12 @@ declare const ColumnSetting: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
1836
1851
|
};
|
|
1837
1852
|
renderDom: {
|
|
1838
1853
|
type: PropType<() => VNode>;
|
|
1839
|
-
default: () => string;
|
|
1840
1854
|
};
|
|
1841
1855
|
allTitle: {
|
|
1842
1856
|
type: StringConstructor;
|
|
1843
|
-
default: string;
|
|
1844
1857
|
};
|
|
1845
1858
|
resetTitle: {
|
|
1846
1859
|
type: StringConstructor;
|
|
1847
|
-
default: string;
|
|
1848
1860
|
};
|
|
1849
1861
|
}>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
|
|
1850
1862
|
/**
|
|
@@ -1868,15 +1880,12 @@ declare const ColumnSetting: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
1868
1880
|
};
|
|
1869
1881
|
renderDom: {
|
|
1870
1882
|
type: PropType<() => VNode>;
|
|
1871
|
-
default: () => string;
|
|
1872
1883
|
};
|
|
1873
1884
|
allTitle: {
|
|
1874
1885
|
type: StringConstructor;
|
|
1875
|
-
default: string;
|
|
1876
1886
|
};
|
|
1877
1887
|
resetTitle: {
|
|
1878
1888
|
type: StringConstructor;
|
|
1879
|
-
default: string;
|
|
1880
1889
|
};
|
|
1881
1890
|
}>>>, {}>;
|
|
1882
1891
|
|
|
@@ -1897,7 +1906,6 @@ declare const proPageHeaderProps: () => {
|
|
|
1897
1906
|
};
|
|
1898
1907
|
renderBackIcon: {
|
|
1899
1908
|
type: PropType<() => VNode>;
|
|
1900
|
-
default: () => string;
|
|
1901
1909
|
};
|
|
1902
1910
|
};
|
|
1903
1911
|
declare type PageHeaderProps = Partial<ExtractPropTypes<ReturnType<typeof proPageHeaderProps>>>;
|
|
@@ -1918,7 +1926,6 @@ declare const PageHeader: vue.DefineComponent<{
|
|
|
1918
1926
|
};
|
|
1919
1927
|
renderBackIcon: {
|
|
1920
1928
|
type: PropType<() => VNode>;
|
|
1921
|
-
default: () => string;
|
|
1922
1929
|
};
|
|
1923
1930
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
1924
1931
|
title: {
|
|
@@ -1937,12 +1944,10 @@ declare const PageHeader: vue.DefineComponent<{
|
|
|
1937
1944
|
};
|
|
1938
1945
|
renderBackIcon: {
|
|
1939
1946
|
type: PropType<() => VNode>;
|
|
1940
|
-
default: () => string;
|
|
1941
1947
|
};
|
|
1942
1948
|
}>>, {
|
|
1943
1949
|
showBack: boolean;
|
|
1944
1950
|
hideWhileNoHistory: boolean;
|
|
1945
|
-
renderBackIcon: () => VNode;
|
|
1946
1951
|
}>;
|
|
1947
1952
|
declare const proPageProps: () => {
|
|
1948
1953
|
loading: {
|
|
@@ -3273,18 +3278,18 @@ interface IProCurdProvide {
|
|
|
3273
3278
|
tableColumns: Ref<TColumns>;
|
|
3274
3279
|
searchColumns: Ref<TColumns>;
|
|
3275
3280
|
sendCurdEvent: (event: TCurdActionEvent) => void;
|
|
3276
|
-
operates: ICurdOperateOpts[]
|
|
3281
|
+
operates: ComputedRef$1<ICurdOperateOpts[]>;
|
|
3277
3282
|
getOperate: (action: ICurdAction) => ICurdOperateOpts | undefined;
|
|
3278
3283
|
refreshList: (extra?: Record<string, any>) => void;
|
|
3279
|
-
defaultAddRecord?: ComputedRef<Record<string, any> | undefined>;
|
|
3284
|
+
defaultAddRecord?: ComputedRef$1<Record<string, any> | undefined>;
|
|
3280
3285
|
title?: string;
|
|
3281
3286
|
/******************子组件参数*******************/
|
|
3282
|
-
listProps?: ComputedRef<Record<string, any> | undefined>;
|
|
3283
|
-
formProps?: ComputedRef<Record<string, any> | undefined>;
|
|
3284
|
-
descProps?: ComputedRef<Record<string, any> | undefined>;
|
|
3285
|
-
modalProps?: ComputedRef<Record<string, any> | undefined>;
|
|
3286
|
-
pageProps?: ComputedRef<Record<string, any> | undefined>;
|
|
3287
|
-
subPageProps?: ComputedRef<Record<string, any> | undefined>;
|
|
3287
|
+
listProps?: ComputedRef$1<Record<string, any> | undefined>;
|
|
3288
|
+
formProps?: ComputedRef$1<Record<string, any> | undefined>;
|
|
3289
|
+
descProps?: ComputedRef$1<Record<string, any> | undefined>;
|
|
3290
|
+
modalProps?: ComputedRef$1<Record<string, any> | undefined>;
|
|
3291
|
+
pageProps?: ComputedRef$1<Record<string, any> | undefined>;
|
|
3292
|
+
subPageProps?: ComputedRef$1<Record<string, any> | undefined>;
|
|
3288
3293
|
}
|
|
3289
3294
|
declare const useProCurd: <T extends IProCurdProvide>() => T;
|
|
3290
3295
|
declare const provideProCurd: (ctx: IProCurdProvide) => void;
|
|
@@ -3746,6 +3751,7 @@ declare const useAppConfig: () => {
|
|
|
3746
3751
|
isGray: boolean;
|
|
3747
3752
|
isInvert: boolean;
|
|
3748
3753
|
isWatermark: boolean;
|
|
3754
|
+
locale: string;
|
|
3749
3755
|
};
|
|
3750
3756
|
readonly setAppConfig: (c: TAppConfig | TUpdater<TAppConfig>) => void;
|
|
3751
3757
|
readonly delAppConfig: () => void;
|