@sdata/web-vue 3.2.1 → 3.3.1
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 +2 -2
- package/dist/sd.css +91 -17
- package/dist/sd.min.css +1 -1
- package/es/_components/select-view/style/index.css +5 -6
- package/es/_components/virtual-list-v2/hooks/use-size.d.ts +17 -0
- package/es/_components/virtual-list-v2/hooks/use-size.js +95 -0
- package/es/_components/virtual-list-v2/index.d.ts +2 -0
- package/es/_components/virtual-list-v2/index.js +5 -0
- package/es/_components/virtual-list-v2/interface.d.ts +44 -0
- package/es/_components/virtual-list-v2/virtual-list-item.d.ts +22 -0
- package/es/_components/virtual-list-v2/virtual-list-item.js +37 -0
- package/es/_components/virtual-list-v2/virtual-list.js +47 -0
- package/es/_components/virtual-list-v2/virtual-list.vue.d.ts +749 -0
- package/es/_components/virtual-list-v2/virtual-list.vue_vue_type_script_lang.js +179 -0
- package/es/_hooks/use-config-provider-prop.d.ts +1 -1
- package/es/_virtual/_plugin-vue_export-helper.js +8 -0
- package/es/color-picker/hooks/use-control-block.js +4 -1
- package/es/components.d.ts +1 -0
- package/es/config-provider/config-provider.vue.d.ts +7 -1
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +7 -1
- package/es/config-provider/context.d.ts +14 -0
- package/es/config-provider/index.d.ts +9 -0
- package/es/index.css +91 -17
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/es/index.scss +1 -0
- package/es/input-tag/style/index.css +5 -6
- package/es/input-tag/style/input-tag.scss +30 -10
- package/es/message/message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/pagination.js +101 -19
- package/es/sd-vue.js +2 -0
- package/es/table/context.d.ts +1 -1
- package/es/table/hooks/use-column-resize.d.ts +3 -2
- package/es/table/hooks/use-column-resize.js +21 -48
- package/es/table/hooks/use-drag.d.ts +1 -3
- package/es/table/hooks/use-drag.js +2 -18
- package/es/table/index.d.ts +21 -36
- package/es/table/style/index.css +12 -5
- package/es/table/style/index.scss +16 -6
- package/es/table/table-operation-td.js +15 -12
- package/es/table/table-operation-th.js +2 -2
- package/es/table/table-tbody.js +3 -1
- package/es/table/table-td.js +3 -4
- package/es/table/table-th.js +24 -40
- package/es/table/table-thead.js +3 -1
- package/es/table/table.d.ts +13 -19
- package/es/table/table.js +205 -424
- package/es/table/utils.d.ts +2 -0
- package/es/table/utils.js +11 -1
- package/es/tag/index.d.ts +3 -3
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +16 -5
- package/es/toolbar/index.d.ts +72 -0
- package/es/toolbar/index.js +10 -0
- package/es/toolbar/style/css.js +2 -0
- package/es/toolbar/style/index.css +85 -0
- package/es/toolbar/style/index.d.ts +2 -0
- package/es/toolbar/style/index.js +2 -0
- package/es/toolbar/style/index.scss +97 -0
- package/es/toolbar/style/token.scss +25 -0
- package/es/toolbar/toolbar.js +5 -0
- package/es/toolbar/toolbar.vue.d.ts +44 -0
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +197 -0
- package/es/toolbar/types.d.ts +26 -0
- package/es/trigger/trigger.js +5 -1
- package/json/vetur-attributes.json +76 -1
- package/json/vetur-tags.json +24 -0
- package/json/web-types.json +163 -7
- package/package.json +1 -1
- package/es/table/table-col-group.vue.d.ts +0 -29
package/README.md
CHANGED
|
@@ -120,8 +120,8 @@ pnpm --filter @sdata/web-vue run test:update
|
|
|
120
120
|
|
|
121
121
|
# 相关链接
|
|
122
122
|
|
|
123
|
-
- [暗黑模式](https://
|
|
124
|
-
- [主题配置](https://
|
|
123
|
+
- [暗黑模式](https://sd-design.js.org/guides/dark)
|
|
124
|
+
- [主题配置](https://sd-design.js.org/guides/theme)
|
|
125
125
|
- [Figma 设计资源](https://www.figma.com/file/FVu1DydEeXvJqXrkOb90Oi/SD Design%E7%BB%84%E4%BB%B6%E8%AE%BE%E8%AE%A1_2.0?node-id=5472%3A308)
|
|
126
126
|
|
|
127
127
|
# 参与贡献
|
package/dist/sd.css
CHANGED
|
@@ -2709,19 +2709,18 @@ body {
|
|
|
2709
2709
|
align-items: center;
|
|
2710
2710
|
min-width: 0;
|
|
2711
2711
|
margin-right: 4px;
|
|
2712
|
-
color: var(--sd-color-text-1);
|
|
2713
2712
|
font-size: 12px;
|
|
2714
2713
|
white-space: pre-wrap;
|
|
2715
2714
|
word-break: break-word;
|
|
2715
|
+
}
|
|
2716
|
+
.sd-select-view-multiple .sd-select-view-inner .sd-select-view-tag:not(.sd-tag-custom-color):not(.sd-tag-red):not(.sd-tag-orangered):not(.sd-tag-orange):not(.sd-tag-gold):not(.sd-tag-lime):not(.sd-tag-green):not(.sd-tag-cyan):not(.sd-tag-blue):not(.sd-tag-sdblue):not(.sd-tag-purple):not(.sd-tag-pinkpurple):not(.sd-tag-magenta) {
|
|
2717
|
+
color: var(--sd-color-text-1);
|
|
2716
2718
|
background-color: var(--sd-color-bg-2);
|
|
2717
2719
|
border-color: var(--sd-color-fill-3);
|
|
2718
2720
|
}
|
|
2719
2721
|
.sd-select-view-multiple .sd-select-view-inner .sd-select-view-tag .sd-icon-hover:hover::before {
|
|
2720
2722
|
background-color: var(--sd-color-fill-2);
|
|
2721
2723
|
}
|
|
2722
|
-
.sd-select-view-multiple .sd-select-view-inner .sd-select-view-tag.sd-tag-custom-color {
|
|
2723
|
-
color: var(--sd-color-white);
|
|
2724
|
-
}
|
|
2725
2724
|
.sd-select-view-multiple .sd-select-view-inner .sd-select-view-tag.sd-tag-custom-color .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
2726
2725
|
background-color: rgba(255, 255, 255, 0.2);
|
|
2727
2726
|
}
|
|
@@ -2796,14 +2795,14 @@ body {
|
|
|
2796
2795
|
max-width: 100%;
|
|
2797
2796
|
vertical-align: bottom;
|
|
2798
2797
|
}
|
|
2799
|
-
.sd-select-view-multiple.sd-select-view-focus .sd-select-view-tag {
|
|
2798
|
+
.sd-select-view-multiple.sd-select-view-focus .sd-select-view-tag:not(.sd-tag-custom-color):not(.sd-tag-red):not(.sd-tag-orangered):not(.sd-tag-orange):not(.sd-tag-gold):not(.sd-tag-lime):not(.sd-tag-green):not(.sd-tag-cyan):not(.sd-tag-blue):not(.sd-tag-sdblue):not(.sd-tag-purple):not(.sd-tag-pinkpurple):not(.sd-tag-magenta) {
|
|
2800
2799
|
background-color: var(--sd-color-fill-2);
|
|
2801
2800
|
border-color: var(--sd-color-fill-2);
|
|
2802
2801
|
}
|
|
2803
2802
|
.sd-select-view-multiple.sd-select-view-focus .sd-select-view-tag .sd-icon-hover:hover::before {
|
|
2804
2803
|
background-color: var(--sd-color-fill-3);
|
|
2805
2804
|
}
|
|
2806
|
-
.sd-select-view-multiple.sd-select-view-disabled .sd-select-view-tag {
|
|
2805
|
+
.sd-select-view-multiple.sd-select-view-disabled .sd-select-view-tag:not(.sd-tag-custom-color):not(.sd-tag-red):not(.sd-tag-orangered):not(.sd-tag-orange):not(.sd-tag-gold):not(.sd-tag-lime):not(.sd-tag-green):not(.sd-tag-cyan):not(.sd-tag-blue):not(.sd-tag-sdblue):not(.sd-tag-purple):not(.sd-tag-pinkpurple):not(.sd-tag-magenta) {
|
|
2807
2806
|
color: var(--sd-color-text-4);
|
|
2808
2807
|
background-color: var(--sd-color-fill-2);
|
|
2809
2808
|
border-color: var(--sd-color-fill-3);
|
|
@@ -5251,6 +5250,75 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
5251
5250
|
resize: vertical;
|
|
5252
5251
|
}
|
|
5253
5252
|
|
|
5253
|
+
.sd-toolbar {
|
|
5254
|
+
width: 100%;
|
|
5255
|
+
}
|
|
5256
|
+
.sd-toolbar-inner {
|
|
5257
|
+
display: flex;
|
|
5258
|
+
flex-wrap: wrap;
|
|
5259
|
+
gap: 12px;
|
|
5260
|
+
align-items: flex-start;
|
|
5261
|
+
width: 100%;
|
|
5262
|
+
}
|
|
5263
|
+
.sd-toolbar-with-border .sd-toolbar-inner {
|
|
5264
|
+
padding-bottom: 8px;
|
|
5265
|
+
border-bottom: 1px solid var(--sd-color-neutral-3);
|
|
5266
|
+
}
|
|
5267
|
+
.sd-toolbar-body {
|
|
5268
|
+
flex: 1 1 0;
|
|
5269
|
+
min-width: 0;
|
|
5270
|
+
max-height: var(--toolbar-body-max-height);
|
|
5271
|
+
overflow: hidden;
|
|
5272
|
+
transition: max-height 0.3s ease;
|
|
5273
|
+
}
|
|
5274
|
+
.sd-toolbar-body--schema .sd-form {
|
|
5275
|
+
display: grid;
|
|
5276
|
+
flex: 1;
|
|
5277
|
+
grid-template-columns: repeat(auto-fill, minmax(var(--toolbar-span-width), 1fr));
|
|
5278
|
+
gap: 8px;
|
|
5279
|
+
width: 100%;
|
|
5280
|
+
background-color: var(--sd-color-bg-2);
|
|
5281
|
+
}
|
|
5282
|
+
.sd-toolbar-body--schema .sd-form > * {
|
|
5283
|
+
max-width: var(--toolbar-item-max-width);
|
|
5284
|
+
}
|
|
5285
|
+
.sd-toolbar-body--schema .sd-form-item {
|
|
5286
|
+
margin-bottom: 0;
|
|
5287
|
+
}
|
|
5288
|
+
.sd-toolbar-body--schema .sd-form-item-content {
|
|
5289
|
+
min-height: var(--toolbar-item-height);
|
|
5290
|
+
}
|
|
5291
|
+
.sd-toolbar-body--max-width .sd-form {
|
|
5292
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--toolbar-item-max-width), var(--toolbar-span-width)), var(--toolbar-item-max-width)));
|
|
5293
|
+
}
|
|
5294
|
+
.sd-toolbar-actions {
|
|
5295
|
+
display: flex;
|
|
5296
|
+
flex-shrink: 0;
|
|
5297
|
+
gap: 8px;
|
|
5298
|
+
align-items: center;
|
|
5299
|
+
align-self: flex-end;
|
|
5300
|
+
white-space: nowrap;
|
|
5301
|
+
}
|
|
5302
|
+
.sd-toolbar-expand {
|
|
5303
|
+
display: inline-flex;
|
|
5304
|
+
gap: 4px;
|
|
5305
|
+
align-items: center;
|
|
5306
|
+
}
|
|
5307
|
+
.sd-toolbar-expand-icon {
|
|
5308
|
+
transition: transform 0.3s ease;
|
|
5309
|
+
}
|
|
5310
|
+
.sd-toolbar-expand-icon--up {
|
|
5311
|
+
transform: rotate(180deg);
|
|
5312
|
+
}
|
|
5313
|
+
@media screen and (width <= 640px) {
|
|
5314
|
+
.sd-toolbar-body--schema .sd-form {
|
|
5315
|
+
grid-template-columns: minmax(0, 1fr) !important;
|
|
5316
|
+
}
|
|
5317
|
+
.sd-toolbar-body--schema .sd-form-item {
|
|
5318
|
+
grid-column: span 1 !important;
|
|
5319
|
+
}
|
|
5320
|
+
}
|
|
5321
|
+
|
|
5254
5322
|
.sd-tag-group {
|
|
5255
5323
|
position: relative;
|
|
5256
5324
|
display: inline-flex;
|
|
@@ -6232,6 +6300,9 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
6232
6300
|
grid-column: 1/-1;
|
|
6233
6301
|
grid-template-columns: var(--sd-table-grid-template, minmax(0, 1fr));
|
|
6234
6302
|
}
|
|
6303
|
+
.sd-table-thead > .sd-table-tr, .sd-table-tbody > .sd-table-tr, .sd-table-tfoot-content > .sd-table-tr {
|
|
6304
|
+
display: contents;
|
|
6305
|
+
}
|
|
6235
6306
|
.sd-table-tbody > .sd-virtual-list, .sd-table-tbody > .sd-table-body {
|
|
6236
6307
|
grid-column: 1/-1;
|
|
6237
6308
|
width: 100%;
|
|
@@ -6566,9 +6637,10 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
6566
6637
|
flex-direction: column;
|
|
6567
6638
|
width: auto;
|
|
6568
6639
|
height: 100%;
|
|
6640
|
+
overflow: hidden;
|
|
6569
6641
|
}
|
|
6570
6642
|
.sd-table-container .sd-table-content-scroll-x {
|
|
6571
|
-
overflow:
|
|
6643
|
+
overflow: hidden;
|
|
6572
6644
|
}
|
|
6573
6645
|
.sd-table-container::before, .sd-table-container::after {
|
|
6574
6646
|
position: absolute;
|
|
@@ -6597,6 +6669,7 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
6597
6669
|
box-shadow: inset -6px 0 8px -3px rgba(0, 0, 0, 0.15);
|
|
6598
6670
|
}
|
|
6599
6671
|
.sd-table-header {
|
|
6672
|
+
flex: 0 0 auto;
|
|
6600
6673
|
width: 100%;
|
|
6601
6674
|
min-width: 100%;
|
|
6602
6675
|
overflow: hidden;
|
|
@@ -6621,13 +6694,15 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
6621
6694
|
background-color: transparent;
|
|
6622
6695
|
}
|
|
6623
6696
|
.sd-table.sd-table-empty .sd-table-header {
|
|
6624
|
-
overflow-x:
|
|
6697
|
+
overflow-x: hidden;
|
|
6625
6698
|
}
|
|
6626
6699
|
.sd-table-body {
|
|
6627
6700
|
position: relative;
|
|
6701
|
+
flex: 1 1 auto;
|
|
6628
6702
|
width: 100%;
|
|
6629
|
-
min-
|
|
6630
|
-
|
|
6703
|
+
min-width: 0;
|
|
6704
|
+
min-height: 0;
|
|
6705
|
+
overflow: hidden;
|
|
6631
6706
|
background-color: var(--sd-color-bg-2);
|
|
6632
6707
|
}
|
|
6633
6708
|
.sd-table-border .sd-table-container {
|
|
@@ -6747,7 +6822,7 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
6747
6822
|
z-index: 1;
|
|
6748
6823
|
flex-shrink: 0;
|
|
6749
6824
|
width: 100%;
|
|
6750
|
-
overflow-x:
|
|
6825
|
+
overflow-x: hidden;
|
|
6751
6826
|
background-color: var(--sd-color-neutral-2);
|
|
6752
6827
|
box-shadow: 0 -1px 0 var(--sd-color-neutral-3);
|
|
6753
6828
|
scrollbar-color: transparent transparent;
|
|
@@ -11538,19 +11613,18 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
11538
11613
|
align-items: center;
|
|
11539
11614
|
min-width: 0;
|
|
11540
11615
|
margin-right: 4px;
|
|
11541
|
-
color: var(--sd-color-text-1);
|
|
11542
11616
|
font-size: 12px;
|
|
11543
11617
|
white-space: pre-wrap;
|
|
11544
11618
|
word-break: break-word;
|
|
11619
|
+
}
|
|
11620
|
+
.sd-input-tag .sd-input-tag-inner .sd-input-tag-tag:not(.sd-tag-custom-color):not(.sd-tag-red):not(.sd-tag-orangered):not(.sd-tag-orange):not(.sd-tag-gold):not(.sd-tag-lime):not(.sd-tag-green):not(.sd-tag-cyan):not(.sd-tag-blue):not(.sd-tag-sdblue):not(.sd-tag-purple):not(.sd-tag-pinkpurple):not(.sd-tag-magenta) {
|
|
11621
|
+
color: var(--sd-color-text-1);
|
|
11545
11622
|
background-color: var(--sd-color-bg-2);
|
|
11546
11623
|
border-color: var(--sd-color-fill-3);
|
|
11547
11624
|
}
|
|
11548
11625
|
.sd-input-tag .sd-input-tag-inner .sd-input-tag-tag .sd-icon-hover:hover::before {
|
|
11549
11626
|
background-color: var(--sd-color-fill-2);
|
|
11550
11627
|
}
|
|
11551
|
-
.sd-input-tag .sd-input-tag-inner .sd-input-tag-tag.sd-tag-custom-color {
|
|
11552
|
-
color: var(--sd-color-white);
|
|
11553
|
-
}
|
|
11554
11628
|
.sd-input-tag .sd-input-tag-inner .sd-input-tag-tag.sd-tag-custom-color .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
11555
11629
|
background-color: rgba(255, 255, 255, 0.2);
|
|
11556
11630
|
}
|
|
@@ -11625,14 +11699,14 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
11625
11699
|
max-width: 100%;
|
|
11626
11700
|
vertical-align: bottom;
|
|
11627
11701
|
}
|
|
11628
|
-
.sd-input-tag.sd-input-tag-focus .sd-input-tag-tag {
|
|
11702
|
+
.sd-input-tag.sd-input-tag-focus .sd-input-tag-tag:not(.sd-tag-custom-color):not(.sd-tag-red):not(.sd-tag-orangered):not(.sd-tag-orange):not(.sd-tag-gold):not(.sd-tag-lime):not(.sd-tag-green):not(.sd-tag-cyan):not(.sd-tag-blue):not(.sd-tag-sdblue):not(.sd-tag-purple):not(.sd-tag-pinkpurple):not(.sd-tag-magenta) {
|
|
11629
11703
|
background-color: var(--sd-color-fill-2);
|
|
11630
11704
|
border-color: var(--sd-color-fill-2);
|
|
11631
11705
|
}
|
|
11632
11706
|
.sd-input-tag.sd-input-tag-focus .sd-input-tag-tag .sd-icon-hover:hover::before {
|
|
11633
11707
|
background-color: var(--sd-color-fill-3);
|
|
11634
11708
|
}
|
|
11635
|
-
.sd-input-tag.sd-input-tag-disabled .sd-input-tag-tag {
|
|
11709
|
+
.sd-input-tag.sd-input-tag-disabled .sd-input-tag-tag:not(.sd-tag-custom-color):not(.sd-tag-red):not(.sd-tag-orangered):not(.sd-tag-orange):not(.sd-tag-gold):not(.sd-tag-lime):not(.sd-tag-green):not(.sd-tag-cyan):not(.sd-tag-blue):not(.sd-tag-sdblue):not(.sd-tag-purple):not(.sd-tag-pinkpurple):not(.sd-tag-magenta) {
|
|
11636
11710
|
color: var(--sd-color-text-4);
|
|
11637
11711
|
background-color: var(--sd-color-fill-2);
|
|
11638
11712
|
border-color: var(--sd-color-fill-3);
|