ll-plus 2.8.12 → 2.8.14
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/component.mjs +2 -0
- package/es/component.mjs.map +1 -1
- package/es/components/index.d.ts +3 -4
- package/es/components/qr-code/index.d.ts +63 -0
- package/es/components/qr-code/src/qr-code.d.ts +23 -0
- package/es/components/qr-code/src/qr-code.vue.d.ts +56 -0
- package/es/index.mjs +6 -4
- package/es/index.mjs.map +1 -1
- package/es/packages/components/index.mjs +6 -4
- package/es/packages/components/index.mjs.map +1 -1
- package/es/packages/components/qr-code/index.mjs +10 -0
- package/es/packages/components/qr-code/index.mjs.map +1 -0
- package/es/packages/components/qr-code/src/qr-code.mjs +45 -0
- package/es/packages/components/qr-code/src/qr-code.mjs.map +1 -0
- package/es/packages/components/qr-code/src/qr-code.vue.mjs +8 -0
- package/es/packages/components/qr-code/src/qr-code.vue.mjs.map +1 -0
- package/es/packages/components/qr-code/src/qr-code.vue2.mjs +26 -0
- package/es/packages/components/qr-code/src/qr-code.vue2.mjs.map +1 -0
- package/es/packages/components/tooltip/src/tooltip.vue2.mjs +10 -8
- package/es/packages/components/tooltip/src/tooltip.vue2.mjs.map +1 -1
- package/index.full.js +287 -220
- package/index.full.min.js +22 -22
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +21 -21
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +285 -221
- package/lib/component.js +103 -101
- package/lib/component.js.map +1 -1
- package/lib/components/index.d.ts +3 -4
- package/lib/components/qr-code/index.d.ts +63 -0
- package/lib/components/qr-code/src/qr-code.d.ts +23 -0
- package/lib/components/qr-code/src/qr-code.vue.d.ts +56 -0
- package/lib/index.js +99 -94
- package/lib/index.js.map +1 -1
- package/lib/packages/components/index.js +87 -82
- package/lib/packages/components/index.js.map +1 -1
- package/lib/packages/components/qr-code/index.js +17 -0
- package/lib/packages/components/qr-code/index.js.map +1 -0
- package/lib/packages/components/qr-code/src/qr-code.js +48 -0
- package/lib/packages/components/qr-code/src/qr-code.js.map +1 -0
- package/lib/packages/components/qr-code/src/qr-code.vue.js +12 -0
- package/lib/packages/components/qr-code/src/qr-code.vue.js.map +1 -0
- package/lib/packages/components/qr-code/src/qr-code.vue2.js +30 -0
- package/lib/packages/components/qr-code/src/qr-code.vue2.js.map +1 -0
- package/lib/packages/components/tooltip/src/tooltip.vue2.js +9 -7
- package/lib/packages/components/tooltip/src/tooltip.vue2.js.map +1 -1
- package/package.json +1 -1
- package/types/packages/components/index.d.ts +3 -4
- package/types/packages/components/qr-code/index.d.ts +63 -0
- package/types/packages/components/qr-code/src/qr-code.d.ts +23 -0
- package/types/packages/components/qr-code/src/qr-code.vue.d.ts +56 -0
package/es/component.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import { LlCodeEditor } from './packages/components/code-editor/index.mjs';
|
|
|
10
10
|
import { LlColorPicker } from './packages/components/color-picker/index.mjs';
|
|
11
11
|
import { LlConfigProvider } from './packages/components/config-provider/index.mjs';
|
|
12
12
|
import { LlCropperImage, LlCropperModal } from './packages/components/cropper/index.mjs';
|
|
13
|
+
import { LlQrCode } from './packages/components/qr-code/index.mjs';
|
|
13
14
|
import { LlDatePicker } from './packages/components/date-picker/index.mjs';
|
|
14
15
|
import { LlDateRange } from './packages/components/date-range/index.mjs';
|
|
15
16
|
import { LlDescriptions } from './packages/components/descriptions/index.mjs';
|
|
@@ -74,6 +75,7 @@ var Components = [
|
|
|
74
75
|
LlColorPicker,
|
|
75
76
|
LlConfigProvider,
|
|
76
77
|
LlCropperImage,
|
|
78
|
+
LlQrCode,
|
|
77
79
|
LlCropperModal,
|
|
78
80
|
LlDatePicker,
|
|
79
81
|
LlDateRange,
|
package/es/component.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.mjs","sources":["../../packages/ll-plus/component.ts"],"sourcesContent":["import type { Plugin } from 'vue'\n\nimport {\n LlAdvancedFiltering,\n LlAdvancedFilteringParams,\n LlAdvancedFilteringTags,\n LlApiComponent,\n LlAvatar,\n LlBreadcrumbCard,\n LlButton,\n LlCascader,\n LlCheckbox,\n LlCheckboxGroup,\n LlCodeEditor,\n LlColorPicker,\n LlConfigProvider,\n LlCropperImage,\n LlCropperModal,\n LlDatePicker,\n LlDateRange,\n LlDescriptions,\n LlDescriptionsItem,\n LlDrawer,\n LlDropdown,\n LlDropdownButton,\n LlDropdownButtonSimple,\n
|
|
1
|
+
{"version":3,"file":"component.mjs","sources":["../../packages/ll-plus/component.ts"],"sourcesContent":["import type { Plugin } from 'vue'\n\nimport {\n LlAdvancedFiltering,\n LlAdvancedFilteringParams,\n LlAdvancedFilteringTags,\n LlApiComponent,\n LlAvatar,\n LlBreadcrumbCard,\n LlButton,\n LlCascader,\n LlCheckbox,\n LlCheckboxGroup,\n LlCodeEditor,\n LlColorPicker,\n LlConfigProvider,\n LlCropperImage,\n LlCropperModal,\n LlDatePicker,\n LlDateRange,\n LlDescriptions,\n LlDescriptionsItem,\n LlDrawer,\n LlDropdown,\n LlDropdownButton,\n LlDropdownButtonSimple,\n LlEasyCron,\n LlEmpty,\n LlForm,\n LlFormItem,\n LlIcon,\n LlIconBase,\n LlIconPicker,\n LlImage,\n LlImagePreviewGroup,\n LlInput,\n LlInputNumber,\n LlKeyValue,\n LlMarkdownEditor,\n LlMarkdownViewer,\n LlModal,\n LlNewDrawer,\n LlNewModal,\n LlNumberRange,\n LlOperateIcon,\n LlOperateTree,\n LlQrCode,\n LlRadio,\n LlRadioButton,\n LlRadioGroup,\n LlRichTextEditor,\n LlSecondConfirmation,\n LlSegmented,\n LlSelect,\n LlSelectGroup,\n LlSelectOptGroup,\n LlSelectOption,\n LlSpace,\n LlSteps,\n LlSwitch,\n LlTable,\n LlTabsSimple,\n LlTagGroup,\n LlTextarea,\n LlTimePicker,\n LlTimeRange,\n LlTooltip,\n LlTree,\n LlTreeSearch,\n LlUploadDrag,\n LlUploadImage,\n LlUriInput,\n LlWatermark\n} from '@ll-plus/components'\n\nexport default [\n LlAdvancedFiltering,\n LlAdvancedFilteringParams,\n LlAdvancedFilteringTags,\n LlApiComponent,\n LlAvatar,\n LlBreadcrumbCard,\n LlButton,\n LlCascader,\n LlCheckbox,\n LlCheckboxGroup,\n LlCodeEditor,\n LlColorPicker,\n LlConfigProvider,\n LlCropperImage,\n LlQrCode,\n LlCropperModal,\n LlDatePicker,\n LlDateRange,\n LlDescriptions,\n LlDescriptionsItem,\n LlDrawer,\n LlDropdown,\n LlDropdownButton,\n LlDropdownButtonSimple,\n LlNewDrawer,\n LlEasyCron,\n LlEmpty,\n LlForm,\n LlFormItem,\n LlIcon,\n LlIconBase,\n LlIconPicker,\n LlImage,\n LlImagePreviewGroup,\n LlInput,\n LlInputNumber,\n LlKeyValue,\n LlMarkdownEditor,\n LlMarkdownViewer,\n LlModal,\n LlNewModal,\n LlNumberRange,\n LlOperateIcon,\n LlOperateTree,\n LlRadio,\n LlRadioButton,\n LlRadioGroup,\n LlRichTextEditor,\n LlSecondConfirmation,\n LlSegmented,\n LlSelect,\n LlSelectOption,\n LlSelectOptGroup,\n LlSelectGroup,\n LlSpace,\n LlSteps,\n LlSwitch,\n LlTable,\n LlTabsSimple,\n LlTagGroup,\n LlTextarea,\n LlTimePicker,\n LlTimeRange,\n LlTooltip,\n LlTreeSearch,\n LlTree,\n LlUploadDrag,\n LlUploadImage,\n LlUriInput,\n LlWatermark\n] as Plugin[]\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EA,iBAAe;AAAA,EACb,mBAAA;AAAA,EACA,yBAAA;AAAA,EACA,uBAAA;AAAA,EACA,cAAA;AAAA,EACA,QAAA;AAAA,EACA,gBAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,UAAA;AAAA,EACA,eAAA;AAAA,EACA,YAAA;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,QAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,kBAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,gBAAA;AAAA,EACA,sBAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,OAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA;AAAA,EACA,mBAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AAAA,EACA,UAAA;AAAA,EACA,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA,aAAA;AAAA,EACA,aAAA;AAAA,EACA,aAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AAAA,EACA,gBAAA;AAAA,EACA,oBAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,cAAA;AAAA,EACA,gBAAA;AAAA,EACA,aAAA;AAAA,EACA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,OAAA;AAAA,EACA,YAAA;AAAA,EACA,UAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,WAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,MAAA;AAAA,EACA,YAAA;AAAA,EACA,aAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AACF,CAAA;;;;"}
|
package/es/components/index.d.ts
CHANGED
|
@@ -16,13 +16,10 @@ export * from './descriptions-item';
|
|
|
16
16
|
export * from './drawer';
|
|
17
17
|
export * from './dropdown';
|
|
18
18
|
export * from './dropdown-button-simple';
|
|
19
|
-
export * from './new-drawer';
|
|
20
19
|
export * from './easy-cron';
|
|
21
20
|
export * from './empty';
|
|
22
21
|
export * from './form';
|
|
23
22
|
export * from './form-item';
|
|
24
|
-
export * from './form';
|
|
25
|
-
export * from './form-item';
|
|
26
23
|
export * from './icon';
|
|
27
24
|
export * from './icon-base';
|
|
28
25
|
export * from './icon-picker';
|
|
@@ -32,10 +29,12 @@ export * from './input-number';
|
|
|
32
29
|
export * from './key-value';
|
|
33
30
|
export * from './markdown-editor';
|
|
34
31
|
export * from './modal';
|
|
32
|
+
export * from './new-drawer';
|
|
35
33
|
export * from './new-modal';
|
|
36
34
|
export * from './number-range';
|
|
37
35
|
export * from './operate-icon';
|
|
38
36
|
export * from './operate-tree';
|
|
37
|
+
export * from './qr-code';
|
|
39
38
|
export * from './radio';
|
|
40
39
|
export * from './rich-text-editor';
|
|
41
40
|
export * from './segmented';
|
|
@@ -51,8 +50,8 @@ export * from './textarea';
|
|
|
51
50
|
export * from './time-picker';
|
|
52
51
|
export * from './time-range';
|
|
53
52
|
export * from './tooltip';
|
|
54
|
-
export * from './tree-search';
|
|
55
53
|
export * from './tree';
|
|
54
|
+
export * from './tree-search';
|
|
56
55
|
export * from './upload-drag';
|
|
57
56
|
export * from './upload-image';
|
|
58
57
|
export * from './uri-input';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import QrCode from './src/qr-code.vue';
|
|
2
|
+
export declare const LlQrCode: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
readonly value: {
|
|
4
|
+
readonly type: import("vue").PropType<string>;
|
|
5
|
+
readonly required: false;
|
|
6
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
7
|
+
__epPropKey: true;
|
|
8
|
+
};
|
|
9
|
+
readonly type: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "canvas", boolean>;
|
|
10
|
+
readonly icon: {
|
|
11
|
+
readonly type: import("vue").PropType<string>;
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
|
+
__epPropKey: true;
|
|
15
|
+
};
|
|
16
|
+
readonly size: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 160, boolean>;
|
|
17
|
+
readonly iconSize: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 40, boolean>;
|
|
18
|
+
}, {
|
|
19
|
+
props: import("@vue/shared").LooseRequired<{
|
|
20
|
+
readonly type: string;
|
|
21
|
+
readonly size: number;
|
|
22
|
+
readonly iconSize: number;
|
|
23
|
+
readonly value?: string | undefined;
|
|
24
|
+
readonly icon?: string | undefined;
|
|
25
|
+
} & {}>;
|
|
26
|
+
bem: {
|
|
27
|
+
b: (blockSuffix?: string) => string;
|
|
28
|
+
e: (element?: string) => string;
|
|
29
|
+
m: (modifier?: string) => string;
|
|
30
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
31
|
+
em: (element: string, modifier: string) => string;
|
|
32
|
+
bm: (blockSuffix: string, modifier: string) => string;
|
|
33
|
+
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
34
|
+
is: (name?: string) => string;
|
|
35
|
+
};
|
|
36
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
readonly value: {
|
|
38
|
+
readonly type: import("vue").PropType<string>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
};
|
|
43
|
+
readonly type: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "canvas", boolean>;
|
|
44
|
+
readonly icon: {
|
|
45
|
+
readonly type: import("vue").PropType<string>;
|
|
46
|
+
readonly required: false;
|
|
47
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
48
|
+
__epPropKey: true;
|
|
49
|
+
};
|
|
50
|
+
readonly size: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 160, boolean>;
|
|
51
|
+
readonly iconSize: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 40, boolean>;
|
|
52
|
+
}>>, {
|
|
53
|
+
readonly type: string;
|
|
54
|
+
readonly size: number;
|
|
55
|
+
readonly iconSize: number;
|
|
56
|
+
}, {}>>;
|
|
57
|
+
export default LlQrCode;
|
|
58
|
+
export * from './src/qr-code';
|
|
59
|
+
declare module 'vue' {
|
|
60
|
+
interface GlobalComponents {
|
|
61
|
+
LlQrCode: typeof QrCode;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type QrCode from './qr-code.vue';
|
|
3
|
+
export declare const qrCodeType: readonly ["canvas", "svg"];
|
|
4
|
+
export declare const qrCodeProps: {
|
|
5
|
+
readonly value: {
|
|
6
|
+
readonly type: import("vue").PropType<string>;
|
|
7
|
+
readonly required: false;
|
|
8
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9
|
+
__epPropKey: true;
|
|
10
|
+
};
|
|
11
|
+
readonly type: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "canvas", boolean>;
|
|
12
|
+
readonly icon: {
|
|
13
|
+
readonly type: import("vue").PropType<string>;
|
|
14
|
+
readonly required: false;
|
|
15
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
16
|
+
__epPropKey: true;
|
|
17
|
+
};
|
|
18
|
+
readonly size: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 160, boolean>;
|
|
19
|
+
readonly iconSize: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 40, boolean>;
|
|
20
|
+
};
|
|
21
|
+
export type QrCodeProps = ExtractPropTypes<typeof qrCodeProps>;
|
|
22
|
+
export type QrCodeType = QrCodeProps['value'];
|
|
23
|
+
export type QrCodeInstance = InstanceType<typeof QrCode>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly value: {
|
|
3
|
+
readonly type: import("vue").PropType<string>;
|
|
4
|
+
readonly required: false;
|
|
5
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6
|
+
__epPropKey: true;
|
|
7
|
+
};
|
|
8
|
+
readonly type: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "canvas", boolean>;
|
|
9
|
+
readonly icon: {
|
|
10
|
+
readonly type: import("vue").PropType<string>;
|
|
11
|
+
readonly required: false;
|
|
12
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
|
+
__epPropKey: true;
|
|
14
|
+
};
|
|
15
|
+
readonly size: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 160, boolean>;
|
|
16
|
+
readonly iconSize: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 40, boolean>;
|
|
17
|
+
}, {
|
|
18
|
+
props: import("@vue/shared").LooseRequired<{
|
|
19
|
+
readonly type: string;
|
|
20
|
+
readonly size: number;
|
|
21
|
+
readonly iconSize: number;
|
|
22
|
+
readonly value?: string | undefined;
|
|
23
|
+
readonly icon?: string | undefined;
|
|
24
|
+
} & {}>;
|
|
25
|
+
bem: {
|
|
26
|
+
b: (blockSuffix?: string) => string;
|
|
27
|
+
e: (element?: string) => string;
|
|
28
|
+
m: (modifier?: string) => string;
|
|
29
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
30
|
+
em: (element: string, modifier: string) => string;
|
|
31
|
+
bm: (blockSuffix: string, modifier: string) => string;
|
|
32
|
+
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
33
|
+
is: (name?: string) => string;
|
|
34
|
+
};
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
readonly value: {
|
|
37
|
+
readonly type: import("vue").PropType<string>;
|
|
38
|
+
readonly required: false;
|
|
39
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
|
+
__epPropKey: true;
|
|
41
|
+
};
|
|
42
|
+
readonly type: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "canvas", boolean>;
|
|
43
|
+
readonly icon: {
|
|
44
|
+
readonly type: import("vue").PropType<string>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
|
+
__epPropKey: true;
|
|
48
|
+
};
|
|
49
|
+
readonly size: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 160, boolean>;
|
|
50
|
+
readonly iconSize: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 40, boolean>;
|
|
51
|
+
}>>, {
|
|
52
|
+
readonly type: string;
|
|
53
|
+
readonly size: number;
|
|
54
|
+
readonly iconSize: number;
|
|
55
|
+
}, {}>;
|
|
56
|
+
export default _default;
|
package/es/index.mjs
CHANGED
|
@@ -54,8 +54,6 @@ export { dropdownButtonEmits, dropdownButtonProps, dropdownEmits, dropdownProps
|
|
|
54
54
|
export { LlDropdown, LlDropdownButton } from './packages/components/dropdown/index.mjs';
|
|
55
55
|
export { defaultButtonProps, dropdownButtonSimpleEmits, dropdownButtonSimpleProps } from './packages/components/dropdown-button-simple/src/dropdown-button-simple.mjs';
|
|
56
56
|
export { LlDropdownButtonSimple } from './packages/components/dropdown-button-simple/index.mjs';
|
|
57
|
-
export { footerShadowPlacement, newDrawerEmits, newDrawerProps } from './packages/components/new-drawer/src/drawer.mjs';
|
|
58
|
-
export { LlNewDrawer } from './packages/components/new-drawer/index.mjs';
|
|
59
57
|
export { easyCronEmits, easyCronProps } from './packages/components/easy-cron/src/config/easy-cron.mjs';
|
|
60
58
|
export { dateUtil, formatToDate, formatToDateTime } from './packages/components/easy-cron/src/config/date-utils.mjs';
|
|
61
59
|
export { TypeEnum, useTabEmits, useTabProps, useTabSetup } from './packages/components/easy-cron/src/config/use-tab-mixin.mjs';
|
|
@@ -89,6 +87,8 @@ export { llMarkdownViewerProps } from './packages/components/markdown-editor/src
|
|
|
89
87
|
export { LlMarkdownEditor, LlMarkdownViewer } from './packages/components/markdown-editor/index.mjs';
|
|
90
88
|
export { modalEmits, modalProps } from './packages/components/modal/src/modal.mjs';
|
|
91
89
|
export { LlModal } from './packages/components/modal/index.mjs';
|
|
90
|
+
export { footerShadowPlacement, newDrawerEmits, newDrawerProps } from './packages/components/new-drawer/src/drawer.mjs';
|
|
91
|
+
export { LlNewDrawer } from './packages/components/new-drawer/index.mjs';
|
|
92
92
|
export { modalType, newModalEmits, newModalProps } from './packages/components/new-modal/src/modal.mjs';
|
|
93
93
|
export { LlNewModal } from './packages/components/new-modal/index.mjs';
|
|
94
94
|
export { numberRangeEmits, numberRangeProps } from './packages/components/number-range/src/number-range.mjs';
|
|
@@ -97,6 +97,8 @@ export { operateIconEmits, operateIconProps } from './packages/components/operat
|
|
|
97
97
|
export { LlOperateIcon } from './packages/components/operate-icon/index.mjs';
|
|
98
98
|
export { OperateTreeEmits, operateTreeEmits, operateTreeProps } from './packages/components/operate-tree/src/operate-tree.mjs';
|
|
99
99
|
export { LlOperateTree } from './packages/components/operate-tree/index.mjs';
|
|
100
|
+
export { qrCodeProps, qrCodeType } from './packages/components/qr-code/src/qr-code.mjs';
|
|
101
|
+
export { LlQrCode } from './packages/components/qr-code/index.mjs';
|
|
100
102
|
export { LlRadio, LlRadioButton, LlRadioGroup } from './packages/components/radio/index.mjs';
|
|
101
103
|
export { FALLBACK_IMAGE, defaultEditorConfig, defaultToolbarConfig, richTextEditorEmits, richTextEditorProps } from './packages/components/rich-text-editor/src/rich-text-editor.mjs';
|
|
102
104
|
export { LlRichTextEditor } from './packages/components/rich-text-editor/index.mjs';
|
|
@@ -122,12 +124,12 @@ export { LlTimePicker } from './packages/components/time-picker/index.mjs';
|
|
|
122
124
|
export { LlTimeRange } from './packages/components/time-range/index.mjs';
|
|
123
125
|
export { placement, tooltipProps } from './packages/components/tooltip/src/tooltip.mjs';
|
|
124
126
|
export { LlTooltip } from './packages/components/tooltip/index.mjs';
|
|
127
|
+
export { treeEmits, treeProps } from './packages/components/tree/src/tree.mjs';
|
|
128
|
+
export { LlTree } from './packages/components/tree/index.mjs';
|
|
125
129
|
export { treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps } from './packages/components/tree-search/src/config/header-search.mjs';
|
|
126
130
|
export { treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps } from './packages/components/tree-search/src/config/directory-title.mjs';
|
|
127
131
|
export { treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps } from './packages/components/tree-search/src/config/tree-search.mjs';
|
|
128
132
|
export { LlTreeSearch } from './packages/components/tree-search/index.mjs';
|
|
129
|
-
export { treeEmits, treeProps } from './packages/components/tree/src/tree.mjs';
|
|
130
|
-
export { LlTree } from './packages/components/tree/index.mjs';
|
|
131
133
|
export { ILlUploadDragProps } from './packages/components/upload-drag/src/upload-drag.mjs';
|
|
132
134
|
export { LlUploadDrag } from './packages/components/upload-drag/index.mjs';
|
|
133
135
|
export { uploadImageEmits, uploadImageProps } from './packages/components/upload-image/src/upload-image.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;;;;"}
|
|
@@ -16,7 +16,6 @@ export { LlDescriptionsItem } from './descriptions-item/index.mjs';
|
|
|
16
16
|
export { LlDrawer } from './drawer/index.mjs';
|
|
17
17
|
export { LlDropdown, LlDropdownButton } from './dropdown/index.mjs';
|
|
18
18
|
export { LlDropdownButtonSimple } from './dropdown-button-simple/index.mjs';
|
|
19
|
-
export { LlNewDrawer } from './new-drawer/index.mjs';
|
|
20
19
|
export { LlEasyCron } from './easy-cron/index.mjs';
|
|
21
20
|
export { LlEmpty } from './empty/index.mjs';
|
|
22
21
|
export { LlForm, LlFormComponent } from './form/index.mjs';
|
|
@@ -30,10 +29,12 @@ export { LlInputNumber } from './input-number/index.mjs';
|
|
|
30
29
|
export { LlKeyValue } from './key-value/index.mjs';
|
|
31
30
|
export { LlMarkdownEditor, LlMarkdownViewer } from './markdown-editor/index.mjs';
|
|
32
31
|
export { LlModal } from './modal/index.mjs';
|
|
32
|
+
export { LlNewDrawer } from './new-drawer/index.mjs';
|
|
33
33
|
export { LlNewModal } from './new-modal/index.mjs';
|
|
34
34
|
export { LlNumberRange } from './number-range/index.mjs';
|
|
35
35
|
export { LlOperateIcon } from './operate-icon/index.mjs';
|
|
36
36
|
export { LlOperateTree } from './operate-tree/index.mjs';
|
|
37
|
+
export { LlQrCode } from './qr-code/index.mjs';
|
|
37
38
|
export { LlRadio, LlRadioButton, LlRadioGroup } from './radio/index.mjs';
|
|
38
39
|
export { LlRichTextEditor } from './rich-text-editor/index.mjs';
|
|
39
40
|
export { LlSegmented } from './segmented/index.mjs';
|
|
@@ -49,8 +50,8 @@ export { LlTextarea } from './textarea/index.mjs';
|
|
|
49
50
|
export { LlTimePicker } from './time-picker/index.mjs';
|
|
50
51
|
export { LlTimeRange } from './time-range/index.mjs';
|
|
51
52
|
export { LlTooltip } from './tooltip/index.mjs';
|
|
52
|
-
export { LlTreeSearch } from './tree-search/index.mjs';
|
|
53
53
|
export { LlTree } from './tree/index.mjs';
|
|
54
|
+
export { LlTreeSearch } from './tree-search/index.mjs';
|
|
54
55
|
export { LlUploadDrag } from './upload-drag/index.mjs';
|
|
55
56
|
export { LlUploadImage } from './upload-image/index.mjs';
|
|
56
57
|
export { LlUriInput } from './uri-input/index.mjs';
|
|
@@ -88,7 +89,6 @@ export { secondConfirmationProps } from './drawer/src/components/second-confirma
|
|
|
88
89
|
export { LlSecondConfirmation } from './drawer/src/components/second-confirmation/index.mjs';
|
|
89
90
|
export { dropdownButtonEmits, dropdownButtonProps, dropdownEmits, dropdownProps } from './dropdown/src/dropdown.mjs';
|
|
90
91
|
export { defaultButtonProps, dropdownButtonSimpleEmits, dropdownButtonSimpleProps } from './dropdown-button-simple/src/dropdown-button-simple.mjs';
|
|
91
|
-
export { footerShadowPlacement, newDrawerEmits, newDrawerProps } from './new-drawer/src/drawer.mjs';
|
|
92
92
|
export { easyCronEmits, easyCronProps } from './easy-cron/src/config/easy-cron.mjs';
|
|
93
93
|
export { dateUtil, formatToDate, formatToDateTime } from './easy-cron/src/config/date-utils.mjs';
|
|
94
94
|
export { TypeEnum, useTabEmits, useTabProps, useTabSetup } from './easy-cron/src/config/use-tab-mixin.mjs';
|
|
@@ -109,10 +109,12 @@ export { formColumns, formOptions, keyValueItemEmits, keyValueItemProps, typeRul
|
|
|
109
109
|
export { llMarkdownEditorEmits, llMarkdownEditorProps } from './markdown-editor/src/config/markdown-editor.mjs';
|
|
110
110
|
export { llMarkdownViewerProps } from './markdown-editor/src/config/markdown-viewer.mjs';
|
|
111
111
|
export { modalEmits, modalProps } from './modal/src/modal.mjs';
|
|
112
|
+
export { footerShadowPlacement, newDrawerEmits, newDrawerProps } from './new-drawer/src/drawer.mjs';
|
|
112
113
|
export { modalType, newModalEmits, newModalProps } from './new-modal/src/modal.mjs';
|
|
113
114
|
export { numberRangeEmits, numberRangeProps } from './number-range/src/number-range.mjs';
|
|
114
115
|
export { operateIconEmits, operateIconProps } from './operate-icon/src/operate-icon.mjs';
|
|
115
116
|
export { OperateTreeEmits, operateTreeEmits, operateTreeProps } from './operate-tree/src/operate-tree.mjs';
|
|
117
|
+
export { qrCodeProps, qrCodeType } from './qr-code/src/qr-code.mjs';
|
|
116
118
|
export { FALLBACK_IMAGE, defaultEditorConfig, defaultToolbarConfig, richTextEditorEmits, richTextEditorProps } from './rich-text-editor/src/rich-text-editor.mjs';
|
|
117
119
|
export { selectOptGroupProps, selectOptionProps, selectProps } from './select/src/select.mjs';
|
|
118
120
|
export { LEFT_SELECT_MIN_WIDTH, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps } from './select-group/src/select-group.mjs';
|
|
@@ -123,10 +125,10 @@ export { HEADER_SRARCH_HEIGHT, PAGINATION_HEIGHT, tableProps } from './table/src
|
|
|
123
125
|
export { tabsSimpleEmits, tabsSimpleProps } from './tabs-simple/src/tabs-simple.mjs';
|
|
124
126
|
export { tagGroupEmits, tagGroupProps } from './tag-group/src/tag-group.mjs';
|
|
125
127
|
export { placement, tooltipProps } from './tooltip/src/tooltip.mjs';
|
|
128
|
+
export { treeEmits, treeProps } from './tree/src/tree.mjs';
|
|
126
129
|
export { treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps } from './tree-search/src/config/header-search.mjs';
|
|
127
130
|
export { treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps } from './tree-search/src/config/directory-title.mjs';
|
|
128
131
|
export { treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps } from './tree-search/src/config/tree-search.mjs';
|
|
129
|
-
export { treeEmits, treeProps } from './tree/src/tree.mjs';
|
|
130
132
|
export { ILlUploadDragProps } from './upload-drag/src/upload-drag.mjs';
|
|
131
133
|
export { uploadImageEmits, uploadImageProps } from './upload-image/src/upload-image.mjs';
|
|
132
134
|
export { getHttpMethodUri, httpUriOptions, uriInputEmits, uriInputProps } from './uri-input/src/uri-input.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../../utils/index.mjs';
|
|
2
|
+
import QrCode from './src/qr-code.vue.mjs';
|
|
3
|
+
export { qrCodeProps, qrCodeType } from './src/qr-code.mjs';
|
|
4
|
+
import { withInstall } from '../../utils/with-install.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const LlQrCode = withInstall(QrCode);
|
|
8
|
+
|
|
9
|
+
export { LlQrCode, LlQrCode as default };
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/qr-code/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport QrCode from './src/qr-code.vue'\n\nexport const LlQrCode = withInstall(QrCode)\nexport default LlQrCode\nexport * from './src/qr-code'\n\n// 把ZIcon组件类型合并带全局组件中 到时候使用时有提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlQrCode: typeof QrCode\n }\n}\n"],"names":[],"mappings":";;;;;;AAIa,MAAA,QAAA,GAAW,YAAY,MAAM;;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import { buildProps } from '../../../utils/props/runtime.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
const qrCodeType = ["canvas", "svg"];
|
|
6
|
+
const qrCodeProps = buildProps({
|
|
7
|
+
// buildProps和defineprops一样
|
|
8
|
+
/**
|
|
9
|
+
* @description 扫描后的地址
|
|
10
|
+
*/
|
|
11
|
+
value: {
|
|
12
|
+
type: String
|
|
13
|
+
},
|
|
14
|
+
/**
|
|
15
|
+
* @description 渲染类型
|
|
16
|
+
*/
|
|
17
|
+
type: {
|
|
18
|
+
type: String,
|
|
19
|
+
value: qrCodeType,
|
|
20
|
+
default: "canvas"
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* @description 二维码中图片的地址(目前只支持图片地址)
|
|
24
|
+
*/
|
|
25
|
+
icon: {
|
|
26
|
+
type: String
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* @description 二维码大小
|
|
30
|
+
*/
|
|
31
|
+
size: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 160
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* @description 二维码中图片的大小
|
|
37
|
+
*/
|
|
38
|
+
iconSize: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: 40
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { qrCodeProps, qrCodeType };
|
|
45
|
+
//# sourceMappingURL=qr-code.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qr-code.mjs","sources":["../../../../../../packages/components/qr-code/src/qr-code.ts"],"sourcesContent":["import { buildProps } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type QrCode from './qr-code.vue'\n\nexport const qrCodeType = ['canvas', 'svg'] as const\nexport const qrCodeProps = buildProps({\n // buildProps和defineprops一样\n /**\n * @description 扫描后的地址\n */\n value: {\n type: String\n },\n /**\n * @description 渲染类型\n */\n type: {\n type: String,\n value: qrCodeType,\n default: 'canvas'\n },\n /**\n * @description 二维码中图片的地址(目前只支持图片地址)\n */\n icon: {\n type: String\n },\n /**\n * @description 二维码大小\n */\n size: {\n type: Number,\n default: 160\n },\n /**\n * @description 二维码中图片的大小\n */\n iconSize: {\n type: Number,\n default: 40\n }\n} as const)\n\n// props\nexport type QrCodeProps = ExtractPropTypes<typeof qrCodeProps> // ExtractPropTypes和defineCpmponent类似\nexport type QrCodeType = QrCodeProps['value']\n// instance\nexport type QrCodeInstance = InstanceType<typeof QrCode>\n"],"names":[],"mappings":";;;;AAKa,MAAA,UAAA,GAAa,CAAC,QAAA,EAAU,KAAK,EAAA;AACnC,MAAM,cAAc,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpC,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,KAAO,EAAA,UAAA;AAAA,IACP,OAAS,EAAA,QAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF,CAAU;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from './qr-code.vue2.mjs';
|
|
2
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
var QrCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "qr-code.vue"]]);
|
|
6
|
+
|
|
7
|
+
export { QrCode as default };
|
|
8
|
+
//# sourceMappingURL=qr-code.vue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qr-code.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, unref } from 'vue';
|
|
2
|
+
import '../../../utils/index.mjs';
|
|
3
|
+
import { qrCodeProps } from './qr-code.mjs';
|
|
4
|
+
import { createNamespace } from '../../../utils/create-namespace.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
...{
|
|
9
|
+
name: "LlQrCode"
|
|
10
|
+
},
|
|
11
|
+
__name: "qr-code",
|
|
12
|
+
props: qrCodeProps,
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const bem = createNamespace("qrcode");
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
const _component_a_qrcode = resolveComponent("a-qrcode");
|
|
18
|
+
return openBlock(), createBlock(_component_a_qrcode, mergeProps(props, {
|
|
19
|
+
class: unref(bem).b()
|
|
20
|
+
}), null, 16, ["class"]);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { _sfc_main as default };
|
|
26
|
+
//# sourceMappingURL=qr-code.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qr-code.vue2.mjs","sources":["../../../../../../packages/components/qr-code/src/qr-code.vue"],"sourcesContent":["<template>\n <a-qrcode v-bind=\"props\" :class=\"bem.b()\" />\n</template>\n<script lang=\"ts\" setup>\nimport { createNamespace } from '@ll-plus/utils'\nimport { qrCodeProps } from './qr-code'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlQrCode'\n})\n\nconst props = defineProps(qrCodeProps)\n\nconst bem = createNamespace('qrcode')\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAYA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,GAAA,GAAM,gBAAgB,QAAQ,CAAA,CAAA;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, computed, resolveComponent, openBlock, createBlock, mergeProps, unref, withCtx, createElementVNode, toDisplayString, createElementBlock, normalizeClass, normalizeStyle,
|
|
1
|
+
import { defineComponent, useAttrs, computed, resolveComponent, openBlock, createBlock, mergeProps, unref, withCtx, renderSlot, createElementVNode, toDisplayString, createElementBlock, normalizeClass, normalizeStyle, createVNode } from 'vue';
|
|
2
2
|
import '../../../utils/index.mjs';
|
|
3
3
|
import { tooltipProps } from './tooltip.mjs';
|
|
4
4
|
import { createNamespace } from '../../../utils/create-namespace.mjs';
|
|
@@ -45,13 +45,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
"overlay-class-name": getOverlayClass.value
|
|
46
46
|
}), {
|
|
47
47
|
title: withCtx(() => [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
49
|
+
createElementVNode(
|
|
50
|
+
"span",
|
|
51
|
+
null,
|
|
52
|
+
toDisplayString(_ctx.tip),
|
|
53
|
+
1
|
|
54
|
+
/* TEXT */
|
|
55
|
+
)
|
|
56
|
+
])
|
|
55
57
|
]),
|
|
56
58
|
default: withCtx(() => [
|
|
57
59
|
_ctx.$slots.default ? (openBlock(), createElementBlock(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.vue2.mjs","sources":["../../../../../../packages/components/tooltip/src/tooltip.vue"],"sourcesContent":["<template>\n <a-tooltip\n v-bind=\"attrs\"\n :placement=\"placement\"\n :overlay-style=\"getOverlayStyle\"\n :overlay-class-name=\"getOverlayClass\"\n >\n <!-- title插槽 -->\n <template #title>\n <span>{{ tip }}</span>\n </template>\n <!-- 默认插槽 -->\n <div\n v-if=\"$slots.default\"\n :class=\"getContainerClass\"\n :style=\"getContainerStyle\"\n >\n <slot>\n <ll-icon icon-name=\"icon-question\" />\n </slot>\n </div>\n <slot v-else>\n <ll-icon icon-name=\"icon-question\" />\n </slot>\n </a-tooltip>\n</template>\n\n<script setup lang=\"ts\">\nimport {
|
|
1
|
+
{"version":3,"file":"tooltip.vue2.mjs","sources":["../../../../../../packages/components/tooltip/src/tooltip.vue"],"sourcesContent":["<template>\n <a-tooltip\n v-bind=\"attrs\"\n :placement=\"placement\"\n :overlay-style=\"getOverlayStyle\"\n :overlay-class-name=\"getOverlayClass\"\n >\n <!-- title插槽 -->\n <template #title>\n <slot name=\"title\">\n <span>{{ tip }}</span>\n </slot>\n </template>\n <!-- 默认插槽 -->\n <div\n v-if=\"$slots.default\"\n :class=\"getContainerClass\"\n :style=\"getContainerStyle\"\n >\n <slot>\n <ll-icon icon-name=\"icon-question\" />\n </slot>\n </div>\n <slot v-else>\n <ll-icon icon-name=\"icon-question\" />\n </slot>\n </a-tooltip>\n</template>\n\n<script setup lang=\"ts\">\nimport { addUnit, createNamespace } from '@ll-plus/utils'\nimport { useAttrs } from 'vue'\n\nimport { computed } from 'vue'\nimport { tooltipProps } from './tooltip'\n\n// 1.defineOptions\ndefineOptions({ name: 'LlTooltip' })\n\n// 2.props\nconst props = defineProps(tooltipProps)\nconst attrs = useAttrs()\n\n// 3.computes/const\nconst bem = createNamespace('tooltip')\nconst bemContainer = createNamespace('container-tooltip')\n// 根据ellipsis设置设置插槽容器的文字超出样式\nconst getContainerClass = computed(() => {\n const ellipsisClass = props.ellipsis ? bemContainer.m('ellipsis') : ''\n return `${bemContainer.b()} ${ellipsisClass}`\n})\n// 设置插槽容器的宽度\nconst getContainerStyle = computed(() => {\n const width = addUnit(props.width)\n return {\n width: width ? width : ''\n }\n})\n// 根据ellipsis/width设置设置tip弹窗的类名\nconst getOverlayClass = computed(() => {\n const ellipsisClass = props.tipEllipsis ? bem.m('ellipsis') : ''\n return `${bem.b()} ${ellipsisClass} ${props.overlayClassName}`\n})\n// 根据ellipsis/width设置设置tip弹窗的样式\nconst getOverlayStyle = computed(() => {\n const maxWidth = addUnit(props.maxWidth)\n return {\n WebkitLineClamp: props.tipEllipsis ? props.tipEllipsisLine : 'none',\n 'max-width': maxWidth,\n ...props.overlayStyle\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;AAwCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAGvB,IAAM,MAAA,GAAA,GAAM,gBAAgB,SAAS,CAAA,CAAA;AACrC,IAAM,MAAA,YAAA,GAAe,gBAAgB,mBAAmB,CAAA,CAAA;AAExD,IAAM,MAAA,iBAAA,GAAoB,SAAS,MAAM;AACvC,MAAA,MAAM,gBAAgB,KAAM,CAAA,QAAA,GAAW,YAAa,CAAA,CAAA,CAAE,UAAU,CAAI,GAAA,EAAA,CAAA;AACpE,MAAA,OAAO,CAAG,EAAA,YAAA,CAAa,CAAE,EAAC,IAAI,aAAa,CAAA,CAAA,CAAA;AAAA,KAC5C,CAAA,CAAA;AAED,IAAM,MAAA,iBAAA,GAAoB,SAAS,MAAM;AACvC,MAAM,MAAA,KAAA,GAAQ,OAAQ,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AACjC,MAAO,OAAA;AAAA,QACL,KAAA,EAAO,QAAQ,KAAQ,GAAA,EAAA;AAAA,OACzB,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,eAAA,GAAkB,SAAS,MAAM;AACrC,MAAA,MAAM,gBAAgB,KAAM,CAAA,WAAA,GAAc,GAAI,CAAA,CAAA,CAAE,UAAU,CAAI,GAAA,EAAA,CAAA;AAC9D,MAAO,OAAA,CAAA,EAAG,IAAI,CAAE,EAAC,IAAI,aAAa,CAAA,CAAA,EAAI,MAAM,gBAAgB,CAAA,CAAA,CAAA;AAAA,KAC7D,CAAA,CAAA;AAED,IAAM,MAAA,eAAA,GAAkB,SAAS,MAAM;AACrC,MAAM,MAAA,QAAA,GAAW,OAAQ,CAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AACvC,MAAO,OAAA;AAAA,QACL,eAAiB,EAAA,KAAA,CAAM,WAAc,GAAA,KAAA,CAAM,eAAkB,GAAA,MAAA;AAAA,QAC7D,WAAa,EAAA,QAAA;AAAA,QACb,GAAG,KAAM,CAAA,YAAA;AAAA,OACX,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|