naive-ui 2.32.2 → 2.33.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 +425 -248
- package/dist/index.prod.js +2 -2
- package/es/_internal/select-menu/src/SelectOption.js +1 -2
- package/es/_utils/cssr/index.js +1 -1
- package/es/calendar/src/Calendar.js +2 -1
- package/es/card/src/Card.d.ts +24 -1
- package/es/card/src/Card.js +8 -4
- package/es/card/src/styles/index.cssr.js +17 -8
- package/es/card/styles/dark.js +3 -1
- package/es/card/styles/light.d.ts +2 -0
- package/es/card/styles/light.js +1 -1
- package/es/countdown/src/Countdown.js +0 -5
- package/es/data-table/src/DataTable.d.ts +10 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Cell.d.ts +2 -0
- package/es/data-table/src/TableParts/Header.d.ts +1 -0
- package/es/data-table/src/use-sorter.js +1 -1
- package/es/data-table/styles/light.d.ts +1 -0
- package/es/dialog/index.d.ts +1 -1
- package/es/dialog/index.js +1 -1
- package/es/dialog/src/DialogEnvironment.d.ts +3 -0
- package/es/dialog/src/DialogEnvironment.js +2 -2
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/dialog/src/DialogProvider.js +2 -1
- package/es/dialog/src/composables.d.ts +4 -0
- package/es/dialog/src/composables.js +17 -0
- package/es/dialog/src/context.d.ts +2 -1
- package/es/dialog/src/context.js +1 -0
- package/es/form/src/FormItem.d.ts +1 -0
- package/es/form/src/FormItem.js +27 -18
- package/es/form/src/styles/form-item.cssr.js +41 -19
- package/es/form/src/utils.d.ts +1 -0
- package/es/form/src/utils.js +15 -10
- package/es/input/src/utils.js +1 -1
- package/es/locales/common/frFR.js +8 -11
- package/es/menu/src/Menu.d.ts +13 -0
- package/es/menu/src/Menu.js +7 -1
- package/es/modal/src/BodyWrapper.d.ts +2 -0
- package/es/modal/src/Modal.d.ts +18 -0
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal/styles/light.d.ts +2 -0
- package/es/pagination/src/Pagination.js +5 -1
- package/es/radio/src/Radio.d.ts +13 -32
- package/es/radio/src/Radio.js +7 -6
- package/es/radio/src/RadioButton.d.ts +6 -9
- package/es/radio/src/RadioButton.js +7 -11
- package/es/radio/src/RadioGroup.d.ts +17 -8
- package/es/radio/src/RadioGroup.js +2 -2
- package/es/radio/src/interface.d.ts +2 -2
- package/es/radio/src/styles/radio.cssr.js +4 -1
- package/es/radio/src/use-radio.d.ts +4 -32
- package/es/radio/src/use-radio.js +12 -10
- package/es/radio/styles/dark.js +1 -1
- package/es/radio/styles/light.d.ts +1 -0
- package/es/radio/styles/light.js +1 -1
- package/es/rate/src/Rate.d.ts +23 -14
- package/es/rate/src/Rate.js +32 -12
- package/es/rate/src/interface.d.ts +2 -0
- package/es/rate/src/interface.js +1 -0
- package/es/rate/src/styles/index.cssr.js +13 -13
- package/es/slider/src/Slider.d.ts +13 -0
- package/es/slider/src/Slider.js +6 -3
- package/es/theme-editor/src/MaximizeIcon.d.ts +1 -0
- package/es/theme-editor/src/MaximizeIcon.js +8 -0
- package/es/theme-editor/src/MinimizeIcon.d.ts +1 -0
- package/es/theme-editor/src/MinimizeIcon.js +8 -0
- package/es/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/es/theme-editor/src/ThemeEditor.js +42 -18
- package/es/tree/src/styles/index.cssr.js +4 -3
- package/es/upload/src/interface.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/select-menu/src/SelectOption.js +1 -2
- package/lib/_utils/cssr/index.js +2 -5
- package/lib/calendar/src/Calendar.js +2 -1
- package/lib/card/src/Card.d.ts +24 -1
- package/lib/card/src/Card.js +8 -4
- package/lib/card/src/styles/index.cssr.js +17 -8
- package/lib/card/styles/dark.js +3 -1
- package/lib/card/styles/light.d.ts +2 -0
- package/lib/card/styles/light.js +1 -1
- package/lib/countdown/src/Countdown.js +0 -5
- package/lib/data-table/src/DataTable.d.ts +10 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +2 -0
- package/lib/data-table/src/TableParts/Header.d.ts +1 -0
- package/lib/data-table/src/use-sorter.js +1 -1
- package/lib/data-table/styles/light.d.ts +1 -0
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/index.js +4 -3
- package/lib/dialog/src/DialogEnvironment.d.ts +3 -0
- package/lib/dialog/src/DialogEnvironment.js +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/dialog/src/DialogProvider.js +1 -0
- package/lib/dialog/src/composables.d.ts +4 -0
- package/lib/dialog/src/{use-dialog.js → composables.js} +9 -1
- package/lib/dialog/src/context.d.ts +2 -1
- package/lib/dialog/src/context.js +2 -1
- package/lib/form/src/FormItem.d.ts +1 -0
- package/lib/form/src/FormItem.js +27 -18
- package/lib/form/src/styles/form-item.cssr.js +41 -19
- package/lib/form/src/utils.d.ts +1 -0
- package/lib/form/src/utils.js +15 -10
- package/lib/input/src/utils.js +1 -1
- package/lib/locales/common/frFR.js +8 -11
- package/lib/menu/src/Menu.d.ts +13 -0
- package/lib/menu/src/Menu.js +7 -1
- package/lib/modal/src/BodyWrapper.d.ts +2 -0
- package/lib/modal/src/Modal.d.ts +18 -0
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal/styles/light.d.ts +2 -0
- package/lib/pagination/src/Pagination.js +5 -1
- package/lib/radio/src/Radio.d.ts +13 -32
- package/lib/radio/src/Radio.js +7 -6
- package/lib/radio/src/RadioButton.d.ts +6 -9
- package/lib/radio/src/RadioButton.js +7 -14
- package/lib/radio/src/RadioGroup.d.ts +17 -8
- package/lib/radio/src/RadioGroup.js +2 -2
- package/lib/radio/src/interface.d.ts +2 -2
- package/lib/radio/src/styles/radio.cssr.js +4 -1
- package/lib/radio/src/use-radio.d.ts +4 -32
- package/lib/radio/src/use-radio.js +11 -9
- package/lib/radio/styles/dark.js +1 -1
- package/lib/radio/styles/light.d.ts +1 -0
- package/lib/radio/styles/light.js +1 -1
- package/lib/rate/src/Rate.d.ts +23 -14
- package/lib/rate/src/Rate.js +32 -12
- package/lib/rate/src/interface.d.ts +2 -0
- package/lib/rate/src/interface.js +2 -0
- package/lib/rate/src/styles/index.cssr.js +13 -13
- package/lib/slider/src/Slider.d.ts +13 -0
- package/lib/slider/src/Slider.js +6 -3
- package/lib/theme-editor/src/MaximizeIcon.d.ts +1 -0
- package/lib/theme-editor/src/MaximizeIcon.js +11 -0
- package/lib/theme-editor/src/MinimizeIcon.d.ts +1 -0
- package/lib/theme-editor/src/MinimizeIcon.js +11 -0
- package/lib/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/lib/theme-editor/src/ThemeEditor.js +42 -18
- package/lib/tree/src/styles/index.cssr.js +4 -3
- package/lib/upload/src/interface.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -7
- package/web-types.json +36 -5
- package/es/countdown/src/utils.d.ts +0 -0
- package/es/countdown/src/utils.js +0 -1
- package/es/dialog/src/use-dialog.d.ts +0 -2
- package/es/dialog/src/use-dialog.js +0 -10
- package/lib/countdown/src/utils.d.ts +0 -0
- package/lib/countdown/src/utils.js +0 -1
- package/lib/dialog/src/use-dialog.d.ts +0 -2
|
@@ -399,6 +399,7 @@ export declare const dataTableProps: {
|
|
|
399
399
|
boxShadowDisabled: string;
|
|
400
400
|
color: string;
|
|
401
401
|
colorDisabled: string;
|
|
402
|
+
colorActive: string;
|
|
402
403
|
textColor: string;
|
|
403
404
|
textColorDisabled: string;
|
|
404
405
|
dotColorActive: string;
|
|
@@ -1105,6 +1106,7 @@ export declare const dataTableProps: {
|
|
|
1105
1106
|
boxShadowDisabled: string;
|
|
1106
1107
|
color: string;
|
|
1107
1108
|
colorDisabled: string;
|
|
1109
|
+
colorActive: string;
|
|
1108
1110
|
textColor: string;
|
|
1109
1111
|
textColorDisabled: string;
|
|
1110
1112
|
dotColorActive: string;
|
|
@@ -1811,6 +1813,7 @@ export declare const dataTableProps: {
|
|
|
1811
1813
|
boxShadowDisabled: string;
|
|
1812
1814
|
color: string;
|
|
1813
1815
|
colorDisabled: string;
|
|
1816
|
+
colorActive: string;
|
|
1814
1817
|
textColor: string;
|
|
1815
1818
|
textColorDisabled: string;
|
|
1816
1819
|
dotColorActive: string;
|
|
@@ -2620,6 +2623,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2620
2623
|
boxShadowDisabled: string;
|
|
2621
2624
|
color: string;
|
|
2622
2625
|
colorDisabled: string;
|
|
2626
|
+
colorActive: string;
|
|
2623
2627
|
textColor: string;
|
|
2624
2628
|
textColorDisabled: string;
|
|
2625
2629
|
dotColorActive: string;
|
|
@@ -3326,6 +3330,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3326
3330
|
boxShadowDisabled: string;
|
|
3327
3331
|
color: string;
|
|
3328
3332
|
colorDisabled: string;
|
|
3333
|
+
colorActive: string;
|
|
3329
3334
|
textColor: string;
|
|
3330
3335
|
textColorDisabled: string;
|
|
3331
3336
|
dotColorActive: string;
|
|
@@ -4032,6 +4037,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4032
4037
|
boxShadowDisabled: string;
|
|
4033
4038
|
color: string;
|
|
4034
4039
|
colorDisabled: string;
|
|
4040
|
+
colorActive: string;
|
|
4035
4041
|
textColor: string;
|
|
4036
4042
|
textColorDisabled: string;
|
|
4037
4043
|
dotColorActive: string;
|
|
@@ -4860,6 +4866,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4860
4866
|
boxShadowDisabled: string;
|
|
4861
4867
|
color: string;
|
|
4862
4868
|
colorDisabled: string;
|
|
4869
|
+
colorActive: string;
|
|
4863
4870
|
textColor: string;
|
|
4864
4871
|
textColorDisabled: string;
|
|
4865
4872
|
dotColorActive: string;
|
|
@@ -6035,6 +6042,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6035
6042
|
boxShadowDisabled: string;
|
|
6036
6043
|
color: string;
|
|
6037
6044
|
colorDisabled: string;
|
|
6045
|
+
colorActive: string;
|
|
6038
6046
|
textColor: string;
|
|
6039
6047
|
textColorDisabled: string;
|
|
6040
6048
|
dotColorActive: string;
|
|
@@ -6741,6 +6749,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6741
6749
|
boxShadowDisabled: string;
|
|
6742
6750
|
color: string;
|
|
6743
6751
|
colorDisabled: string;
|
|
6752
|
+
colorActive: string;
|
|
6744
6753
|
textColor: string;
|
|
6745
6754
|
textColorDisabled: string;
|
|
6746
6755
|
dotColorActive: string;
|
|
@@ -7447,6 +7456,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7447
7456
|
boxShadowDisabled: string;
|
|
7448
7457
|
color: string;
|
|
7449
7458
|
colorDisabled: string;
|
|
7459
|
+
colorActive: string;
|
|
7450
7460
|
textColor: string;
|
|
7451
7461
|
textColorDisabled: string;
|
|
7452
7462
|
dotColorActive: string;
|
|
@@ -423,6 +423,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
423
423
|
boxShadowDisabled: string;
|
|
424
424
|
color: string;
|
|
425
425
|
colorDisabled: string;
|
|
426
|
+
colorActive: string;
|
|
426
427
|
textColor: string;
|
|
427
428
|
textColorDisabled: string;
|
|
428
429
|
dotColorActive: string;
|
|
@@ -1579,6 +1580,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1579
1580
|
boxShadowDisabled: string;
|
|
1580
1581
|
color: string;
|
|
1581
1582
|
colorDisabled: string;
|
|
1583
|
+
colorActive: string;
|
|
1582
1584
|
textColor: string;
|
|
1583
1585
|
textColorDisabled: string;
|
|
1584
1586
|
dotColorActive: string;
|
|
@@ -162,7 +162,7 @@ function useSorter(props, { dataRelatedColsRef, filteredDataRef }) {
|
|
|
162
162
|
const columnToSort = dataRelatedColsRef.value.find((column) => column.type !== 'selection' &&
|
|
163
163
|
column.type !== 'expand' &&
|
|
164
164
|
column.key === columnKey);
|
|
165
|
-
if (!columnToSort ||
|
|
165
|
+
if (!(columnToSort === null || columnToSort === void 0 ? void 0 : columnToSort.sorter))
|
|
166
166
|
return;
|
|
167
167
|
const sorter = columnToSort.sorter;
|
|
168
168
|
deriveNextSorter({
|
|
@@ -346,6 +346,7 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
346
346
|
boxShadowDisabled: string;
|
|
347
347
|
color: string;
|
|
348
348
|
colorDisabled: string;
|
|
349
|
+
colorActive: string;
|
|
349
350
|
textColor: string;
|
|
350
351
|
textColorDisabled: string;
|
|
351
352
|
dotColorActive: string;
|
package/lib/dialog/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { dialogProps } from './src/dialogProps';
|
|
|
3
3
|
export type { DialogProps } from './src/dialogProps';
|
|
4
4
|
export { NDialogProvider, dialogProviderProps } from './src/DialogProvider';
|
|
5
5
|
export type { DialogProviderProps, DialogProviderInst, DialogOptions, DialogReactive, DialogApiInjection as DialogApi } from './src/DialogProvider';
|
|
6
|
-
export { useDialog } from './src/
|
|
6
|
+
export { useDialog, useDialogReactiveList } from './src/composables';
|
package/lib/dialog/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDialog = exports.dialogProviderProps = exports.NDialogProvider = exports.dialogProps = exports.NDialog = void 0;
|
|
3
|
+
exports.useDialogReactiveList = exports.useDialog = exports.dialogProviderProps = exports.NDialogProvider = exports.dialogProps = exports.NDialog = void 0;
|
|
4
4
|
var Dialog_1 = require("./src/Dialog");
|
|
5
5
|
Object.defineProperty(exports, "NDialog", { enumerable: true, get: function () { return Dialog_1.NDialog; } });
|
|
6
6
|
var dialogProps_1 = require("./src/dialogProps");
|
|
@@ -8,5 +8,6 @@ Object.defineProperty(exports, "dialogProps", { enumerable: true, get: function
|
|
|
8
8
|
var DialogProvider_1 = require("./src/DialogProvider");
|
|
9
9
|
Object.defineProperty(exports, "NDialogProvider", { enumerable: true, get: function () { return DialogProvider_1.NDialogProvider; } });
|
|
10
10
|
Object.defineProperty(exports, "dialogProviderProps", { enumerable: true, get: function () { return DialogProvider_1.dialogProviderProps; } });
|
|
11
|
-
var
|
|
12
|
-
Object.defineProperty(exports, "useDialog", { enumerable: true, get: function () { return
|
|
11
|
+
var composables_1 = require("./src/composables");
|
|
12
|
+
Object.defineProperty(exports, "useDialog", { enumerable: true, get: function () { return composables_1.useDialog; } });
|
|
13
|
+
Object.defineProperty(exports, "useDialogReactiveList", { enumerable: true, get: function () { return composables_1.useDialogReactiveList; } });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType, CSSProperties } from 'vue';
|
|
2
2
|
export declare const exposedDialogEnvProps: {
|
|
3
|
+
readonly onAfterEnter: PropType<() => void>;
|
|
3
4
|
readonly blockScroll: {
|
|
4
5
|
readonly type: BooleanConstructor;
|
|
5
6
|
readonly default: true;
|
|
@@ -56,6 +57,7 @@ export declare const NDialogEnvironment: import("vue").DefineComponent<{
|
|
|
56
57
|
type: PropType<(key: string) => void>;
|
|
57
58
|
required: true;
|
|
58
59
|
};
|
|
60
|
+
onAfterEnter: PropType<() => void>;
|
|
59
61
|
blockScroll: {
|
|
60
62
|
readonly type: BooleanConstructor;
|
|
61
63
|
readonly default: true;
|
|
@@ -121,6 +123,7 @@ export declare const NDialogEnvironment: import("vue").DefineComponent<{
|
|
|
121
123
|
type: PropType<(key: string) => void>;
|
|
122
124
|
required: true;
|
|
123
125
|
};
|
|
126
|
+
onAfterEnter: PropType<() => void>;
|
|
124
127
|
blockScroll: {
|
|
125
128
|
readonly type: BooleanConstructor;
|
|
126
129
|
readonly default: true;
|
|
@@ -11,7 +11,7 @@ const Modal_1 = __importDefault(require("../../modal/src/Modal"));
|
|
|
11
11
|
const _utils_1 = require("../../_utils");
|
|
12
12
|
const Dialog_1 = require("./Dialog");
|
|
13
13
|
const dialogProps_1 = require("./dialogProps");
|
|
14
|
-
exports.exposedDialogEnvProps = Object.assign(Object.assign({}, dialogProps_1.dialogProps), { blockScroll: { type: Boolean, default: true }, closeOnEsc: { type: Boolean, default: true }, onEsc: Function, autoFocus: {
|
|
14
|
+
exports.exposedDialogEnvProps = Object.assign(Object.assign({}, dialogProps_1.dialogProps), { onAfterEnter: Function, blockScroll: { type: Boolean, default: true }, closeOnEsc: { type: Boolean, default: true }, onEsc: Function, autoFocus: {
|
|
15
15
|
type: Boolean,
|
|
16
16
|
default: true
|
|
17
17
|
}, internalStyle: [String, Object], maskClosable: {
|
|
@@ -106,7 +106,7 @@ exports.NDialogEnvironment = (0, vue_1.defineComponent)({
|
|
|
106
106
|
},
|
|
107
107
|
render() {
|
|
108
108
|
const { handlePositiveClick, handleUpdateShow, handleNegativeClick, handleCloseClick, handleAfterLeave, handleMaskClick, handleEsc, to, maskClosable, show } = this;
|
|
109
|
-
return ((0, vue_1.h)(Modal_1.default, { show: show, onUpdateShow: handleUpdateShow, onMaskClick: handleMaskClick, onEsc: handleEsc, to: to, maskClosable: maskClosable, onAfterLeave: handleAfterLeave, closeOnEsc: this.closeOnEsc, blockScroll: this.blockScroll, autoFocus: this.autoFocus, internalAppear: true, internalDialog: true }, {
|
|
109
|
+
return ((0, vue_1.h)(Modal_1.default, { show: show, onUpdateShow: handleUpdateShow, onMaskClick: handleMaskClick, onEsc: handleEsc, to: to, maskClosable: maskClosable, onAfterEnter: this.onAfterEnter, onAfterLeave: handleAfterLeave, closeOnEsc: this.closeOnEsc, blockScroll: this.blockScroll, autoFocus: this.autoFocus, internalAppear: true, internalDialog: true }, {
|
|
110
110
|
default: () => ((0, vue_1.h)(Dialog_1.NDialog, Object.assign({}, (0, _utils_1.keep)(this.$props, dialogProps_1.dialogPropKeys), { style: this.internalStyle, onClose: handleCloseClick, onNegativeClick: handleNegativeClick, onPositiveClick: handlePositiveClick })))
|
|
111
111
|
}));
|
|
112
112
|
}
|
|
@@ -2,6 +2,7 @@ import { ExtractPropTypes, PropType, Ref, CSSProperties } from 'vue';
|
|
|
2
2
|
import type { ExtractPublicPropTypes, Mutable } from '../../_utils';
|
|
3
3
|
import { exposedDialogEnvProps } from './DialogEnvironment';
|
|
4
4
|
export declare type DialogOptions = Mutable<Omit<Partial<ExtractPropTypes<typeof exposedDialogEnvProps>>, 'internalStyle'> & {
|
|
5
|
+
class?: any;
|
|
5
6
|
style?: string | CSSProperties;
|
|
6
7
|
}>;
|
|
7
8
|
export declare type DialogReactive = {
|
|
@@ -23,6 +24,7 @@ export interface DialogProviderInjection {
|
|
|
23
24
|
y: number;
|
|
24
25
|
} | null>;
|
|
25
26
|
}
|
|
27
|
+
export declare type DialogReactiveListInjection = Ref<DialogReactive[]>;
|
|
26
28
|
interface DialogInst {
|
|
27
29
|
hide: () => void;
|
|
28
30
|
}
|
|
@@ -42,6 +44,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
42
44
|
type?: "default" | "error" | "info" | "success" | "warning" | undefined;
|
|
43
45
|
content?: string | (() => import("vue").VNodeChild) | undefined;
|
|
44
46
|
icon?: (() => import("vue").VNodeChild) | undefined;
|
|
47
|
+
onAfterEnter?: (() => void) | undefined;
|
|
45
48
|
title?: string | (() => import("vue").VNodeChild) | undefined;
|
|
46
49
|
action?: (() => import("vue").VNodeChild) | undefined;
|
|
47
50
|
autoFocus?: boolean | undefined;
|
|
@@ -736,6 +739,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
736
739
|
onMaskClick?: ((e: MouseEvent) => void) | undefined;
|
|
737
740
|
maskClosable?: boolean | undefined;
|
|
738
741
|
closeOnEsc?: boolean | undefined;
|
|
742
|
+
class?: any;
|
|
739
743
|
style?: any;
|
|
740
744
|
}[]>;
|
|
741
745
|
dialogInstRefs: Record<string, DialogInst>;
|
|
@@ -48,6 +48,7 @@ exports.NDialogProvider = (0, vue_1.defineComponent)({
|
|
|
48
48
|
clickedRef: (0, vooks_1.useClicked)(64),
|
|
49
49
|
clickPositionRef: (0, vooks_1.useClickPosition)()
|
|
50
50
|
});
|
|
51
|
+
(0, vue_1.provide)(context_1.dialogReactiveListInjectionKey, dialogListRef);
|
|
51
52
|
return Object.assign(Object.assign({}, api), { dialogList: dialogListRef, dialogInstRefs,
|
|
52
53
|
handleAfterLeave });
|
|
53
54
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDialog = void 0;
|
|
3
|
+
exports.useDialogReactiveList = exports.useDialog = void 0;
|
|
4
4
|
const vue_1 = require("vue");
|
|
5
5
|
const context_1 = require("./context");
|
|
6
6
|
const _utils_1 = require("../../_utils");
|
|
@@ -12,3 +12,11 @@ function useDialog() {
|
|
|
12
12
|
return dialog;
|
|
13
13
|
}
|
|
14
14
|
exports.useDialog = useDialog;
|
|
15
|
+
function useDialogReactiveList() {
|
|
16
|
+
const dialogReactiveList = (0, vue_1.inject)(context_1.dialogReactiveListInjectionKey, null);
|
|
17
|
+
if (dialogReactiveList === null) {
|
|
18
|
+
(0, _utils_1.throwError)('use-dialog-reactive-list', 'No outer <n-dialog-provider /> founded.');
|
|
19
|
+
}
|
|
20
|
+
return dialogReactiveList;
|
|
21
|
+
}
|
|
22
|
+
exports.useDialogReactiveList = useDialogReactiveList;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { DialogApiInjection, DialogProviderInjection } from './DialogProvider';
|
|
1
|
+
import type { DialogApiInjection, DialogProviderInjection, DialogReactiveListInjection } from './DialogProvider';
|
|
2
2
|
export declare const dialogProviderInjectionKey: import("vue").InjectionKey<DialogProviderInjection>;
|
|
3
3
|
export declare const dialogApiInjectionKey: import("vue").InjectionKey<DialogApiInjection>;
|
|
4
|
+
export declare const dialogReactiveListInjectionKey: import("vue").InjectionKey<DialogReactiveListInjection>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dialogApiInjectionKey = exports.dialogProviderInjectionKey = void 0;
|
|
3
|
+
exports.dialogReactiveListInjectionKey = exports.dialogApiInjectionKey = exports.dialogProviderInjectionKey = void 0;
|
|
4
4
|
const _utils_1 = require("../../_utils");
|
|
5
5
|
exports.dialogProviderInjectionKey = (0, _utils_1.createInjectionKey)('n-dialog-provider');
|
|
6
6
|
exports.dialogApiInjectionKey = (0, _utils_1.createInjectionKey)('n-dialog-api');
|
|
7
|
+
exports.dialogReactiveListInjectionKey = (0, _utils_1.createInjectionKey)('n-dialog-reactive-list');
|
|
@@ -283,6 +283,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
283
283
|
mergedValidationStatus: import("vue").ComputedRef<"error" | "success" | "warning" | undefined>;
|
|
284
284
|
mergedShowFeedback: import("vue").ComputedRef<boolean>;
|
|
285
285
|
mergedShowLabel: import("vue").ComputedRef<boolean>;
|
|
286
|
+
isAutoLabelWidth: import("vue").ComputedRef<boolean>;
|
|
286
287
|
labelElementRef: import("vue").Ref<HTMLLabelElement | null>;
|
|
287
288
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
288
289
|
mergedRequired: import("vue").ComputedRef<boolean>;
|
package/lib/form/src/FormItem.js
CHANGED
|
@@ -255,8 +255,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
255
255
|
};
|
|
256
256
|
const labelElementRef = (0, vue_1.ref)(null);
|
|
257
257
|
(0, vue_1.onMounted)(() => {
|
|
258
|
-
if (
|
|
259
|
-
|
|
258
|
+
if (!formItemMiscRefs.isAutoLabelWidth.value)
|
|
259
|
+
return;
|
|
260
|
+
const labelElement = labelElementRef.value;
|
|
261
|
+
if (labelElement !== null) {
|
|
262
|
+
const memoizedWhitespace = labelElement.style.whiteSpace;
|
|
263
|
+
labelElement.style.whiteSpace = 'nowrap';
|
|
264
|
+
labelElement.style.width = '';
|
|
265
|
+
NForm === null || NForm === void 0 ? void 0 : NForm.deriveMaxChildLabelWidth(Number(getComputedStyle(labelElement).width.slice(0, -2)));
|
|
266
|
+
labelElement.style.whiteSpace = memoizedWhitespace;
|
|
260
267
|
}
|
|
261
268
|
});
|
|
262
269
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
@@ -296,34 +303,36 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
296
303
|
return Object.assign(Object.assign(Object.assign(Object.assign({ labelElementRef, mergedClsPrefix: mergedClsPrefixRef, mergedRequired: mergedRequiredRef, feedbackId: feedbackIdRef, renderExplains: renderExplainsRef }, formItemMiscRefs), formItemSizeRefs), exposedRef), { cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender });
|
|
297
304
|
},
|
|
298
305
|
render() {
|
|
299
|
-
var _a;
|
|
300
306
|
const { $slots, mergedClsPrefix, mergedShowLabel, mergedShowRequireMark, mergedRequireMarkPlacement, onRender } = this;
|
|
301
307
|
const renderedShowRequireMark = mergedShowRequireMark !== undefined
|
|
302
308
|
? mergedShowRequireMark
|
|
303
309
|
: this.mergedRequired;
|
|
304
310
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
311
|
+
const renderLabel = () => {
|
|
312
|
+
const labelText = this.$slots.label ? this.$slots.label() : this.label;
|
|
313
|
+
if (!labelText)
|
|
314
|
+
return null;
|
|
315
|
+
const textNode = ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-form-item-label__text` }, labelText));
|
|
316
|
+
const markNode = renderedShowRequireMark ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-form-item-label__asterisk` }, mergedRequireMarkPlacement !== 'left' ? '\u00A0*' : '*\u00A0')) : (mergedRequireMarkPlacement === 'right-hanging' && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-form-item-label__asterisk-placeholder` }, '\u00A0*')));
|
|
317
|
+
const { labelProps } = this;
|
|
318
|
+
return ((0, vue_1.h)("label", Object.assign({}, labelProps, { class: [
|
|
319
|
+
labelProps === null || labelProps === void 0 ? void 0 : labelProps.class,
|
|
320
|
+
`${mergedClsPrefix}-form-item-label`,
|
|
321
|
+
`${mergedClsPrefix}-form-item-label--${mergedRequireMarkPlacement}-mark`
|
|
322
|
+
], style: this.mergedLabelStyle, ref: "labelElementRef" }), mergedRequireMarkPlacement === 'left'
|
|
323
|
+
? [markNode, textNode]
|
|
324
|
+
: [textNode, markNode]));
|
|
325
|
+
};
|
|
305
326
|
return ((0, vue_1.h)("div", { class: [
|
|
306
327
|
`${mergedClsPrefix}-form-item`,
|
|
307
328
|
this.themeClass,
|
|
308
329
|
`${mergedClsPrefix}-form-item--${this.mergedSize}-size`,
|
|
309
330
|
`${mergedClsPrefix}-form-item--${this.mergedLabelPlacement}-labelled`,
|
|
331
|
+
this.isAutoLabelWidth &&
|
|
332
|
+
`${mergedClsPrefix}-form-item--auto-label-width`,
|
|
310
333
|
!mergedShowLabel && `${mergedClsPrefix}-form-item--no-label`
|
|
311
334
|
], style: this.cssVars },
|
|
312
|
-
mergedShowLabel && (
|
|
313
|
-
(_a = this.labelProps) === null || _a === void 0 ? void 0 : _a.class,
|
|
314
|
-
`${mergedClsPrefix}-form-item-label`
|
|
315
|
-
], style: this.mergedLabelStyle, ref: "labelElementRef" }),
|
|
316
|
-
mergedRequireMarkPlacement !== 'left'
|
|
317
|
-
? $slots.label
|
|
318
|
-
? $slots.label()
|
|
319
|
-
: this.label
|
|
320
|
-
: null,
|
|
321
|
-
renderedShowRequireMark ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-form-item-label__asterisk` }, mergedRequireMarkPlacement !== 'left' ? '\u00A0*' : '*\u00A0')) : (mergedRequireMarkPlacement === 'right-hanging' && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-form-item-label__asterisk-placeholder` }, '\u00A0*'))),
|
|
322
|
-
mergedRequireMarkPlacement === 'left'
|
|
323
|
-
? $slots.label
|
|
324
|
-
? $slots.label()
|
|
325
|
-
: this.label
|
|
326
|
-
: null)) : null,
|
|
335
|
+
mergedShowLabel && renderLabel(),
|
|
327
336
|
(0, vue_1.h)("div", { class: [
|
|
328
337
|
`${mergedClsPrefix}-form-item-blank`,
|
|
329
338
|
this.mergedValidationStatus &&
|
|
@@ -25,61 +25,83 @@ const fade_down_cssr_1 = require("../../../_styles/transitions/fade-down.cssr");
|
|
|
25
25
|
// --n-label-padding
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.default = (0, cssr_1.cB)('form-item',
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
exports.default = (0, cssr_1.cB)('form-item', `
|
|
29
|
+
display: grid;
|
|
30
|
+
line-height: var(--n-line-height);
|
|
31
|
+
`, [(0, cssr_1.cB)('form-item-label', `
|
|
32
32
|
grid-area: label;
|
|
33
33
|
align-items: center;
|
|
34
34
|
line-height: 1.25;
|
|
35
35
|
text-align: var(--n-label-text-align);
|
|
36
36
|
font-size: var(--n-label-font-size);
|
|
37
|
-
height: var(--n-label-height);
|
|
37
|
+
min-height: var(--n-label-height);
|
|
38
38
|
padding: var(--n-label-padding);
|
|
39
39
|
color: var(--n-label-text-color);
|
|
40
40
|
transition: color .3s var(--n-bezier);
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
`, [(0, cssr_1.cE)('asterisk', `
|
|
43
|
+
white-space: nowrap;
|
|
43
44
|
user-select: none;
|
|
44
45
|
-webkit-user-select: none;
|
|
45
46
|
color: var(--n-asterisk-color);
|
|
46
47
|
transition: color .3s var(--n-bezier);
|
|
47
48
|
`), (0, cssr_1.cE)('asterisk-placeholder', `
|
|
49
|
+
grid-area: mark;
|
|
48
50
|
user-select: none;
|
|
49
51
|
-webkit-user-select: none;
|
|
50
52
|
visibility: hidden;
|
|
51
|
-
`)]), (0, cssr_1.cB)('form-item-blank',
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
`)]), (0, cssr_1.cB)('form-item-blank', `
|
|
54
|
+
grid-area: blank;
|
|
55
|
+
min-height: var(--n-blank-height);
|
|
56
|
+
`), (0, cssr_1.cM)('auto-label-width', [(0, cssr_1.cB)('form-item-label', 'white-space: nowrap;')]), (0, cssr_1.cM)('left-labelled', `
|
|
55
57
|
grid-template-areas:
|
|
56
58
|
"label blank"
|
|
57
59
|
"label feedback";
|
|
58
60
|
grid-template-columns: auto minmax(0, 1fr);
|
|
61
|
+
grid-template-rows: auto 1fr;
|
|
62
|
+
align-items: start;
|
|
59
63
|
`, [(0, cssr_1.cB)('form-item-label', `
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
display: grid;
|
|
65
|
+
grid-template-columns: 1fr auto;
|
|
66
|
+
min-height: var(--n-blank-height);
|
|
67
|
+
height: auto;
|
|
62
68
|
box-sizing: border-box;
|
|
63
|
-
white-space: nowrap;
|
|
64
69
|
flex-shrink: 0;
|
|
65
70
|
flex-grow: 0;
|
|
66
|
-
|
|
71
|
+
`, [(0, cssr_1.cM)('left-mark', `
|
|
72
|
+
grid-template-areas:
|
|
73
|
+
"mark text"
|
|
74
|
+
". text";
|
|
75
|
+
`), (0, cssr_1.cM)('right-mark', `
|
|
76
|
+
grid-template-areas:
|
|
77
|
+
"text mark"
|
|
78
|
+
"text .";
|
|
79
|
+
`), (0, cssr_1.cM)('right-hanging-mark', `
|
|
80
|
+
grid-template-areas:
|
|
81
|
+
"text mark"
|
|
82
|
+
"text .";
|
|
83
|
+
`), (0, cssr_1.cE)('text', `
|
|
84
|
+
grid-area: text;
|
|
85
|
+
`), (0, cssr_1.cE)('asterisk', `
|
|
86
|
+
grid-area: mark;
|
|
87
|
+
align-self: end;
|
|
88
|
+
`)])]), (0, cssr_1.cM)('top-labelled', `
|
|
67
89
|
grid-template-areas:
|
|
68
90
|
"label"
|
|
69
91
|
"blank"
|
|
70
92
|
"feedback";
|
|
71
|
-
grid-template-rows: var(--n-label-height) 1fr;
|
|
93
|
+
grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
|
|
72
94
|
grid-template-columns: minmax(0, 100%);
|
|
73
95
|
`, [(0, cssr_1.cM)('no-label', `
|
|
74
96
|
grid-template-areas:
|
|
75
97
|
"blank"
|
|
76
98
|
"feedback";
|
|
77
99
|
grid-template-rows: 1fr;
|
|
78
|
-
`), (0, cssr_1.cB)('form-item-label',
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
100
|
+
`), (0, cssr_1.cB)('form-item-label', `
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: flex-start;
|
|
103
|
+
justify-content: var(--n-label-text-align);
|
|
104
|
+
`)]), (0, cssr_1.cB)('form-item-blank', `
|
|
83
105
|
box-sizing: border-box;
|
|
84
106
|
display: flex;
|
|
85
107
|
align-items: center;
|
package/lib/form/src/utils.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare function formItemMisc(props: FormItemSetupProps): {
|
|
|
14
14
|
mergedValidationStatus: ComputedRef<"error" | "success" | "warning" | undefined>;
|
|
15
15
|
mergedShowFeedback: ComputedRef<boolean>;
|
|
16
16
|
mergedShowLabel: ComputedRef<boolean>;
|
|
17
|
+
isAutoLabelWidth: ComputedRef<boolean>;
|
|
17
18
|
};
|
|
18
19
|
export declare function formItemRule(props: FormItemSetupProps): {
|
|
19
20
|
mergedRules: ComputedRef<FormItemRule[]>;
|
package/lib/form/src/utils.js
CHANGED
|
@@ -21,6 +21,18 @@ exports.formItemSize = formItemSize;
|
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
22
22
|
function formItemMisc(props) {
|
|
23
23
|
const NForm = (0, vue_1.inject)(context_1.formInjectionKey, null);
|
|
24
|
+
const mergedLabelPlacementRef = (0, vue_1.computed)(() => {
|
|
25
|
+
const { labelPlacement } = props;
|
|
26
|
+
if (labelPlacement !== undefined)
|
|
27
|
+
return labelPlacement;
|
|
28
|
+
if (NForm === null || NForm === void 0 ? void 0 : NForm.props.labelPlacement)
|
|
29
|
+
return NForm.props.labelPlacement;
|
|
30
|
+
return 'top';
|
|
31
|
+
});
|
|
32
|
+
const isAutoLabelWidthRef = (0, vue_1.computed)(() => {
|
|
33
|
+
return (mergedLabelPlacementRef.value === 'left' &&
|
|
34
|
+
(props.labelWidth === 'auto' || (NForm === null || NForm === void 0 ? void 0 : NForm.props.labelWidth) === 'auto'));
|
|
35
|
+
});
|
|
24
36
|
const mergedLabelWidthRef = (0, vue_1.computed)(() => {
|
|
25
37
|
if (mergedLabelPlacementRef.value === 'top')
|
|
26
38
|
return;
|
|
@@ -28,7 +40,7 @@ function formItemMisc(props) {
|
|
|
28
40
|
if (labelWidth !== undefined && labelWidth !== 'auto') {
|
|
29
41
|
return (0, _utils_1.formatLength)(labelWidth);
|
|
30
42
|
}
|
|
31
|
-
if (
|
|
43
|
+
if (isAutoLabelWidthRef.value) {
|
|
32
44
|
const autoComputedWidth = NForm === null || NForm === void 0 ? void 0 : NForm.maxChildLabelWidthRef.value;
|
|
33
45
|
if (autoComputedWidth !== undefined) {
|
|
34
46
|
return (0, _utils_1.formatLength)(autoComputedWidth);
|
|
@@ -42,14 +54,6 @@ function formItemMisc(props) {
|
|
|
42
54
|
}
|
|
43
55
|
return undefined;
|
|
44
56
|
});
|
|
45
|
-
const mergedLabelPlacementRef = (0, vue_1.computed)(() => {
|
|
46
|
-
const { labelPlacement } = props;
|
|
47
|
-
if (labelPlacement !== undefined)
|
|
48
|
-
return labelPlacement;
|
|
49
|
-
if (NForm === null || NForm === void 0 ? void 0 : NForm.props.labelPlacement)
|
|
50
|
-
return NForm.props.labelPlacement;
|
|
51
|
-
return 'top';
|
|
52
|
-
});
|
|
53
57
|
const mergedLabelAlignRef = (0, vue_1.computed)(() => {
|
|
54
58
|
const { labelAlign } = props;
|
|
55
59
|
if (labelAlign)
|
|
@@ -114,7 +118,8 @@ function formItemMisc(props) {
|
|
|
114
118
|
mergedRequireMarkPlacement: mergedRequireMarkPlacementRef,
|
|
115
119
|
mergedValidationStatus: mergedValidationStatusRef,
|
|
116
120
|
mergedShowFeedback: mergedShowFeedbackRef,
|
|
117
|
-
mergedShowLabel: mergedShowLabelRef
|
|
121
|
+
mergedShowLabel: mergedShowLabelRef,
|
|
122
|
+
isAutoLabelWidth: isAutoLabelWidthRef
|
|
118
123
|
};
|
|
119
124
|
}
|
|
120
125
|
exports.formItemMisc = formItemMisc;
|
package/lib/input/src/utils.js
CHANGED
|
@@ -19,7 +19,7 @@ function useCursor(inputElRef) {
|
|
|
19
19
|
const selectionRef = (0, vue_1.ref)(null);
|
|
20
20
|
function recordCursor() {
|
|
21
21
|
const { value: input } = inputElRef;
|
|
22
|
-
if (!input ||
|
|
22
|
+
if (!(input === null || input === void 0 ? void 0 : input.focus)) {
|
|
23
23
|
reset();
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -43,9 +43,8 @@ const frFR = {
|
|
|
43
43
|
endDatePlaceholder: 'Date de fin',
|
|
44
44
|
startDatetimePlaceholder: 'Date et heure de début',
|
|
45
45
|
endDatetimePlaceholder: 'Date et heure de fin',
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
endMonthPlaceholder: 'End Month',
|
|
46
|
+
startMonthPlaceholder: 'Mois de début',
|
|
47
|
+
endMonthPlaceholder: 'Mois de fin',
|
|
49
48
|
monthBeforeYear: true,
|
|
50
49
|
firstDayOfWeek: 1,
|
|
51
50
|
today: "Aujourd'hui"
|
|
@@ -60,13 +59,12 @@ const frFR = {
|
|
|
60
59
|
sourceTitle: 'Source',
|
|
61
60
|
targetTitle: 'Cible'
|
|
62
61
|
},
|
|
63
|
-
// TODO: translation
|
|
64
62
|
Transfer: {
|
|
65
|
-
selectAll: '
|
|
66
|
-
unselectAll: '
|
|
67
|
-
clearAll: '
|
|
68
|
-
total: (num) => `Total ${num}
|
|
69
|
-
selected: (num) => `${num}
|
|
63
|
+
selectAll: 'Sélectionner tout',
|
|
64
|
+
unselectAll: 'Désélectionner tout',
|
|
65
|
+
clearAll: 'Effacer',
|
|
66
|
+
total: (num) => `Total ${num} éléments`,
|
|
67
|
+
selected: (num) => `${num} éléments sélectionnés`
|
|
70
68
|
},
|
|
71
69
|
Empty: {
|
|
72
70
|
description: 'Aucune donnée'
|
|
@@ -117,8 +115,7 @@ const frFR = {
|
|
|
117
115
|
tipZoomOut: 'Dézoomer',
|
|
118
116
|
tipZoomIn: 'Zoomer',
|
|
119
117
|
tipClose: 'Fermer (Échap.)',
|
|
120
|
-
|
|
121
|
-
tipOriginalSize: 'Zoom to original size'
|
|
118
|
+
tipOriginalSize: 'Zoom à la taille originale'
|
|
122
119
|
}
|
|
123
120
|
};
|
|
124
121
|
exports.default = frFR;
|
package/lib/menu/src/Menu.d.ts
CHANGED
|
@@ -42,6 +42,10 @@ export declare const menuProps: {
|
|
|
42
42
|
readonly type: StringConstructor;
|
|
43
43
|
readonly default: "children";
|
|
44
44
|
};
|
|
45
|
+
readonly disabledField: {
|
|
46
|
+
readonly type: StringConstructor;
|
|
47
|
+
readonly default: "disabled";
|
|
48
|
+
};
|
|
45
49
|
readonly defaultExpandAll: BooleanConstructor;
|
|
46
50
|
readonly defaultExpandedKeys: PropType<Key[]>;
|
|
47
51
|
readonly expandedKeys: PropType<Key[]>;
|
|
@@ -648,6 +652,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
648
652
|
readonly type: StringConstructor;
|
|
649
653
|
readonly default: "children";
|
|
650
654
|
};
|
|
655
|
+
readonly disabledField: {
|
|
656
|
+
readonly type: StringConstructor;
|
|
657
|
+
readonly default: "disabled";
|
|
658
|
+
};
|
|
651
659
|
readonly defaultExpandAll: BooleanConstructor;
|
|
652
660
|
readonly defaultExpandedKeys: PropType<Key[]>;
|
|
653
661
|
readonly expandedKeys: PropType<Key[]>;
|
|
@@ -1585,6 +1593,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1585
1593
|
readonly type: StringConstructor;
|
|
1586
1594
|
readonly default: "children";
|
|
1587
1595
|
};
|
|
1596
|
+
readonly disabledField: {
|
|
1597
|
+
readonly type: StringConstructor;
|
|
1598
|
+
readonly default: "disabled";
|
|
1599
|
+
};
|
|
1588
1600
|
readonly defaultExpandAll: BooleanConstructor;
|
|
1589
1601
|
readonly defaultExpandedKeys: PropType<Key[]>;
|
|
1590
1602
|
readonly expandedKeys: PropType<Key[]>;
|
|
@@ -2163,6 +2175,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2163
2175
|
readonly defaultExpandAll: boolean;
|
|
2164
2176
|
readonly indent: number;
|
|
2165
2177
|
readonly inverted: boolean;
|
|
2178
|
+
readonly disabledField: string;
|
|
2166
2179
|
readonly accordion: boolean;
|
|
2167
2180
|
readonly collapsed: boolean | undefined;
|
|
2168
2181
|
readonly collapsedWidth: number;
|