@sdata/web-vue 2.2.1 → 2.6.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/README.md +1 -1
- package/dist/sd.css +117 -191
- package/dist/sd.min.css +1 -1
- package/es/_components/picker/input-range.vue.d.ts +2 -2
- package/es/_components/transition/expand-transition.vue.d.ts +2 -2
- package/es/_hooks/use-responsive.d.ts +2 -2
- package/es/_hooks/use-theme-mode.d.ts +3 -0
- package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
- package/es/_utils/date.d.ts +10 -9
- package/es/_utils/date.js +23 -7
- package/es/_utils/responsive-observe.d.ts +5 -4
- package/es/_utils/responsive-observe.js +2 -1
- package/es/alert/index.d.ts +3 -3
- package/es/anchor/anchor.vue.d.ts +52 -2
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +75 -15
- package/es/anchor/index.d.ts +78 -3
- package/es/avatar/index.d.ts +20 -20
- package/es/border-beam/border-beam.js +5 -0
- package/es/border-beam/border-beam.vue.d.ts +52 -0
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
- package/es/border-beam/index.d.ts +106 -0
- package/es/border-beam/index.js +10 -0
- package/es/border-beam/pulseDriver.d.ts +2 -0
- package/es/border-beam/pulseDriver.js +74 -0
- package/es/border-beam/style/css.js +2 -0
- package/es/border-beam/style/index.css +21 -0
- package/es/border-beam/style/index.d.ts +2 -0
- package/es/border-beam/style/index.js +2 -0
- package/es/border-beam/style/index.scss +12 -0
- package/es/border-beam/style/token.scss +12 -0
- package/es/border-beam/styles.d.ts +42 -0
- package/es/border-beam/styles.js +3545 -0
- package/es/border-beam/types.d.ts +27 -0
- package/es/button/button.vue.d.ts +16 -3
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +39 -9
- package/es/button/index.d.ts +43 -24
- package/es/button/interface.d.ts +1 -0
- package/es/calendar/components/cell.vue.d.ts +26 -26
- package/es/calendar/components/index.vue.d.ts +1 -1
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/calendar/index.d.ts +5 -5
- package/es/carousel/index.d.ts +3 -3
- package/es/cascader/cascader.vue.d.ts +8 -8
- package/es/checkbox/checkbox.d.ts +3 -3
- package/es/collapse/collapse-item.d.ts +5 -5
- package/es/collapse/index.d.ts +3 -3
- package/es/components.d.ts +1 -0
- package/es/config-provider/config-provider.vue.d.ts +9 -0
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +10 -1
- package/es/config-provider/context.d.ts +1 -0
- package/es/config-provider/index.d.ts +36 -21
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +1 -0
- package/es/date-picker/hooks/use-cell-class-name.d.ts +1 -0
- package/es/date-picker/hooks/use-cell-class-name.js +3 -2
- package/es/date-picker/hooks/use-header-value.d.ts +2 -0
- package/es/date-picker/hooks/use-header-value.js +23 -19
- package/es/date-picker/hooks/use-picker-state.d.ts +2 -0
- package/es/date-picker/hooks/use-picker-state.js +3 -3
- package/es/date-picker/hooks/use-range-header-value.d.ts +2 -0
- package/es/date-picker/hooks/use-range-header-value.js +5 -1
- package/es/date-picker/hooks/use-range-picker-state.d.ts +2 -0
- package/es/date-picker/hooks/use-range-picker-state.js +3 -3
- package/es/date-picker/hooks/use-value-format.d.ts +5 -3
- package/es/date-picker/hooks/use-value-format.js +10 -8
- package/es/date-picker/index.d.ts +1373 -12
- package/es/date-picker/interface.d.ts +7 -0
- package/es/date-picker/panels/body.vue.d.ts +24 -6
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +13 -12
- package/es/date-picker/panels/date/index.vue.d.ts +26 -8
- package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +18 -9
- package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +13 -20
- package/es/date-picker/panels/month/index.vue.d.ts +13 -8
- package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/date-picker/panels/quarter/index.vue.d.ts +13 -8
- package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +2 -6
- package/es/date-picker/panels/week/index.vue.d.ts +13 -1
- package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/date-picker/panels/year/index.vue.d.ts +13 -8
- package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +25 -15
- package/es/date-picker/picker-panel.vue.d.ts +56 -14
- package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +36 -19
- package/es/date-picker/picker.vue.d.ts +951 -3
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +91 -29
- package/es/date-picker/range-picker-panel.vue.d.ts +77 -15
- package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +52 -28
- package/es/date-picker/range-picker.vue.d.ts +1348 -4
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +114 -34
- package/es/descriptions/index.d.ts +24 -24
- package/es/drawer/drawer.vue.d.ts +5 -5
- package/es/drawer/index.d.ts +15 -15
- package/es/dropdown/dropdown-button.vue.d.ts +4 -4
- package/es/dropdown/index.d.ts +15 -15
- package/es/ellipsis/ellipsis.vue.d.ts +7 -7
- package/es/ellipsis/performant-ellipsis.vue.d.ts +5 -5
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/form/index.d.ts +3 -3
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
- package/es/icon/icon-menu/icon-menu.js +5 -0
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-menu/index.js +9 -0
- package/es/image/preview-toolbar.vue.d.ts +2 -3
- package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +2 -3
- package/es/image/preview.vue.d.ts +2 -2
- package/es/index.css +117 -191
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -2
- package/es/index.scss +1 -0
- package/es/input/index.d.ts +7 -7
- package/es/input/input-password.vue.d.ts +3 -3
- package/es/json-form/index.d.ts +9 -9
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form.vue.d.ts +3 -3
- package/es/layout/content.vue.d.ts +2 -2
- package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/context.d.ts +12 -9
- package/es/layout/context.js +11 -3
- package/es/layout/footer.vue.d.ts +2 -2
- package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/header.vue.d.ts +3 -30
- package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
- package/es/layout/hooks/use-has-sider.d.ts +2 -0
- package/es/layout/hooks/use-has-sider.js +38 -0
- package/es/layout/index.d.ts +91 -380
- package/es/layout/index.js +2 -2
- package/es/layout/interface.d.ts +12 -46
- package/es/layout/layout.vue.d.ts +4 -2
- package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
- package/es/layout/sider.vue.d.ts +47 -183
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +191 -370
- package/es/layout/style/index.css +112 -190
- package/es/layout/style/index.scss +127 -239
- package/es/layout/style/token.scss +46 -26
- package/es/link/index.d.ts +6 -6
- package/es/list/index.d.ts +18 -18
- package/es/locale/interface.d.ts +2 -0
- package/es/locale/lang/ar-eg.js +46 -0
- package/es/locale/lang/de-de.js +46 -0
- package/es/locale/lang/es-es.js +46 -0
- package/es/locale/lang/fr-fr.js +46 -0
- package/es/locale/lang/id-id.js +46 -0
- package/es/locale/lang/it-it.js +46 -0
- package/es/locale/lang/km-kh.js +46 -0
- package/es/locale/lang/ko-kr.js +46 -0
- package/es/locale/lang/ms-my.js +46 -0
- package/es/locale/lang/pt-pt.js +46 -0
- package/es/locale/lang/th-th.js +46 -0
- package/es/locale/lang/vi-vn.js +46 -0
- package/es/mention/mention.js +2 -0
- package/es/menu/base-menu.vue.d.ts +1 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
- package/es/menu/item.d.ts +1 -1
- package/es/menu/menu.d.ts +12 -12
- package/es/menu/menu.js +3 -3
- package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/modal/index.d.ts +22 -20
- package/es/modal/index.js +47 -11
- package/es/modal/interface.d.ts +5 -0
- package/es/modal/modal.vue.d.ts +4 -4
- package/es/popconfirm/index.d.ts +12 -12
- package/es/popover/index.d.ts +12 -12
- package/es/progress/index.d.ts +6 -6
- package/es/qr-code/index.d.ts +3 -3
- package/es/radio/radio.d.ts +3 -3
- package/es/resize-box/resize-box.vue.d.ts +4 -4
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
- package/es/result/index.d.ts +3 -3
- package/es/scrollbar/style/index.css +1 -1
- package/es/scrollbar/style/index.scss +4 -1
- package/es/sd-vue.js +3 -1
- package/es/select/select.d.ts +17 -17
- package/es/slider/index.d.ts +3 -3
- package/es/split/split.vue.d.ts +4 -4
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/steps/index.d.ts +6 -6
- package/es/tabs/index.d.ts +6 -6
- package/es/tag/index.d.ts +6 -6
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/theme-provider/index.d.ts +9 -9
- package/es/time-picker/index.d.ts +6 -6
- package/es/time-picker/time-picker.vue.d.ts +2 -2
- package/es/timeline/index.d.ts +3 -3
- package/es/timeline/timeline.d.ts +1 -1
- package/es/tooltip/index.d.ts +3 -3
- package/es/tour/index.d.ts +3 -3
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +6 -21
- package/es/tree/expand-transition.vue.d.ts +2 -2
- package/es/tree/node-switcher.vue.d.ts +1 -12
- package/es/tree/node-switcher.vue_vue_type_script_lang.js +1 -5
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
- package/es/tree-select/tree-select.vue.d.ts +9 -9
- package/es/trigger/trigger.js +2 -1
- package/es/verification-code/verification-code.js +17 -7
- package/json/vetur-attributes.json +76 -156
- package/json/vetur-tags.json +26 -44
- package/json/web-types.json +150 -304
- package/package.json +5 -5
- package/es/_components/render-function.d.ts +0 -14
- package/es/_components/render-function.js +0 -14
- package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
- package/es/layout/utils.d.ts +0 -1
- package/es/layout/utils.js +0 -11
package/es/dropdown/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ declare const Dropdown: {
|
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
18
|
trigger: {
|
|
19
|
-
type: import("vue").PropType<import("
|
|
19
|
+
type: import("vue").PropType<import("../index.ts").TriggerEvent | import("../index.ts").TriggerEvent[]>;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
22
|
position: {
|
|
@@ -66,7 +66,7 @@ declare const Dropdown: {
|
|
|
66
66
|
default: boolean;
|
|
67
67
|
};
|
|
68
68
|
trigger: {
|
|
69
|
-
type: import("vue").PropType<import("
|
|
69
|
+
type: import("vue").PropType<import("../index.ts").TriggerEvent | import("../index.ts").TriggerEvent[]>;
|
|
70
70
|
default: string;
|
|
71
71
|
};
|
|
72
72
|
position: {
|
|
@@ -109,7 +109,7 @@ declare const Dropdown: {
|
|
|
109
109
|
default: boolean;
|
|
110
110
|
};
|
|
111
111
|
trigger: {
|
|
112
|
-
type: import("vue").PropType<import("
|
|
112
|
+
type: import("vue").PropType<import("../index.ts").TriggerEvent | import("../index.ts").TriggerEvent[]>;
|
|
113
113
|
default: string;
|
|
114
114
|
};
|
|
115
115
|
position: {
|
|
@@ -399,7 +399,7 @@ declare const Dropdown: {
|
|
|
399
399
|
default: boolean;
|
|
400
400
|
};
|
|
401
401
|
trigger: {
|
|
402
|
-
type: import("vue").PropType<import("
|
|
402
|
+
type: import("vue").PropType<import("../index.ts").TriggerEvent | import("../index.ts").TriggerEvent[]>;
|
|
403
403
|
default: string;
|
|
404
404
|
};
|
|
405
405
|
position: {
|
|
@@ -414,13 +414,13 @@ declare const Dropdown: {
|
|
|
414
414
|
default: boolean;
|
|
415
415
|
};
|
|
416
416
|
type: {
|
|
417
|
-
type: import("vue").PropType<import("
|
|
417
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps["type"]>;
|
|
418
418
|
};
|
|
419
419
|
size: {
|
|
420
|
-
type: import("vue").PropType<import("
|
|
420
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps["size"]>;
|
|
421
421
|
};
|
|
422
422
|
buttonProps: {
|
|
423
|
-
type: import("vue").PropType<import("
|
|
423
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps>;
|
|
424
424
|
};
|
|
425
425
|
hideOnSelect: {
|
|
426
426
|
type: BooleanConstructor;
|
|
@@ -460,7 +460,7 @@ declare const Dropdown: {
|
|
|
460
460
|
default: boolean;
|
|
461
461
|
};
|
|
462
462
|
trigger: {
|
|
463
|
-
type: import("vue").PropType<import("
|
|
463
|
+
type: import("vue").PropType<import("../index.ts").TriggerEvent | import("../index.ts").TriggerEvent[]>;
|
|
464
464
|
default: string;
|
|
465
465
|
};
|
|
466
466
|
position: {
|
|
@@ -475,13 +475,13 @@ declare const Dropdown: {
|
|
|
475
475
|
default: boolean;
|
|
476
476
|
};
|
|
477
477
|
type: {
|
|
478
|
-
type: import("vue").PropType<import("
|
|
478
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps["type"]>;
|
|
479
479
|
};
|
|
480
480
|
size: {
|
|
481
|
-
type: import("vue").PropType<import("
|
|
481
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps["size"]>;
|
|
482
482
|
};
|
|
483
483
|
buttonProps: {
|
|
484
|
-
type: import("vue").PropType<import("
|
|
484
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps>;
|
|
485
485
|
};
|
|
486
486
|
hideOnSelect: {
|
|
487
487
|
type: BooleanConstructor;
|
|
@@ -513,7 +513,7 @@ declare const Dropdown: {
|
|
|
513
513
|
default: boolean;
|
|
514
514
|
};
|
|
515
515
|
trigger: {
|
|
516
|
-
type: import("vue").PropType<import("
|
|
516
|
+
type: import("vue").PropType<import("../index.ts").TriggerEvent | import("../index.ts").TriggerEvent[]>;
|
|
517
517
|
default: string;
|
|
518
518
|
};
|
|
519
519
|
position: {
|
|
@@ -528,13 +528,13 @@ declare const Dropdown: {
|
|
|
528
528
|
default: boolean;
|
|
529
529
|
};
|
|
530
530
|
type: {
|
|
531
|
-
type: import("vue").PropType<import("
|
|
531
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps["type"]>;
|
|
532
532
|
};
|
|
533
533
|
size: {
|
|
534
|
-
type: import("vue").PropType<import("
|
|
534
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps["size"]>;
|
|
535
535
|
};
|
|
536
536
|
buttonProps: {
|
|
537
|
-
type: import("vue").PropType<import("
|
|
537
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps>;
|
|
538
538
|
};
|
|
539
539
|
hideOnSelect: {
|
|
540
540
|
type: BooleanConstructor;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { EllipsisTooltipProps } from './interface';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_26: {}, __VLS_28: {}, __VLS_31: {}, __VLS_33: {}, __VLS_45: {}, __VLS_47: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_26) => any;
|
|
6
6
|
} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_28) => any;
|
|
8
8
|
} & {
|
|
9
|
-
tooltip?: (props: typeof
|
|
9
|
+
tooltip?: (props: typeof __VLS_31) => any;
|
|
10
10
|
} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_33) => any;
|
|
12
12
|
} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_45) => any;
|
|
14
14
|
} & {
|
|
15
|
-
default?: (props: typeof
|
|
15
|
+
default?: (props: typeof __VLS_47) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
18
18
|
lineClamp: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { EllipsisTooltipProps } from './interface';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_10: {}, __VLS_12: {}, __VLS_22: {}, __VLS_25: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_10) => any;
|
|
6
6
|
} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_12) => any;
|
|
8
8
|
} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_22) => any;
|
|
10
10
|
} & {
|
|
11
|
-
tooltip?: (props: typeof
|
|
11
|
+
tooltip?: (props: typeof __VLS_25) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
14
|
lineClamp: {
|
|
@@ -265,9 +265,9 @@ var form_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
265
265
|
return (_props$wrapperColStyl = props.wrapperColStyle) !== null && _props$wrapperColStyl !== void 0 ? _props$wrapperColStyl : formCtx.wrapperColStyle;
|
|
266
266
|
});
|
|
267
267
|
const initialValue = getValueByPath(formCtx.model, props.field);
|
|
268
|
-
const
|
|
268
|
+
const formValidateStatus = reactive({});
|
|
269
269
|
const validateMessage = reactive({});
|
|
270
|
-
const finalStatus = computed(() => getFinalValidateStatus(
|
|
270
|
+
const finalStatus = computed(() => getFinalValidateStatus(formValidateStatus));
|
|
271
271
|
const finalMessage = computed(() => getFinalValidateMessage(validateMessage));
|
|
272
272
|
const validateDisabled = ref(false);
|
|
273
273
|
const fieldValue = computed(() => getValueByPath(formCtx.model, props.field));
|
|
@@ -290,7 +290,7 @@ var form_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
290
290
|
const isRequired = computed(() => mergedRules.value.some((item) => item.required));
|
|
291
291
|
const formItemCtx = props.noStyle ? inject(formItemInjectionKey, void 0) : void 0;
|
|
292
292
|
const updateValidateState = (field, { status, message }) => {
|
|
293
|
-
|
|
293
|
+
formValidateStatus[field] = status;
|
|
294
294
|
validateMessage[field] = message;
|
|
295
295
|
if (props.noStyle) formItemCtx === null || formItemCtx === void 0 || formItemCtx.updateValidateState(field, {
|
|
296
296
|
status,
|
package/es/form/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare const Form: {
|
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
size: {
|
|
16
|
-
type: import("vue").PropType<import("
|
|
16
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
17
17
|
};
|
|
18
18
|
labelColProps: {
|
|
19
19
|
type: ObjectConstructor;
|
|
@@ -105,7 +105,7 @@ declare const Form: {
|
|
|
105
105
|
default: string;
|
|
106
106
|
};
|
|
107
107
|
size: {
|
|
108
|
-
type: import("vue").PropType<import("
|
|
108
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
109
109
|
};
|
|
110
110
|
labelColProps: {
|
|
111
111
|
type: ObjectConstructor;
|
|
@@ -184,7 +184,7 @@ declare const Form: {
|
|
|
184
184
|
default: string;
|
|
185
185
|
};
|
|
186
186
|
size: {
|
|
187
|
-
type: import("vue").PropType<import("
|
|
187
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
188
188
|
};
|
|
189
189
|
labelColProps: {
|
|
190
190
|
type: ObjectConstructor;
|
|
@@ -129,11 +129,11 @@ var grid_col_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
129
129
|
});
|
|
130
130
|
const flexStyles = computed(() => flexValue.value ? { flex: flexValue.value } : {});
|
|
131
131
|
const responsiveConfig = computed(() => pick(props, responsiveArray));
|
|
132
|
-
const
|
|
132
|
+
const responsiveSpan = useResponsiveState(useResponsiveValue(computed(() => _objectSpread2({
|
|
133
133
|
val: props.span,
|
|
134
134
|
key: "span"
|
|
135
135
|
}, responsiveConfig.value))), 24, true);
|
|
136
|
-
const visible = computed(() => !!
|
|
136
|
+
const visible = computed(() => !!responsiveSpan.value);
|
|
137
137
|
const styles = computed(() => _objectSpread2(_objectSpread2({}, paddingStyles.value), flexStyles.value));
|
|
138
138
|
return (_ctx, _cache) => {
|
|
139
139
|
return visible.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -56,14 +56,14 @@ var grid_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
56
56
|
},
|
|
57
57
|
setup(__props) {
|
|
58
58
|
const { cols: propCols, rowGap: propRowGap, colGap: propColGap, collapsedRows, collapsed } = toRefs(__props);
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
59
|
+
const resCols = useResponsiveState(propCols, 24);
|
|
60
|
+
const resColGap = useResponsiveState(propColGap, 0);
|
|
61
|
+
const resRowGap = useResponsiveState(propRowGap, 0);
|
|
62
62
|
const prefixCls = getPrefixCls("grid");
|
|
63
63
|
const classNames = computed(() => [prefixCls]);
|
|
64
64
|
const style = computed(() => [{
|
|
65
|
-
"gap": `${
|
|
66
|
-
"grid-template-columns": `repeat(${
|
|
65
|
+
"gap": `${resRowGap.value}px ${resColGap.value}px`,
|
|
66
|
+
"grid-template-columns": `repeat(${resCols.value}, minmax(0px, 1fr))`
|
|
67
67
|
}]);
|
|
68
68
|
const itemDataMap = reactive(/* @__PURE__ */ new Map());
|
|
69
69
|
const itemDataList = computed(() => {
|
|
@@ -74,16 +74,16 @@ var grid_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
74
74
|
const gridContext = reactive({
|
|
75
75
|
overflow: false,
|
|
76
76
|
displayIndexList: [],
|
|
77
|
-
cols:
|
|
78
|
-
colGap:
|
|
77
|
+
cols: resCols.value,
|
|
78
|
+
colGap: resColGap.value
|
|
79
79
|
});
|
|
80
80
|
watchEffect(() => {
|
|
81
|
-
gridContext.cols =
|
|
82
|
-
gridContext.colGap =
|
|
81
|
+
gridContext.cols = resCols.value;
|
|
82
|
+
gridContext.colGap = resColGap.value;
|
|
83
83
|
});
|
|
84
84
|
watchEffect(() => {
|
|
85
85
|
const displayInfo = setItemVisible({
|
|
86
|
-
cols:
|
|
86
|
+
cols: resCols.value,
|
|
87
87
|
collapsed: collapsed.value,
|
|
88
88
|
collapsedRows: collapsedRows.value,
|
|
89
89
|
itemDataList: itemDataList.value
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import icon_menu_vue_vue_type_script_setup_true_lang_default from "./icon-menu.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region components/icon/icon-menu/icon-menu.vue
|
|
3
|
+
var icon_menu_default = icon_menu_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { icon_menu_default as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import { getPrefixCls } from "../../_utils/global-config.js";
|
|
3
|
+
import { isNumber } from "../../_utils/is.js";
|
|
4
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
5
|
+
//#region components/icon/icon-menu/icon-menu.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var icon_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "IconMenu" }), {}, {
|
|
7
|
+
__name: "icon-menu",
|
|
8
|
+
props: {
|
|
9
|
+
size: {},
|
|
10
|
+
strokeWidth: { default: 4 },
|
|
11
|
+
strokeLinecap: { default: "butt" },
|
|
12
|
+
strokeLinejoin: { default: "miter" },
|
|
13
|
+
rotate: {},
|
|
14
|
+
spin: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
emits: ["click"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const emit = __emit;
|
|
19
|
+
const prefixCls = getPrefixCls("icon");
|
|
20
|
+
const cls = computed(() => [
|
|
21
|
+
prefixCls,
|
|
22
|
+
`${prefixCls}-menu`,
|
|
23
|
+
{ [`${prefixCls}-spin`]: __props.spin }
|
|
24
|
+
]);
|
|
25
|
+
const svgAttrs = computed(() => ({
|
|
26
|
+
"stroke-width": __props.strokeWidth,
|
|
27
|
+
"stroke-linecap": __props.strokeLinecap,
|
|
28
|
+
"stroke-linejoin": __props.strokeLinejoin
|
|
29
|
+
}));
|
|
30
|
+
const innerStyle = computed(() => {
|
|
31
|
+
const styles = {};
|
|
32
|
+
if (__props.size) styles.fontSize = isNumber(__props.size) ? `${__props.size}px` : __props.size;
|
|
33
|
+
if (__props.rotate) styles.transform = `rotate(${__props.rotate}deg)`;
|
|
34
|
+
return styles;
|
|
35
|
+
});
|
|
36
|
+
const onClick = (ev) => {
|
|
37
|
+
emit("click", ev);
|
|
38
|
+
};
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return openBlock(), createElementBlock("svg", mergeProps({
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
fill: "none",
|
|
43
|
+
stroke: "currentColor",
|
|
44
|
+
viewBox: "0 0 48 48",
|
|
45
|
+
class: cls.value,
|
|
46
|
+
style: innerStyle.value
|
|
47
|
+
}, svgAttrs.value, { onClick }), [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M5 10h38M5 24h38M5 38h38" }, null, -1)])], 16);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
//#endregion
|
|
52
|
+
export { icon_menu_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import icon_menu_default from "./icon-menu.js";
|
|
2
|
+
//#region components/icon/icon-menu/index.ts
|
|
3
|
+
var IconMenu = Object.assign(icon_menu_default, { install: (app, options) => {
|
|
4
|
+
var _options$iconPrefix;
|
|
5
|
+
const iconPrefix = (_options$iconPrefix = options === null || options === void 0 ? void 0 : options.iconPrefix) !== null && _options$iconPrefix !== void 0 ? _options$iconPrefix : "";
|
|
6
|
+
app.component(iconPrefix + icon_menu_default.name, icon_menu_default);
|
|
7
|
+
} });
|
|
8
|
+
//#endregion
|
|
9
|
+
export { IconMenu as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { RenderFunc } from '../_components/render-function';
|
|
1
|
+
import { PropType, VNodeTypes } from 'vue';
|
|
3
2
|
export interface ActionType {
|
|
4
3
|
key: string;
|
|
5
4
|
name: string;
|
|
6
|
-
content:
|
|
5
|
+
content: () => VNodeTypes;
|
|
7
6
|
onClick: () => void;
|
|
8
7
|
disabled?: boolean;
|
|
9
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
-
import render_function_default from "../_components/render-function.js";
|
|
4
3
|
import preview_action_default from "./preview-action.js";
|
|
5
|
-
import { Fragment, computed, createBlock, createElementBlock,
|
|
4
|
+
import { Fragment, computed, createBlock, createElementBlock, defineComponent, normalizeClass, openBlock, renderList, renderSlot, resolveDynamicComponent, toRefs, unref, withCtx } from "vue";
|
|
6
5
|
//#region components/image/preview-toolbar.vue?vue&type=script&setup=true&lang.tsx
|
|
7
6
|
var preview_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "ImagePreviewToolbar" }), {}, {
|
|
8
7
|
__name: "preview-toolbar",
|
|
@@ -35,7 +34,7 @@ var preview_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
35
34
|
disabled: action.disabled,
|
|
36
35
|
onClick: action.onClick
|
|
37
36
|
}, {
|
|
38
|
-
default: withCtx(() => [
|
|
37
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(action.content)))]),
|
|
39
38
|
_: 2
|
|
40
39
|
}, 1032, [
|
|
41
40
|
"name",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_32: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
actions?: (props: typeof
|
|
4
|
+
actions?: (props: typeof __VLS_32) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
7
|
renderToBody: {
|