naive-ui 2.34.0 → 2.34.2
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/index.js +93 -95
- package/dist/index.prod.js +1 -1
- package/es/config-provider/src/katex.d.ts +2 -0
- package/es/config-provider/src/katex.js +1 -0
- package/es/data-table/src/TableParts/Header.js +3 -3
- package/es/data-table/src/styles/index.cssr.js +89 -91
- package/es/select/src/Select.js +0 -1
- package/es/tree/src/Tree.d.ts +12 -4
- package/es/tree/src/Tree.js +2 -14
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/config-provider/src/katex.d.ts +2 -0
- package/lib/config-provider/src/katex.js +2 -0
- package/lib/data-table/src/TableParts/Header.js +3 -3
- package/lib/data-table/src/styles/index.cssr.js +89 -91
- package/lib/select/src/Select.js +0 -1
- package/lib/tree/src/Tree.d.ts +12 -4
- package/lib/tree/src/Tree.js +2 -14
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59152,7 +59152,6 @@
|
|
|
59152
59152
|
const selectedOptionsRef = vue.computed(() => {
|
|
59153
59153
|
if (props.multiple) {
|
|
59154
59154
|
const { value: values } = mergedValueRef;
|
|
59155
|
-
console.log("values", values);
|
|
59156
59155
|
if (!Array.isArray(values))
|
|
59157
59156
|
return [];
|
|
59158
59157
|
return getMergedOptions(values);
|
|
@@ -64328,6 +64327,8 @@
|
|
|
64328
64327
|
}) : null) : null;
|
|
64329
64328
|
}
|
|
64330
64329
|
return /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h("div", {
|
|
64330
|
+
class: `${mergedClsPrefix}-data-table-th__title-wrapper`
|
|
64331
|
+
}, /* @__PURE__ */ vue.h("div", {
|
|
64331
64332
|
class: `${mergedClsPrefix}-data-table-th__title`
|
|
64332
64333
|
}, ellipsis === true || ellipsis && !ellipsis.tooltip ? /* @__PURE__ */ vue.h("div", {
|
|
64333
64334
|
class: `${mergedClsPrefix}-data-table-th__ellipsis`
|
|
@@ -64337,7 +64338,7 @@
|
|
|
64337
64338
|
themeOverrides: mergedTheme.peerOverrides.Ellipsis
|
|
64338
64339
|
}, {
|
|
64339
64340
|
default: () => renderTitle(column)
|
|
64340
|
-
}) : renderTitle(column), isColumnSortable(column) ? /* @__PURE__ */ vue.h(SortButton, {
|
|
64341
|
+
}) : renderTitle(column)), isColumnSortable(column) ? /* @__PURE__ */ vue.h(SortButton, {
|
|
64341
64342
|
column
|
|
64342
64343
|
}) : null), isColumnFilterable(column) ? /* @__PURE__ */ vue.h(FilterButton, {
|
|
64343
64344
|
column,
|
|
@@ -66606,37 +66607,39 @@
|
|
|
66606
66607
|
color .3s var(--n-bezier),
|
|
66607
66608
|
background-color .3s var(--n-bezier);
|
|
66608
66609
|
font-weight: var(--n-th-font-weight);
|
|
66609
|
-
`, [cM("filterable",
|
|
66610
|
-
|
|
66611
|
-
|
|
66612
|
-
|
|
66613
|
-
|
|
66610
|
+
`, [cM("filterable", `
|
|
66611
|
+
padding-right: 36px;
|
|
66612
|
+
`, [cM("sortable", `
|
|
66613
|
+
padding-right: calc(var(--n-th-padding) + 36px);
|
|
66614
|
+
`)]), fixedColumnStyle, cM("selection", `
|
|
66614
66615
|
padding: 0;
|
|
66615
66616
|
text-align: center;
|
|
66616
66617
|
line-height: 0;
|
|
66617
66618
|
z-index: 3;
|
|
66618
|
-
`), cE("title",
|
|
66619
|
-
|
|
66620
|
-
|
|
66621
|
-
|
|
66622
|
-
|
|
66623
|
-
|
|
66624
|
-
|
|
66619
|
+
`), cE("title-wrapper", `
|
|
66620
|
+
display: flex;
|
|
66621
|
+
align-items: center;
|
|
66622
|
+
flex-wrap: nowrap;
|
|
66623
|
+
max-width: 100%;
|
|
66624
|
+
`, [cE("title", `
|
|
66625
|
+
flex: 1;
|
|
66626
|
+
min-width: 0;
|
|
66627
|
+
`)]), cE("ellipsis", `
|
|
66625
66628
|
display: inline-block;
|
|
66626
66629
|
vertical-align: bottom;
|
|
66627
66630
|
text-overflow: ellipsis;
|
|
66628
66631
|
overflow: hidden;
|
|
66629
66632
|
white-space: nowrap;
|
|
66630
66633
|
max-width: 100%;
|
|
66631
|
-
`), cM("hover",
|
|
66632
|
-
|
|
66633
|
-
|
|
66634
|
-
|
|
66635
|
-
|
|
66636
|
-
|
|
66637
|
-
|
|
66638
|
-
|
|
66639
|
-
|
|
66634
|
+
`), cM("hover", `
|
|
66635
|
+
background-color: var(--n-merged-th-color-hover);
|
|
66636
|
+
`), cM("sortable", `
|
|
66637
|
+
cursor: pointer;
|
|
66638
|
+
`, [cE("ellipsis", `
|
|
66639
|
+
max-width: calc(100% - 18px);
|
|
66640
|
+
`), c$1("&:hover", `
|
|
66641
|
+
background-color: var(--n-merged-th-color-hover);
|
|
66642
|
+
`)]), cB("data-table-sorter", `
|
|
66640
66643
|
height: var(--n-sorter-size);
|
|
66641
66644
|
width: var(--n-sorter-size);
|
|
66642
66645
|
margin-left: 4px;
|
|
@@ -66647,13 +66650,13 @@
|
|
|
66647
66650
|
vertical-align: -0.2em;
|
|
66648
66651
|
color: var(--n-th-icon-color);
|
|
66649
66652
|
transition: color .3s var(--n-bezier);
|
|
66650
|
-
`, [cB("base-icon", "transition: transform .3s var(--n-bezier)"), cM("desc", [cB("base-icon",
|
|
66651
|
-
|
|
66652
|
-
|
|
66653
|
-
|
|
66654
|
-
|
|
66655
|
-
|
|
66656
|
-
|
|
66653
|
+
`, [cB("base-icon", "transition: transform .3s var(--n-bezier)"), cM("desc", [cB("base-icon", `
|
|
66654
|
+
transform: rotate(0deg);
|
|
66655
|
+
`)]), cM("asc", [cB("base-icon", `
|
|
66656
|
+
transform: rotate(-180deg);
|
|
66657
|
+
`)]), cM("asc, desc", `
|
|
66658
|
+
color: var(--n-th-icon-color-active);
|
|
66659
|
+
`)]), cB("data-table-resize-button", `
|
|
66657
66660
|
width: var(--n-resizable-container-size);
|
|
66658
66661
|
position: absolute;
|
|
66659
66662
|
top: 0;
|
|
@@ -66715,17 +66718,17 @@
|
|
|
66715
66718
|
color .3s var(--n-bezier);
|
|
66716
66719
|
`, [cM("expand", [cB("data-table-expand-trigger", `
|
|
66717
66720
|
margin-right: 0;
|
|
66718
|
-
`)]), cM("last-row",
|
|
66719
|
-
|
|
66720
|
-
|
|
66721
|
-
|
|
66722
|
-
|
|
66723
|
-
|
|
66724
|
-
|
|
66721
|
+
`)]), cM("last-row", `
|
|
66722
|
+
border-bottom: 0 solid var(--n-merged-border-color);
|
|
66723
|
+
`, [c$1("&::after", `
|
|
66724
|
+
bottom: 0 !important;
|
|
66725
|
+
`), c$1("&::before", `
|
|
66726
|
+
bottom: 0 !important;
|
|
66727
|
+
`)]), cM("summary", `
|
|
66725
66728
|
background-color: var(--n-merged-th-color);
|
|
66726
|
-
`), cM("hover",
|
|
66727
|
-
|
|
66728
|
-
|
|
66729
|
+
`), cM("hover", `
|
|
66730
|
+
background-color: var(--n-merged-td-color-hover);
|
|
66731
|
+
`), cE("ellipsis", `
|
|
66729
66732
|
display: inline-block;
|
|
66730
66733
|
text-overflow: ellipsis;
|
|
66731
66734
|
overflow: hidden;
|
|
@@ -66746,9 +66749,9 @@
|
|
|
66746
66749
|
align-items: center;
|
|
66747
66750
|
justify-content: center;
|
|
66748
66751
|
transition: opacity .3s var(--n-bezier);
|
|
66749
|
-
`, [cM("hide",
|
|
66750
|
-
|
|
66751
|
-
|
|
66752
|
+
`, [cM("hide", `
|
|
66753
|
+
opacity: 0;
|
|
66754
|
+
`)]), cE("pagination", `
|
|
66752
66755
|
margin: var(--n-pagination-margin);
|
|
66753
66756
|
display: flex;
|
|
66754
66757
|
justify-content: flex-end;
|
|
@@ -66762,30 +66765,26 @@
|
|
|
66762
66765
|
`), cM("loading", [cB("data-table-wrapper", `
|
|
66763
66766
|
opacity: var(--n-opacity-loading);
|
|
66764
66767
|
pointer-events: none;
|
|
66765
|
-
`)]), cM("single-column", [cB("data-table-td",
|
|
66766
|
-
|
|
66767
|
-
|
|
66768
|
-
|
|
66769
|
-
|
|
66770
|
-
|
|
66771
|
-
|
|
66772
|
-
|
|
66773
|
-
|
|
66774
|
-
|
|
66775
|
-
|
|
66776
|
-
|
|
66777
|
-
|
|
66768
|
+
`)]), cM("single-column", [cB("data-table-td", `
|
|
66769
|
+
border-bottom: 0 solid var(--n-merged-border-color);
|
|
66770
|
+
`, [c$1("&::after, &::before", `
|
|
66771
|
+
bottom: 0 !important;
|
|
66772
|
+
`)])]), cNotM("single-line", [cB("data-table-th", `
|
|
66773
|
+
border-right: 1px solid var(--n-merged-border-color);
|
|
66774
|
+
`, [cM("last", `
|
|
66775
|
+
border-right: 0 solid var(--n-merged-border-color);
|
|
66776
|
+
`)]), cB("data-table-td", `
|
|
66777
|
+
border-right: 1px solid var(--n-merged-border-color);
|
|
66778
|
+
`, [cM("last-col", `
|
|
66779
|
+
border-right: 0 solid var(--n-merged-border-color);
|
|
66780
|
+
`)])]), cM("bordered", [cB("data-table-wrapper", `
|
|
66778
66781
|
border: 1px solid var(--n-merged-border-color);
|
|
66779
66782
|
border-bottom-left-radius: var(--n-border-radius);
|
|
66780
66783
|
border-bottom-right-radius: var(--n-border-radius);
|
|
66781
66784
|
overflow: hidden;
|
|
66782
|
-
`)]), cB("data-table-base-table", [cM("transition-disabled", [cB("data-table-th", [c$1("&::after, &::before",
|
|
66783
|
-
|
|
66784
|
-
|
|
66785
|
-
transition: "none"
|
|
66786
|
-
})])])]), cM("bottom-bordered", [cB("data-table-td", [cM("last-row", {
|
|
66787
|
-
borderBottom: "1px solid var(--n-merged-border-color)"
|
|
66788
|
-
})])]), cB("data-table-table", `
|
|
66785
|
+
`)]), cB("data-table-base-table", [cM("transition-disabled", [cB("data-table-th", [c$1("&::after, &::before", "transition: none;")]), cB("data-table-td", [c$1("&::after, &::before", "transition: none;")])])]), cM("bottom-bordered", [cB("data-table-td", [cM("last-row", `
|
|
66786
|
+
border-bottom: 1px solid var(--n-merged-border-color);
|
|
66787
|
+
`)])]), cB("data-table-table", `
|
|
66789
66788
|
font-variant-numeric: tabular-nums;
|
|
66790
66789
|
width: 100%;
|
|
66791
66790
|
word-break: break-word;
|
|
@@ -66801,10 +66800,10 @@
|
|
|
66801
66800
|
flex-shrink: 0;
|
|
66802
66801
|
transition: border-color .3s var(--n-bezier);
|
|
66803
66802
|
scrollbar-width: none;
|
|
66804
|
-
`, [c$1("&::-webkit-scrollbar",
|
|
66805
|
-
|
|
66806
|
-
|
|
66807
|
-
|
|
66803
|
+
`, [c$1("&::-webkit-scrollbar", `
|
|
66804
|
+
width: 0;
|
|
66805
|
+
height: 0;
|
|
66806
|
+
`)]), cB("data-table-check-extra", `
|
|
66808
66807
|
transition: color .3s var(--n-bezier);
|
|
66809
66808
|
color: var(--n-th-icon-color);
|
|
66810
66809
|
position: absolute;
|
|
@@ -66813,31 +66812,31 @@
|
|
|
66813
66812
|
top: 50%;
|
|
66814
66813
|
transform: translateY(-50%);
|
|
66815
66814
|
z-index: 1;
|
|
66816
|
-
`)]), cB("data-table-filter-menu", [cB("scrollbar",
|
|
66817
|
-
|
|
66818
|
-
|
|
66819
|
-
display:
|
|
66820
|
-
|
|
66821
|
-
padding:
|
|
66822
|
-
|
|
66823
|
-
|
|
66824
|
-
|
|
66825
|
-
|
|
66826
|
-
|
|
66827
|
-
|
|
66828
|
-
|
|
66815
|
+
`)]), cB("data-table-filter-menu", [cB("scrollbar", `
|
|
66816
|
+
max-height: 240px;
|
|
66817
|
+
`), cE("group", `
|
|
66818
|
+
display: flex;
|
|
66819
|
+
flex-direction: column;
|
|
66820
|
+
padding: 12px 12px 0 12px;
|
|
66821
|
+
`, [cB("checkbox", `
|
|
66822
|
+
margin-bottom: 12px;
|
|
66823
|
+
margin-right: 0;
|
|
66824
|
+
`), cB("radio", `
|
|
66825
|
+
margin-bottom: 12px;
|
|
66826
|
+
margin-right: 0;
|
|
66827
|
+
`)]), cE("action", `
|
|
66829
66828
|
padding: var(--n-action-padding);
|
|
66830
66829
|
display: flex;
|
|
66831
66830
|
flex-wrap: nowrap;
|
|
66832
66831
|
justify-content: space-evenly;
|
|
66833
66832
|
border-top: 1px solid var(--n-action-divider-color);
|
|
66834
|
-
`, [cB("button", [c$1("&:not(:last-child)",
|
|
66835
|
-
|
|
66836
|
-
|
|
66837
|
-
|
|
66838
|
-
|
|
66839
|
-
margin:
|
|
66840
|
-
|
|
66833
|
+
`, [cB("button", [c$1("&:not(:last-child)", `
|
|
66834
|
+
margin: var(--n-action-button-margin);
|
|
66835
|
+
`), c$1("&:last-child", `
|
|
66836
|
+
margin-right: 0;
|
|
66837
|
+
`)])]), cB("divider", `
|
|
66838
|
+
margin: 0 !important;
|
|
66839
|
+
`)]), insideModal(cB("data-table", `
|
|
66841
66840
|
--n-merged-th-color: var(--n-th-color-modal);
|
|
66842
66841
|
--n-merged-td-color: var(--n-td-color-modal);
|
|
66843
66842
|
--n-merged-border-color: var(--n-border-color-modal);
|
|
@@ -66867,11 +66866,11 @@
|
|
|
66867
66866
|
bottom: -1px;
|
|
66868
66867
|
transition: box-shadow .2s var(--n-bezier);
|
|
66869
66868
|
right: -36px;
|
|
66870
|
-
`)]), cM("fixed-right",
|
|
66871
|
-
|
|
66872
|
-
|
|
66873
|
-
|
|
66874
|
-
|
|
66869
|
+
`)]), cM("fixed-right", `
|
|
66870
|
+
right: 0;
|
|
66871
|
+
position: sticky;
|
|
66872
|
+
z-index: 1;
|
|
66873
|
+
`, [c$1("&::before", `
|
|
66875
66874
|
pointer-events: none;
|
|
66876
66875
|
content: "";
|
|
66877
66876
|
width: 36px;
|
|
@@ -101652,6 +101651,7 @@
|
|
|
101652
101651
|
});
|
|
101653
101652
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass("tree", void 0, cssVarsRef, props) : void 0;
|
|
101654
101653
|
return {
|
|
101654
|
+
...exposedMethods,
|
|
101655
101655
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
101656
101656
|
mergedTheme: themeRef,
|
|
101657
101657
|
rtlEnabled: rtlEnabledRef,
|
|
@@ -101667,8 +101667,6 @@
|
|
|
101667
101667
|
getScrollContent,
|
|
101668
101668
|
handleAfterEnter,
|
|
101669
101669
|
handleResize,
|
|
101670
|
-
handleKeydown: exposedMethods.handleKeydown,
|
|
101671
|
-
scrollTo: exposedMethods.scrollTo,
|
|
101672
101670
|
cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
|
|
101673
101671
|
themeClass: themeClassHandle?.themeClass,
|
|
101674
101672
|
onRender: themeClassHandle?.onRender
|
|
@@ -105489,7 +105487,7 @@
|
|
|
105489
105487
|
equationProps: equationProps
|
|
105490
105488
|
});
|
|
105491
105489
|
|
|
105492
|
-
var version = "2.34.
|
|
105490
|
+
var version = "2.34.2";
|
|
105493
105491
|
|
|
105494
105492
|
function create() {
|
|
105495
105493
|
let {
|