@sdata/web-vue 1.11.1 → 1.12.0
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/sd.css +177 -6
- package/dist/sd.min.css +1 -1
- package/es/_components/select-view/style/index.css +13 -6
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +2 -2
- package/es/_hooks/use-allow-search.d.ts +10 -0
- package/es/_hooks/use-allow-search.js +31 -0
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_utils/color.js +1 -1
- package/es/_utils/date.js +7 -1
- package/es/_utils/dom.js +1 -1
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +1 -1
- package/es/_utils/virtual-dropdown.js +1 -1
- package/es/_utils/vue-utils.js +4 -18
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/typeof.js +1 -1
- package/es/affix/affix.vue_vue_type_script_lang.js +31 -3
- package/es/alert/alert.vue_vue_type_script_lang.js +55 -0
- package/es/anchor/anchor-link.vue_vue_type_script_lang.js +8 -0
- package/es/anchor/anchor.vue_vue_type_script_lang.js +32 -0
- package/es/auto-complete/auto-complete.js +102 -0
- package/es/avatar/avatar-group.js +31 -0
- package/es/avatar/avatar.vue_vue_type_script_lang.js +51 -1
- package/es/back-top/back-top.vue_vue_type_script_lang.js +16 -0
- package/es/badge/badge.js +34 -1
- package/es/breadcrumb/breadcrumb-item.js +27 -0
- package/es/breadcrumb/breadcrumb.js +39 -0
- package/es/button/button-group.vue_vue_type_script_lang.js +22 -0
- package/es/button/button.vue_vue_type_script_lang.js +58 -1
- package/es/calendar/calendar.js +47 -0
- package/es/calendar/month.js +1 -1
- package/es/calendar/year.js +1 -1
- package/es/card/card-grid.vue_vue_type_script_lang.js +6 -1
- package/es/card/card-meta.js +23 -0
- package/es/card/card.js +54 -0
- package/es/carousel/carousel.js +68 -1
- package/es/cascader/cascader-panel.js +2 -28
- package/es/cascader/cascader-panel.vue.d.ts +24 -306
- package/es/cascader/{cascader-panel.vue_vue_type_script_lang.js → cascader-panel.vue_vue_type_script_setup_true_lang.js} +92 -101
- package/es/cascader/cascader.js +2 -145
- package/es/cascader/cascader.vue.d.ts +53 -1289
- package/es/cascader/{cascader.vue_vue_type_script_lang.js → cascader.vue_vue_type_script_setup_true_lang.js} +236 -172
- package/es/cascader/index.d.ts +4 -2986
- package/es/cascader/types.d.ts +79 -0
- package/es/checkbox/checkbox-group.js +48 -0
- package/es/checkbox/checkbox.js +35 -0
- package/es/collapse/collapse-item.js +36 -0
- package/es/collapse/collapse.vue_vue_type_script_lang.js +47 -0
- package/es/color-picker/color-picker.js +90 -1
- package/es/color-picker/panel.js +5 -2
- package/es/color-picker/utils.js +1 -1
- package/es/comment/comment.js +47 -1
- package/es/components.d.ts +132 -127
- package/es/config-provider/config-provider.vue.d.ts +9 -0
- package/es/config-provider/config-provider.vue_vue_type_script_lang.js +72 -1
- package/es/config-provider/context.d.ts +1 -0
- package/es/config-provider/index.d.ts +15 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/theme.js +1 -1
- package/es/copy/copy.js +5 -0
- package/es/copy/copy.vue.d.ts +15 -0
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +95 -0
- package/es/copy/index.d.ts +15 -0
- package/es/copy/index.js +10 -0
- package/es/copy/style/css.js +2 -0
- package/es/copy/style/index.css +25 -0
- package/es/copy/style/index.d.ts +2 -0
- package/es/copy/style/index.js +2 -0
- package/es/copy/style/index.scss +15 -0
- package/es/copy/style/token.scss +3 -0
- package/es/copy/types.d.ts +21 -0
- package/es/cropper/cropper.js +5 -0
- package/es/cropper/cropper.vue.d.ts +45 -0
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +266 -0
- package/es/cropper/index.d.ts +130 -0
- package/es/cropper/index.js +10 -0
- package/es/cropper/interface.d.ts +59 -0
- package/es/cropper/style/css.js +2 -0
- package/es/cropper/style/index.css +51 -0
- package/es/cropper/style/index.d.ts +2 -0
- package/es/cropper/style/index.js +2 -0
- package/es/cropper/style/index.scss +43 -0
- package/es/cropper/style/token.scss +8 -0
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/index.d.ts +54 -576
- package/es/date-picker/panels/date/index.js +1 -1
- package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/footer.vue.d.ts +55 -577
- package/es/date-picker/panels/footer.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/month/index.js +1 -1
- package/es/date-picker/panels/quarter/index.js +1 -1
- package/es/date-picker/panels/year/index.js +1 -1
- package/es/date-picker/picker-panel.vue.d.ts +54 -576
- package/es/date-picker/picker.js +1 -1
- package/es/date-picker/picker.vue.d.ts +54 -576
- package/es/date-picker/picker.vue_vue_type_script_lang.js +193 -1
- package/es/date-picker/pickers/date-picker.js +42 -0
- package/es/date-picker/pickers/month-picker.js +12 -0
- package/es/date-picker/pickers/quarter-picker.js +17 -0
- package/es/date-picker/pickers/week-picker.js +23 -0
- package/es/date-picker/pickers/year-picker.js +12 -0
- package/es/date-picker/range-picker-panel.vue.d.ts +54 -576
- package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/range-picker.js +1 -1
- package/es/date-picker/range-picker.vue.d.ts +54 -576
- package/es/date-picker/range-picker.vue_vue_type_script_lang.js +120 -1
- package/es/descriptions/descriptions-item.vue_vue_type_script_lang.js +16 -0
- package/es/descriptions/descriptions.js +65 -1
- package/es/divider/divider.js +24 -0
- package/es/drawer/drawer.vue_vue_type_script_lang.js +161 -2
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue_vue_type_script_lang.js +70 -0
- package/es/dropdown/dropdown-group.vue_vue_type_script_lang.js +12 -1
- package/es/dropdown/dropdown-option.vue_vue_type_script_lang.js +20 -1
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_lang.js +57 -0
- package/es/dropdown/dropdown.vue_vue_type_script_lang.js +55 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +25 -2
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +24 -1
- package/es/empty/empty.js +18 -0
- package/es/form/form-item.vue_vue_type_script_lang.js +146 -3
- package/es/form/form.vue_vue_type_script_lang.js +108 -0
- package/es/grid/grid-col.vue_vue_type_script_lang.js +42 -1
- package/es/grid/grid-item.vue_vue_type_script_lang.js +13 -1
- package/es/grid/grid-row.vue_vue_type_script_lang.js +21 -0
- package/es/grid/grid.vue_vue_type_script_lang.js +20 -0
- package/es/icon.js +5 -5
- package/es/image/image.js +1 -1
- package/es/image/image.vue_vue_type_script_lang.js +82 -0
- package/es/image/preview-action.js +8 -0
- package/es/image/preview-group.js +1 -1
- package/es/image/preview-group.vue_vue_type_script_lang.js +48 -0
- package/es/image/preview-toolbar.vue_vue_type_script_lang.js +1 -0
- package/es/image/preview.vue_vue_type_script_lang.js +56 -1
- package/es/index.css +177 -6
- package/es/index.d.ts +9 -1
- package/es/index.js +6 -2
- package/es/index.scss +4 -0
- package/es/input/input-password.vue_vue_type_script_lang.js +13 -0
- package/es/input/input-search.js +35 -1
- package/es/input/input.js +129 -1
- package/es/input-number/index.d.ts +35 -23
- package/es/input-number/input-number.d.ts +19 -10
- package/es/input-number/input-number.js +205 -23
- package/es/input-tag/input-tag.js +137 -1
- package/es/input-tag/style/index.css +13 -6
- package/es/input-tag/utils.js +1 -1
- package/es/layout/content.js +5 -0
- package/es/layout/footer.js +5 -0
- package/es/layout/header.js +5 -0
- package/es/layout/layout.vue_vue_type_script_lang.js +6 -1
- package/es/layout/sider.vue_vue_type_script_lang.js +46 -0
- package/es/link/index.d.ts +44 -564
- package/es/link/interface.d.ts +15 -0
- package/es/link/link.js +2 -17
- package/es/link/link.vue.d.ts +31 -286
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +112 -0
- package/es/link/style/index.css +6 -0
- package/es/link/style/index.scss +10 -0
- package/es/list/list-item-meta.vue_vue_type_script_lang.js +23 -0
- package/es/list/list-item.js +21 -1
- package/es/list/list.js +104 -2
- package/es/mention/mention.js +87 -1
- package/es/menu/base-menu.vue_vue_type_script_lang.js +102 -0
- package/es/menu/item-group.vue_vue_type_script_lang.js +11 -1
- package/es/menu/item.d.ts +1 -1
- package/es/menu/item.js +13 -2
- package/es/menu/menu.js +2 -1
- package/es/menu/sub-menu-pop.vue.d.ts +1 -1
- package/es/menu/sub-menu.js +40 -1
- package/es/message/index.js +1 -1
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue_vue_type_script_lang.js +193 -2
- package/es/notification/index.js +1 -1
- package/es/overflow-list/overflow-list.js +25 -1
- package/es/page-header/page-header.vue_vue_type_script_lang.js +38 -0
- package/es/pagination/page-jumper.vue.d.ts +35 -22
- package/es/pagination/pagination.js +122 -0
- package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +95 -1
- package/es/popover/popover.vue_vue_type_script_lang.js +62 -0
- package/es/progress/line.vue_vue_type_script_lang.js +1 -1
- package/es/progress/progress.vue_vue_type_script_lang.js +48 -0
- package/es/radio/radio-group.js +53 -0
- package/es/radio/radio.js +36 -0
- package/es/rate/rate.js +54 -0
- package/es/resize-box/resize-box.vue_vue_type_script_lang.js +47 -1
- package/es/result/result.vue_vue_type_script_lang.js +40 -0
- package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +108 -2
- package/es/sd-vue.js +10 -2
- package/es/secret/index.d.ts +48 -0
- package/es/secret/index.js +10 -0
- package/es/secret/secret.js +5 -0
- package/es/secret/secret.vue.d.ts +17 -0
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +64 -0
- package/es/secret/style/css.js +2 -0
- package/es/secret/style/index.css +54 -0
- package/es/secret/style/index.d.ts +2 -0
- package/es/secret/style/index.js +2 -0
- package/es/secret/style/index.scss +48 -0
- package/es/secret/style/token.scss +9 -0
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/optgroup.vue_vue_type_script_lang.js +12 -1
- package/es/select/option.vue_vue_type_script_lang.js +27 -0
- package/es/select/select.js +8 -6
- package/es/select/utils.js +1 -1
- package/es/skeleton/line.vue_vue_type_script_lang.js +16 -0
- package/es/skeleton/shape.vue_vue_type_script_lang.js +10 -0
- package/es/skeleton/skeleton.vue_vue_type_script_lang.js +8 -0
- package/es/slider/index.d.ts +66 -42
- package/es/slider/slider-input.vue.d.ts +33 -21
- package/es/slider/slider.vue.d.ts +33 -21
- package/es/slider/slider.vue_vue_type_script_lang.js +55 -0
- package/es/space/space.js +27 -0
- package/es/spin/spin.js +35 -0
- package/es/split/split.vue_vue_type_script_lang.js +62 -1
- package/es/statistic/countdown.vue_vue_type_script_lang.js +36 -1
- package/es/statistic/statistic.vue_vue_type_script_lang.js +74 -0
- package/es/steps/step.vue_vue_type_script_lang.js +36 -0
- package/es/steps/steps.vue_vue_type_script_lang.js +47 -0
- package/es/switch/switch.vue_vue_type_script_lang.js +98 -1
- package/es/table/table-column.js +115 -0
- package/es/table/table-operation-td.js +1 -1
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.js +1 -1
- package/es/table/table.js +442 -3
- package/es/table/utils.js +1 -1
- package/es/tabs/tab-pane.vue_vue_type_script_lang.js +23 -1
- package/es/tabs/tabs.js +104 -0
- package/es/tag/index.d.ts +29237 -74
- package/es/tag/interface.d.ts +9 -1
- package/es/tag/style/index.css +13 -6
- package/es/tag/style/index.scss +16 -4
- package/es/tag/tag.js +26 -5
- package/es/tag/tag.vue.d.ts +11688 -7
- package/es/tag/tag.vue_vue_type_script_lang.js +139 -3
- package/es/tag-group/index.d.ts +64 -0
- package/es/tag-group/index.js +10 -0
- package/es/tag-group/interface.d.ts +18 -0
- package/es/tag-group/style/css.js +2 -0
- package/es/tag-group/style/index.css +92 -0
- package/es/tag-group/style/index.d.ts +2 -0
- package/es/tag-group/style/index.js +2 -0
- package/es/tag-group/style/index.scss +108 -0
- package/es/tag-group/style/token.scss +6 -0
- package/es/tag-group/tag-group.js +5 -0
- package/es/tag-group/tag-group.vue.d.ts +46 -0
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +360 -0
- package/es/textarea/textarea.vue_vue_type_script_lang.js +90 -1
- package/es/time-picker/range-panel.js +1 -1
- package/es/time-picker/time-picker.js +1 -1
- package/es/time-picker/time-picker.vue_vue_type_script_lang.js +132 -0
- package/es/timeline/item.vue_vue_type_script_lang.js +38 -1
- package/es/timeline/timeline.js +28 -0
- package/es/tooltip/tooltip.vue_vue_type_script_lang.js +61 -1
- package/es/transfer/transfer.vue_vue_type_script_lang.js +136 -0
- package/es/tree/base-node.vue_vue_type_script_lang.js +7 -0
- package/es/tree/node.js +1 -1
- package/es/tree/tree.vue_vue_type_script_lang.js +287 -2
- package/es/tree/utils/tree-data.js +1 -1
- package/es/tree-select/hooks/use-selected-state.js +1 -1
- package/es/tree-select/panel.js +1 -1
- package/es/tree-select/tree-select.js +1 -1
- package/es/tree-select/tree-select.vue_vue_type_script_lang.js +281 -8
- package/es/trigger/trigger.js +161 -1
- package/es/trigger/utils.js +1 -1
- package/es/typography/base.d.ts +7 -0
- package/es/typography/base.js +127 -3
- package/es/typography/interface.d.ts +2 -0
- package/es/typography/operations.js +30 -0
- package/es/typography/paragraph.js +8 -0
- package/es/typography/title.js +6 -1
- package/es/upload/upload.js +279 -2
- package/es/verification-code/verification-code.js +59 -0
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/watermark.js +58 -1
- package/es/web-vue.css +24 -24
- package/json/vetur-attributes.json +134 -218
- package/json/vetur-tags.json +58 -67
- package/json/web-types.json +304 -493
- package/package.json +9 -7
- package/es/_utils/clipboard.d.ts +0 -1
- package/es/_utils/clipboard.js +0 -35
- package/es/link/link.vue_vue_type_script_lang.js +0 -56
package/es/link/link.vue.d.ts
CHANGED
|
@@ -1,291 +1,36 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}>, {
|
|
19
|
-
cls: import("vue").ComputedRef<(string | {
|
|
20
|
-
[x: string]: boolean;
|
|
21
|
-
})[]>;
|
|
22
|
-
prefixCls: string;
|
|
23
|
-
showIcon: import("vue").ComputedRef<boolean>;
|
|
24
|
-
handleClick: (ev: MouseEvent) => void;
|
|
25
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
-
click: (_ev: MouseEvent) => true;
|
|
27
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
-
href: StringConstructor;
|
|
29
|
-
status: {
|
|
30
|
-
type: PropType<Status>;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
|
-
hoverable: {
|
|
34
|
-
type: BooleanConstructor;
|
|
35
|
-
default: boolean;
|
|
36
|
-
};
|
|
37
|
-
icon: BooleanConstructor;
|
|
38
|
-
loading: BooleanConstructor;
|
|
39
|
-
disabled: BooleanConstructor;
|
|
40
|
-
}>> & Readonly<{
|
|
41
|
-
onClick?: ((_ev: MouseEvent) => any) | undefined;
|
|
1
|
+
import type { LinkProps } from './interface';
|
|
2
|
+
declare var __VLS_12: {}, __VLS_19: {}, __VLS_32: {}, __VLS_35: {}, __VLS_37: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
icon?: (props: typeof __VLS_12) => any;
|
|
5
|
+
} & {
|
|
6
|
+
icon?: (props: typeof __VLS_19) => any;
|
|
7
|
+
} & {
|
|
8
|
+
default?: (props: typeof __VLS_32) => any;
|
|
9
|
+
} & {
|
|
10
|
+
tooltip?: (props: typeof __VLS_35) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_37) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
click: (ev: MouseEvent) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{
|
|
17
|
+
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
42
18
|
}>, {
|
|
43
|
-
status: "
|
|
19
|
+
status: import("..").Status;
|
|
44
20
|
disabled: boolean;
|
|
45
21
|
loading: boolean;
|
|
46
22
|
icon: boolean;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
validator: (value: any) => boolean;
|
|
62
|
-
};
|
|
63
|
-
strokeLinejoin: {
|
|
64
|
-
type: StringConstructor;
|
|
65
|
-
default: string;
|
|
66
|
-
validator: (value: any) => boolean;
|
|
67
|
-
};
|
|
68
|
-
rotate: NumberConstructor;
|
|
69
|
-
spin: BooleanConstructor;
|
|
70
|
-
}>> & Readonly<{
|
|
71
|
-
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
72
|
-
}>, {
|
|
73
|
-
cls: import("vue").ComputedRef<(string | {
|
|
74
|
-
[x: string]: boolean;
|
|
75
|
-
})[]>;
|
|
76
|
-
innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
77
|
-
svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
|
|
78
|
-
onClick: (ev: MouseEvent) => void;
|
|
79
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
80
|
-
click: (ev: MouseEvent) => true;
|
|
81
|
-
}, import("vue").PublicProps, {
|
|
82
|
-
spin: boolean;
|
|
83
|
-
strokeWidth: number;
|
|
84
|
-
strokeLinecap: string;
|
|
85
|
-
strokeLinejoin: string;
|
|
86
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
87
|
-
P: {};
|
|
88
|
-
B: {};
|
|
89
|
-
D: {};
|
|
90
|
-
C: {};
|
|
91
|
-
M: {};
|
|
92
|
-
Defaults: {};
|
|
93
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
94
|
-
size: {
|
|
95
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
96
|
-
};
|
|
97
|
-
strokeWidth: {
|
|
98
|
-
type: NumberConstructor;
|
|
99
|
-
default: number;
|
|
100
|
-
};
|
|
101
|
-
strokeLinecap: {
|
|
102
|
-
type: StringConstructor;
|
|
103
|
-
default: string;
|
|
104
|
-
validator: (value: any) => boolean;
|
|
105
|
-
};
|
|
106
|
-
strokeLinejoin: {
|
|
107
|
-
type: StringConstructor;
|
|
108
|
-
default: string;
|
|
109
|
-
validator: (value: any) => boolean;
|
|
110
|
-
};
|
|
111
|
-
rotate: NumberConstructor;
|
|
112
|
-
spin: BooleanConstructor;
|
|
113
|
-
}>> & Readonly<{
|
|
114
|
-
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
115
|
-
}>, {
|
|
116
|
-
cls: import("vue").ComputedRef<(string | {
|
|
117
|
-
[x: string]: boolean;
|
|
118
|
-
})[]>;
|
|
119
|
-
innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
120
|
-
svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
|
|
121
|
-
onClick: (ev: MouseEvent) => void;
|
|
122
|
-
}, {}, {}, {}, {
|
|
123
|
-
spin: boolean;
|
|
124
|
-
strokeWidth: number;
|
|
125
|
-
strokeLinecap: string;
|
|
126
|
-
strokeLinejoin: string;
|
|
127
|
-
}>;
|
|
128
|
-
__isFragment?: never;
|
|
129
|
-
__isTeleport?: never;
|
|
130
|
-
__isSuspense?: never;
|
|
131
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
132
|
-
size: {
|
|
133
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
134
|
-
};
|
|
135
|
-
strokeWidth: {
|
|
136
|
-
type: NumberConstructor;
|
|
137
|
-
default: number;
|
|
138
|
-
};
|
|
139
|
-
strokeLinecap: {
|
|
140
|
-
type: StringConstructor;
|
|
141
|
-
default: string;
|
|
142
|
-
validator: (value: any) => boolean;
|
|
143
|
-
};
|
|
144
|
-
strokeLinejoin: {
|
|
145
|
-
type: StringConstructor;
|
|
146
|
-
default: string;
|
|
147
|
-
validator: (value: any) => boolean;
|
|
148
|
-
};
|
|
149
|
-
rotate: NumberConstructor;
|
|
150
|
-
spin: BooleanConstructor;
|
|
151
|
-
}>> & Readonly<{
|
|
152
|
-
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
153
|
-
}>, {
|
|
154
|
-
cls: import("vue").ComputedRef<(string | {
|
|
155
|
-
[x: string]: boolean;
|
|
156
|
-
})[]>;
|
|
157
|
-
innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
158
|
-
svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
|
|
159
|
-
onClick: (ev: MouseEvent) => void;
|
|
160
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
161
|
-
click: (ev: MouseEvent) => true;
|
|
162
|
-
}, string, {
|
|
163
|
-
spin: boolean;
|
|
164
|
-
strokeWidth: number;
|
|
165
|
-
strokeLinecap: string;
|
|
166
|
-
strokeLinejoin: string;
|
|
167
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
168
|
-
install: (app: import("vue").App, options?: import("../_utils/types").SDIconOptions) => void;
|
|
169
|
-
};
|
|
170
|
-
IconLoading: {
|
|
171
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
172
|
-
size: {
|
|
173
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
174
|
-
};
|
|
175
|
-
strokeWidth: {
|
|
176
|
-
type: NumberConstructor;
|
|
177
|
-
default: number;
|
|
178
|
-
};
|
|
179
|
-
strokeLinecap: {
|
|
180
|
-
type: StringConstructor;
|
|
181
|
-
default: string;
|
|
182
|
-
validator: (value: any) => boolean;
|
|
183
|
-
};
|
|
184
|
-
strokeLinejoin: {
|
|
185
|
-
type: StringConstructor;
|
|
186
|
-
default: string;
|
|
187
|
-
validator: (value: any) => boolean;
|
|
188
|
-
};
|
|
189
|
-
rotate: NumberConstructor;
|
|
190
|
-
spin: BooleanConstructor;
|
|
191
|
-
}>> & Readonly<{
|
|
192
|
-
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
193
|
-
}>, {
|
|
194
|
-
cls: import("vue").ComputedRef<(string | {
|
|
195
|
-
[x: string]: boolean;
|
|
196
|
-
})[]>;
|
|
197
|
-
innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
198
|
-
svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
|
|
199
|
-
onClick: (ev: MouseEvent) => void;
|
|
200
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
201
|
-
click: (ev: MouseEvent) => true;
|
|
202
|
-
}, import("vue").PublicProps, {
|
|
203
|
-
spin: boolean;
|
|
204
|
-
strokeWidth: number;
|
|
205
|
-
strokeLinecap: string;
|
|
206
|
-
strokeLinejoin: string;
|
|
207
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
208
|
-
P: {};
|
|
209
|
-
B: {};
|
|
210
|
-
D: {};
|
|
211
|
-
C: {};
|
|
212
|
-
M: {};
|
|
213
|
-
Defaults: {};
|
|
214
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
215
|
-
size: {
|
|
216
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
217
|
-
};
|
|
218
|
-
strokeWidth: {
|
|
219
|
-
type: NumberConstructor;
|
|
220
|
-
default: number;
|
|
221
|
-
};
|
|
222
|
-
strokeLinecap: {
|
|
223
|
-
type: StringConstructor;
|
|
224
|
-
default: string;
|
|
225
|
-
validator: (value: any) => boolean;
|
|
226
|
-
};
|
|
227
|
-
strokeLinejoin: {
|
|
228
|
-
type: StringConstructor;
|
|
229
|
-
default: string;
|
|
230
|
-
validator: (value: any) => boolean;
|
|
231
|
-
};
|
|
232
|
-
rotate: NumberConstructor;
|
|
233
|
-
spin: BooleanConstructor;
|
|
234
|
-
}>> & Readonly<{
|
|
235
|
-
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
236
|
-
}>, {
|
|
237
|
-
cls: import("vue").ComputedRef<(string | {
|
|
238
|
-
[x: string]: boolean;
|
|
239
|
-
})[]>;
|
|
240
|
-
innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
241
|
-
svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
|
|
242
|
-
onClick: (ev: MouseEvent) => void;
|
|
243
|
-
}, {}, {}, {}, {
|
|
244
|
-
spin: boolean;
|
|
245
|
-
strokeWidth: number;
|
|
246
|
-
strokeLinecap: string;
|
|
247
|
-
strokeLinejoin: string;
|
|
248
|
-
}>;
|
|
249
|
-
__isFragment?: never;
|
|
250
|
-
__isTeleport?: never;
|
|
251
|
-
__isSuspense?: never;
|
|
252
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
253
|
-
size: {
|
|
254
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
255
|
-
};
|
|
256
|
-
strokeWidth: {
|
|
257
|
-
type: NumberConstructor;
|
|
258
|
-
default: number;
|
|
259
|
-
};
|
|
260
|
-
strokeLinecap: {
|
|
261
|
-
type: StringConstructor;
|
|
262
|
-
default: string;
|
|
263
|
-
validator: (value: any) => boolean;
|
|
264
|
-
};
|
|
265
|
-
strokeLinejoin: {
|
|
266
|
-
type: StringConstructor;
|
|
267
|
-
default: string;
|
|
268
|
-
validator: (value: any) => boolean;
|
|
269
|
-
};
|
|
270
|
-
rotate: NumberConstructor;
|
|
271
|
-
spin: BooleanConstructor;
|
|
272
|
-
}>> & Readonly<{
|
|
273
|
-
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
274
|
-
}>, {
|
|
275
|
-
cls: import("vue").ComputedRef<(string | {
|
|
276
|
-
[x: string]: boolean;
|
|
277
|
-
})[]>;
|
|
278
|
-
innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
279
|
-
svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
|
|
280
|
-
onClick: (ev: MouseEvent) => void;
|
|
281
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
282
|
-
click: (ev: MouseEvent) => true;
|
|
283
|
-
}, string, {
|
|
284
|
-
spin: boolean;
|
|
285
|
-
strokeWidth: number;
|
|
286
|
-
strokeLinecap: string;
|
|
287
|
-
strokeLinejoin: string;
|
|
288
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
289
|
-
install: (app: import("vue").App, options?: import("../_utils/types").SDIconOptions) => void;
|
|
23
|
+
ellipsis: boolean;
|
|
24
|
+
ellipsisLineClamp: number | string;
|
|
25
|
+
ellipsisExpandTrigger: "click";
|
|
26
|
+
ellipsisTooltip: boolean | import("..").EllipsisTooltipProps;
|
|
27
|
+
iconTooltip: string;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
290
35
|
};
|
|
291
|
-
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
2
|
+
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
+
import IconLoading from "../icon/icon-loading/index.js";
|
|
4
|
+
import Tooltip from "../tooltip/index.js";
|
|
5
|
+
import { PerformantEllipsis } from "../ellipsis/index.js";
|
|
6
|
+
import { hasPropOrSlot } from "../_utils/use-prop-or-slot.js";
|
|
7
|
+
import IconLink from "../icon/icon-link/index.js";
|
|
8
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createSlots, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, useSlots, withCtx } from "vue";
|
|
9
|
+
//#region components/link/link.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var _hoisted_1 = ["href"];
|
|
11
|
+
var link_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Link" }), {}, {
|
|
12
|
+
__name: "link",
|
|
13
|
+
props: {
|
|
14
|
+
href: {},
|
|
15
|
+
status: { default: "normal" },
|
|
16
|
+
hoverable: { type: Boolean },
|
|
17
|
+
icon: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
ellipsis: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
24
|
+
},
|
|
25
|
+
ellipsisLineClamp: { default: void 0 },
|
|
26
|
+
ellipsisExpandTrigger: { default: void 0 },
|
|
27
|
+
ellipsisTooltip: {
|
|
28
|
+
type: [Boolean, Object],
|
|
29
|
+
default: true
|
|
30
|
+
},
|
|
31
|
+
iconTooltip: { default: void 0 },
|
|
32
|
+
loading: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
disabled: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["click"],
|
|
42
|
+
setup(__props, { emit: __emit }) {
|
|
43
|
+
const emit = __emit;
|
|
44
|
+
const props = __props;
|
|
45
|
+
const slots = useSlots();
|
|
46
|
+
const prefixCls = getPrefixCls("link");
|
|
47
|
+
const showIcon = hasPropOrSlot(props, slots, "icon");
|
|
48
|
+
const hasDefaultSlot = computed(() => Boolean(slots.default));
|
|
49
|
+
const resolvedHoverable = computed(() => {
|
|
50
|
+
var _props$hoverable;
|
|
51
|
+
return (_props$hoverable = props.hoverable) !== null && _props$hoverable !== void 0 ? _props$hoverable : hasDefaultSlot.value;
|
|
52
|
+
});
|
|
53
|
+
const shouldRenderEllipsis = computed(() => props.ellipsis && hasDefaultSlot.value);
|
|
54
|
+
const handleClick = (ev) => {
|
|
55
|
+
if (props.disabled || props.loading) {
|
|
56
|
+
ev.preventDefault();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
emit("click", ev);
|
|
60
|
+
};
|
|
61
|
+
const cls = computed(() => [
|
|
62
|
+
prefixCls,
|
|
63
|
+
`${prefixCls}-status-${props.status}`,
|
|
64
|
+
{
|
|
65
|
+
[`${prefixCls}-disabled`]: props.disabled,
|
|
66
|
+
[`${prefixCls}-loading`]: props.loading,
|
|
67
|
+
[`${prefixCls}-hoverless`]: !resolvedHoverable.value,
|
|
68
|
+
[`${prefixCls}-with-icon`]: props.loading || showIcon.value,
|
|
69
|
+
[`${prefixCls}-icon-only`]: !hasDefaultSlot.value && (props.loading || showIcon.value)
|
|
70
|
+
}
|
|
71
|
+
]);
|
|
72
|
+
return (_ctx, _cache) => {
|
|
73
|
+
return openBlock(), createElementBlock("a", {
|
|
74
|
+
href: __props.disabled ? void 0 : __props.href,
|
|
75
|
+
class: normalizeClass(cls.value),
|
|
76
|
+
onClick: handleClick
|
|
77
|
+
}, [__props.loading || unref(showIcon) ? (openBlock(), createElementBlock("span", {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: normalizeClass(`${unref(prefixCls)}-icon`)
|
|
80
|
+
}, [__props.loading ? (openBlock(), createBlock(unref(IconLoading), { key: 0 })) : __props.iconTooltip ? (openBlock(), createBlock(unref(Tooltip), {
|
|
81
|
+
key: 1,
|
|
82
|
+
content: __props.iconTooltip
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(unref(IconLink))])]),
|
|
85
|
+
_: 3
|
|
86
|
+
}, 8, ["content"])) : renderSlot(_ctx.$slots, "icon", { key: 2 }, () => [createVNode(unref(IconLink))])], 2)) : createCommentVNode("", true), shouldRenderEllipsis.value ? (openBlock(), createBlock(unref(PerformantEllipsis), {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: normalizeClass(`${unref(prefixCls)}-content`),
|
|
89
|
+
"line-clamp": __props.ellipsisLineClamp,
|
|
90
|
+
"expand-trigger": __props.ellipsisExpandTrigger,
|
|
91
|
+
tooltip: __props.ellipsisTooltip
|
|
92
|
+
}, createSlots({
|
|
93
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
94
|
+
_: 2
|
|
95
|
+
}, [_ctx.$slots.tooltip ? {
|
|
96
|
+
name: "tooltip",
|
|
97
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltip")]),
|
|
98
|
+
key: "0"
|
|
99
|
+
} : void 0]), 1032, [
|
|
100
|
+
"class",
|
|
101
|
+
"line-clamp",
|
|
102
|
+
"expand-trigger",
|
|
103
|
+
"tooltip"
|
|
104
|
+
])) : hasDefaultSlot.value ? (openBlock(), createElementBlock("span", {
|
|
105
|
+
key: 2,
|
|
106
|
+
class: normalizeClass(`${unref(prefixCls)}-content`)
|
|
107
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("", true)], 10, _hoisted_1);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}));
|
|
111
|
+
//#endregion
|
|
112
|
+
export { link_vue_vue_type_script_setup_true_lang_default as default };
|
package/es/link/style/index.css
CHANGED
package/es/link/style/index.scss
CHANGED
|
@@ -120,4 +120,14 @@ $link-prefix-cls: string.unquote('#{theme.$prefix}-link');
|
|
|
120
120
|
font-size: $link-size-icon;
|
|
121
121
|
vertical-align: middle;
|
|
122
122
|
}
|
|
123
|
+
|
|
124
|
+
&-content {
|
|
125
|
+
min-width: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&#{&}-icon-only {
|
|
129
|
+
.#{$link-prefix-cls}-icon {
|
|
130
|
+
margin-right: 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
123
133
|
}
|
|
@@ -4,9 +4,32 @@ import { defineComponent } from "vue";
|
|
|
4
4
|
var list_item_meta_vue_vue_type_script_lang_default = defineComponent({
|
|
5
5
|
name: "ListItemMeta",
|
|
6
6
|
props: {
|
|
7
|
+
/**
|
|
8
|
+
* @zh 标题
|
|
9
|
+
* @en Title
|
|
10
|
+
*/
|
|
7
11
|
title: String,
|
|
12
|
+
/**
|
|
13
|
+
* @zh 描述内容
|
|
14
|
+
* @en Description
|
|
15
|
+
*/
|
|
8
16
|
description: String
|
|
9
17
|
},
|
|
18
|
+
/**
|
|
19
|
+
* @zh 标题
|
|
20
|
+
* @en Title
|
|
21
|
+
* @slot title
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* @zh 描述内容
|
|
25
|
+
* @en Description
|
|
26
|
+
* @slot description
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @zh 头像
|
|
30
|
+
* @en Avatar
|
|
31
|
+
* @slot avatar
|
|
32
|
+
*/
|
|
10
33
|
setup(props, { slots }) {
|
|
11
34
|
return {
|
|
12
35
|
prefixCls: getPrefixCls("list-item-meta"),
|
package/es/list/list-item.js
CHANGED
|
@@ -3,10 +3,30 @@ import { createVNode, defineComponent } from "vue";
|
|
|
3
3
|
//#region components/list/list-item.tsx
|
|
4
4
|
var list_item_default = /* @__PURE__ */ defineComponent({
|
|
5
5
|
name: "ListItem",
|
|
6
|
-
props: {
|
|
6
|
+
props: {
|
|
7
|
+
/**
|
|
8
|
+
* @zh 操作组排列方向
|
|
9
|
+
* @en Operation group arrangement direction
|
|
10
|
+
*/
|
|
11
|
+
actionLayout: {
|
|
7
12
|
type: String,
|
|
8
13
|
default: "horizontal"
|
|
9
14
|
} },
|
|
15
|
+
/**
|
|
16
|
+
* @zh 操作组
|
|
17
|
+
* @en Actions
|
|
18
|
+
* @slot actions
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* @zh 额外内容
|
|
22
|
+
* @en Extra content
|
|
23
|
+
* @slot extra
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* @zh meta信息
|
|
27
|
+
* @en Meta data
|
|
28
|
+
* @slot meta
|
|
29
|
+
*/
|
|
10
30
|
setup(props, { slots }) {
|
|
11
31
|
const prefixCls = getPrefixCls("list-item");
|
|
12
32
|
const renderAction = () => {
|
package/es/list/list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isNumber } from "../_utils/is.js";
|
|
5
5
|
import { getAllElements } from "../_utils/vue-utils.js";
|
|
@@ -21,49 +21,144 @@ function _isSlot(s) {
|
|
|
21
21
|
var list_default = /* @__PURE__ */ defineComponent({
|
|
22
22
|
name: "List",
|
|
23
23
|
props: {
|
|
24
|
+
/**
|
|
25
|
+
* @zh 列表数据,需要和 `item` 插槽同时使用
|
|
26
|
+
* @en List data, need to be used with `item` slot at the same time
|
|
27
|
+
*/
|
|
24
28
|
data: { type: Array },
|
|
29
|
+
/**
|
|
30
|
+
* @zh 列表大小
|
|
31
|
+
* @en List size
|
|
32
|
+
*/
|
|
25
33
|
size: {
|
|
26
34
|
type: String,
|
|
27
35
|
default: "medium"
|
|
28
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* @zh 是否显示边框
|
|
39
|
+
* @en Whether to show the border
|
|
40
|
+
*/
|
|
29
41
|
bordered: {
|
|
30
42
|
type: Boolean,
|
|
31
43
|
default: true
|
|
32
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* @zh 是否显示分割线
|
|
47
|
+
* @en Whether to show the dividing line
|
|
48
|
+
*/
|
|
33
49
|
split: {
|
|
34
50
|
type: Boolean,
|
|
35
51
|
default: true
|
|
36
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* @zh 是否为加载中状态
|
|
55
|
+
* @en Whether it is loading state
|
|
56
|
+
*/
|
|
37
57
|
loading: {
|
|
38
58
|
type: Boolean,
|
|
39
59
|
default: false
|
|
40
60
|
},
|
|
61
|
+
/**
|
|
62
|
+
* @zh 是否显示选中样式
|
|
63
|
+
* @en Whether to display the selected style
|
|
64
|
+
*/
|
|
41
65
|
hoverable: {
|
|
42
66
|
type: Boolean,
|
|
43
67
|
default: false
|
|
44
68
|
},
|
|
69
|
+
/**
|
|
70
|
+
* @zh 列表分页配置
|
|
71
|
+
* @en List pagination configuration
|
|
72
|
+
*/
|
|
45
73
|
paginationProps: { type: Object },
|
|
74
|
+
/**
|
|
75
|
+
* @zh 列表栅格配置
|
|
76
|
+
* @en List grid configuration
|
|
77
|
+
*/
|
|
46
78
|
gridProps: { type: Object },
|
|
79
|
+
/**
|
|
80
|
+
* @zh 列表的最大高度
|
|
81
|
+
* @en Maximum height of the list
|
|
82
|
+
*/
|
|
47
83
|
maxHeight: {
|
|
48
84
|
type: [String, Number],
|
|
49
85
|
default: 0
|
|
50
86
|
},
|
|
87
|
+
/**
|
|
88
|
+
* @zh 触发到达底部的距离阈值
|
|
89
|
+
* @en Trigger the distance threshold to reach the bottom
|
|
90
|
+
*/
|
|
51
91
|
bottomOffset: {
|
|
52
92
|
type: Number,
|
|
53
93
|
default: 0
|
|
54
94
|
},
|
|
95
|
+
/**
|
|
96
|
+
* @zh 传递虚拟列表属性,传入此参数以开启虚拟滚动 [VirtualListProps](#VirtualListProps)
|
|
97
|
+
* @en Pass virtual list properties, pass in this parameter to turn on virtual scrolling [VirtualListProps](#VirtualListProps)
|
|
98
|
+
*/
|
|
55
99
|
virtualListProps: { type: Object },
|
|
100
|
+
/**
|
|
101
|
+
* @zh 是否开启虚拟滚动条
|
|
102
|
+
* @en Whether to enable virtual scroll bar
|
|
103
|
+
* @version 2.38.0
|
|
104
|
+
*/
|
|
56
105
|
scrollbar: {
|
|
57
106
|
type: [Object, Boolean],
|
|
58
107
|
default: true
|
|
59
108
|
}
|
|
60
109
|
},
|
|
61
110
|
emits: {
|
|
111
|
+
/**
|
|
112
|
+
* @zh 列表滚动时触发
|
|
113
|
+
* @en Triggered when the list scrolls
|
|
114
|
+
*/
|
|
62
115
|
scroll: () => true,
|
|
116
|
+
/**
|
|
117
|
+
* @zh 当列表到达底部时触发
|
|
118
|
+
* @en Triggered when the list reaches the bottom
|
|
119
|
+
*/
|
|
63
120
|
reachBottom: () => true,
|
|
121
|
+
/**
|
|
122
|
+
* @zh 表格分页发生改变时触发
|
|
123
|
+
* @en Triggered when the table pagination changes
|
|
124
|
+
* @param {number} page
|
|
125
|
+
*/
|
|
64
126
|
pageChange: (_page) => true,
|
|
127
|
+
/**
|
|
128
|
+
* @zh 表格每页数据数量发生改变时触发
|
|
129
|
+
* @en Triggered when the number of data per page of the table changes
|
|
130
|
+
* @param {number} pageSize
|
|
131
|
+
*/
|
|
65
132
|
pageSizeChange: (_pageSize) => true
|
|
66
133
|
},
|
|
134
|
+
/**
|
|
135
|
+
* @zh 头部信息
|
|
136
|
+
* @en Header
|
|
137
|
+
* @slot header
|
|
138
|
+
*/
|
|
139
|
+
/**
|
|
140
|
+
* @zh 底部信息
|
|
141
|
+
* @en Footer
|
|
142
|
+
* @slot footer
|
|
143
|
+
*/
|
|
144
|
+
/**
|
|
145
|
+
* @zh 空白展示
|
|
146
|
+
* @en Empty
|
|
147
|
+
* @slot empty
|
|
148
|
+
*/
|
|
149
|
+
/**
|
|
150
|
+
* @zh 列表项
|
|
151
|
+
* @en List Item
|
|
152
|
+
* @slot item
|
|
153
|
+
* @binding {number} index
|
|
154
|
+
* @binding {any} item
|
|
155
|
+
*/
|
|
156
|
+
/**
|
|
157
|
+
* @zh 滚动加载状态时,滚动到底部的提示
|
|
158
|
+
* @en When scrolling loading state, scroll to the bottom tip
|
|
159
|
+
* @slot scroll-loading
|
|
160
|
+
* @version 2.20.0
|
|
161
|
+
*/
|
|
67
162
|
setup(props, { emit, slots }) {
|
|
68
163
|
const { scrollbar } = toRefs(props);
|
|
69
164
|
const prefixCls = getPrefixCls("list");
|
|
@@ -266,7 +361,14 @@ var list_default = /* @__PURE__ */ defineComponent({
|
|
|
266
361
|
render
|
|
267
362
|
};
|
|
268
363
|
},
|
|
269
|
-
methods: {
|
|
364
|
+
methods: {
|
|
365
|
+
/**
|
|
366
|
+
* @zh 虚拟滚动到某个元素
|
|
367
|
+
* @en Virtual scroll to an element
|
|
368
|
+
* @param {{ index?: number; key?: number | string; align: 'auto' | 'top' | 'bottom'}} options
|
|
369
|
+
* @public
|
|
370
|
+
*/
|
|
371
|
+
scrollIntoView(options) {
|
|
270
372
|
if (this.virtualListRef) this.virtualListRef.scrollTo(options);
|
|
271
373
|
} },
|
|
272
374
|
render() {
|