pro-design-vue 1.1.1 → 1.1.2
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.full.js +454 -384
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +452 -382
- package/es/components/config-provider/src/config-provider-container.vue2.mjs +1 -0
- package/es/components/config-provider/src/config-provider-container.vue2.mjs.map +1 -1
- package/es/components/config-provider/src/config-provider.vue2.mjs +37 -34
- package/es/components/config-provider/src/config-provider.vue2.mjs.map +1 -1
- package/es/components/config-provider/src/intl.mjs +4 -3
- package/es/components/config-provider/src/intl.mjs.map +1 -1
- package/es/components/config-provider/src/typing.d.ts +3 -0
- package/es/components/config-provider/src/useIntl.mjs.map +1 -1
- package/es/components/config-provider/src/useTokens.d.ts +0 -3
- package/es/components/config-provider/src/useTokens.mjs.map +1 -1
- package/es/components/form/src/Form.d.ts +8 -2
- package/es/components/form/src/base/BaseForm.d.ts +8 -2
- package/es/components/form/src/base/BaseForm.mjs +5 -1
- package/es/components/form/src/base/BaseForm.mjs.map +1 -1
- package/es/components/form/src/base/StepForm.d.ts +8 -2
- package/es/components/form/src/components/FormItem.mjs +3 -1
- package/es/components/form/src/components/FormItem.mjs.map +1 -1
- package/es/components/form/src/context/FormContext.d.ts +2 -1
- package/es/components/form/src/context/FormContext.mjs.map +1 -1
- package/es/components/form/src/fields/FieldCascader.d.ts +6 -0
- package/es/components/form/src/fields/FieldCheckbox.d.ts +6 -0
- package/es/components/form/src/fields/FieldCheckboxGroup.d.ts +6 -0
- package/es/components/form/src/fields/FieldDatePicker.d.ts +6 -0
- package/es/components/form/src/fields/FieldDateRangePicker.d.ts +6 -0
- package/es/components/form/src/fields/FieldDigit.d.ts +6 -0
- package/es/components/form/src/fields/FieldDigitRange.d.ts +6 -0
- package/es/components/form/src/fields/FieldPassword.d.ts +6 -0
- package/es/components/form/src/fields/FieldRadioGroup.d.ts +6 -0
- package/es/components/form/src/fields/FieldRate.d.ts +6 -0
- package/es/components/form/src/fields/FieldSelect.d.ts +6 -0
- package/es/components/form/src/fields/FieldSlider.d.ts +6 -0
- package/es/components/form/src/fields/FieldSwitch.d.ts +6 -0
- package/es/components/form/src/fields/FieldText.d.ts +6 -0
- package/es/components/form/src/fields/FieldText.mjs +2 -1
- package/es/components/form/src/fields/FieldText.mjs.map +1 -1
- package/es/components/form/src/fields/FieldTextarea.d.ts +6 -0
- package/es/components/form/src/fields/FieldTimePicker.d.ts +6 -0
- package/es/components/form/src/fields/FieldTimeRangePicker.d.ts +6 -0
- package/es/components/form/src/fields/FieldTreeSelect.d.ts +6 -0
- package/es/components/form/src/fields/FieldUploadButton.d.ts +6 -0
- package/es/components/form/src/fields/FieldUploadDragger.d.ts +6 -0
- package/es/components/form/src/fields/FieldUploadPicture.d.ts +6 -0
- package/es/components/form/src/fields/FieldUploadPictureList.d.ts +6 -0
- package/es/components/form/src/layouts/DrawerForm.d.ts +8 -2
- package/es/components/form/src/layouts/ModalForm.d.ts +8 -2
- package/es/components/form/src/layouts/QueryFilter.d.ts +8 -2
- package/es/components/form/src/layouts/QueryFilter.mjs +50 -45
- package/es/components/form/src/layouts/QueryFilter.mjs.map +1 -1
- package/es/components/form/src/layouts/StepsForm.d.ts +8 -2
- package/es/components/form/src/props.d.ts +24 -6
- package/es/components/form/src/props.mjs +7 -1
- package/es/components/form/src/props.mjs.map +1 -1
- package/es/components/table/src/components/InteralTable.vue.mjs.map +1 -1
- package/es/components/table/src/components/InteralTable.vue2.mjs +2 -1
- package/es/components/table/src/components/InteralTable.vue2.mjs.map +1 -1
- package/es/constants/globals.d.ts +4 -0
- package/es/constants/globals.mjs +2 -1
- package/es/constants/globals.mjs.map +1 -1
- package/es/constants/index.mjs +1 -1
- package/es/index.d.ts +67 -15
- package/es/index.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/config-provider/src/config-provider-container.vue2.js +1 -0
- package/lib/components/config-provider/src/config-provider-container.vue2.js.map +1 -1
- package/lib/components/config-provider/src/config-provider.vue2.js +36 -33
- package/lib/components/config-provider/src/config-provider.vue2.js.map +1 -1
- package/lib/components/config-provider/src/intl.js +4 -3
- package/lib/components/config-provider/src/intl.js.map +1 -1
- package/lib/components/config-provider/src/typing.d.ts +3 -0
- package/lib/components/config-provider/src/useIntl.js.map +1 -1
- package/lib/components/config-provider/src/useTokens.d.ts +0 -3
- package/lib/components/config-provider/src/useTokens.js.map +1 -1
- package/lib/components/form/src/Form.d.ts +8 -2
- package/lib/components/form/src/base/BaseForm.d.ts +8 -2
- package/lib/components/form/src/base/BaseForm.js +5 -1
- package/lib/components/form/src/base/BaseForm.js.map +1 -1
- package/lib/components/form/src/base/StepForm.d.ts +8 -2
- package/lib/components/form/src/components/FormItem.js +3 -1
- package/lib/components/form/src/components/FormItem.js.map +1 -1
- package/lib/components/form/src/context/FormContext.d.ts +2 -1
- package/lib/components/form/src/context/FormContext.js.map +1 -1
- package/lib/components/form/src/fields/FieldCascader.d.ts +6 -0
- package/lib/components/form/src/fields/FieldCheckbox.d.ts +6 -0
- package/lib/components/form/src/fields/FieldCheckboxGroup.d.ts +6 -0
- package/lib/components/form/src/fields/FieldDatePicker.d.ts +6 -0
- package/lib/components/form/src/fields/FieldDateRangePicker.d.ts +6 -0
- package/lib/components/form/src/fields/FieldDigit.d.ts +6 -0
- package/lib/components/form/src/fields/FieldDigitRange.d.ts +6 -0
- package/lib/components/form/src/fields/FieldPassword.d.ts +6 -0
- package/lib/components/form/src/fields/FieldRadioGroup.d.ts +6 -0
- package/lib/components/form/src/fields/FieldRate.d.ts +6 -0
- package/lib/components/form/src/fields/FieldSelect.d.ts +6 -0
- package/lib/components/form/src/fields/FieldSlider.d.ts +6 -0
- package/lib/components/form/src/fields/FieldSwitch.d.ts +6 -0
- package/lib/components/form/src/fields/FieldText.d.ts +6 -0
- package/lib/components/form/src/fields/FieldText.js +2 -1
- package/lib/components/form/src/fields/FieldText.js.map +1 -1
- package/lib/components/form/src/fields/FieldTextarea.d.ts +6 -0
- package/lib/components/form/src/fields/FieldTimePicker.d.ts +6 -0
- package/lib/components/form/src/fields/FieldTimeRangePicker.d.ts +6 -0
- package/lib/components/form/src/fields/FieldTreeSelect.d.ts +6 -0
- package/lib/components/form/src/fields/FieldUploadButton.d.ts +6 -0
- package/lib/components/form/src/fields/FieldUploadDragger.d.ts +6 -0
- package/lib/components/form/src/fields/FieldUploadPicture.d.ts +6 -0
- package/lib/components/form/src/fields/FieldUploadPictureList.d.ts +6 -0
- package/lib/components/form/src/layouts/DrawerForm.d.ts +8 -2
- package/lib/components/form/src/layouts/ModalForm.d.ts +8 -2
- package/lib/components/form/src/layouts/QueryFilter.d.ts +8 -2
- package/lib/components/form/src/layouts/QueryFilter.js +50 -45
- package/lib/components/form/src/layouts/QueryFilter.js.map +1 -1
- package/lib/components/form/src/layouts/StepsForm.d.ts +8 -2
- package/lib/components/form/src/props.d.ts +24 -6
- package/lib/components/form/src/props.js +7 -1
- package/lib/components/form/src/props.js.map +1 -1
- package/lib/components/table/src/components/InteralTable.vue.js.map +1 -1
- package/lib/components/table/src/components/InteralTable.vue2.js +2 -1
- package/lib/components/table/src/components/InteralTable.vue2.js.map +1 -1
- package/lib/constants/globals.d.ts +4 -0
- package/lib/constants/globals.js +2 -0
- package/lib/constants/globals.js.map +1 -1
- package/lib/constants/index.js +1 -0
- package/lib/constants/index.js.map +1 -1
- package/lib/index.d.ts +67 -15
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
@@ -823,7 +823,10 @@ declare const baseFormProps: () => {
|
|
823
823
|
};
|
824
824
|
readonly: BooleanConstructor;
|
825
825
|
grid: BooleanConstructor;
|
826
|
-
isKeyPressSubmit:
|
826
|
+
isKeyPressSubmit: {
|
827
|
+
type: BooleanConstructor;
|
828
|
+
default: undefined;
|
829
|
+
};
|
827
830
|
formKey: StringConstructor;
|
828
831
|
theme: {
|
829
832
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -1348,7 +1351,10 @@ declare const _default_10: DefineComponent<ExtractPropTypes<{
|
|
1348
1351
|
};
|
1349
1352
|
readonly: BooleanConstructor;
|
1350
1353
|
grid: BooleanConstructor;
|
1351
|
-
isKeyPressSubmit:
|
1354
|
+
isKeyPressSubmit: {
|
1355
|
+
type: BooleanConstructor;
|
1356
|
+
default: undefined;
|
1357
|
+
};
|
1352
1358
|
formKey: StringConstructor;
|
1353
1359
|
theme: {
|
1354
1360
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -1495,7 +1501,10 @@ declare const _default_10: DefineComponent<ExtractPropTypes<{
|
|
1495
1501
|
};
|
1496
1502
|
readonly: BooleanConstructor;
|
1497
1503
|
grid: BooleanConstructor;
|
1498
|
-
isKeyPressSubmit:
|
1504
|
+
isKeyPressSubmit: {
|
1505
|
+
type: BooleanConstructor;
|
1506
|
+
default: undefined;
|
1507
|
+
};
|
1499
1508
|
formKey: StringConstructor;
|
1500
1509
|
theme: {
|
1501
1510
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -2915,7 +2924,10 @@ declare const _default_6: DefineComponent<ExtractPropTypes<{
|
|
2915
2924
|
};
|
2916
2925
|
readonly: BooleanConstructor;
|
2917
2926
|
grid: BooleanConstructor;
|
2918
|
-
isKeyPressSubmit:
|
2927
|
+
isKeyPressSubmit: {
|
2928
|
+
type: BooleanConstructor;
|
2929
|
+
default: undefined;
|
2930
|
+
};
|
2919
2931
|
formKey: StringConstructor;
|
2920
2932
|
theme: {
|
2921
2933
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -3132,7 +3144,10 @@ declare const _default_6: DefineComponent<ExtractPropTypes<{
|
|
3132
3144
|
};
|
3133
3145
|
readonly: BooleanConstructor;
|
3134
3146
|
grid: BooleanConstructor;
|
3135
|
-
isKeyPressSubmit:
|
3147
|
+
isKeyPressSubmit: {
|
3148
|
+
type: BooleanConstructor;
|
3149
|
+
default: undefined;
|
3150
|
+
};
|
3136
3151
|
formKey: StringConstructor;
|
3137
3152
|
theme: {
|
3138
3153
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -3437,7 +3452,10 @@ declare const _default_7: DefineComponent<ExtractPropTypes<{
|
|
3437
3452
|
};
|
3438
3453
|
readonly: BooleanConstructor;
|
3439
3454
|
grid: BooleanConstructor;
|
3440
|
-
isKeyPressSubmit:
|
3455
|
+
isKeyPressSubmit: {
|
3456
|
+
type: BooleanConstructor;
|
3457
|
+
default: undefined;
|
3458
|
+
};
|
3441
3459
|
formKey: StringConstructor;
|
3442
3460
|
theme: {
|
3443
3461
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -3598,7 +3616,10 @@ declare const _default_7: DefineComponent<ExtractPropTypes<{
|
|
3598
3616
|
};
|
3599
3617
|
readonly: BooleanConstructor;
|
3600
3618
|
grid: BooleanConstructor;
|
3601
|
-
isKeyPressSubmit:
|
3619
|
+
isKeyPressSubmit: {
|
3620
|
+
type: BooleanConstructor;
|
3621
|
+
default: undefined;
|
3622
|
+
};
|
3602
3623
|
formKey: StringConstructor;
|
3603
3624
|
theme: {
|
3604
3625
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -3793,7 +3814,10 @@ declare const _default_8: DefineComponent<ExtractPropTypes<{
|
|
3793
3814
|
};
|
3794
3815
|
readonly: BooleanConstructor;
|
3795
3816
|
grid: BooleanConstructor;
|
3796
|
-
isKeyPressSubmit:
|
3817
|
+
isKeyPressSubmit: {
|
3818
|
+
type: BooleanConstructor;
|
3819
|
+
default: undefined;
|
3820
|
+
};
|
3797
3821
|
formKey: StringConstructor;
|
3798
3822
|
theme: {
|
3799
3823
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -3951,7 +3975,10 @@ declare const _default_8: DefineComponent<ExtractPropTypes<{
|
|
3951
3975
|
};
|
3952
3976
|
readonly: BooleanConstructor;
|
3953
3977
|
grid: BooleanConstructor;
|
3954
|
-
isKeyPressSubmit:
|
3978
|
+
isKeyPressSubmit: {
|
3979
|
+
type: BooleanConstructor;
|
3980
|
+
default: undefined;
|
3981
|
+
};
|
3955
3982
|
formKey: StringConstructor;
|
3956
3983
|
theme: {
|
3957
3984
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -4149,7 +4176,10 @@ declare const _default_9: DefineComponent<ExtractPropTypes<{
|
|
4149
4176
|
};
|
4150
4177
|
readonly: BooleanConstructor;
|
4151
4178
|
grid: BooleanConstructor;
|
4152
|
-
isKeyPressSubmit:
|
4179
|
+
isKeyPressSubmit: {
|
4180
|
+
type: BooleanConstructor;
|
4181
|
+
default: undefined;
|
4182
|
+
};
|
4153
4183
|
formKey: StringConstructor;
|
4154
4184
|
theme: {
|
4155
4185
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -4313,7 +4343,10 @@ declare const _default_9: DefineComponent<ExtractPropTypes<{
|
|
4313
4343
|
};
|
4314
4344
|
readonly: BooleanConstructor;
|
4315
4345
|
grid: BooleanConstructor;
|
4316
|
-
isKeyPressSubmit:
|
4346
|
+
isKeyPressSubmit: {
|
4347
|
+
type: BooleanConstructor;
|
4348
|
+
default: undefined;
|
4349
|
+
};
|
4317
4350
|
formKey: StringConstructor;
|
4318
4351
|
theme: {
|
4319
4352
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -4453,6 +4486,10 @@ declare const _default_9: DefineComponent<ExtractPropTypes<{
|
|
4453
4486
|
requestAbort: boolean;
|
4454
4487
|
onInit: (values: any, formAction: ProFormActionType) => void;
|
4455
4488
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
4489
|
+
/**
|
4490
|
+
* @zh_CN 默认多语言
|
4491
|
+
*/
|
4492
|
+
export declare const DEFAULT_LOCALE = "zh-CN";
|
4456
4493
|
/**
|
4457
4494
|
* @zh_CN 默认命名空间
|
4458
4495
|
*/
|
@@ -4539,7 +4576,10 @@ declare const drawerOrModalFormProps: () => {
|
|
4539
4576
|
};
|
4540
4577
|
readonly: BooleanConstructor;
|
4541
4578
|
grid: BooleanConstructor;
|
4542
|
-
isKeyPressSubmit:
|
4579
|
+
isKeyPressSubmit: {
|
4580
|
+
type: BooleanConstructor;
|
4581
|
+
default: undefined;
|
4582
|
+
};
|
4543
4583
|
formKey: StringConstructor;
|
4544
4584
|
theme: {
|
4545
4585
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -4783,7 +4823,10 @@ declare const formProps: () => {
|
|
4783
4823
|
};
|
4784
4824
|
readonly: BooleanConstructor;
|
4785
4825
|
grid: BooleanConstructor;
|
4786
|
-
isKeyPressSubmit:
|
4826
|
+
isKeyPressSubmit: {
|
4827
|
+
type: BooleanConstructor;
|
4828
|
+
default: undefined;
|
4829
|
+
};
|
4787
4830
|
formKey: StringConstructor;
|
4788
4831
|
theme: {
|
4789
4832
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -5862,6 +5905,9 @@ export declare interface ProConfigProviderProps extends ConfigProviderProps {
|
|
5862
5905
|
intl?: IntlType;
|
5863
5906
|
proPrefixCls?: string;
|
5864
5907
|
contentOffsetTop?: number;
|
5908
|
+
table?: {
|
5909
|
+
pagination?: ProTablePaginationConfig;
|
5910
|
+
};
|
5865
5911
|
pro?: {
|
5866
5912
|
table?: {
|
5867
5913
|
pagination?: ProTablePaginationConfig;
|
@@ -9746,7 +9792,10 @@ declare const queryFilterProps: () => {
|
|
9746
9792
|
};
|
9747
9793
|
readonly: BooleanConstructor;
|
9748
9794
|
grid: BooleanConstructor;
|
9749
|
-
isKeyPressSubmit:
|
9795
|
+
isKeyPressSubmit: {
|
9796
|
+
type: BooleanConstructor;
|
9797
|
+
default: undefined;
|
9798
|
+
};
|
9750
9799
|
formKey: StringConstructor;
|
9751
9800
|
theme: {
|
9752
9801
|
type: PropType<ProFormPropsType["theme"]>;
|
@@ -10041,7 +10090,10 @@ declare const stepsFormProps: () => {
|
|
10041
10090
|
};
|
10042
10091
|
readonly: BooleanConstructor;
|
10043
10092
|
grid: BooleanConstructor;
|
10044
|
-
isKeyPressSubmit:
|
10093
|
+
isKeyPressSubmit: {
|
10094
|
+
type: BooleanConstructor;
|
10095
|
+
default: undefined;
|
10096
|
+
};
|
10045
10097
|
formKey: StringConstructor;
|
10046
10098
|
theme: {
|
10047
10099
|
type: PropType<ProFormPropsType["theme"]>;
|
package/es/index.mjs
CHANGED
@@ -33,7 +33,7 @@ export { setLicenseKey } from './components/table/src/license/licenseInfo.mjs';
|
|
33
33
|
export { setConfig } from './components/table/src/components/config.mjs';
|
34
34
|
export { ProTable } from './components/table/index.mjs';
|
35
35
|
export { INSTALLED_KEY } from './constants/key.mjs';
|
36
|
-
export { CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT, CSS_VARIABLE_LAYOUT_CONTENT_WIDTH, CSS_VARIABLE_LAYOUT_FOOTER_HEIGHT, CSS_VARIABLE_LAYOUT_HEADER_HEIGHT, DEFAULT_NAMESPACE, ELEMENT_ID_MAIN_CONTENT, SCROLL_FIXED_CLASS } from './constants/globals.mjs';
|
36
|
+
export { CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT, CSS_VARIABLE_LAYOUT_CONTENT_WIDTH, CSS_VARIABLE_LAYOUT_FOOTER_HEIGHT, CSS_VARIABLE_LAYOUT_HEADER_HEIGHT, DEFAULT_LOCALE, DEFAULT_NAMESPACE, ELEMENT_ID_MAIN_CONTENT, SCROLL_FIXED_CLASS } from './constants/globals.mjs';
|
37
37
|
export { resize } from './directives/resize.mjs';
|
38
38
|
export { cellResize } from './directives/cell-resize.mjs';
|
39
39
|
export { usePrefixCls } from './hooks/use-prefix-cls/index.mjs';
|
package/es/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const version = "1.1.
|
1
|
+
export declare const version = "1.1.2";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/pro-design-vue/version.ts"],"sourcesContent":["export const version = '1.1.
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/pro-design-vue/version.ts"],"sourcesContent":["export const version = '1.1.2'\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
|
@@ -14,6 +14,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
14
14
|
intl: { type: Object, required: false },
|
15
15
|
proPrefixCls: { type: String, required: false },
|
16
16
|
contentOffsetTop: { type: Number, required: false },
|
17
|
+
table: { type: Object, required: false },
|
17
18
|
pro: { type: Object, required: false },
|
18
19
|
iconPrefixCls: { type: String, required: false },
|
19
20
|
getTargetContainer: { type: Function, required: false },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-provider-container.vue2.js","sources":["../../../../../../packages/components/config-provider/src/config-provider-container.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-09 10:02:46\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { ProConfigProviderProps } from './typing'\nimport { computed, ref } from 'vue'\nimport { useProConfigProvide } from './context'\n\ninterface Props extends ProConfigProviderProps {}\n\ndefineOptions({\n name: 'ConfigProviderContainer',\n})\n\nconst props = defineProps<Props>()\n\nconst contentOffsetTop = ref(props.contentOffsetTop)\nuseProConfigProvide({\n pro: computed(() => props.pro),\n proPrefixCls: computed(() => props.proPrefixCls),\n intl: computed(() => props.intl),\n locale: computed(() => props.locale),\n contentOffsetTop: computed(() => props.contentOffsetTop || contentOffsetTop.value),\n setContentOffsetTop: (offsetTop: number) => {\n contentOffsetTop.value = offsetTop\n },\n})\n</script>\n\n<template>\n <slot />\n</template>\n"],"names":["ref","useProConfigProvide","computed","_renderSlot"],"mappings":"
|
1
|
+
{"version":3,"file":"config-provider-container.vue2.js","sources":["../../../../../../packages/components/config-provider/src/config-provider-container.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-09 10:02:46\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { ProConfigProviderProps } from './typing'\nimport { computed, ref } from 'vue'\nimport { useProConfigProvide } from './context'\n\ninterface Props extends ProConfigProviderProps {}\n\ndefineOptions({\n name: 'ConfigProviderContainer',\n})\n\nconst props = defineProps<Props>()\n\nconst contentOffsetTop = ref(props.contentOffsetTop)\nuseProConfigProvide({\n pro: computed(() => props.pro),\n proPrefixCls: computed(() => props.proPrefixCls),\n intl: computed(() => props.intl),\n locale: computed(() => props.locale),\n contentOffsetTop: computed(() => props.contentOffsetTop || contentOffsetTop.value),\n setContentOffsetTop: (offsetTop: number) => {\n contentOffsetTop.value = offsetTop\n },\n})\n</script>\n\n<template>\n <slot />\n</template>\n"],"names":["ref","useProConfigProvide","computed","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAEd,IAAA,MAAM,gBAAA,GAAmBA,OAAA,CAAI,KAAA,CAAM,gBAAgB,CAAA;AACnD,IAAAC,2BAAA,CAAoB;AAAA,MAClB,GAAA,EAAKC,YAAA,CAAS,MAAM,KAAA,CAAM,GAAG,CAAA;AAAA,MAC7B,YAAA,EAAcA,YAAA,CAAS,MAAM,KAAA,CAAM,YAAY,CAAA;AAAA,MAC/C,IAAA,EAAMA,YAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA;AAAA,MAC/B,MAAA,EAAQA,YAAA,CAAS,MAAM,KAAA,CAAM,MAAM,CAAA;AAAA,MACnC,kBAAkBA,YAAA,CAAS,MAAM,KAAA,CAAM,gBAAA,IAAoB,iBAAiB,KAAK,CAAA;AAAA,MACjF,mBAAA,EAAqB,CAAC,SAAA,KAAsB;AAC1C,QAAA,gBAAA,CAAiB,KAAA,GAAQ,SAAA;AAAA,MAC3B;AAAA,KACD,CAAA;;aAICC,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA;;;;;;"}
|
@@ -5,7 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var vue = require('vue');
|
6
6
|
var antDesignVue = require('ant-design-vue');
|
7
7
|
var intl = require('./intl.js');
|
8
|
+
var dayjs = require('dayjs');
|
8
9
|
var configProviderContainer_vue_vue_type_script_setup_true_lang = require('./config-provider-container.vue2.js');
|
10
|
+
var antdDefaultLocale = require('ant-design-vue/es/locale/zh_CN');
|
11
|
+
var globals = require('../../../constants/globals.js');
|
9
12
|
|
10
13
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
11
14
|
...{
|
@@ -19,6 +22,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
22
|
}) },
|
20
23
|
proPrefixCls: { type: String, required: false, default: "pro" },
|
21
24
|
contentOffsetTop: { type: Number, required: false },
|
25
|
+
table: { type: Object, required: false },
|
22
26
|
pro: { type: Object, required: false },
|
23
27
|
iconPrefixCls: { type: String, required: false },
|
24
28
|
getTargetContainer: { type: Function, required: false },
|
@@ -30,7 +34,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
30
34
|
csp: { type: Object, required: false },
|
31
35
|
input: { type: Object, required: false },
|
32
36
|
autoInsertSpaceInButton: { type: Boolean, required: false },
|
33
|
-
locale: { type: Object, required: false },
|
37
|
+
locale: { type: Object, required: false, default: () => antdDefaultLocale },
|
34
38
|
pageHeader: { type: Object, required: false },
|
35
39
|
componentSize: { type: null, required: false },
|
36
40
|
componentDisabled: { type: Boolean, required: false },
|
@@ -45,42 +49,41 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
45
49
|
wave: { type: Object, required: false }
|
46
50
|
},
|
47
51
|
setup(__props) {
|
48
|
-
const rest = vue.createPropsRestProxy(__props, ["intl", "pro", "proPrefixCls"]);
|
52
|
+
const rest = vue.createPropsRestProxy(__props, ["intl", "pro", "proPrefixCls", "locale"]);
|
53
|
+
if (__props.locale.locale === globals.DEFAULT_LOCALE.toLocaleLowerCase()) {
|
54
|
+
import('dayjs/locale/zh-cn').then((value) => {
|
55
|
+
dayjs.locale(value);
|
56
|
+
});
|
57
|
+
}
|
49
58
|
antDesignVue.ConfigProvider.config({
|
50
59
|
prefixCls: rest.prefixCls
|
51
60
|
});
|
52
61
|
return (_ctx, _cache) => {
|
53
|
-
return vue.openBlock(), vue.createBlock(
|
54
|
-
vue.
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
_: 3
|
79
|
-
/* FORWARDED */
|
80
|
-
},
|
81
|
-
16
|
82
|
-
/* FULL_PROPS */
|
83
|
-
);
|
62
|
+
return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.ConfigProvider), vue.mergeProps(rest, { locale: _ctx.locale }), {
|
63
|
+
default: vue.withCtx(() => [
|
64
|
+
vue.createVNode(vue.unref(antDesignVue.App), null, {
|
65
|
+
default: vue.withCtx(() => [
|
66
|
+
vue.createVNode(configProviderContainer_vue_vue_type_script_setup_true_lang.default, {
|
67
|
+
contentOffsetTop: _ctx.contentOffsetTop,
|
68
|
+
intl: _ctx.intl,
|
69
|
+
proPrefixCls: _ctx.proPrefixCls,
|
70
|
+
pro: _ctx.pro,
|
71
|
+
locale: _ctx.locale
|
72
|
+
}, {
|
73
|
+
default: vue.withCtx(() => [
|
74
|
+
vue.renderSlot(_ctx.$slots, "default")
|
75
|
+
]),
|
76
|
+
_: 3
|
77
|
+
/* FORWARDED */
|
78
|
+
}, 8, ["contentOffsetTop", "intl", "proPrefixCls", "pro", "locale"])
|
79
|
+
]),
|
80
|
+
_: 3
|
81
|
+
/* FORWARDED */
|
82
|
+
})
|
83
|
+
]),
|
84
|
+
_: 3
|
85
|
+
/* FORWARDED */
|
86
|
+
}, 16, ["locale"]);
|
84
87
|
};
|
85
88
|
}
|
86
89
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-provider.vue2.js","sources":["../../../../../../packages/components/config-provider/src/config-provider.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-09
|
1
|
+
{"version":3,"file":"config-provider.vue2.js","sources":["../../../../../../packages/components/config-provider/src/config-provider.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-10 09:10:46\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { ProConfigProviderProps } from './typing'\n\nimport { ConfigProvider, App } from 'ant-design-vue'\nimport { DEFAULT_LOCALE } from '@pro-design-vue/constants'\nimport { zhCNIntl } from './intl'\nimport dayjs from 'dayjs'\nimport ConfigProviderContainer from './config-provider-container.vue'\nimport antdDefaultLocale from 'ant-design-vue/es/locale/zh_CN'\n\ninterface Props extends ProConfigProviderProps {}\n\ndefineOptions({\n name: 'ProConfigProvider',\n})\n\nconst {\n intl = {\n ...zhCNIntl,\n locale: 'default',\n },\n pro,\n proPrefixCls = 'pro',\n locale = antdDefaultLocale,\n ...rest\n} = defineProps<Props>()\n// 默认国际化为zh-cn\nif (locale.locale === DEFAULT_LOCALE.toLocaleLowerCase()) {\n import('dayjs/locale/zh-cn').then((value) => {\n dayjs.locale(value)\n })\n}\nConfigProvider.config({\n prefixCls: rest.prefixCls,\n})\n</script>\n\n<template>\n <ConfigProvider v-bind=\"rest\" :locale=\"locale\">\n <App>\n <ConfigProviderContainer :contentOffsetTop :intl :proPrefixCls :pro :locale=\"locale\">\n <slot />\n </ConfigProviderContainer>\n </App>\n </ConfigProvider>\n</template>\n"],"names":["_createPropsRestProxy","DEFAULT_LOCALE","ConfigProvider","_openBlock","_createBlock","_unref","_mergeProps","locale","_createVNode","App","ConfigProviderContainer","contentOffsetTop","intl","proPrefixCls","pro","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAA,MAAM,IAAA,GASFA,yBAAA,OAAA,EAAA,CAAA,QAAA,KAAA,EAAA,cAAA,EAAA,QAAA,CAAA,CAAA;AAEJ,IAAA,IAAI,OAAA,CAAA,MAAA,CAAO,MAAA,KAAWC,sBAAA,CAAe,mBAAkB,EAAG;AACxD,MAAA,OAAO,oBAAoB,CAAA,CAAE,IAAA,CAAK,CAAC,KAAA,KAAU;AAC3C,QAAA,KAAA,CAAM,OAAO,KAAK,CAAA;AAAA,MACpB,CAAC,CAAA;AAAA,IACH;AACA,IAAAC,2BAAA,CAAe,MAAA,CAAO;AAAA,MACpB,WAAW,IAAA,CAAK;AAAA,KACjB,CAAA;;AAIC,MAAA,OAAAC,aAAA,EAAA,EAAAC,eAAA,CAMiBC,SAAA,+BANjBC,cAAA,CAMiB,IAAA,EANW,EAAG,MAAA,EAAQC,IAAAA,CAAAA,MAAAA,EAAM,CAAA,EAAA;AAAA,6BAC3C,MAIM;AAAA,UAJNC,eAAA,CAIMH,SAAA,CAAAI,gBAAA,CAAA,EAAA,IAAA,EAAA;AAAA,iCAHJ,MAE0B;AAAA,cAF1BD,gBAE0BE,mEAAA,EAAA;AAAA,gBAFA,kBAAAC,IAAAA,CAAAA,gBAAAA;AAAAA,gBAAkB,MAAAC,IAAAA,CAAAA,IAAAA;AAAAA,gBAAM,cAAAC,IAAAA,CAAAA,YAAAA;AAAAA,gBAAc,KAAAC,IAAAA,CAAAA,GAAAA;AAAAA,gBAAK,QAAQP,IAAAA,CAAAA;AAAAA;qCAC3E,MAAQ;AAAA,kBAARQ,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;;;;;;;;;"}
|
@@ -32,6 +32,7 @@ var uz_UZ = require('./locale/uz_UZ.js');
|
|
32
32
|
var vi_VN = require('./locale/vi_VN.js');
|
33
33
|
var zh_CN = require('./locale/zh_CN.js');
|
34
34
|
var zh_TW = require('./locale/zh_TW.js');
|
35
|
+
var globals = require('../../../constants/globals.js');
|
35
36
|
var lodashUnified = require('lodash-unified');
|
36
37
|
|
37
38
|
const createIntl = (locale, localeMap) => ({
|
@@ -39,10 +40,10 @@ const createIntl = (locale, localeMap) => ({
|
|
39
40
|
const msg = lodashUnified.get(localeMap, id.replace(/\[(\d+)\]/g, ".$1").split(".")) || "";
|
40
41
|
if (msg) return msg;
|
41
42
|
const localKey = locale.replace("_", "-");
|
42
|
-
if (localKey ===
|
43
|
+
if (localKey === globals.DEFAULT_LOCALE) {
|
43
44
|
return defaultMessage;
|
44
45
|
}
|
45
|
-
const intl = intlMap[
|
46
|
+
const intl = intlMap[globals.DEFAULT_LOCALE];
|
46
47
|
return intl ? intl.getMessage(id, defaultMessage) : defaultMessage;
|
47
48
|
},
|
48
49
|
locale
|
@@ -115,7 +116,7 @@ const intlMap = {
|
|
115
116
|
};
|
116
117
|
const intlMapKeys = Object.keys(intlMap);
|
117
118
|
const findIntlKeyByAntdLocaleKey = (localeKey) => {
|
118
|
-
const localeName = (localeKey ||
|
119
|
+
const localeName = (localeKey || globals.DEFAULT_LOCALE).toLocaleLowerCase();
|
119
120
|
return intlMapKeys.find((intlKey) => {
|
120
121
|
const LowerCaseKey = intlKey.toLocaleLowerCase();
|
121
122
|
return LowerCaseKey.includes(localeName);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"intl.js","sources":["../../../../../../packages/components/config-provider/src/intl.ts"],"sourcesContent":["import { get } from '@pro-design-vue/utils'\nimport arEG from './locale/ar_EG'\nimport caES from './locale/ca_ES'\nimport csCZ from './locale/cs_CZ'\nimport deDE from './locale/de_DE'\nimport enGB from './locale/en_GB'\nimport enUS from './locale/en_US'\nimport esES from './locale/es_ES'\nimport faIR from './locale/fa_IR'\nimport frFR from './locale/fr_FR'\nimport heIL from './locale/he_IL'\nimport hrHR from './locale/hr_HR'\nimport idID from './locale/id_ID'\nimport itIT from './locale/it_IT'\nimport jaJP from './locale/ja_JP'\nimport koKR from './locale/ko_KR'\nimport mnMN from './locale/mn_MN'\nimport msMY from './locale/ms_MY'\nimport nlNL from './locale/nl_NL'\nimport plPL from './locale/pl_PL'\nimport ptBR from './locale/pt_BR'\nimport roRO from './locale/ro_RO'\nimport ruRU from './locale/ru_RU'\nimport skSK from './locale/sk_SK'\nimport srRS from './locale/sr_RS'\nimport svSE from './locale/sv_SE'\nimport thTH from './locale/th_TH'\nimport trTR from './locale/tr_TR'\nimport ukUA from './locale/uk_UA'\nimport uzUZ from './locale/uz_UZ'\nimport viVN from './locale/vi_VN'\nimport zhCN from './locale/zh_CN'\nimport zhTW from './locale/zh_TW'\n\nexport type IntlType = {\n locale: string\n getMessage: (id: string, defaultMessage: string) => string\n}\n\n/**\n * 创建一个国际化的操作函数\n *\n * @param locale\n * @param localeMap\n */\nexport const createIntl = (locale: string, localeMap: Record<string, any>): IntlType => ({\n getMessage: (id: string, defaultMessage: string) => {\n const msg = get(localeMap, id.replace(/\\[(\\d+)\\]/g, '.$1').split('.')) || ''\n if (msg) return msg\n const localKey = locale.replace('_', '-')\n if (localKey ===
|
1
|
+
{"version":3,"file":"intl.js","sources":["../../../../../../packages/components/config-provider/src/intl.ts"],"sourcesContent":["import { get } from '@pro-design-vue/utils'\nimport { DEFAULT_LOCALE } from '@pro-design-vue/constants'\nimport arEG from './locale/ar_EG'\nimport caES from './locale/ca_ES'\nimport csCZ from './locale/cs_CZ'\nimport deDE from './locale/de_DE'\nimport enGB from './locale/en_GB'\nimport enUS from './locale/en_US'\nimport esES from './locale/es_ES'\nimport faIR from './locale/fa_IR'\nimport frFR from './locale/fr_FR'\nimport heIL from './locale/he_IL'\nimport hrHR from './locale/hr_HR'\nimport idID from './locale/id_ID'\nimport itIT from './locale/it_IT'\nimport jaJP from './locale/ja_JP'\nimport koKR from './locale/ko_KR'\nimport mnMN from './locale/mn_MN'\nimport msMY from './locale/ms_MY'\nimport nlNL from './locale/nl_NL'\nimport plPL from './locale/pl_PL'\nimport ptBR from './locale/pt_BR'\nimport roRO from './locale/ro_RO'\nimport ruRU from './locale/ru_RU'\nimport skSK from './locale/sk_SK'\nimport srRS from './locale/sr_RS'\nimport svSE from './locale/sv_SE'\nimport thTH from './locale/th_TH'\nimport trTR from './locale/tr_TR'\nimport ukUA from './locale/uk_UA'\nimport uzUZ from './locale/uz_UZ'\nimport viVN from './locale/vi_VN'\nimport zhCN from './locale/zh_CN'\nimport zhTW from './locale/zh_TW'\n\nexport type IntlType = {\n locale: string\n getMessage: (id: string, defaultMessage: string) => string\n}\n\n/**\n * 创建一个国际化的操作函数\n *\n * @param locale\n * @param localeMap\n */\nexport const createIntl = (locale: string, localeMap: Record<string, any>): IntlType => ({\n getMessage: (id: string, defaultMessage: string) => {\n const msg = get(localeMap, id.replace(/\\[(\\d+)\\]/g, '.$1').split('.')) || ''\n if (msg) return msg\n const localKey = locale.replace('_', '-')\n if (localKey === DEFAULT_LOCALE) {\n return defaultMessage\n }\n\n const intl = intlMap[DEFAULT_LOCALE]\n return intl ? intl.getMessage(id, defaultMessage) : defaultMessage\n },\n locale,\n})\n\nconst mnMNIntl = createIntl('mn_MN', mnMN)\nconst arEGIntl = createIntl('ar_EG', arEG)\nconst zhCNIntl = createIntl('zh_CN', zhCN)\nconst enUSIntl = createIntl('en_US', enUS)\nconst enGBIntl = createIntl('en_GB', enGB)\nconst viVNIntl = createIntl('vi_VN', viVN)\nconst itITIntl = createIntl('it_IT', itIT)\nconst jaJPIntl = createIntl('ja_JP', jaJP)\nconst esESIntl = createIntl('es_ES', esES)\nconst caESIntl = createIntl('ca_ES', caES)\nconst ruRUIntl = createIntl('ru_RU', ruRU)\nconst srRSIntl = createIntl('sr_RS', srRS)\nconst msMYIntl = createIntl('ms_MY', msMY)\nconst zhTWIntl = createIntl('zh_TW', zhTW)\nconst frFRIntl = createIntl('fr_FR', frFR)\nconst ptBRIntl = createIntl('pt_BR', ptBR)\nconst koKRIntl = createIntl('ko_KR', koKR)\nconst idIDIntl = createIntl('id_ID', idID)\nconst deDEIntl = createIntl('de_DE', deDE)\nconst faIRIntl = createIntl('fa_IR', faIR)\nconst trTRIntl = createIntl('tr_TR', trTR)\nconst plPLIntl = createIntl('pl_PL', plPL)\nconst hrHRIntl = createIntl('hr_', hrHR)\nconst thTHIntl = createIntl('th_TH', thTH)\nconst csCZIntl = createIntl('cs_cz', csCZ)\nconst skSKIntl = createIntl('sk_SK', skSK)\nconst heILIntl = createIntl('he_IL', heIL)\nconst ukUAIntl = createIntl('uk_UA', ukUA)\nconst uzUZIntl = createIntl('uz_UZ', uzUZ)\nconst nlNLIntl = createIntl('nl_NL', nlNL)\nconst roROIntl = createIntl('ro_RO', roRO)\nconst svSEIntl = createIntl('sv_SE', svSE)\n\nconst intlMap = {\n 'mn-MN': mnMNIntl,\n 'ar-EG': arEGIntl,\n 'zh-CN': zhCNIntl,\n 'en-US': enUSIntl,\n 'en-GB': enGBIntl,\n 'vi-VN': viVNIntl,\n 'it-IT': itITIntl,\n 'ja-JP': jaJPIntl,\n 'es-ES': esESIntl,\n 'ca-ES': caESIntl,\n 'ru-RU': ruRUIntl,\n 'sr-RS': srRSIntl,\n 'ms-MY': msMYIntl,\n 'zh-TW': zhTWIntl,\n 'fr-FR': frFRIntl,\n 'pt-BR': ptBRIntl,\n 'ko-KR': koKRIntl,\n 'id-ID': idIDIntl,\n 'de-DE': deDEIntl,\n 'fa-IR': faIRIntl,\n 'tr-TR': trTRIntl,\n 'pl-PL': plPLIntl,\n 'hr-HR': hrHRIntl,\n 'th-TH': thTHIntl,\n 'cs-CZ': csCZIntl,\n 'sk-SK': skSKIntl,\n 'he-IL': heILIntl,\n 'uk-UA': ukUAIntl,\n 'uz-UZ': uzUZIntl,\n 'nl-NL': nlNLIntl,\n 'ro-RO': roROIntl,\n 'sv-SE': svSEIntl,\n}\n\nconst intlMapKeys = Object.keys(intlMap)\n\n/**\n * 根据 antd 的 key 来找到的 locale 插件的 key\n *\n * @param localeKey\n */\nexport const findIntlKeyByAntdLocaleKey = <T extends string>(localeKey?: T) => {\n const localeName = (localeKey || DEFAULT_LOCALE).toLocaleLowerCase()\n return intlMapKeys.find((intlKey) => {\n const LowerCaseKey = intlKey.toLocaleLowerCase()\n return LowerCaseKey.includes(localeName)\n }) as T\n}\n\nexport {\n arEGIntl,\n caESIntl,\n csCZIntl,\n deDEIntl,\n enGBIntl,\n enUSIntl,\n esESIntl,\n faIRIntl,\n frFRIntl,\n heILIntl,\n hrHRIntl,\n idIDIntl,\n intlMap,\n intlMapKeys,\n itITIntl,\n jaJPIntl,\n koKRIntl,\n mnMNIntl,\n msMYIntl,\n nlNLIntl,\n plPLIntl,\n ptBRIntl,\n roROIntl,\n ruRUIntl,\n skSKIntl,\n srRSIntl,\n svSEIntl,\n thTHIntl,\n trTRIntl,\n ukUAIntl,\n uzUZIntl,\n viVNIntl,\n zhCNIntl,\n zhTWIntl,\n}\n"],"names":["get","DEFAULT_LOCALE","mnMN","arEG","zhCN","enUS","enGB","viVN","itIT","jaJP","esES","caES","ruRU","srRS","msMY","zhTW","frFR","ptBR","koKR","idID","deDE","faIR","trTR","plPL","hrHR","thTH","csCZ","skSK","heIL","ukUA","uzUZ","nlNL","roRO","svSE"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CO,MAAM,UAAA,GAAa,CAAC,MAAA,EAAgB,SAAA,MAA8C;AAAA,EACvF,UAAA,EAAY,CAAC,EAAA,EAAY,cAAA,KAA2B;AAClD,IAAA,MAAM,GAAA,GAAMA,iBAAA,CAAI,SAAA,EAAW,EAAA,CAAG,OAAA,CAAQ,YAAA,EAAc,KAAK,CAAA,CAAE,KAAA,CAA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OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS,QAAA;AAAA,EACT,OAAA,EAAS;AACX;AAEA,MAAM,WAAA,GAAc,MAAA,CAAO,IAAA,CAAK,OAAO;AAOhC,MAAM,0BAAA,GAA6B,CAAmB,SAAA,KAAkB;AAC7E,EAAA,MAAM,UAAA,GAAA,CAAc,SAAA,IAAahC,sBAAA,EAAgB,iBAAA,EAAkB;AACnE,EAAA,OAAO,WAAA,CAAY,IAAA,CAAK,CAAC,OAAA,KAAY;AACnC,IAAA,MAAM,YAAA,GAAe,QAAQ,iBAAA,EAAkB;AAC/C,IAAA,OAAO,YAAA,CAAa,SAAS,UAAU,CAAA;AAAA,EACzC,CAAC,CAAA;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useIntl.js","sources":["../../../../../../packages/components/config-provider/src/useIntl.ts"],"sourcesContent":["/*\n * @Author: shen\n * @Date: 2025-05-21 11:18:18\n * @LastEditors: shen\n * @LastEditTime: 2025-
|
1
|
+
{"version":3,"file":"useIntl.js","sources":["../../../../../../packages/components/config-provider/src/useIntl.ts"],"sourcesContent":["/*\n * @Author: shen\n * @Date: 2025-05-21 11:18:18\n * @LastEditors: shen\n * @LastEditTime: 2025-10-10 09:06:40\n * @Description:\n */\nimport type { IntlType } from './intl'\n\nimport { useProConfigInject } from './context'\nimport { findIntlKeyByAntdLocaleKey, intlMap, zhCNIntl } from './intl'\n/**\n * It returns the intl object from the context if it exists, otherwise it returns the intl object for\n * 获取国际化的方法\n * @param locale\n * @param localeMap\n * the current locale\n * @returns The return value of the function is the intl object.\n */\nexport function useIntl(): IntlType {\n const { intl, locale } = useProConfigInject()\n\n if (intl && intl.value?.locale !== 'default') {\n return intl.value || zhCNIntl\n }\n\n if (locale?.value?.locale) {\n return intlMap[findIntlKeyByAntdLocaleKey(locale.value.locale)] || zhCNIntl\n }\n\n return zhCNIntl\n}\n"],"names":["intl","useProConfigInject","zhCNIntl","intlMap","findIntlKeyByAntdLocaleKey"],"mappings":";;;;;AAmBO,SAAS,OAAA,GAAoB;AAnBpC,EAAA,IAAA,EAAA,EAAA,EAAA;AAoBE,EAAA,MAAM,QAAEA,MAAA,EAAM,MAAA,EAAO,GAAIC,0BAAA,EAAmB;AAE5C,EAAA,IAAID,MAAA,IAAA,CAAA,CAAQ,EAAA,GAAAA,MAAA,CAAK,KAAA,KAAL,IAAA,GAAA,MAAA,GAAA,EAAA,CAAY,YAAW,SAAA,EAAW;AAC5C,IAAA,OAAOA,OAAK,KAAA,IAASE,aAAA;AAAA,EACvB;AAEA,EAAA,IAAA,CAAI,EAAA,GAAA,MAAA,IAAA,IAAA,GAAA,MAAA,GAAA,MAAA,CAAQ,KAAA,KAAR,IAAA,GAAA,MAAA,GAAA,EAAA,CAAe,MAAA,EAAQ;AACzB,IAAA,OAAOC,aAAQC,+BAAA,CAA2B,MAAA,CAAO,KAAA,CAAM,MAAM,CAAC,CAAA,IAAKF,aAAA;AAAA,EACrE;AAEA,EAAA,OAAOA,aAAA;AACT;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useTokens.js","sources":["../../../../../../packages/components/config-provider/src/useTokens.ts"],"sourcesContent":["/*\n * @Author: shen\n * @Date: 2025-06-06 09:26:03\n * @LastEditors: shen\n * @LastEditTime: 2025-10-
|
1
|
+
{"version":3,"file":"useTokens.js","sources":["../../../../../../packages/components/config-provider/src/useTokens.ts"],"sourcesContent":["/*\n * @Author: shen\n * @Date: 2025-06-06 09:26:03\n * @LastEditors: shen\n * @LastEditTime: 2025-10-10 09:22:20\n * @Description:\n */\nimport { reactive, watch } from 'vue'\n\nimport { DEFAULT_NAMESPACE } from '@pro-design-vue/constants'\n\nexport function useDesignTokens(theme) {\n const rootStyles = getComputedStyle(document.documentElement)\n\n const tokens = reactive({\n borderRadius: '' as any,\n colorBgBase: '',\n colorBgContainer: '',\n colorBgElevated: '',\n colorBgLayout: '',\n colorBgMask: '',\n colorBorder: '',\n colorBorderSecondary: '',\n colorError: '',\n colorInfo: '',\n colorPrimary: '',\n colorSuccess: '',\n colorTextBase: '',\n colorText: '',\n colorTextTertiary: '',\n colorWarning: '',\n zIndexPopupBase: 2000, // 调整基础弹层层级,避免下拉等组件被弹窗或者最大化状态下的表格遮挡\n })\n\n const getCssVariableValue = (variable: string, isColor: boolean = true) => {\n const value = rootStyles.getPropertyValue(`--${DEFAULT_NAMESPACE}-${variable}`)\n return isColor ? `hsl(${value})` : value\n }\n\n watch(\n theme,\n () => {\n tokens.colorPrimary = getCssVariableValue('primary')\n\n tokens.colorInfo = getCssVariableValue('primary')\n\n tokens.colorError = getCssVariableValue('destructive')\n\n tokens.colorWarning = getCssVariableValue('warning')\n\n tokens.colorSuccess = getCssVariableValue('success')\n\n tokens.colorTextBase = getCssVariableValue('foreground')\n tokens.colorText = getCssVariableValue('foreground')\n tokens.colorTextTertiary = getCssVariableValue('muted-foreground')\n\n tokens.colorBorderSecondary = tokens.colorBorder = getCssVariableValue('border')\n\n tokens.colorBgElevated = getCssVariableValue('popover')\n\n tokens.colorBgContainer = getCssVariableValue('card')\n\n tokens.colorBgBase = getCssVariableValue('background')\n\n const radius = Number.parseFloat(getCssVariableValue('radius', false))\n tokens.borderRadius = radius\n tokens.colorBgLayout = getCssVariableValue('background-deep')\n tokens.colorBgMask = getCssVariableValue('overlay')\n },\n { immediate: true },\n )\n\n return {\n tokens,\n }\n}\n"],"names":["reactive","DEFAULT_NAMESPACE","watch"],"mappings":";;;;;AAWO,SAAS,gBAAgB,KAAA,EAAO;AACrC,EAAA,MAAM,UAAA,GAAa,gBAAA,CAAiB,QAAA,CAAS,eAAe,CAAA;AAE5D,EAAA,MAAM,SAASA,YAAA,CAAS;AAAA,IACtB,YAAA,EAAc,EAAA;AAAA,IACd,WAAA,EAAa,EAAA;AAAA,IACb,gBAAA,EAAkB,EAAA;AAAA,IAClB,eAAA,EAAiB,EAAA;AAAA,IACjB,aAAA,EAAe,EAAA;AAAA,IACf,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,oBAAA,EAAsB,EAAA;AAAA,IACtB,UAAA,EAAY,EAAA;AAAA,IACZ,SAAA,EAAW,EAAA;AAAA,IACX,YAAA,EAAc,EAAA;AAAA,IACd,YAAA,EAAc,EAAA;AAAA,IACd,aAAA,EAAe,EAAA;AAAA,IACf,SAAA,EAAW,EAAA;AAAA,IACX,iBAAA,EAAmB,EAAA;AAAA,IACnB,YAAA,EAAc,EAAA;AAAA,IACd,eAAA,EAAiB;AAAA;AAAA,GAClB,CAAA;AAED,EAAA,MAAM,mBAAA,GAAsB,CAAC,QAAA,EAAkB,OAAA,GAAmB,IAAA,KAAS;AACzE,IAAA,MAAM,QAAQ,UAAA,CAAW,gBAAA,CAAiB,KAAKC,yBAAiB,CAAA,CAAA,EAAI,QAAQ,CAAA,CAAE,CAAA;AAC9E,IAAA,OAAO,OAAA,GAAU,CAAA,IAAA,EAAO,KAAK,CAAA,CAAA,CAAA,GAAM,KAAA;AAAA,EACrC,CAAA;AAEA,E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anConstructor;
|
49
49
|
grid: BooleanConstructor;
|
50
|
-
isKeyPressSubmit:
|
50
|
+
isKeyPressSubmit: {
|
51
|
+
type: BooleanConstructor;
|
52
|
+
default: undefined;
|
53
|
+
};
|
51
54
|
formKey: StringConstructor;
|
52
55
|
theme: {
|
53
56
|
type: PropType<import("pro-design-vue").ProFormPropsType["theme"]>;
|
@@ -264,7 +267,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
264
267
|
};
|
265
268
|
readonly: BooleanConstructor;
|
266
269
|
grid: BooleanConstructor;
|
267
|
-
isKeyPressSubmit:
|
270
|
+
isKeyPressSubmit: {
|
271
|
+
type: BooleanConstructor;
|
272
|
+
default: undefined;
|
273
|
+
};
|
268
274
|
formKey: StringConstructor;
|
269
275
|
theme: {
|
270
276
|
type: PropType<import("pro-design-vue").ProFormPropsType["theme"]>;
|
@@ -22,7 +22,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
22
22
|
};
|
23
23
|
readonly: BooleanConstructor;
|
24
24
|
grid: BooleanConstructor;
|
25
|
-
isKeyPressSubmit:
|
25
|
+
isKeyPressSubmit: {
|
26
|
+
type: BooleanConstructor;
|
27
|
+
default: undefined;
|
28
|
+
};
|
26
29
|
formKey: StringConstructor;
|
27
30
|
theme: {
|
28
31
|
type: import("vue").PropType<ProFormPropsType["theme"]>;
|
@@ -148,7 +151,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
148
151
|
};
|
149
152
|
readonly: BooleanConstructor;
|
150
153
|
grid: BooleanConstructor;
|
151
|
-
isKeyPressSubmit:
|
154
|
+
isKeyPressSubmit: {
|
155
|
+
type: BooleanConstructor;
|
156
|
+
default: undefined;
|
157
|
+
};
|
152
158
|
formKey: StringConstructor;
|
153
159
|
theme: {
|
154
160
|
type: import("vue").PropType<ProFormPropsType["theme"]>;
|