ll-plus 2.8.24 → 2.8.26
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/es/components/advanced-filtering/index.d.ts +2 -2
- package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +1 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +1 -1
- package/es/components/config-provider/index.d.ts +1 -0
- package/es/components/form/index.d.ts +1 -1
- package/es/components/form/src/form.vue.d.ts +1 -1
- package/es/components/key-value/src/components/key-value-item.vue.d.ts +2 -2
- package/es/components/key-value/src/key-value.vue.d.ts +6 -6
- package/es/components/operate-tree/index.d.ts +1 -1
- package/es/components/operate-tree/src/operate-tree.vue.d.ts +1 -1
- package/es/components/tree-search/index.d.ts +1 -1
- package/es/components/tree-search/src/tree-search.vue.d.ts +1 -1
- package/es/index.mjs +1 -0
- package/es/index.mjs.map +1 -1
- package/es/packages/components/config-provider/index.mjs +1 -0
- package/es/packages/components/config-provider/index.mjs.map +1 -1
- package/es/packages/components/form/src/form.vue2.mjs +2 -2
- package/es/packages/components/form/src/form.vue2.mjs.map +1 -1
- package/es/packages/components/index.mjs +1 -0
- package/es/packages/components/index.mjs.map +1 -1
- package/es/packages/components/operate-tree/src/operate-tree.vue2.mjs +0 -1
- package/es/packages/components/operate-tree/src/operate-tree.vue2.mjs.map +1 -1
- package/index.full.js +3 -3
- package/index.full.min.js +20 -20
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +22 -22
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +3 -4
- package/lib/components/advanced-filtering/index.d.ts +2 -2
- package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +1 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +1 -1
- package/lib/components/config-provider/index.d.ts +1 -0
- package/lib/components/form/index.d.ts +1 -1
- package/lib/components/form/src/form.vue.d.ts +1 -1
- package/lib/components/key-value/src/components/key-value-item.vue.d.ts +2 -2
- package/lib/components/key-value/src/key-value.vue.d.ts +6 -6
- package/lib/components/operate-tree/index.d.ts +1 -1
- package/lib/components/operate-tree/src/operate-tree.vue.d.ts +1 -1
- package/lib/components/tree-search/index.d.ts +1 -1
- package/lib/components/tree-search/src/tree-search.vue.d.ts +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/packages/components/config-provider/index.js +2 -0
- package/lib/packages/components/config-provider/index.js.map +1 -1
- package/lib/packages/components/form/src/form.vue2.js +2 -2
- package/lib/packages/components/form/src/form.vue2.js.map +1 -1
- package/lib/packages/components/index.js +2 -0
- package/lib/packages/components/index.js.map +1 -1
- package/lib/packages/components/operate-tree/src/operate-tree.vue2.js +0 -1
- package/lib/packages/components/operate-tree/src/operate-tree.vue2.js.map +1 -1
- package/package.json +1 -1
- package/types/packages/components/advanced-filtering/index.d.ts +2 -2
- package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +1 -1
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +1 -1
- package/types/packages/components/config-provider/index.d.ts +1 -0
- package/types/packages/components/form/index.d.ts +1 -1
- package/types/packages/components/form/src/form.vue.d.ts +1 -1
- package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +2 -2
- package/types/packages/components/key-value/src/key-value.vue.d.ts +6 -6
- package/types/packages/components/operate-tree/index.d.ts +1 -1
- package/types/packages/components/operate-tree/src/operate-tree.vue.d.ts +1 -1
- package/types/packages/components/tree-search/index.d.ts +1 -1
- package/types/packages/components/tree-search/src/tree-search.vue.d.ts +1 -1
|
@@ -4303,7 +4303,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
4303
4303
|
prefixCls?: string | undefined;
|
|
4304
4304
|
}>;
|
|
4305
4305
|
id: import("vue").Ref<string>;
|
|
4306
|
-
validate: () => Promise<void>;
|
|
4306
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
4307
4307
|
resetFields: () => Promise<void>;
|
|
4308
4308
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
4309
4309
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -13013,7 +13013,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
13013
13013
|
prefixCls?: string | undefined;
|
|
13014
13014
|
}>;
|
|
13015
13015
|
id: import("vue").Ref<string>;
|
|
13016
|
-
validate: () => Promise<void>;
|
|
13016
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
13017
13017
|
resetFields: () => Promise<void>;
|
|
13018
13018
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
13019
13019
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -4300,7 +4300,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4300
4300
|
prefixCls?: string | undefined;
|
|
4301
4301
|
}>;
|
|
4302
4302
|
id: import("vue").Ref<string>;
|
|
4303
|
-
validate: () => Promise<void>;
|
|
4303
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
4304
4304
|
resetFields: () => Promise<void>;
|
|
4305
4305
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
4306
4306
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -2713,7 +2713,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2713
2713
|
prefixCls?: string | undefined;
|
|
2714
2714
|
}>;
|
|
2715
2715
|
id: import("vue").Ref<string>;
|
|
2716
|
-
validate: () => Promise<void>;
|
|
2716
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
2717
2717
|
resetFields: () => Promise<void>;
|
|
2718
2718
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
2719
2719
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -52,6 +52,7 @@ export declare const LlConfigProvider: import("ll-plus/es/utils").SFCWithInstall
|
|
|
52
52
|
}, {}>>;
|
|
53
53
|
export default LlConfigProvider;
|
|
54
54
|
export * from './src/config-provider';
|
|
55
|
+
export * from './src/hooks';
|
|
55
56
|
declare module 'vue' {
|
|
56
57
|
interface GlobalComponents {
|
|
57
58
|
LlConfigProvider: typeof ConfigProvider;
|
|
@@ -1607,7 +1607,7 @@ export declare const LlForm: import("ll-plus/es/utils").SFCWithInstall<import("v
|
|
|
1607
1607
|
prefixCls?: string | undefined;
|
|
1608
1608
|
}>;
|
|
1609
1609
|
id: import("vue").Ref<string>;
|
|
1610
|
-
validate: () => Promise<void>;
|
|
1610
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
1611
1611
|
resetFields: () => Promise<void>;
|
|
1612
1612
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
1613
1613
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -1563,7 +1563,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1563
1563
|
prefixCls?: string | undefined;
|
|
1564
1564
|
}>;
|
|
1565
1565
|
id: import("vue").Ref<string>;
|
|
1566
|
-
validate: () => Promise<void>;
|
|
1566
|
+
validate: (nameList?: NamePath[]) => Promise<void>;
|
|
1567
1567
|
resetFields: () => Promise<void>;
|
|
1568
1568
|
clearValidate: (nameList?: NamePath[]) => Promise<void>;
|
|
1569
1569
|
scrollToField: (name: NamePath, options?: ScrollOptions) => Promise<void>;
|
|
@@ -1641,7 +1641,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1641
1641
|
prefixCls?: string | undefined;
|
|
1642
1642
|
}>;
|
|
1643
1643
|
id: import("vue").Ref<string>;
|
|
1644
|
-
validate: () => Promise<void>;
|
|
1644
|
+
validate: (nameList?: NamePath[] | undefined) => Promise<void>;
|
|
1645
1645
|
resetFields: () => Promise<void>;
|
|
1646
1646
|
clearValidate: (nameList?: NamePath[] | undefined) => Promise<void>;
|
|
1647
1647
|
scrollToField: (name: NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -4645,7 +4645,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4645
4645
|
prefixCls?: string | undefined;
|
|
4646
4646
|
}>;
|
|
4647
4647
|
id: import("vue").Ref<string>;
|
|
4648
|
-
validate: () => Promise<void>;
|
|
4648
|
+
validate: (nameList?: NamePath[] | undefined) => Promise<void>;
|
|
4649
4649
|
resetFields: () => Promise<void>;
|
|
4650
4650
|
clearValidate: (nameList?: NamePath[] | undefined) => Promise<void>;
|
|
4651
4651
|
scrollToField: (name: NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -1720,7 +1720,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1720
1720
|
prefixCls?: string | undefined;
|
|
1721
1721
|
}>;
|
|
1722
1722
|
id: import("vue").Ref<string>;
|
|
1723
|
-
validate: () => Promise<void>;
|
|
1723
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
1724
1724
|
resetFields: () => Promise<void>;
|
|
1725
1725
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
1726
1726
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -4724,7 +4724,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4724
4724
|
prefixCls?: string | undefined;
|
|
4725
4725
|
}>;
|
|
4726
4726
|
id: import("vue").Ref<string>;
|
|
4727
|
-
validate: () => Promise<void>;
|
|
4727
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
4728
4728
|
resetFields: () => Promise<void>;
|
|
4729
4729
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
4730
4730
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -7028,7 +7028,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7028
7028
|
prefixCls?: string | undefined;
|
|
7029
7029
|
}>;
|
|
7030
7030
|
id: import("vue").Ref<string>;
|
|
7031
|
-
validate: () => Promise<void>;
|
|
7031
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
7032
7032
|
resetFields: () => Promise<void>;
|
|
7033
7033
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
7034
7034
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -10032,7 +10032,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10032
10032
|
prefixCls?: string | undefined;
|
|
10033
10033
|
}>;
|
|
10034
10034
|
id: import("vue").Ref<string>;
|
|
10035
|
-
validate: () => Promise<void>;
|
|
10035
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
10036
10036
|
resetFields: () => Promise<void>;
|
|
10037
10037
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
10038
10038
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -12290,7 +12290,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12290
12290
|
prefixCls?: string | undefined;
|
|
12291
12291
|
}>;
|
|
12292
12292
|
id: import("vue").Ref<string>;
|
|
12293
|
-
validate: () => Promise<void>;
|
|
12293
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
12294
12294
|
resetFields: () => Promise<void>;
|
|
12295
12295
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
12296
12296
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -15294,7 +15294,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15294
15294
|
prefixCls?: string | undefined;
|
|
15295
15295
|
}>;
|
|
15296
15296
|
id: import("vue").Ref<string>;
|
|
15297
|
-
validate: () => Promise<void>;
|
|
15297
|
+
validate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
15298
15298
|
resetFields: () => Promise<void>;
|
|
15299
15299
|
clearValidate: (nameList?: import("ant-design-vue/es/form/interface").NamePath[] | undefined) => Promise<void>;
|
|
15300
15300
|
scrollToField: (name: import("ant-design-vue/es/form/interface").NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
@@ -50,8 +50,8 @@ export declare const LlOperateTree: import("ll-plus/es/utils").SFCWithInstall<im
|
|
|
50
50
|
}) => void;
|
|
51
51
|
expand: (expandedKeys: string[], data: any) => void;
|
|
52
52
|
select: (selectedKeys: string[], e: Event) => void;
|
|
53
|
-
readonly CaretRightOutlined: import("@ant-design/icons-vue/lib/icons/CaretRightOutlined").CaretRightOutlinedIconType;
|
|
54
53
|
readonly CaretDownOutlined: import("@ant-design/icons-vue/lib/icons/CaretDownOutlined").CaretDownOutlinedIconType;
|
|
54
|
+
readonly CaretRightOutlined: import("@ant-design/icons-vue/lib/icons/CaretRightOutlined").CaretRightOutlinedIconType;
|
|
55
55
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
56
|
expand: (expandedKeys: string[], data: any) => string[];
|
|
57
57
|
select: (selectedKeys: string[], e: Event) => string[];
|
|
@@ -49,8 +49,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
}) => void;
|
|
50
50
|
expand: (expandedKeys: string[], data: any) => void;
|
|
51
51
|
select: (selectedKeys: string[], e: Event) => void;
|
|
52
|
-
readonly CaretRightOutlined: import("@ant-design/icons-vue/lib/icons/CaretRightOutlined").CaretRightOutlinedIconType;
|
|
53
52
|
readonly CaretDownOutlined: import("@ant-design/icons-vue/lib/icons/CaretDownOutlined").CaretDownOutlinedIconType;
|
|
53
|
+
readonly CaretRightOutlined: import("@ant-design/icons-vue/lib/icons/CaretRightOutlined").CaretRightOutlinedIconType;
|
|
54
54
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
55
|
expand: (expandedKeys: string[], data: any) => string[];
|
|
56
56
|
select: (selectedKeys: string[], e: Event) => string[];
|
|
@@ -281,8 +281,8 @@ export declare const LlTreeSearch: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
281
281
|
}) => void;
|
|
282
282
|
expand: (expandedKeys: string[], data: any) => void;
|
|
283
283
|
select: (selectedKeys: string[], e: Event) => void;
|
|
284
|
-
readonly CaretRightOutlined: import("@ant-design/icons-vue/lib/icons/CaretRightOutlined").CaretRightOutlinedIconType;
|
|
285
284
|
readonly CaretDownOutlined: import("@ant-design/icons-vue/lib/icons/CaretDownOutlined").CaretDownOutlinedIconType;
|
|
285
|
+
readonly CaretRightOutlined: import("@ant-design/icons-vue/lib/icons/CaretRightOutlined").CaretRightOutlinedIconType;
|
|
286
286
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
287
287
|
expand: (expandedKeys: string[], data: any) => string[];
|
|
288
288
|
select: (selectedKeys: string[], e: Event) => string[];
|
|
@@ -280,8 +280,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
280
280
|
}) => void;
|
|
281
281
|
expand: (expandedKeys: string[], data: any) => void;
|
|
282
282
|
select: (selectedKeys: string[], e: Event) => void;
|
|
283
|
-
readonly CaretRightOutlined: import("@ant-design/icons-vue/lib/icons/CaretRightOutlined").CaretRightOutlinedIconType;
|
|
284
283
|
readonly CaretDownOutlined: import("@ant-design/icons-vue/lib/icons/CaretDownOutlined").CaretDownOutlinedIconType;
|
|
284
|
+
readonly CaretRightOutlined: import("@ant-design/icons-vue/lib/icons/CaretRightOutlined").CaretRightOutlinedIconType;
|
|
285
285
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
286
286
|
expand: (expandedKeys: string[], data: any) => string[];
|
|
287
287
|
select: (selectedKeys: string[], e: Event) => string[];
|
package/es/index.mjs
CHANGED
|
@@ -36,6 +36,7 @@ export { OPTIONS_KEY, useOptions } from './packages/components/color-picker/src/
|
|
|
36
36
|
export { LlColorPicker } from './packages/components/color-picker/index.mjs';
|
|
37
37
|
export { default as Color } from './packages/components/color-picker/src/config/color.mjs';
|
|
38
38
|
export { configProviderProps } from './packages/components/config-provider/src/config-provider.mjs';
|
|
39
|
+
export { provideGlobalConfig } from './packages/components/config-provider/src/hooks.mjs';
|
|
39
40
|
export { LlConfigProvider } from './packages/components/config-provider/index.mjs';
|
|
40
41
|
export { cropperImageEmits, cropperImageProps, cropperModalEmits, cropperModalProps, defaultCropperOptions } from './packages/components/cropper/src/cropper-image.mjs';
|
|
41
42
|
export { LlCropperImage, LlCropperModal } from './packages/components/cropper/index.mjs';
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@ll-plus/components'\nexport * from '@ll-plus/constant'\nexport * from '@ll-plus/utils'\nexport * from '@ll-plus/hooks'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@ll-plus/components'\nexport * from '@ll-plus/constant'\nexport * from '@ll-plus/utils'\nexport * from '@ll-plus/hooks'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,MAAM,UAAU,SAAU,CAAA;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
2
|
import ConfigProvider from './src/config-provider.vue.mjs';
|
|
3
3
|
export { configProviderProps } from './src/config-provider.mjs';
|
|
4
|
+
export { provideGlobalConfig } from './src/hooks.mjs';
|
|
4
5
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
5
6
|
|
|
6
7
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/config-provider/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport ConfigProvider from './src/config-provider.vue'\n\nexport const LlConfigProvider = withInstall(ConfigProvider)\nexport default LlConfigProvider\nexport * from './src/config-provider'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlConfigProvider: typeof ConfigProvider\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/config-provider/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport ConfigProvider from './src/config-provider.vue'\n\nexport const LlConfigProvider = withInstall(ConfigProvider)\nexport default LlConfigProvider\nexport * from './src/config-provider'\nexport * from './src/hooks'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlConfigProvider: typeof ConfigProvider\n }\n}\n"],"names":[],"mappings":";;;;;;;AAIa,MAAA,gBAAA,GAAmB,YAAY,cAAc;;;;"}
|
|
@@ -47,7 +47,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
};
|
|
48
48
|
});
|
|
49
49
|
const id = ref(`ll-form-${+/* @__PURE__ */ new Date()}`);
|
|
50
|
-
const validate = async () => {
|
|
50
|
+
const validate = async (nameList) => {
|
|
51
51
|
if (props.validateErrorStop) {
|
|
52
52
|
clearValidate();
|
|
53
53
|
if (!validateFields.value.length)
|
|
@@ -62,7 +62,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
return Promise.resolve();
|
|
63
63
|
} else {
|
|
64
64
|
try {
|
|
65
|
-
await formRef.value.validateFields(validateFields.value);
|
|
65
|
+
await formRef.value.validateFields(nameList || validateFields.value);
|
|
66
66
|
return Promise.resolve();
|
|
67
67
|
} catch (error) {
|
|
68
68
|
return Promise.reject(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.vue2.mjs","sources":["../../../../../../packages/components/form/src/form.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <a-spin :spinning=\"props.loading\">\n <a-form\n v-bind=\"computedFormOptions\"\n :id=\"id\"\n ref=\"formRef\"\n :model=\"props.formData\"\n >\n <a-row v-bind=\"props.rowOptions\">\n <a-col\n v-for=\"(item, index) in computedFormColumns\"\n :key=\"index\"\n v-bind=\"item?.colOptions ?? {}\"\n :span=\"item?.spanCol ?? 24\"\n >\n <slot name=\"formItem\" :item=\"item\" :index=\"index\">\n <ll-form-item\n :name=\"item?.key ?? index\"\n :class=\"getFormItemClass(item)\"\n v-bind=\"getBindValue(item)\"\n >\n <template #label>\n <slot name=\"label\" :item=\"item\" :index=\"index\">\n <span>{{ item.label }}</span>\n <span v-if=\"item?.tip\" :class=\"bem.e('tooltip-wrapper')\">\n <ll-tooltip\n style=\"margin-left: 8px\"\n :overlay-class-name=\"bem.e('tooltip')\"\n :arrow-point-at-center=\"true\"\n :max-width=\"item?.tipConfig?.maxWidth ?? 406\"\n :placement=\"item?.tipConfig?.placement ?? 'top'\"\n :tip=\"item.tip\"\n :font-size=\"'16px'\"\n v-bind=\"item?.tipConfig\"\n />\n </span>\n </slot>\n </template>\n <slot name=\"content\" :item=\"item\" :index=\"index\">\n <template v-if=\"!isEmpty(item.children)\">\n <a-row :gutter=\"5\" v-bind=\"item.rowOptions\">\n <a-col\n v-for=\"(child, childIndex) in item.children\"\n :key=\"childIndex\"\n :style=\"{\n display: 'flex',\n 'align-items': 'center'\n }\"\n v-bind=\"item?.colOptions ?? {}\"\n >\n <slot name=\"children\" :item=\"child\" :index=\"index\">\n <form-component\n :item=\"child\"\n :form-data=\"formData\"\n @change-field=\"handleChangeField\"\n />\n </slot>\n </a-col>\n </a-row>\n </template>\n <form-component\n v-else\n :ref=\"el => (formComponents[index] = el)\"\n :item=\"item\"\n :form-data=\"formData\"\n @change-field=\"handleChangeField\"\n />\n </slot>\n </ll-form-item>\n </slot>\n </a-col>\n </a-row>\n </a-form>\n </a-spin>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { reactive, ref, watch, onMounted, nextTick, computed } from 'vue'\nimport { omit, isEmpty, has } from 'lodash-es'\nimport { formProps, formEmits, type FormColumn } from './config'\n\nimport type { NamePath } from 'ant-design-vue/es/form/interface'\n\nimport { createNamespace, deepUnref } from '@ll-plus/utils'\n\nimport formComponent from './components/form-component.vue'\n\n// 定义组件名称\ndefineOptions({ name: 'LlForm' })\n\n// Props\nconst props = defineProps(formProps)\n\nconst emits = defineEmits(formEmits)\n\nconst bem = createNamespace('form')\n\nconst formData = reactive(props.formData)\n\nconst formRef = ref()\n\nconst formComponents = ref<InstanceType<typeof formComponent>[]>(\n [] as InstanceType<typeof formComponent>[]\n)\n\nconst computedFormColumns = computed(() => {\n const formColumns = deepUnref(props.formColumns) as FormColumn[]\n return formColumns.map(e => {\n e.disabled = has(e, 'disabled') ? e.disabled : props.disabled\n if (e.children && e.children.length) {\n e.children.map(a => {\n a.disabled = has(a, 'disabled') ? a.disabled : props.disabled\n return a\n })\n }\n return e\n })\n})\n\nconst validateFields = computed(() => {\n return props.formColumns\n .filter(e => e.required || (has(e, 'rules') && e.rules.length > 0))\n .map(e => {\n return e.key\n })\n})\n\nconst computedFormOptions = computed(() => {\n return {\n scrollToFirstError: !props.validateErrorStop,\n ...props.formOptions\n }\n})\n\nconst id = ref(`ll-form-${+new Date()}`)\n\nconst validate = async () => {\n if (props.validateErrorStop) {\n clearValidate()\n if (!validateFields.value.length) return Promise.resolve()\n for (const i of validateFields.value) {\n try {\n await formRef.value.validateFields([i])\n } catch (error) {\n return Promise.reject(error) // 跳出验证循环并返回错误\n }\n }\n return Promise.resolve()\n } else {\n try {\n await formRef.value.validateFields(validateFields.value)\n return Promise.resolve()\n } catch (error) {\n return Promise.reject(error)\n }\n }\n}\n\nconst resetFields = async () => {\n await formRef.value.resetFields()\n}\n\nconst clearValidate = async (nameList?: NamePath[]) => {\n await formRef.value.clearValidate(nameList)\n}\n\nconst scrollToField = async (name: NamePath, options?: ScrollOptions) => {\n await formRef.value.scrollToField(name, options)\n}\n\nconst getBindValue = (item: FormColumn) => {\n const obj = { ...item }\n return omit(obj, ['label'])\n}\n\nconst getFormItemClass = (item = {} as FormColumn) => {\n if (props.formOptions.layout === 'horizontal') {\n if (item?.labelCol) {\n return item.labelCol.span && item.labelCol.span >= 24\n ? bem.is('label-top')\n : bem.is('label-left')\n } else {\n return bem.is('label-left')\n }\n }\n return bem.is('label-top')\n}\n\nconst handleChangeField = (item: FormColumn) => {\n emits('change', { item, value: formData[item.key], formData })\n}\n\nwatch(\n () => props.formData,\n async val => {\n for (const i in val) {\n formData[i] = val[i]\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n\nonMounted(async () => {\n await nextTick()\n if (props.autoFocus) {\n for (const element of formComponents.value) {\n const item = element?.getItem()\n if (['input', 'textarea', 'input-number'].includes(item.type)) {\n element?.focus()\n break\n }\n }\n }\n})\n\ndefineExpose({\n validate,\n resetFields,\n clearValidate,\n scrollToField\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA4FA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAM,MAAA,GAAA,GAAM,gBAAgB,MAAM,CAAA,CAAA;AAElC,IAAM,MAAA,QAAA,GAAW,QAAS,CAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAExC,IAAA,MAAM,UAAU,GAAI,EAAA,CAAA;AAEpB,IAAA,MAAM,cAAiB,GAAA,GAAA;AAAA,MACrB,EAAC;AAAA,KACH,CAAA;AAEA,IAAM,MAAA,mBAAA,GAAsB,SAAS,MAAM;AACzC,MAAM,MAAA,WAAA,GAAc,SAAU,CAAA,KAAA,CAAM,WAAW,CAAA,CAAA;AAC/C,MAAO,OAAA,WAAA,CAAY,IAAI,CAAK,CAAA,KAAA;AAC1B,QAAA,CAAA,CAAE,WAAW,GAAI,CAAA,CAAA,EAAG,UAAU,CAAI,GAAA,CAAA,CAAE,WAAW,KAAM,CAAA,QAAA,CAAA;AACrD,QAAA,IAAI,CAAE,CAAA,QAAA,IAAY,CAAE,CAAA,QAAA,CAAS,MAAQ,EAAA;AACnC,UAAE,CAAA,CAAA,QAAA,CAAS,IAAI,CAAK,CAAA,KAAA;AAClB,YAAA,CAAA,CAAE,WAAW,GAAI,CAAA,CAAA,EAAG,UAAU,CAAI,GAAA,CAAA,CAAE,WAAW,KAAM,CAAA,QAAA,CAAA;AACrD,YAAO,OAAA,CAAA,CAAA;AAAA,WACR,CAAA,CAAA;AAAA,SACH;AACA,QAAO,OAAA,CAAA,CAAA;AAAA,OACR,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAM,MAAA,cAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"form.vue2.mjs","sources":["../../../../../../packages/components/form/src/form.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <a-spin :spinning=\"props.loading\">\n <a-form\n v-bind=\"computedFormOptions\"\n :id=\"id\"\n ref=\"formRef\"\n :model=\"props.formData\"\n >\n <a-row v-bind=\"props.rowOptions\">\n <a-col\n v-for=\"(item, index) in computedFormColumns\"\n :key=\"index\"\n v-bind=\"item?.colOptions ?? {}\"\n :span=\"item?.spanCol ?? 24\"\n >\n <slot name=\"formItem\" :item=\"item\" :index=\"index\">\n <ll-form-item\n :name=\"item?.key ?? index\"\n :class=\"getFormItemClass(item)\"\n v-bind=\"getBindValue(item)\"\n >\n <template #label>\n <slot name=\"label\" :item=\"item\" :index=\"index\">\n <span>{{ item.label }}</span>\n <span v-if=\"item?.tip\" :class=\"bem.e('tooltip-wrapper')\">\n <ll-tooltip\n style=\"margin-left: 8px\"\n :overlay-class-name=\"bem.e('tooltip')\"\n :arrow-point-at-center=\"true\"\n :max-width=\"item?.tipConfig?.maxWidth ?? 406\"\n :placement=\"item?.tipConfig?.placement ?? 'top'\"\n :tip=\"item.tip\"\n :font-size=\"'16px'\"\n v-bind=\"item?.tipConfig\"\n />\n </span>\n </slot>\n </template>\n <slot name=\"content\" :item=\"item\" :index=\"index\">\n <template v-if=\"!isEmpty(item.children)\">\n <a-row :gutter=\"5\" v-bind=\"item.rowOptions\">\n <a-col\n v-for=\"(child, childIndex) in item.children\"\n :key=\"childIndex\"\n :style=\"{\n display: 'flex',\n 'align-items': 'center'\n }\"\n v-bind=\"item?.colOptions ?? {}\"\n >\n <slot name=\"children\" :item=\"child\" :index=\"index\">\n <form-component\n :item=\"child\"\n :form-data=\"formData\"\n @change-field=\"handleChangeField\"\n />\n </slot>\n </a-col>\n </a-row>\n </template>\n <form-component\n v-else\n :ref=\"el => (formComponents[index] = el)\"\n :item=\"item\"\n :form-data=\"formData\"\n @change-field=\"handleChangeField\"\n />\n </slot>\n </ll-form-item>\n </slot>\n </a-col>\n </a-row>\n </a-form>\n </a-spin>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { has, isEmpty, omit } from 'lodash-es'\nimport { computed, nextTick, onMounted, reactive, ref, watch } from 'vue'\nimport { formEmits, formProps, type FormColumn } from './config'\n\nimport type { NamePath } from 'ant-design-vue/es/form/interface'\n\nimport { createNamespace, deepUnref } from '@ll-plus/utils'\n\nimport formComponent from './components/form-component.vue'\n\n// 定义组件名称\ndefineOptions({ name: 'LlForm' })\n\n// Props\nconst props = defineProps(formProps)\n\nconst emits = defineEmits(formEmits)\n\nconst bem = createNamespace('form')\n\nconst formData = reactive(props.formData)\n\nconst formRef = ref()\n\nconst formComponents = ref<InstanceType<typeof formComponent>[]>(\n [] as InstanceType<typeof formComponent>[]\n)\n\nconst computedFormColumns = computed(() => {\n const formColumns = deepUnref(props.formColumns) as FormColumn[]\n return formColumns.map(e => {\n e.disabled = has(e, 'disabled') ? e.disabled : props.disabled\n if (e.children && e.children.length) {\n e.children.map(a => {\n a.disabled = has(a, 'disabled') ? a.disabled : props.disabled\n return a\n })\n }\n return e\n })\n})\n\nconst validateFields = computed(() => {\n return props.formColumns\n .filter(e => e.required || (has(e, 'rules') && e.rules.length > 0))\n .map(e => {\n return e.key\n })\n})\n\nconst computedFormOptions = computed(() => {\n return {\n scrollToFirstError: !props.validateErrorStop,\n ...props.formOptions\n }\n})\n\nconst id = ref(`ll-form-${+new Date()}`)\n\nconst validate = async (nameList?: NamePath[]) => {\n if (props.validateErrorStop) {\n clearValidate()\n if (!validateFields.value.length) return Promise.resolve()\n for (const i of validateFields.value) {\n try {\n await formRef.value.validateFields([i])\n } catch (error) {\n return Promise.reject(error) // 跳出验证循环并返回错误\n }\n }\n return Promise.resolve()\n } else {\n try {\n await formRef.value.validateFields(nameList || validateFields.value)\n return Promise.resolve()\n } catch (error) {\n return Promise.reject(error)\n }\n }\n}\n\nconst resetFields = async () => {\n await formRef.value.resetFields()\n}\n\nconst clearValidate = async (nameList?: NamePath[]) => {\n await formRef.value.clearValidate(nameList)\n}\n\nconst scrollToField = async (name: NamePath, options?: ScrollOptions) => {\n await formRef.value.scrollToField(name, options)\n}\n\nconst getBindValue = (item: FormColumn) => {\n const obj = { ...item }\n return omit(obj, ['label'])\n}\n\nconst getFormItemClass = (item = {} as FormColumn) => {\n if (props.formOptions.layout === 'horizontal') {\n if (item?.labelCol) {\n return item.labelCol.span && item.labelCol.span >= 24\n ? bem.is('label-top')\n : bem.is('label-left')\n } else {\n return bem.is('label-left')\n }\n }\n return bem.is('label-top')\n}\n\nconst handleChangeField = (item: FormColumn) => {\n emits('change', { item, value: formData[item.key], formData })\n}\n\nwatch(\n () => props.formData,\n async val => {\n for (const i in val) {\n formData[i] = val[i]\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n\nonMounted(async () => {\n await nextTick()\n if (props.autoFocus) {\n for (const element of formComponents.value) {\n const item = element?.getItem()\n if (['input', 'textarea', 'input-number'].includes(item.type)) {\n element?.focus()\n break\n }\n }\n }\n})\n\ndefineExpose({\n validate,\n resetFields,\n clearValidate,\n scrollToField\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA4FA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAM,MAAA,GAAA,GAAM,gBAAgB,MAAM,CAAA,CAAA;AAElC,IAAM,MAAA,QAAA,GAAW,QAAS,CAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAExC,IAAA,MAAM,UAAU,GAAI,EAAA,CAAA;AAEpB,IAAA,MAAM,cAAiB,GAAA,GAAA;AAAA,MACrB,EAAC;AAAA,KACH,CAAA;AAEA,IAAM,MAAA,mBAAA,GAAsB,SAAS,MAAM;AACzC,MAAM,MA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AAEA,IAAA,SAAA,CAAU,YAAY;AACpB,MAAA,MAAM,QAAS,EAAA,CAAA;AACf,MAAA,IAAI,MAAM,SAAW,EAAA;AACnB,QAAW,KAAA,MAAA,OAAA,IAAW,eAAe,KAAO,EAAA;AAC1C,UAAM,MAAA,IAAA,GAAO,SAAS,OAAQ,EAAA,CAAA;AAC9B,UAAI,IAAA,CAAC,SAAS,UAAY,EAAA,cAAc,EAAE,QAAS,CAAA,IAAA,CAAK,IAAI,CAAG,EAAA;AAC7D,YAAA,OAAA,EAAS,KAAM,EAAA,CAAA;AACf,YAAA,MAAA;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,QAAA;AAAA,MACA,WAAA;AAAA,MACA,aAAA;AAAA,MACA,aAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -80,6 +80,7 @@ export { svPanelProps } from './color-picker/src/config/sv-panel.mjs';
|
|
|
80
80
|
export { OPTIONS_KEY, useOptions } from './color-picker/src/config/use-options.mjs';
|
|
81
81
|
export { default as Color } from './color-picker/src/config/color.mjs';
|
|
82
82
|
export { configProviderProps } from './config-provider/src/config-provider.mjs';
|
|
83
|
+
export { provideGlobalConfig } from './config-provider/src/hooks.mjs';
|
|
83
84
|
export { cropperImageEmits, cropperImageProps, cropperModalEmits, cropperModalProps, defaultCropperOptions } from './cropper/src/cropper-image.mjs';
|
|
84
85
|
export { descriptionsProps } from './descriptions/src/descriptions.mjs';
|
|
85
86
|
export { descriptionsItemProps } from './descriptions-item/src/descriptions-item.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -14,7 +14,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
const props = __props;
|
|
15
15
|
const emits = __emit;
|
|
16
16
|
const attrs = useAttrs();
|
|
17
|
-
console.log({ attrs });
|
|
18
17
|
const newExpandedKeys = ref([]);
|
|
19
18
|
const hoverTreeNodeItem = ref();
|
|
20
19
|
const bem = createNamespace("operate-tree");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operate-tree.vue2.mjs","sources":["../../../../../../packages/components/operate-tree/src/operate-tree.vue"],"sourcesContent":["<template>\n <a-spin :spinning=\"loading\">\n <div :class=\"bem.b()\">\n <!-- 目录tree -->\n <a-directory-tree\n v-if=\"treeData?.length\"\n v-bind=\"attrs\"\n :block-node=\"true\"\n multiple\n :tree-data=\"treeData\"\n :expanded-keys=\"newExpandedKeys\"\n :field-names=\"fieldNames\"\n @expand=\"expand\"\n @select=\"select\"\n @mouseenter=\"handleMouseenter\"\n >\n <!-- switcher-icon-slots -->\n <template #switcherIcon=\"slots\">\n <slot name=\"switcherIcon\" v-bind=\"slots\">\n <caret-right-outlined v-if=\"!slots.expanded\" />\n <caret-down-outlined v-else />\n </slot>\n </template>\n <template #title=\"slots\">\n <div :class=\"bem.e('title')\">\n <div>\n <!-- icon-slots -->\n <div v-if=\"$slots.icon\" :class=\"bem.e('icon')\">\n <slot name=\"icon\" v-bind=\"slots\" />\n </div>\n <!-- title-slots -->\n <slot name=\"treeTitle\" v-bind=\"slots\">\n <span>\n {{ slots[fieldNames!['title']!] }}\n </span>\n </slot>\n </div>\n <!-- operate-slots -->\n <div\n :class=\"`${bem.e('operate')} ${\n props.operateDropdownOpen &&\n hoverTreeNodeItem[fieldNames!['key']!] ===\n slots[fieldNames!['key']!]\n ? bem.is('open')\n : bem.is('close')\n }`\"\n >\n <slot name=\"treeOperate\" :data=\"slots\"></slot>\n </div>\n </div>\n </template>\n </a-directory-tree>\n <template v-else>\n <!-- empty-slots -->\n <slot name=\"empty\">\n <ll-empty>\n <template #content>暂无数据</template>\n </ll-empty>\n </slot>\n </template>\n </div>\n </a-spin>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, useAttrs, watch } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\nimport {
|
|
1
|
+
{"version":3,"file":"operate-tree.vue2.mjs","sources":["../../../../../../packages/components/operate-tree/src/operate-tree.vue"],"sourcesContent":["<template>\n <a-spin :spinning=\"loading\">\n <div :class=\"bem.b()\">\n <!-- 目录tree -->\n <a-directory-tree\n v-if=\"treeData?.length\"\n v-bind=\"attrs\"\n :block-node=\"true\"\n multiple\n :tree-data=\"treeData\"\n :expanded-keys=\"newExpandedKeys\"\n :field-names=\"fieldNames\"\n @expand=\"expand\"\n @select=\"select\"\n @mouseenter=\"handleMouseenter\"\n >\n <!-- switcher-icon-slots -->\n <template #switcherIcon=\"slots\">\n <slot name=\"switcherIcon\" v-bind=\"slots\">\n <caret-right-outlined v-if=\"!slots.expanded\" />\n <caret-down-outlined v-else />\n </slot>\n </template>\n <template #title=\"slots\">\n <div :class=\"bem.e('title')\">\n <div>\n <!-- icon-slots -->\n <div v-if=\"$slots.icon\" :class=\"bem.e('icon')\">\n <slot name=\"icon\" v-bind=\"slots\" />\n </div>\n <!-- title-slots -->\n <slot name=\"treeTitle\" v-bind=\"slots\">\n <span>\n {{ slots[fieldNames!['title']!] }}\n </span>\n </slot>\n </div>\n <!-- operate-slots -->\n <div\n :class=\"`${bem.e('operate')} ${\n props.operateDropdownOpen &&\n hoverTreeNodeItem[fieldNames!['key']!] ===\n slots[fieldNames!['key']!]\n ? bem.is('open')\n : bem.is('close')\n }`\"\n >\n <slot name=\"treeOperate\" :data=\"slots\"></slot>\n </div>\n </div>\n </template>\n </a-directory-tree>\n <template v-else>\n <!-- empty-slots -->\n <slot name=\"empty\">\n <ll-empty>\n <template #content>暂无数据</template>\n </ll-empty>\n </slot>\n </template>\n </div>\n </a-spin>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, useAttrs, watch } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\nimport { operateTreeEmits, operateTreeProps } from './operate-tree'\n\nimport { CaretDownOutlined, CaretRightOutlined } from '@ant-design/icons-vue'\n\n// 1.defineOptions\ndefineOptions({ name: 'LlOperateTree' })\n\n// 2.props/emits\nconst props = defineProps(operateTreeProps)\nconst emits = defineEmits(operateTreeEmits)\n\n// 3.hooks\nconst attrs = useAttrs()\n\n// 4.ref\nconst newExpandedKeys = ref<string[]>([])\nconst hoverTreeNodeItem = ref() // 鼠标移的node的数据\nconst bem = createNamespace('operate-tree')\n\nconst handleMouseenter = ({ node }) => {\n hoverTreeNodeItem.value = node\n}\n// 5.methods\n// tree的展开事件\nconst expand = (expandedKeys: string[], data: any) => {\n newExpandedKeys.value = expandedKeys\n emits('expand', expandedKeys, data)\n}\n// tree点击树节点触发\nconst select = (selectedKeys: string[], e: Event) => {\n emits('select', selectedKeys, e)\n}\n\n// 6.watch\n// 如果有数据并且输入框有内容则展开\nwatch(\n () => props.expandedKeys,\n keys => {\n if (keys) {\n newExpandedKeys.value = keys as string[]\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;AA2EA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAGd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAGvB,IAAM,MAAA,eAAA,GAAkB,GAAc,CAAA,EAAE,CAAA,CAAA;AACxC,IAAA,MAAM,oBAAoB,GAAI,EAAA,CAAA;AAC9B,IAAM,MAAA,GAAA,GAAM,gBAAgB,cAAc,CAAA,CAAA;AAE1C,IAAA,MAAM,gBAAmB,GAAA,CAAC,EAAE,IAAA,EAAW,KAAA;AACrC,MAAA,iBAAA,CAAkB,KAAQ,GAAA,IAAA,CAAA;AAAA,KAC5B,CAAA;AAGA,IAAM,MAAA,MAAA,GAAS,CAAC,YAAA,EAAwB,IAAc,KAAA;AACpD,MAAA,eAAA,CAAgB,KAAQ,GAAA,YAAA,CAAA;AACxB,MAAM,KAAA,CAAA,QAAA,EAAU,cAAc,IAAI,CAAA,CAAA;AAAA,KACpC,CAAA;AAEA,IAAM,MAAA,MAAA,GAAS,CAAC,YAAA,EAAwB,CAAa,KAAA;AACnD,MAAM,KAAA,CAAA,QAAA,EAAU,cAAc,CAAC,CAAA,CAAA;AAAA,KACjC,CAAA;AAIA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,YAAA;AAAA,MACZ,CAAQ,IAAA,KAAA;AACN,QAAA,IAAI,IAAM,EAAA;AACR,UAAA,eAAA,CAAgB,KAAQ,GAAA,IAAA,CAAA;AAAA,SAC1B;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,QACN,SAAW,EAAA,IAAA;AAAA,OACb;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/index.full.js
CHANGED
|
@@ -64087,7 +64087,7 @@
|
|
|
64087
64087
|
};
|
|
64088
64088
|
});
|
|
64089
64089
|
const id = require$$0.ref(`ll-form-${+/* @__PURE__ */ new Date()}`);
|
|
64090
|
-
const validate = async () => {
|
|
64090
|
+
const validate = async (nameList) => {
|
|
64091
64091
|
if (props.validateErrorStop) {
|
|
64092
64092
|
clearValidate();
|
|
64093
64093
|
if (!validateFields.value.length)
|
|
@@ -64102,7 +64102,7 @@
|
|
|
64102
64102
|
return Promise.resolve();
|
|
64103
64103
|
} else {
|
|
64104
64104
|
try {
|
|
64105
|
-
await formRef.value.validateFields(validateFields.value);
|
|
64105
|
+
await formRef.value.validateFields(nameList || validateFields.value);
|
|
64106
64106
|
return Promise.resolve();
|
|
64107
64107
|
} catch (error) {
|
|
64108
64108
|
return Promise.reject(error);
|
|
@@ -75190,7 +75190,6 @@
|
|
|
75190
75190
|
const props = __props;
|
|
75191
75191
|
const emits = __emit;
|
|
75192
75192
|
const attrs = require$$0.useAttrs();
|
|
75193
|
-
console.log({ attrs });
|
|
75194
75193
|
const newExpandedKeys = require$$0.ref([]);
|
|
75195
75194
|
const hoverTreeNodeItem = require$$0.ref();
|
|
75196
75195
|
const bem = createNamespace("operate-tree");
|
|
@@ -86790,6 +86789,7 @@
|
|
|
86790
86789
|
exports.parseColors = parseColors;
|
|
86791
86790
|
exports.placement = placement;
|
|
86792
86791
|
exports.preDefineProps = preDefineProps;
|
|
86792
|
+
exports.provideGlobalConfig = provideGlobalConfig;
|
|
86793
86793
|
exports.qrcodeProps = qrcodeProps;
|
|
86794
86794
|
exports.qrcodeType = qrcodeType;
|
|
86795
86795
|
exports.removeQueryString = removeQueryString;
|