@sdata/web-vue 4.7.2 → 5.1.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 +4010 -3956
- package/dist/sd.min.css +13 -13
- package/es/_components/input-label/style/index.css +47 -47
- package/es/_components/select-view/style/index.css +256 -256
- package/es/alert/style/index.css +48 -48
- package/es/alert/style/token.scss +257 -0
- package/es/anchor/style/index.css +18 -18
- package/es/anchor/style/token.scss +74 -0
- package/es/auto-complete/style/index.css +18 -18
- package/es/auto-complete/style/token.scss +94 -0
- package/es/avatar/style/index.css +31 -31
- package/es/avatar/style/token.scss +118 -0
- package/es/back-top/style/index.css +11 -11
- package/es/back-top/style/token.scss +60 -0
- package/es/badge/style/index.css +35 -35
- package/es/badge/style/token.scss +148 -0
- package/es/basic-crud-table/style/index.css +4 -4
- package/es/basic-crud-table/style/token.scss +20 -0
- package/es/bloom-menu/style/index.css +33 -34
- package/es/bloom-menu/style/index.scss +5 -5
- package/es/bloom-menu/style/token.scss +99 -0
- package/es/border-beam/style/token.scss +28 -0
- package/es/breadcrumb/style/index.css +17 -17
- package/es/breadcrumb/style/token.scss +97 -0
- package/es/button/style/index.css +379 -379
- package/es/button/style/index.scss +3 -3
- package/es/button/style/token.scss +1604 -0
- package/es/card/style/index.css +36 -36
- package/es/card/style/token.scss +162 -0
- package/es/carousel/style/index.css +41 -41
- package/es/carousel/style/token.scss +101 -0
- package/es/cascader/style/index.css +58 -58
- package/es/cascader/style/token.scss +89 -0
- package/es/checkbox/style/index.css +28 -28
- package/es/checkbox/style/token.scss +134 -0
- package/es/collapse/style/index.css +24 -24
- package/es/collapse/style/token.scss +136 -0
- package/es/color-picker/style/index.css +50 -50
- package/es/color-picker/style/token.scss +200 -0
- package/es/comment/style/index.css +15 -15
- package/es/comment/style/token.scss +83 -0
- package/es/config-provider/algorithms.d.ts +11 -0
- package/es/config-provider/algorithms.js +53 -0
- package/es/config-provider/global-theme.js +7 -4
- package/es/config-provider/theme-config.d.ts +11 -0
- package/es/config-provider/theme-config.js +114 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +46 -11
- package/es/config-provider/theme.d.ts +4 -1
- package/es/config-provider/theme.js +6 -5
- package/es/config-provider/token-key.d.ts +1 -0
- package/es/config-provider/token-key.js +6 -0
- package/es/copy/style/index.css +1 -1
- package/es/copy/style/token.scss +9 -0
- package/es/cropper/style/index.css +7 -7
- package/es/cropper/style/token.scss +24 -0
- package/es/date-picker/style/index.css +73 -73
- package/es/date-picker/style/token.scss +229 -0
- package/es/descriptions/style/index.css +45 -45
- package/es/descriptions/style/token.scss +191 -0
- package/es/divider/style/index.css +11 -11
- package/es/divider/style/token.scss +60 -0
- package/es/drawer/style/index.css +13 -13
- package/es/drawer/style/token.scss +68 -0
- package/es/dropdown/dropdown-panel.vue.d.ts +6 -4
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +10 -3
- package/es/dropdown/dropdown.vue.d.ts +5 -3
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +11 -2
- package/es/dropdown/index.d.ts +2 -0
- package/es/dropdown/style/index.css +30 -23
- package/es/dropdown/style/index.scss +12 -2
- package/es/dropdown/style/token.scss +123 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/ellipsis/interface.d.ts +1 -0
- package/es/ellipsis/style/index.css +2 -2
- package/es/ellipsis/style/token.scss +5 -0
- package/es/empty/style/index.css +7 -7
- package/es/empty/style/token.scss +35 -0
- package/es/file-previewer/style/index.css +44 -44
- package/es/file-previewer/style/token.scss +198 -0
- package/es/form/style/index.css +113 -113
- package/es/form/style/token.scss +340 -0
- package/es/image/style/index.css +83 -83
- package/es/image/style/token.scss +451 -0
- package/es/index.css +4010 -3956
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/input/style/index.css +104 -104
- package/es/input/style/input.scss +2 -8
- package/es/input/style/size.scss +4 -4
- package/es/input/style/token.scss +327 -0
- package/es/input-mask/style/index.css +1 -1
- package/es/input-mask/style/token.scss +8 -0
- package/es/input-number/style/index.css +19 -19
- package/es/input-number/style/token.scss +82 -0
- package/es/input-tag/style/index.css +209 -209
- package/es/input-tag/style/token.scss +226 -0
- package/es/json-form/style/index.css +2 -2
- package/es/json-form/style/token.scss +21 -0
- package/es/kv-list/style/index.css +13 -13
- package/es/kv-list/style/token.scss +29 -0
- package/es/layout/style/index.css +38 -38
- package/es/layout/style/token.scss +100 -0
- package/es/link/style/index.css +28 -28
- package/es/link/style/token.scss +117 -0
- package/es/list/style/index.css +27 -27
- package/es/list/style/token.scss +178 -0
- package/es/mention/style/token.scss +22 -0
- package/es/menu/style/index.css +153 -120
- package/es/menu/style/index.scss +12 -4
- package/es/menu/style/token.scss +390 -0
- package/es/message/style/index.css +33 -33
- package/es/message/style/token.scss +218 -0
- package/es/modal/style/index.css +21 -21
- package/es/modal/style/token.scss +115 -0
- package/es/model-selector/style/index.css +2 -2
- package/es/model-selector/style/index.scss +2 -1
- package/es/notification/style/index.css +44 -44
- package/es/notification/style/token.scss +241 -0
- package/es/number-flow/style/index.css +5 -5
- package/es/number-flow/style/token.scss +19 -0
- package/es/page-header/style/index.css +25 -25
- package/es/page-header/style/token.scss +139 -0
- package/es/pagination/style/index.css +85 -85
- package/es/pagination/style/token.scss +303 -0
- package/es/panel-group/style/index.css +7 -7
- package/es/panel-group/style/token.scss +28 -0
- package/es/popconfirm/style/index.css +18 -18
- package/es/popconfirm/style/token.scss +83 -0
- package/es/popover/style/index.css +12 -12
- package/es/popover/style/token.scss +58 -0
- package/es/progress/style/index.css +55 -55
- package/es/progress/style/token.scss +253 -0
- package/es/qr-code/style/index.css +18 -21
- package/es/qr-code/style/index.scss +4 -6
- package/es/qr-code/style/token.scss +59 -0
- package/es/radio/style/index.css +44 -44
- package/es/radio/style/token.scss +185 -0
- package/es/rate/style/index.css +8 -8
- package/es/rate/style/token.scss +19 -0
- package/es/regex-vis/style/index.css +51 -51
- package/es/regex-vis/style/token.scss +170 -0
- package/es/result/style/index.css +26 -26
- package/es/result/style/token.scss +139 -0
- package/es/rich-text-editor/style/index.css +31 -31
- package/es/rich-text-editor/style/token.scss +120 -0
- package/es/scrollbar/style/index.css +14 -14
- package/es/scrollbar/style/token.scss +33 -0
- package/es/secret/style/index.css +6 -6
- package/es/secret/style/token.scss +30 -0
- package/es/select/style/index.css +27 -27
- package/es/select/style/token.scss +151 -0
- package/es/selectable-card/style/index.css +53 -51
- package/es/selectable-card/style/index.scss +6 -2
- package/es/selectable-card/style/token.scss +60 -0
- package/es/sender/style/index.css +54 -54
- package/es/sender/style/token.scss +155 -0
- package/es/skeleton/style/index.css +12 -12
- package/es/skeleton/style/token.scss +60 -0
- package/es/slider/style/index.css +34 -34
- package/es/slider/style/token.scss +144 -0
- package/es/spin/style/index.css +11 -11
- package/es/spin/style/token.scss +60 -0
- package/es/split/style/index.css +2 -2
- package/es/split/style/token.scss +18 -0
- package/es/statistic/style/index.css +13 -13
- package/es/statistic/style/token.scss +73 -0
- package/es/steps/style/index.css +98 -98
- package/es/steps/style/token.scss +464 -0
- package/es/style/color/css-variables.scss +382 -381
- package/es/style/theme/css-variables.scss +329 -135
- package/es/style/theme/global.scss +5 -5
- package/es/style/theme/index.scss +1 -1
- package/es/style/theme/runtime.scss +29 -0
- package/es/switch/style/index.css +37 -37
- package/es/switch/style/token.scss +135 -0
- package/es/table/style/index.css +127 -127
- package/es/table/style/token.scss +425 -0
- package/es/tabs/style/index.css +196 -190
- package/es/tabs/style/index.scss +27 -17
- package/es/tabs/style/token.scss +534 -0
- package/es/tag/index.d.ts +13 -0
- package/es/tag/interface.d.ts +1 -0
- package/es/tag/style/index.css +159 -159
- package/es/tag/style/token.scss +513 -0
- package/es/tag/tag.vue.d.ts +13 -3
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +35 -8
- package/es/tag-group/style/index.css +3 -3
- package/es/tag-group/style/token.scss +9 -0
- package/es/textarea/style/index.css +40 -40
- package/es/time-picker/style/index.css +12 -12
- package/es/time-picker/style/token.scss +50 -0
- package/es/timeline/style/index.css +22 -22
- package/es/timeline/style/token.scss +75 -0
- package/es/toolbar/style/index.css +6 -6
- package/es/toolbar/style/token.scss +45 -0
- package/es/tooltip/style/index.css +8 -8
- package/es/tooltip/style/token.scss +46 -0
- package/es/tour/style/index.css +28 -28
- package/es/tour/style/token.scss +65 -0
- package/es/transfer/style/index.css +46 -45
- package/es/transfer/style/index.scss +4 -1
- package/es/transfer/style/token.scss +199 -0
- package/es/tree/style/index.css +43 -36
- package/es/tree/style/index.scss +10 -0
- package/es/tree/style/token.scss +163 -0
- package/es/tree-select/style/index.css +9 -9
- package/es/tree-select/style/token.scss +21 -0
- package/es/trigger/style/index.css +7 -7
- package/es/trigger/style/token.scss +19 -0
- package/es/typography/style/index.css +40 -40
- package/es/typography/style/token.scss +220 -0
- package/es/upload/index.d.ts +3 -0
- package/es/upload/style/index.css +95 -95
- package/es/upload/style/token.scss +470 -0
- package/es/upload/upload.vue.d.ts +2 -0
- package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +109 -16
- package/json/vetur-attributes.json +7 -0
- package/json/vetur-tags.json +4 -1
- package/json/web-types.json +18 -2
- package/package.json +7 -2
- package/es/style/color/palette-dark.d.ts +0 -4
- package/es/style/color/palette-dark.js +0 -10
- package/es/style/color/palette.d.ts +0 -4
- package/es/style/color/palette.js +0 -10
|
@@ -109,9 +109,16 @@ var dropdown_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
109
109
|
};
|
|
110
110
|
});
|
|
111
111
|
return (_ctx, _cache) => {
|
|
112
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(prefixCls), {
|
|
113
|
-
|
|
112
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(prefixCls), {
|
|
113
|
+
[`${unref(prefixCls)}-has-header`]: Boolean(_ctx.$slots.header),
|
|
114
|
+
[`${unref(prefixCls)}-has-footer`]: Boolean(_ctx.$slots.footer)
|
|
115
|
+
}]) }, [
|
|
116
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
114
117
|
key: 0,
|
|
118
|
+
class: normalizeClass(`${unref(prefixCls)}-header`)
|
|
119
|
+
}, [renderSlot(_ctx.$slots, "header")], 2)) : createCommentVNode("", true),
|
|
120
|
+
__props.isEmpty ? (openBlock(), createElementBlock("div", {
|
|
121
|
+
key: 1,
|
|
115
122
|
class: normalizeClass(`${unref(prefixCls)}-empty`)
|
|
116
123
|
}, [renderSlot(_ctx.$slots, "empty", {}, () => [createVNode(unref(Empty))])], 2)) : createCommentVNode("", true),
|
|
117
124
|
createVNode(unref(Scrollbar), {
|
|
@@ -133,7 +140,7 @@ var dropdown_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
133
140
|
_: 3
|
|
134
141
|
}, 8, ["class", "style"]),
|
|
135
142
|
_ctx.$slots.footer && !__props.isEmpty ? (openBlock(), createElementBlock("div", {
|
|
136
|
-
key:
|
|
143
|
+
key: 2,
|
|
137
144
|
class: normalizeClass(`${unref(prefixCls)}-footer`)
|
|
138
145
|
}, [renderSlot(_ctx.$slots, "footer")], 2)) : createCommentVNode("", true)
|
|
139
146
|
], 2);
|
|
@@ -2,13 +2,15 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import type { FloatingOptions } from '../_utils/floating';
|
|
3
3
|
import { TriggerEvent } from '../_utils/constant';
|
|
4
4
|
import { DropdownPosition } from './interface';
|
|
5
|
-
declare var __VLS_10: {},
|
|
5
|
+
declare var __VLS_10: {}, __VLS_23: {}, __VLS_25: {}, __VLS_28: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_10) => any;
|
|
8
8
|
} & {
|
|
9
|
-
|
|
9
|
+
header?: (props: typeof __VLS_23) => any;
|
|
10
10
|
} & {
|
|
11
|
-
|
|
11
|
+
content?: (props: typeof __VLS_25) => any;
|
|
12
|
+
} & {
|
|
13
|
+
footer?: (props: typeof __VLS_28) => any;
|
|
12
14
|
};
|
|
13
15
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
16
|
popupVisible: {
|
|
@@ -88,6 +88,11 @@ var dropdown_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
88
88
|
const props = __props;
|
|
89
89
|
const emit = __emit;
|
|
90
90
|
/**
|
|
91
|
+
* @zh 页眉
|
|
92
|
+
* @en Header
|
|
93
|
+
* @slot header
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
91
96
|
* @zh 内容
|
|
92
97
|
* @en Content
|
|
93
98
|
* @slot content
|
|
@@ -146,10 +151,14 @@ var dropdown_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
146
151
|
}, createSlots({
|
|
147
152
|
default: withCtx(() => [renderSlot(_ctx.$slots, "content")]),
|
|
148
153
|
_: 2
|
|
149
|
-
}, [_ctx.$slots.
|
|
154
|
+
}, [_ctx.$slots.header ? {
|
|
155
|
+
name: "header",
|
|
156
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "header")]),
|
|
157
|
+
key: "0"
|
|
158
|
+
} : void 0, _ctx.$slots.footer ? {
|
|
150
159
|
name: "footer",
|
|
151
160
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "footer")]),
|
|
152
|
-
key: "
|
|
161
|
+
key: "1"
|
|
153
162
|
} : void 0]), 1032, ["trigger", "is-empty"])]),
|
|
154
163
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
155
164
|
_: 3
|
package/es/dropdown/index.d.ts
CHANGED
|
@@ -179,6 +179,8 @@ declare const Dropdown: {
|
|
|
179
179
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
180
180
|
$slots: {
|
|
181
181
|
default?: (props: {}) => any;
|
|
182
|
+
} & {
|
|
183
|
+
header?: (props: {}) => any;
|
|
182
184
|
} & {
|
|
183
185
|
content?: (props: {}) => any;
|
|
184
186
|
} & {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
.sd-dropdown {
|
|
26
26
|
box-sizing: border-box;
|
|
27
27
|
padding: 4px 0;
|
|
28
|
-
background-color: var(--sd-color-bg-popup);
|
|
29
|
-
border: 1px solid var(--sd-color-fill-3);
|
|
30
|
-
border-radius: var(--sd-border-radius-medium);
|
|
31
|
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
28
|
+
background-color: var(--component-dropdown-dropdown-color-bg, var(--component-dropdown-color-bg, var(--sd-color-bg-popup)));
|
|
29
|
+
border: 1px solid var(--component-dropdown-dropdown-color-border, var(--component-dropdown-color-border, var(--sd-color-fill-3)));
|
|
30
|
+
border-radius: var(--component-dropdown-dropdown-border-radius, var(--component-dropdown-border-radius, var(--sd-border-radius-medium)));
|
|
31
|
+
box-shadow: var(--component-dropdown-dropdown-box-shadow, var(--component-dropdown-box-shadow, 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08)));
|
|
32
32
|
}
|
|
33
33
|
.sd-dropdown-list {
|
|
34
34
|
margin-top: 0;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
list-style: none;
|
|
38
38
|
}
|
|
39
39
|
.sd-dropdown-list-wrapper {
|
|
40
|
-
max-height: 200px;
|
|
40
|
+
max-height: var(--component-dropdown-dropdown-max-height, var(--component-dropdown-max-height, var(--size-50, 200px)));
|
|
41
41
|
overflow-y: auto;
|
|
42
42
|
}
|
|
43
43
|
.sd-dropdown-option {
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
align-items: center;
|
|
48
48
|
box-sizing: border-box;
|
|
49
49
|
width: 100%;
|
|
50
|
-
padding: 0 12px;
|
|
51
|
-
color: var(--sd-color-text-1);
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
line-height: 36px;
|
|
50
|
+
padding: 0 var(--component-dropdown-dropdown-option-padding-horizontal, var(--component-dropdown-option-padding-horizontal, var(--spacing-6, 12px)));
|
|
51
|
+
color: var(--component-dropdown-dropdown-option-color-text-default, var(--component-dropdown-option-color-text-default, var(--sd-color-text-1)));
|
|
52
|
+
font-size: var(--component-dropdown-dropdown-font-size, var(--component-dropdown-font-size, var(--font-size-body-3, 14px)));
|
|
53
|
+
line-height: var(--component-dropdown-dropdown-option-height, var(--component-dropdown-option-height, var(--size-9, 36px)));
|
|
54
54
|
text-align: left;
|
|
55
|
-
background-color: transparent;
|
|
55
|
+
background-color: var(--component-dropdown-dropdown-option-color-bg-default, var(--component-dropdown-option-color-bg-default, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
}
|
|
58
58
|
.sd-dropdown-option-content {
|
|
@@ -63,14 +63,15 @@
|
|
|
63
63
|
.sd-dropdown-option-has-suffix {
|
|
64
64
|
justify-content: space-between;
|
|
65
65
|
}
|
|
66
|
-
.sd-dropdown-option-active, .sd-dropdown-option:not(.sd-dropdown-option-disabled):hover {
|
|
67
|
-
color: var(--sd-color-text-1);
|
|
68
|
-
background-color: var(--sd-color-fill-2);
|
|
66
|
+
.sd-dropdown-option-active, .sd-dropdown-option:not(.sd-dropdown-option-disabled):hover, .sd-dropdown-option:not(.sd-dropdown-option-disabled):focus-visible {
|
|
67
|
+
color: var(--component-dropdown-dropdown-option-color-text-hover, var(--component-dropdown-option-color-text-hover, var(--sd-color-text-1)));
|
|
68
|
+
background-color: var(--component-dropdown-dropdown-option-color-bg-hover, var(--component-dropdown-option-color-bg-hover, var(--sd-color-fill-2)));
|
|
69
|
+
outline: none;
|
|
69
70
|
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
70
71
|
}
|
|
71
72
|
.sd-dropdown-option-disabled {
|
|
72
|
-
color: var(--sd-color-text-4);
|
|
73
|
-
background-color: transparent;
|
|
73
|
+
color: var(--component-dropdown-dropdown-option-color-text-disabled, var(--component-dropdown-option-color-text-disabled, var(--sd-color-text-4)));
|
|
74
|
+
background-color: var(--component-dropdown-dropdown-option-color-bg-disabled, var(--component-dropdown-option-color-bg-disabled, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
74
75
|
cursor: not-allowed;
|
|
75
76
|
}
|
|
76
77
|
.sd-dropdown-option-icon {
|
|
@@ -78,19 +79,19 @@
|
|
|
78
79
|
margin-right: 8px;
|
|
79
80
|
}
|
|
80
81
|
.sd-dropdown-option-suffix {
|
|
81
|
-
margin-left: 12px;
|
|
82
|
+
margin-left: var(--component-dropdown-dropdown-margin-left-suffix-icon, var(--component-dropdown-margin-left-suffix-icon, var(--spacing-6, 12px)));
|
|
82
83
|
}
|
|
83
84
|
.sd-dropdown-group:first-child .sd-dropdown-group-title {
|
|
84
|
-
margin-top: 8px;
|
|
85
|
+
margin-top: var(--component-dropdown-dropdown-group-title-margin-top, var(--component-dropdown-group-title-margin-top, var(--spacing-4, 8px)));
|
|
85
86
|
}
|
|
86
87
|
.sd-dropdown-group-title {
|
|
87
88
|
box-sizing: border-box;
|
|
88
89
|
width: 100%;
|
|
89
|
-
margin-top: 8px;
|
|
90
|
-
padding: 0 12px;
|
|
91
|
-
color: var(--sd-color-text-3);
|
|
92
|
-
font-size: 12px;
|
|
93
|
-
line-height: 20px;
|
|
90
|
+
margin-top: var(--component-dropdown-dropdown-group-title-margin-top, var(--component-dropdown-group-title-margin-top, var(--spacing-4, 8px)));
|
|
91
|
+
padding: 0 var(--component-dropdown-dropdown-group-title-padding-horizontal, var(--component-dropdown-group-title-padding-horizontal, var(--spacing-6, 12px)));
|
|
92
|
+
color: var(--component-dropdown-dropdown-group-title-color-text, var(--component-dropdown-group-title-color-text, var(--sd-color-text-3)));
|
|
93
|
+
font-size: var(--component-dropdown-dropdown-group-title-font-size, var(--component-dropdown-group-title-font-size, var(--font-size-body-1, 12px)));
|
|
94
|
+
line-height: var(--component-dropdown-dropdown-group-title-height, var(--component-dropdown-group-title-height, var(--size-5, 20px)));
|
|
94
95
|
cursor: default;
|
|
95
96
|
overflow: hidden;
|
|
96
97
|
white-space: nowrap;
|
|
@@ -99,9 +100,15 @@
|
|
|
99
100
|
.sd-dropdown-submenu {
|
|
100
101
|
margin-top: -4px;
|
|
101
102
|
}
|
|
103
|
+
.sd-dropdown.sd-dropdown-has-header {
|
|
104
|
+
padding-top: 0;
|
|
105
|
+
}
|
|
106
|
+
.sd-dropdown-header {
|
|
107
|
+
border-bottom: 1px solid var(--component-dropdown-dropdown-color-border, var(--component-dropdown-color-border, var(--sd-color-fill-3)));
|
|
108
|
+
}
|
|
102
109
|
.sd-dropdown.sd-dropdown-has-footer {
|
|
103
110
|
padding-bottom: 0;
|
|
104
111
|
}
|
|
105
112
|
.sd-dropdown-footer {
|
|
106
|
-
border-top: 1px solid var(--sd-color-fill-3);
|
|
113
|
+
border-top: 1px solid var(--component-dropdown-dropdown-color-border, var(--component-dropdown-color-border, var(--sd-color-fill-3)));
|
|
107
114
|
}
|
|
@@ -51,11 +51,13 @@ $dropdown-prefix-cls: string.unquote('#{theme.$prefix}-dropdown');
|
|
|
51
51
|
justify-content: space-between;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
// hover
|
|
54
|
+
// 键盘焦点(程序化聚焦后属于 focus-visible)与 hover 保持同一视觉
|
|
55
55
|
&-active,
|
|
56
|
-
&:not(#{&}-disabled):hover
|
|
56
|
+
&:not(#{&}-disabled):hover,
|
|
57
|
+
&:not(#{&}-disabled):focus-visible {
|
|
57
58
|
color: $dropdown-option-color-text_hover;
|
|
58
59
|
background-color: $dropdown-option-color-bg_hover;
|
|
60
|
+
outline: none;
|
|
59
61
|
transition:
|
|
60
62
|
color theme.$transition-duration-1 theme.$transition-timing-function-standard,
|
|
61
63
|
background-color theme.$transition-duration-1 theme.$transition-timing-function-standard;
|
|
@@ -101,6 +103,14 @@ $dropdown-prefix-cls: string.unquote('#{theme.$prefix}-dropdown');
|
|
|
101
103
|
margin-top: -$dropdown-padding-vertical;
|
|
102
104
|
}
|
|
103
105
|
|
|
106
|
+
&#{&}-has-header {
|
|
107
|
+
padding-top: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&-header {
|
|
111
|
+
border-bottom: 1px solid $dropdown-color-border;
|
|
112
|
+
}
|
|
113
|
+
|
|
104
114
|
&#{&}-has-footer {
|
|
105
115
|
padding-bottom: 0;
|
|
106
116
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@style/theme/runtime.scss' as theme-runtime;
|
|
1
2
|
@use '@style/theme/index.scss' as global;
|
|
2
3
|
|
|
3
4
|
@forward '@style/theme/index.scss';
|
|
@@ -50,3 +51,125 @@ $dropdown-group-title-font-size: global.$font-size-body-1;
|
|
|
50
51
|
$dropdown-group-title-color-text: var(string.unquote('#{global.$sd-cssvars-prefix}-color-text-3'));
|
|
51
52
|
|
|
52
53
|
$dropdown-margin-left-suffix-icon: global.$spacing-6;
|
|
54
|
+
|
|
55
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
56
|
+
$dropdown-max-height: theme-runtime.token(
|
|
57
|
+
'dropdown',
|
|
58
|
+
'dropdown-max-height',
|
|
59
|
+
$dropdown-max-height,
|
|
60
|
+
'size-50'
|
|
61
|
+
);
|
|
62
|
+
$dropdown-border-radius: theme-runtime.token(
|
|
63
|
+
'dropdown',
|
|
64
|
+
'dropdown-border-radius',
|
|
65
|
+
$dropdown-border-radius
|
|
66
|
+
);
|
|
67
|
+
$dropdown-font-size: theme-runtime.token(
|
|
68
|
+
'dropdown',
|
|
69
|
+
'dropdown-font-size',
|
|
70
|
+
$dropdown-font-size,
|
|
71
|
+
'font-size-body-3'
|
|
72
|
+
);
|
|
73
|
+
$dropdown-color-bg: theme-runtime.token('dropdown', 'dropdown-color-bg', $dropdown-color-bg);
|
|
74
|
+
$dropdown-color-border: theme-runtime.token(
|
|
75
|
+
'dropdown',
|
|
76
|
+
'dropdown-color-border',
|
|
77
|
+
$dropdown-color-border
|
|
78
|
+
);
|
|
79
|
+
$dropdown-box-shadow: theme-runtime.token('dropdown', 'dropdown-box-shadow', $dropdown-box-shadow);
|
|
80
|
+
$dropdown-option-height: theme-runtime.token(
|
|
81
|
+
'dropdown',
|
|
82
|
+
'dropdown-option-height',
|
|
83
|
+
$dropdown-option-height,
|
|
84
|
+
'size-9'
|
|
85
|
+
);
|
|
86
|
+
$dropdown-option-padding-horizontal: theme-runtime.token(
|
|
87
|
+
'dropdown',
|
|
88
|
+
'dropdown-option-padding-horizontal',
|
|
89
|
+
$dropdown-option-padding-horizontal,
|
|
90
|
+
'spacing-6'
|
|
91
|
+
);
|
|
92
|
+
$dropdown-option-font-weight_selected: theme-runtime.token(
|
|
93
|
+
'dropdown',
|
|
94
|
+
'dropdown-option-font-weight-selected',
|
|
95
|
+
$dropdown-option-font-weight_selected,
|
|
96
|
+
'font-weight-500'
|
|
97
|
+
);
|
|
98
|
+
$dropdown-option-color-bg_default: theme-runtime.token(
|
|
99
|
+
'dropdown',
|
|
100
|
+
'dropdown-option-color-bg-default',
|
|
101
|
+
$dropdown-option-color-bg_default,
|
|
102
|
+
'color-transparent'
|
|
103
|
+
);
|
|
104
|
+
$dropdown-option-color-bg_hover: theme-runtime.token(
|
|
105
|
+
'dropdown',
|
|
106
|
+
'dropdown-option-color-bg-hover',
|
|
107
|
+
$dropdown-option-color-bg_hover
|
|
108
|
+
);
|
|
109
|
+
$dropdown-option-color-bg_selected: theme-runtime.token(
|
|
110
|
+
'dropdown',
|
|
111
|
+
'dropdown-option-color-bg-selected',
|
|
112
|
+
$dropdown-option-color-bg_selected,
|
|
113
|
+
'color-transparent'
|
|
114
|
+
);
|
|
115
|
+
$dropdown-option-color-bg_disabled: theme-runtime.token(
|
|
116
|
+
'dropdown',
|
|
117
|
+
'dropdown-option-color-bg-disabled',
|
|
118
|
+
$dropdown-option-color-bg_disabled,
|
|
119
|
+
'color-transparent'
|
|
120
|
+
);
|
|
121
|
+
$dropdown-option-color-text_default: theme-runtime.token(
|
|
122
|
+
'dropdown',
|
|
123
|
+
'dropdown-option-color-text-default',
|
|
124
|
+
$dropdown-option-color-text_default
|
|
125
|
+
);
|
|
126
|
+
$dropdown-option-color-text_hover: theme-runtime.token(
|
|
127
|
+
'dropdown',
|
|
128
|
+
'dropdown-option-color-text-hover',
|
|
129
|
+
$dropdown-option-color-text_hover
|
|
130
|
+
);
|
|
131
|
+
$dropdown-option-color-text_selected: theme-runtime.token(
|
|
132
|
+
'dropdown',
|
|
133
|
+
'dropdown-option-color-text-selected',
|
|
134
|
+
$dropdown-option-color-text_selected
|
|
135
|
+
);
|
|
136
|
+
$dropdown-option-color-text_disabled: theme-runtime.token(
|
|
137
|
+
'dropdown',
|
|
138
|
+
'dropdown-option-color-text-disabled',
|
|
139
|
+
$dropdown-option-color-text_disabled
|
|
140
|
+
);
|
|
141
|
+
$dropdown-group-title-height: theme-runtime.token(
|
|
142
|
+
'dropdown',
|
|
143
|
+
'dropdown-group-title-height',
|
|
144
|
+
$dropdown-group-title-height,
|
|
145
|
+
'size-5'
|
|
146
|
+
);
|
|
147
|
+
$dropdown-group-title-padding-horizontal: theme-runtime.token(
|
|
148
|
+
'dropdown',
|
|
149
|
+
'dropdown-group-title-padding-horizontal',
|
|
150
|
+
$dropdown-group-title-padding-horizontal,
|
|
151
|
+
'spacing-6'
|
|
152
|
+
);
|
|
153
|
+
$dropdown-group-title-margin-top: theme-runtime.token(
|
|
154
|
+
'dropdown',
|
|
155
|
+
'dropdown-group-title-margin-top',
|
|
156
|
+
$dropdown-group-title-margin-top,
|
|
157
|
+
'spacing-4'
|
|
158
|
+
);
|
|
159
|
+
$dropdown-group-title-font-size: theme-runtime.token(
|
|
160
|
+
'dropdown',
|
|
161
|
+
'dropdown-group-title-font-size',
|
|
162
|
+
$dropdown-group-title-font-size,
|
|
163
|
+
'font-size-body-1'
|
|
164
|
+
);
|
|
165
|
+
$dropdown-group-title-color-text: theme-runtime.token(
|
|
166
|
+
'dropdown',
|
|
167
|
+
'dropdown-group-title-color-text',
|
|
168
|
+
$dropdown-group-title-color-text
|
|
169
|
+
);
|
|
170
|
+
$dropdown-margin-left-suffix-icon: theme-runtime.token(
|
|
171
|
+
'dropdown',
|
|
172
|
+
'dropdown-margin-left-suffix-icon',
|
|
173
|
+
$dropdown-margin-left-suffix-icon,
|
|
174
|
+
'spacing-6'
|
|
175
|
+
);
|
|
@@ -7,7 +7,7 @@ import { RichLineClamp } from "../clamp/index.js";
|
|
|
7
7
|
import Tooltip from "../tooltip/index.js";
|
|
8
8
|
import { computed, createBlock, createElementBlock, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, resolveDynamicComponent, shallowRef, unref, watch, withCtx } from "vue";
|
|
9
9
|
//#region components/ellipsis/ellipsis.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var _excluded = ["disabled"];
|
|
10
|
+
var _excluded = ["always", "disabled"];
|
|
11
11
|
var INTERACTIVE_SELECTOR = "a,button,input,textarea,select,[role=\"button\"]";
|
|
12
12
|
var ellipsis_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
13
13
|
name: "Ellipsis",
|
|
@@ -50,11 +50,11 @@ var ellipsis_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
50
50
|
});
|
|
51
51
|
const tooltipConfig = computed(() => isObject(props.tooltip) ? props.tooltip : {});
|
|
52
52
|
const tooltipBindings = computed(() => {
|
|
53
|
-
const _tooltipConfig$value = tooltipConfig.value, { disabled: _disabled } = _tooltipConfig$value;
|
|
53
|
+
const _tooltipConfig$value = tooltipConfig.value, { always: _always, disabled: _disabled } = _tooltipConfig$value;
|
|
54
54
|
return _objectWithoutProperties(_tooltipConfig$value, _excluded);
|
|
55
55
|
});
|
|
56
56
|
const enableTooltip = computed(() => props.tooltip !== false);
|
|
57
|
-
const tooltipDisabled = computed(() =>
|
|
57
|
+
const tooltipDisabled = computed(() => expanded.value || Boolean(tooltipConfig.value.disabled) || !isEllipsis.value && !tooltipConfig.value.always);
|
|
58
58
|
const isExpandable = computed(() => props.expandTrigger === "click" && (isEllipsis.value || expanded.value));
|
|
59
59
|
const rootCls = computed(() => [prefixCls, {
|
|
60
60
|
[`${prefixCls}--single-line`]: !isLineClamp.value && !expanded.value,
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
/********* icon hover *********/
|
|
18
18
|
.sd-ellipsis {
|
|
19
19
|
display: inline-block;
|
|
20
|
-
max-width: 100
|
|
21
|
-
color: inherit;
|
|
20
|
+
max-width: var(--component-ellipsis-ellipsis-max-width, var(--component-ellipsis-max-width, 100%));
|
|
21
|
+
color: var(--component-ellipsis-ellipsis-color-text, var(--component-ellipsis-color-text, inherit));
|
|
22
22
|
vertical-align: bottom;
|
|
23
23
|
}
|
|
24
24
|
.sd-ellipsis--single-line {
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
@use '@style/theme/runtime.scss' as theme-runtime;
|
|
1
2
|
@use '@style/theme/index.scss' as *;
|
|
2
3
|
|
|
3
4
|
$ellipsis-max-width: 100%;
|
|
4
5
|
|
|
5
6
|
$ellipsis-color-text: inherit;
|
|
7
|
+
|
|
8
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
9
|
+
$ellipsis-max-width: theme-runtime.token('ellipsis', 'ellipsis-max-width', $ellipsis-max-width);
|
|
10
|
+
$ellipsis-color-text: theme-runtime.token('ellipsis', 'ellipsis-color-text', $ellipsis-color-text);
|
package/es/empty/style/index.css
CHANGED
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
.sd-empty {
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
width: 100%;
|
|
21
|
-
padding: 10px 0;
|
|
21
|
+
padding: var(--component-empty-empty-spacing-padding, var(--component-empty-spacing-padding, var(--spacing-5, 10px))) 0;
|
|
22
22
|
text-align: center;
|
|
23
23
|
}
|
|
24
24
|
.sd-empty-image {
|
|
25
|
-
margin-bottom: 4px;
|
|
26
|
-
color: rgb(var(--sd-gray-5));
|
|
27
|
-
font-size: 48px;
|
|
25
|
+
margin-bottom: var(--component-empty-empty-spacing-image-margin-bottom, var(--component-empty-spacing-image-margin-bottom, var(--spacing-2, 4px)));
|
|
26
|
+
color: var(--component-empty-empty-color-icon, var(--component-empty-color-icon, rgb(var(--sd-gray-5))));
|
|
27
|
+
font-size: var(--component-empty-empty-font-size-image, var(--component-empty-font-size-image, var(--size-12, 48px)));
|
|
28
28
|
line-height: 1;
|
|
29
29
|
}
|
|
30
30
|
.sd-empty-image img {
|
|
31
|
-
height: 80px;
|
|
31
|
+
height: var(--component-empty-empty-size-img-height, var(--component-empty-size-img-height, var(--size-20, 80px)));
|
|
32
32
|
}
|
|
33
33
|
.sd-empty .sd-empty-description {
|
|
34
|
-
color: rgb(var(--sd-gray-5));
|
|
35
|
-
font-size: 14px;
|
|
34
|
+
color: var(--component-empty-empty-color-text, var(--component-empty-color-text, rgb(var(--sd-gray-5))));
|
|
35
|
+
font-size: var(--component-empty-empty-font-size-text, var(--component-empty-font-size-text, var(--font-size-body-3, 14px)));
|
|
36
36
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@style/theme/runtime.scss' as theme-runtime;
|
|
1
2
|
@use '@style/theme/index.scss' as global;
|
|
2
3
|
|
|
3
4
|
@forward '@style/theme/index.scss';
|
|
@@ -19,3 +20,37 @@ $empty-size-img-height: global.$size-20;
|
|
|
19
20
|
$empty-color-icon: rgb(var(string.unquote('#{global.$sd-cssvars-prefix}-gray-5')));
|
|
20
21
|
|
|
21
22
|
$empty-font-size-text: global.$font-size-body-3;
|
|
23
|
+
|
|
24
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
25
|
+
$empty-spacing-padding: theme-runtime.token(
|
|
26
|
+
'empty',
|
|
27
|
+
'empty-spacing-padding',
|
|
28
|
+
$empty-spacing-padding,
|
|
29
|
+
'spacing-5'
|
|
30
|
+
);
|
|
31
|
+
$empty-color-text: theme-runtime.token('empty', 'empty-color-text', $empty-color-text);
|
|
32
|
+
$empty-font-size-image: theme-runtime.token(
|
|
33
|
+
'empty',
|
|
34
|
+
'empty-font-size-image',
|
|
35
|
+
$empty-font-size-image,
|
|
36
|
+
'size-12'
|
|
37
|
+
);
|
|
38
|
+
$empty-spacing-image-margin-bottom: theme-runtime.token(
|
|
39
|
+
'empty',
|
|
40
|
+
'empty-spacing-image-margin-bottom',
|
|
41
|
+
$empty-spacing-image-margin-bottom,
|
|
42
|
+
'spacing-2'
|
|
43
|
+
);
|
|
44
|
+
$empty-size-img-height: theme-runtime.token(
|
|
45
|
+
'empty',
|
|
46
|
+
'empty-size-img-height',
|
|
47
|
+
$empty-size-img-height,
|
|
48
|
+
'size-20'
|
|
49
|
+
);
|
|
50
|
+
$empty-color-icon: theme-runtime.token('empty', 'empty-color-icon', $empty-color-icon);
|
|
51
|
+
$empty-font-size-text: theme-runtime.token(
|
|
52
|
+
'empty',
|
|
53
|
+
'empty-font-size-text',
|
|
54
|
+
$empty-font-size-text,
|
|
55
|
+
'font-size-body-3'
|
|
56
|
+
);
|