naive-ui 2.23.0 → 2.23.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/es/_utils/composable/use-houdini.js +10 -7
- package/es/auto-complete/src/AutoComplete.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.js +2 -2
- package/es/auto-complete/src/styles/index.cssr.js +4 -4
- package/es/avatar/src/Avatar.d.ts +5 -5
- package/es/avatar/src/Avatar.js +5 -5
- package/es/avatar/src/styles/index.cssr.js +13 -13
- package/es/back-top/src/BackTop.d.ts +13 -13
- package/es/back-top/src/BackTop.js +13 -13
- package/es/back-top/src/styles/index.cssr.js +29 -29
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/date-picker/src/panel/date.d.ts +4 -9
- package/es/date-picker/src/panel/daterange.d.ts +4 -9
- package/es/date-picker/src/panel/datetime.d.ts +4 -9
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/es/date-picker/src/panel/month.d.ts +4 -9
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-calendar.js +6 -5
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/es/date-picker/src/panel/use-panel-common.js +2 -6
- package/es/dialog/src/Dialog.d.ts +21 -21
- package/es/dialog/src/Dialog.js +21 -21
- package/es/dialog/src/styles/index.cssr.js +45 -45
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/es/form/src/Form.d.ts +27 -27
- package/es/form/src/FormItem.d.ts +27 -27
- package/es/form/src/FormItemCol.d.ts +27 -27
- package/es/form/src/FormItemGridItem.d.ts +27 -27
- package/es/form/src/FormItemRow.d.ts +27 -27
- package/es/form/styles/_common.d.ts +0 -3
- package/es/form/styles/_common.js +0 -3
- package/es/form/styles/light.d.ts +3 -3
- package/es/form/styles/light.js +2 -2
- package/es/log/src/Log.d.ts +6 -6
- package/es/log/src/Log.js +6 -6
- package/es/log/src/styles/index.cssr.js +16 -18
- package/es/steps/src/Step.d.ts +12 -12
- package/es/steps/src/Step.js +12 -12
- package/es/steps/src/styles/index.cssr.js +46 -46
- package/es/switch/src/Switch.d.ts +19 -19
- package/es/switch/src/Switch.js +19 -19
- package/es/switch/src/styles/index.cssr.js +57 -57
- package/es/tag/src/Tag.d.ts +26 -26
- package/es/tag/src/Tag.js +26 -26
- package/es/tag/src/styles/index.cssr.js +54 -54
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/time-picker/src/TimePicker.d.ts +17 -17
- package/es/time-picker/src/TimePicker.js +17 -17
- package/es/time-picker/src/styles/index.cssr.js +47 -47
- package/es/timeline/src/TimelineItem.d.ts +12 -12
- package/es/timeline/src/TimelineItem.js +12 -12
- package/es/timeline/src/styles/index.cssr.js +44 -44
- package/es/transfer/src/styles/index.cssr.js +9 -4
- package/es/tree/src/Tree.d.ts +11 -11
- package/es/tree/src/Tree.js +11 -11
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/styles/index.cssr.js +33 -33
- package/es/tree-select/src/TreeSelect.d.ts +8 -8
- package/es/tree-select/src/TreeSelect.js +8 -8
- package/es/tree-select/src/styles/index.cssr.js +18 -18
- package/es/upload/src/Upload.js +16 -16
- package/es/upload/src/styles/index.cssr.js +36 -36
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_utils/composable/use-houdini.js +10 -7
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/auto-complete/src/styles/index.cssr.js +4 -4
- package/lib/avatar/src/Avatar.d.ts +5 -5
- package/lib/avatar/src/Avatar.js +5 -5
- package/lib/avatar/src/styles/index.cssr.js +13 -13
- package/lib/back-top/src/BackTop.d.ts +13 -13
- package/lib/back-top/src/BackTop.js +13 -13
- package/lib/back-top/src/styles/index.cssr.js +29 -29
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/date-picker/src/panel/date.d.ts +4 -9
- package/lib/date-picker/src/panel/daterange.d.ts +4 -9
- package/lib/date-picker/src/panel/datetime.d.ts +4 -9
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/lib/date-picker/src/panel/month.d.ts +4 -9
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-calendar.js +6 -5
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/lib/date-picker/src/panel/use-panel-common.js +2 -6
- package/lib/dialog/src/Dialog.d.ts +21 -21
- package/lib/dialog/src/Dialog.js +21 -21
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +1 -1
- package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/lib/form/src/Form.d.ts +27 -27
- package/lib/form/src/FormItem.d.ts +27 -27
- package/lib/form/src/FormItemCol.d.ts +27 -27
- package/lib/form/src/FormItemGridItem.d.ts +27 -27
- package/lib/form/src/FormItemRow.d.ts +27 -27
- package/lib/form/styles/_common.d.ts +0 -3
- package/lib/form/styles/_common.js +0 -3
- package/lib/form/styles/light.d.ts +3 -3
- package/lib/form/styles/light.js +2 -2
- package/lib/log/src/Log.d.ts +6 -6
- package/lib/log/src/Log.js +6 -6
- package/lib/log/src/styles/index.cssr.js +16 -18
- package/lib/steps/src/Step.d.ts +12 -12
- package/lib/steps/src/Step.js +12 -12
- package/lib/steps/src/styles/index.cssr.js +46 -46
- package/lib/switch/src/Switch.d.ts +19 -19
- package/lib/switch/src/Switch.js +19 -19
- package/lib/switch/src/styles/index.cssr.js +57 -57
- package/lib/tag/src/Tag.d.ts +26 -26
- package/lib/tag/src/Tag.js +26 -26
- package/lib/tag/src/styles/index.cssr.js +54 -54
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +17 -17
- package/lib/time-picker/src/TimePicker.js +17 -17
- package/lib/time-picker/src/styles/index.cssr.js +47 -47
- package/lib/timeline/src/TimelineItem.d.ts +12 -12
- package/lib/timeline/src/TimelineItem.js +12 -12
- package/lib/timeline/src/styles/index.cssr.js +44 -44
- package/lib/transfer/src/styles/index.cssr.js +9 -4
- package/lib/tree/src/Tree.d.ts +11 -11
- package/lib/tree/src/Tree.js +11 -11
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/styles/index.cssr.js +33 -33
- package/lib/tree-select/src/TreeSelect.d.ts +8 -8
- package/lib/tree-select/src/TreeSelect.js +8 -8
- package/lib/tree-select/src/styles/index.cssr.js +18 -18
- package/lib/upload/src/Upload.js +16 -16
- package/lib/upload/src/styles/index.cssr.js +36 -36
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +26 -26
- package/web-types.json +1 -1
|
@@ -36,12 +36,13 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
36
36
|
const nowRef = ref(Date.now());
|
|
37
37
|
const isSelectingRef = ref(false);
|
|
38
38
|
const memorizedStartDateTimeRef = ref(0);
|
|
39
|
-
const
|
|
39
|
+
const mergedDateFormatRef = computed(() => props.dateFormat || localeRef.value.dateFormat);
|
|
40
|
+
const { value } = props;
|
|
40
41
|
const startDateInput = ref(Array.isArray(value)
|
|
41
|
-
? format(value[0],
|
|
42
|
+
? format(value[0], mergedDateFormatRef.value, panelCommon.dateFnsOptions.value)
|
|
42
43
|
: '');
|
|
43
44
|
const endDateInputRef = ref(Array.isArray(value)
|
|
44
|
-
? format(value[1],
|
|
45
|
+
? format(value[1], mergedDateFormatRef.value, panelCommon.dateFnsOptions.value)
|
|
45
46
|
: '');
|
|
46
47
|
if (Array.isArray(value)) {
|
|
47
48
|
syncCalendarTimeWithValue(value);
|
|
@@ -98,9 +99,8 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
98
99
|
watch(computed(() => props.value), (value) => {
|
|
99
100
|
if (value !== null && Array.isArray(value)) {
|
|
100
101
|
const [startMoment, endMoment] = value;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
endDateInputRef.value = format(endMoment, dateFormat, panelCommon.dateFnsOptions.value);
|
|
102
|
+
startDateInput.value = format(startMoment, mergedDateFormatRef.value, panelCommon.dateFnsOptions.value);
|
|
103
|
+
endDateInputRef.value = format(endMoment, mergedDateFormatRef.value, panelCommon.dateFnsOptions.value);
|
|
104
104
|
if (!isSelectingRef.value) {
|
|
105
105
|
syncCalendarTimeWithValue(value);
|
|
106
106
|
}
|
|
@@ -318,7 +318,7 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
function handleStartDateInput(value) {
|
|
321
|
-
const date = strictParse(value,
|
|
321
|
+
const date = strictParse(value, mergedDateFormatRef.value, new Date(), panelCommon.dateFnsOptions.value);
|
|
322
322
|
if (isValid(date)) {
|
|
323
323
|
if (!props.value) {
|
|
324
324
|
const newValue = set(new Date(), {
|
|
@@ -343,7 +343,7 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
343
343
|
}
|
|
344
344
|
function handleEndDateInput(value) {
|
|
345
345
|
/** strict check when input */
|
|
346
|
-
const date = strictParse(value,
|
|
346
|
+
const date = strictParse(value, mergedDateFormatRef.value, new Date(), panelCommon.dateFnsOptions.value);
|
|
347
347
|
if (isValid(date)) {
|
|
348
348
|
if (props.value === null) {
|
|
349
349
|
const newValue = set(new Date(), {
|
|
@@ -367,7 +367,7 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
function handleStartDateInputBlur() {
|
|
370
|
-
const date = strictParse(startDateInput.value,
|
|
370
|
+
const date = strictParse(startDateInput.value, mergedDateFormatRef.value, new Date(), panelCommon.dateFnsOptions.value);
|
|
371
371
|
const { value } = props;
|
|
372
372
|
if (isValid(date)) {
|
|
373
373
|
if (value === null) {
|
|
@@ -392,7 +392,7 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
function handleEndDateInputBlur() {
|
|
395
|
-
const date = strictParse(endDateInputRef.value,
|
|
395
|
+
const date = strictParse(endDateInputRef.value, mergedDateFormatRef.value, new Date(), panelCommon.dateFnsOptions.value);
|
|
396
396
|
const { value } = props;
|
|
397
397
|
if (isValid(date)) {
|
|
398
398
|
if (value === null) {
|
|
@@ -425,12 +425,11 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
425
425
|
endDateInputRef.value = '';
|
|
426
426
|
return;
|
|
427
427
|
}
|
|
428
|
-
const { dateFormat } = props;
|
|
429
428
|
if (times === undefined) {
|
|
430
429
|
times = value;
|
|
431
430
|
}
|
|
432
|
-
startDateInput.value = format(times[0],
|
|
433
|
-
endDateInputRef.value = format(times[1],
|
|
431
|
+
startDateInput.value = format(times[0], mergedDateFormatRef.value, panelCommon.dateFnsOptions.value);
|
|
432
|
+
endDateInputRef.value = format(times[1], mergedDateFormatRef.value, panelCommon.dateFnsOptions.value);
|
|
434
433
|
}
|
|
435
434
|
function handleStartTimePickerChange(value) {
|
|
436
435
|
if (value === null)
|
|
@@ -2,13 +2,10 @@ import { PropType, ExtractPropTypes } from 'vue';
|
|
|
2
2
|
import { Value, OnPanelUpdateValue, OnClose, Shortcuts, DefaultTime } from '../interface';
|
|
3
3
|
declare const usePanelCommonProps: {
|
|
4
4
|
readonly active: BooleanConstructor;
|
|
5
|
-
readonly dateFormat:
|
|
6
|
-
readonly type: StringConstructor;
|
|
7
|
-
readonly default: "yyyy-MM-dd";
|
|
8
|
-
};
|
|
5
|
+
readonly dateFormat: StringConstructor;
|
|
9
6
|
readonly timeFormat: {
|
|
10
7
|
readonly type: StringConstructor;
|
|
11
|
-
readonly
|
|
8
|
+
readonly value: "HH:mm:ss";
|
|
12
9
|
};
|
|
13
10
|
readonly value: {
|
|
14
11
|
readonly type: PropType<Value | null>;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { computed, inject, ref, nextTick } from 'vue';
|
|
2
2
|
import { useKeyboard } from 'vooks';
|
|
3
3
|
import { datePickerInjectionKey } from '../interface';
|
|
4
|
-
const DATE_FORMAT = 'yyyy-MM-dd';
|
|
5
4
|
const TIME_FORMAT = 'HH:mm:ss';
|
|
6
5
|
const usePanelCommonProps = {
|
|
7
6
|
active: Boolean,
|
|
8
|
-
dateFormat:
|
|
9
|
-
type: String,
|
|
10
|
-
default: DATE_FORMAT
|
|
11
|
-
},
|
|
7
|
+
dateFormat: String,
|
|
12
8
|
timeFormat: {
|
|
13
9
|
type: String,
|
|
14
|
-
|
|
10
|
+
value: TIME_FORMAT
|
|
15
11
|
},
|
|
16
12
|
value: {
|
|
17
13
|
type: [Array, Number],
|
|
@@ -1107,27 +1107,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1107
1107
|
handleNegativeClick: (e: MouseEvent) => void;
|
|
1108
1108
|
handleCloseClick: () => void;
|
|
1109
1109
|
cssVars: import("vue").ComputedRef<{
|
|
1110
|
-
'--font-size': string;
|
|
1111
|
-
'--icon-color': string;
|
|
1112
|
-
'--bezier': string;
|
|
1113
|
-
'--close-margin': string;
|
|
1114
|
-
'--icon-margin': string;
|
|
1115
|
-
'--icon-size': string;
|
|
1116
|
-
'--close-size': string;
|
|
1117
|
-
'--close-color': string;
|
|
1118
|
-
'--close-color-hover': string;
|
|
1119
|
-
'--close-color-pressed': string;
|
|
1120
|
-
'--color': string;
|
|
1121
|
-
'--text-color': string;
|
|
1122
|
-
'--border-radius': string;
|
|
1123
|
-
'--padding': string;
|
|
1124
|
-
'--line-height': string;
|
|
1125
|
-
'--border': string;
|
|
1126
|
-
'--content-margin': string;
|
|
1127
|
-
'--title-font-size': string;
|
|
1128
|
-
'--title-font-weight': string;
|
|
1129
|
-
'--title-text-color': string;
|
|
1130
|
-
'--action-space': string;
|
|
1110
|
+
'--n-font-size': string;
|
|
1111
|
+
'--n-icon-color': string;
|
|
1112
|
+
'--n-bezier': string;
|
|
1113
|
+
'--n-close-margin': string;
|
|
1114
|
+
'--n-icon-margin': string;
|
|
1115
|
+
'--n-icon-size': string;
|
|
1116
|
+
'--n-close-size': string;
|
|
1117
|
+
'--n-close-color': string;
|
|
1118
|
+
'--n-close-color-hover': string;
|
|
1119
|
+
'--n-close-color-pressed': string;
|
|
1120
|
+
'--n-color': string;
|
|
1121
|
+
'--n-text-color': string;
|
|
1122
|
+
'--n-border-radius': string;
|
|
1123
|
+
'--n-padding': string;
|
|
1124
|
+
'--n-line-height': string;
|
|
1125
|
+
'--n-border': string;
|
|
1126
|
+
'--n-content-margin': string;
|
|
1127
|
+
'--n-title-font-size': string;
|
|
1128
|
+
'--n-title-font-weight': string;
|
|
1129
|
+
'--n-title-text-color': string;
|
|
1130
|
+
'--n-action-space': string;
|
|
1131
1131
|
}>;
|
|
1132
1132
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
1133
1133
|
icon?: unknown;
|
package/es/dialog/src/Dialog.js
CHANGED
|
@@ -83,27 +83,27 @@ export default defineComponent({
|
|
|
83
83
|
const { type, iconPlacement } = props;
|
|
84
84
|
const { common: { cubicBezierEaseInOut }, self: { fontSize, lineHeight, border, titleTextColor, textColor, color, closeColor, closeColorHover, closeColorPressed, borderRadius, titleFontWeight, titleFontSize, padding, iconSize, actionSpace, contentMargin, closeSize, [iconPlacement === 'top' ? 'iconMarginIconTop' : 'iconMargin']: iconMargin, [iconPlacement === 'top' ? 'closeMarginIconTop' : 'closeMargin']: closeMargin, [createKey('iconColor', type)]: iconColor } } = themeRef.value;
|
|
85
85
|
return {
|
|
86
|
-
'--font-size': fontSize,
|
|
87
|
-
'--icon-color': iconColor,
|
|
88
|
-
'--bezier': cubicBezierEaseInOut,
|
|
89
|
-
'--close-margin': closeMargin,
|
|
90
|
-
'--icon-margin': iconMargin,
|
|
91
|
-
'--icon-size': iconSize,
|
|
92
|
-
'--close-size': closeSize,
|
|
93
|
-
'--close-color': closeColor,
|
|
94
|
-
'--close-color-hover': closeColorHover,
|
|
95
|
-
'--close-color-pressed': closeColorPressed,
|
|
96
|
-
'--color': color,
|
|
97
|
-
'--text-color': textColor,
|
|
98
|
-
'--border-radius': borderRadius,
|
|
99
|
-
'--padding': padding,
|
|
100
|
-
'--line-height': lineHeight,
|
|
101
|
-
'--border': border,
|
|
102
|
-
'--content-margin': contentMargin,
|
|
103
|
-
'--title-font-size': titleFontSize,
|
|
104
|
-
'--title-font-weight': titleFontWeight,
|
|
105
|
-
'--title-text-color': titleTextColor,
|
|
106
|
-
'--action-space': actionSpace
|
|
86
|
+
'--n-font-size': fontSize,
|
|
87
|
+
'--n-icon-color': iconColor,
|
|
88
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
89
|
+
'--n-close-margin': closeMargin,
|
|
90
|
+
'--n-icon-margin': iconMargin,
|
|
91
|
+
'--n-icon-size': iconSize,
|
|
92
|
+
'--n-close-size': closeSize,
|
|
93
|
+
'--n-close-color': closeColor,
|
|
94
|
+
'--n-close-color-hover': closeColorHover,
|
|
95
|
+
'--n-close-color-pressed': closeColorPressed,
|
|
96
|
+
'--n-color': color,
|
|
97
|
+
'--n-text-color': textColor,
|
|
98
|
+
'--n-border-radius': borderRadius,
|
|
99
|
+
'--n-padding': padding,
|
|
100
|
+
'--n-line-height': lineHeight,
|
|
101
|
+
'--n-border': border,
|
|
102
|
+
'--n-content-margin': contentMargin,
|
|
103
|
+
'--n-title-font-size': titleFontSize,
|
|
104
|
+
'--n-title-font-weight': titleFontWeight,
|
|
105
|
+
'--n-title-text-color': titleTextColor,
|
|
106
|
+
'--n-action-space': actionSpace
|
|
107
107
|
};
|
|
108
108
|
})
|
|
109
109
|
};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { asModal, c, cB, cE, cM, insideModal } from '../../../_utils/cssr'; // vars:
|
|
2
|
-
// --icon-color
|
|
3
|
-
// --bezier
|
|
4
|
-
// --close-margin
|
|
5
|
-
// --icon-margin
|
|
6
|
-
// --icon-size
|
|
7
|
-
// --close-size
|
|
8
|
-
// --close-color
|
|
9
|
-
// --close-color-hover
|
|
10
|
-
// --close-color-pressed
|
|
11
|
-
// --color
|
|
12
|
-
// --text-color
|
|
13
|
-
// --border-radius
|
|
14
|
-
// --padding
|
|
15
|
-
// --line-height
|
|
16
|
-
// --border
|
|
17
|
-
// --content-margin
|
|
18
|
-
// --title-font-size
|
|
19
|
-
// --title-font-weight
|
|
20
|
-
// --title-text-color
|
|
21
|
-
// --action-space
|
|
2
|
+
// --n-icon-color
|
|
3
|
+
// --n-bezier
|
|
4
|
+
// --n-close-margin
|
|
5
|
+
// --n-icon-margin
|
|
6
|
+
// --n-icon-size
|
|
7
|
+
// --n-close-size
|
|
8
|
+
// --n-close-color
|
|
9
|
+
// --n-close-color-hover
|
|
10
|
+
// --n-close-color-pressed
|
|
11
|
+
// --n-color
|
|
12
|
+
// --n-text-color
|
|
13
|
+
// --n-border-radius
|
|
14
|
+
// --n-padding
|
|
15
|
+
// --n-line-height
|
|
16
|
+
// --n-border
|
|
17
|
+
// --n-content-margin
|
|
18
|
+
// --n-title-font-size
|
|
19
|
+
// --n-title-font-weight
|
|
20
|
+
// --n-title-text-color
|
|
21
|
+
// --n-action-space
|
|
22
22
|
|
|
23
23
|
export default c([cB('dialog', `
|
|
24
|
-
line-height: var(--line-height);
|
|
24
|
+
line-height: var(--n-line-height);
|
|
25
25
|
position: relative;
|
|
26
|
-
background: var(--color);
|
|
27
|
-
color: var(--text-color);
|
|
26
|
+
background: var(--n-color);
|
|
27
|
+
color: var(--n-text-color);
|
|
28
28
|
box-sizing: border-box;
|
|
29
29
|
margin: auto;
|
|
30
|
-
border-radius: var(--border-radius);
|
|
31
|
-
padding: var(--padding);
|
|
30
|
+
border-radius: var(--n-border-radius);
|
|
31
|
+
padding: var(--n-padding);
|
|
32
32
|
transition:
|
|
33
|
-
border-color .3s var(--bezier),
|
|
34
|
-
background-color .3s var(--bezier),
|
|
35
|
-
color .3s var(--bezier);
|
|
33
|
+
border-color .3s var(--n-bezier),
|
|
34
|
+
background-color .3s var(--n-bezier),
|
|
35
|
+
color .3s var(--n-bezier);
|
|
36
36
|
`, [cE('icon', {
|
|
37
|
-
color: 'var(--icon-color)'
|
|
37
|
+
color: 'var(--n-icon-color)'
|
|
38
38
|
}), cM('bordered', {
|
|
39
|
-
border: 'var(--border)'
|
|
39
|
+
border: 'var(--n-border)'
|
|
40
40
|
}), cM('icon-top', [cE('close', {
|
|
41
|
-
margin: 'var(--close-margin)'
|
|
41
|
+
margin: 'var(--n-close-margin)'
|
|
42
42
|
}), cE('icon', {
|
|
43
|
-
margin: 'var(--icon-margin)'
|
|
43
|
+
margin: 'var(--n-icon-margin)'
|
|
44
44
|
}), cE('content', {
|
|
45
45
|
textAlign: 'center'
|
|
46
46
|
}), cE('title', {
|
|
@@ -48,35 +48,35 @@ export default c([cB('dialog', `
|
|
|
48
48
|
}), cE('action', {
|
|
49
49
|
justifyContent: 'center'
|
|
50
50
|
})]), cM('icon-left', [cE('icon', {
|
|
51
|
-
margin: 'var(--icon-margin)'
|
|
51
|
+
margin: 'var(--n-icon-margin)'
|
|
52
52
|
})]), cE('close', `
|
|
53
|
-
font-size: var(--close-size);
|
|
53
|
+
font-size: var(--n-close-size);
|
|
54
54
|
position: absolute;
|
|
55
55
|
right: 0;
|
|
56
56
|
top: 0;
|
|
57
|
-
margin: var(--close-margin);
|
|
58
|
-
transition: .3s color var(--bezier);
|
|
57
|
+
margin: var(--n-close-margin);
|
|
58
|
+
transition: .3s color var(--n-bezier);
|
|
59
59
|
z-index: 1;
|
|
60
60
|
`), cE('content', `
|
|
61
|
-
font-size: var(--font-size);
|
|
62
|
-
margin: var(--content-margin);
|
|
61
|
+
font-size: var(--n-font-size);
|
|
62
|
+
margin: var(--n-content-margin);
|
|
63
63
|
position: relative;
|
|
64
64
|
word-break: break-word;
|
|
65
65
|
`, [c('&:last-child', 'margin-bottom: 0;')]), cE('action', `
|
|
66
66
|
display: flex;
|
|
67
67
|
justify-content: flex-end;
|
|
68
68
|
`, [c('> *:not(:last-child)', {
|
|
69
|
-
marginRight: 'var(--action-space)'
|
|
69
|
+
marginRight: 'var(--n-action-space)'
|
|
70
70
|
})]), cE('icon', {
|
|
71
|
-
fontSize: 'var(--icon-size)',
|
|
72
|
-
transition: 'color .3s var(--bezier)'
|
|
71
|
+
fontSize: 'var(--n-icon-size)',
|
|
72
|
+
transition: 'color .3s var(--n-bezier)'
|
|
73
73
|
}), cE('title', `
|
|
74
|
-
transition: color .3s var(--bezier);
|
|
74
|
+
transition: color .3s var(--n-bezier);
|
|
75
75
|
display: flex;
|
|
76
76
|
align-items: center;
|
|
77
|
-
font-size: var(--title-font-size);
|
|
78
|
-
font-weight: var(--title-font-weight);
|
|
79
|
-
color: var(--title-text-color);
|
|
77
|
+
font-size: var(--n-title-font-size);
|
|
78
|
+
font-weight: var(--n-title-font-weight);
|
|
79
|
+
color: var(--n-title-text-color);
|
|
80
80
|
`), cB('dialog-icon-container', {
|
|
81
81
|
display: 'flex',
|
|
82
82
|
justifyContent: 'center'
|
|
@@ -2571,7 +2571,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2571
2571
|
};
|
|
2572
2572
|
}>;
|
|
2573
2573
|
cssVars: import("vue").ComputedRef<{
|
|
2574
|
-
'--input-width': string;
|
|
2574
|
+
'--n-input-width': string;
|
|
2575
2575
|
}>;
|
|
2576
2576
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
2577
2577
|
closable?: unknown;
|
package/es/form/src/Form.d.ts
CHANGED
|
@@ -34,15 +34,15 @@ declare const formProps: {
|
|
|
34
34
|
readonly default: undefined;
|
|
35
35
|
};
|
|
36
36
|
readonly theme: PropType<import("../../_mixins").Theme<"Form", {
|
|
37
|
+
blankHeightSmall: string;
|
|
38
|
+
blankHeightMedium: string;
|
|
39
|
+
blankHeightLarge: string;
|
|
37
40
|
lineHeight: string;
|
|
38
41
|
labelTextColor: string;
|
|
39
42
|
asteriskColor: string;
|
|
40
43
|
feedbackTextColorError: string;
|
|
41
44
|
feedbackTextColorWarning: string;
|
|
42
45
|
feedbackTextColor: string;
|
|
43
|
-
blankHeightSmall: string;
|
|
44
|
-
blankHeightMedium: string;
|
|
45
|
-
blankHeightLarge: string;
|
|
46
46
|
feedbackPadding: string;
|
|
47
47
|
feedbackHeightSmall: string;
|
|
48
48
|
feedbackHeightMedium: string;
|
|
@@ -65,15 +65,15 @@ declare const formProps: {
|
|
|
65
65
|
labelTextAlignHorizontal: string;
|
|
66
66
|
}, any>>;
|
|
67
67
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
68
|
+
blankHeightSmall: string;
|
|
69
|
+
blankHeightMedium: string;
|
|
70
|
+
blankHeightLarge: string;
|
|
68
71
|
lineHeight: string;
|
|
69
72
|
labelTextColor: string;
|
|
70
73
|
asteriskColor: string;
|
|
71
74
|
feedbackTextColorError: string;
|
|
72
75
|
feedbackTextColorWarning: string;
|
|
73
76
|
feedbackTextColor: string;
|
|
74
|
-
blankHeightSmall: string;
|
|
75
|
-
blankHeightMedium: string;
|
|
76
|
-
blankHeightLarge: string;
|
|
77
77
|
feedbackPadding: string;
|
|
78
78
|
feedbackHeightSmall: string;
|
|
79
79
|
feedbackHeightMedium: string;
|
|
@@ -96,15 +96,15 @@ declare const formProps: {
|
|
|
96
96
|
labelTextAlignHorizontal: string;
|
|
97
97
|
}, any>>>;
|
|
98
98
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
99
|
+
blankHeightSmall: string;
|
|
100
|
+
blankHeightMedium: string;
|
|
101
|
+
blankHeightLarge: string;
|
|
99
102
|
lineHeight: string;
|
|
100
103
|
labelTextColor: string;
|
|
101
104
|
asteriskColor: string;
|
|
102
105
|
feedbackTextColorError: string;
|
|
103
106
|
feedbackTextColorWarning: string;
|
|
104
107
|
feedbackTextColor: string;
|
|
105
|
-
blankHeightSmall: string;
|
|
106
|
-
blankHeightMedium: string;
|
|
107
|
-
blankHeightLarge: string;
|
|
108
108
|
feedbackPadding: string;
|
|
109
109
|
feedbackHeightSmall: string;
|
|
110
110
|
feedbackHeightMedium: string;
|
|
@@ -162,15 +162,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
162
162
|
readonly default: undefined;
|
|
163
163
|
};
|
|
164
164
|
readonly theme: PropType<import("../../_mixins").Theme<"Form", {
|
|
165
|
+
blankHeightSmall: string;
|
|
166
|
+
blankHeightMedium: string;
|
|
167
|
+
blankHeightLarge: string;
|
|
165
168
|
lineHeight: string;
|
|
166
169
|
labelTextColor: string;
|
|
167
170
|
asteriskColor: string;
|
|
168
171
|
feedbackTextColorError: string;
|
|
169
172
|
feedbackTextColorWarning: string;
|
|
170
173
|
feedbackTextColor: string;
|
|
171
|
-
blankHeightSmall: string;
|
|
172
|
-
blankHeightMedium: string;
|
|
173
|
-
blankHeightLarge: string;
|
|
174
174
|
feedbackPadding: string;
|
|
175
175
|
feedbackHeightSmall: string;
|
|
176
176
|
feedbackHeightMedium: string;
|
|
@@ -193,15 +193,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
193
193
|
labelTextAlignHorizontal: string;
|
|
194
194
|
}, any>>;
|
|
195
195
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
196
|
+
blankHeightSmall: string;
|
|
197
|
+
blankHeightMedium: string;
|
|
198
|
+
blankHeightLarge: string;
|
|
196
199
|
lineHeight: string;
|
|
197
200
|
labelTextColor: string;
|
|
198
201
|
asteriskColor: string;
|
|
199
202
|
feedbackTextColorError: string;
|
|
200
203
|
feedbackTextColorWarning: string;
|
|
201
204
|
feedbackTextColor: string;
|
|
202
|
-
blankHeightSmall: string;
|
|
203
|
-
blankHeightMedium: string;
|
|
204
|
-
blankHeightLarge: string;
|
|
205
205
|
feedbackPadding: string;
|
|
206
206
|
feedbackHeightSmall: string;
|
|
207
207
|
feedbackHeightMedium: string;
|
|
@@ -224,15 +224,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
224
224
|
labelTextAlignHorizontal: string;
|
|
225
225
|
}, any>>>;
|
|
226
226
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
227
|
+
blankHeightSmall: string;
|
|
228
|
+
blankHeightMedium: string;
|
|
229
|
+
blankHeightLarge: string;
|
|
227
230
|
lineHeight: string;
|
|
228
231
|
labelTextColor: string;
|
|
229
232
|
asteriskColor: string;
|
|
230
233
|
feedbackTextColorError: string;
|
|
231
234
|
feedbackTextColorWarning: string;
|
|
232
235
|
feedbackTextColor: string;
|
|
233
|
-
blankHeightSmall: string;
|
|
234
|
-
blankHeightMedium: string;
|
|
235
|
-
blankHeightLarge: string;
|
|
236
236
|
feedbackPadding: string;
|
|
237
237
|
feedbackHeightSmall: string;
|
|
238
238
|
feedbackHeightMedium: string;
|
|
@@ -283,15 +283,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
283
283
|
} & {
|
|
284
284
|
size?: "small" | "medium" | "large" | undefined;
|
|
285
285
|
theme?: import("../../_mixins").Theme<"Form", {
|
|
286
|
+
blankHeightSmall: string;
|
|
287
|
+
blankHeightMedium: string;
|
|
288
|
+
blankHeightLarge: string;
|
|
286
289
|
lineHeight: string;
|
|
287
290
|
labelTextColor: string;
|
|
288
291
|
asteriskColor: string;
|
|
289
292
|
feedbackTextColorError: string;
|
|
290
293
|
feedbackTextColorWarning: string;
|
|
291
294
|
feedbackTextColor: string;
|
|
292
|
-
blankHeightSmall: string;
|
|
293
|
-
blankHeightMedium: string;
|
|
294
|
-
blankHeightLarge: string;
|
|
295
295
|
feedbackPadding: string;
|
|
296
296
|
feedbackHeightSmall: string;
|
|
297
297
|
feedbackHeightMedium: string;
|
|
@@ -314,15 +314,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
314
314
|
labelTextAlignHorizontal: string;
|
|
315
315
|
}, any> | undefined;
|
|
316
316
|
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
317
|
+
blankHeightSmall: string;
|
|
318
|
+
blankHeightMedium: string;
|
|
319
|
+
blankHeightLarge: string;
|
|
317
320
|
lineHeight: string;
|
|
318
321
|
labelTextColor: string;
|
|
319
322
|
asteriskColor: string;
|
|
320
323
|
feedbackTextColorError: string;
|
|
321
324
|
feedbackTextColorWarning: string;
|
|
322
325
|
feedbackTextColor: string;
|
|
323
|
-
blankHeightSmall: string;
|
|
324
|
-
blankHeightMedium: string;
|
|
325
|
-
blankHeightLarge: string;
|
|
326
326
|
feedbackPadding: string;
|
|
327
327
|
feedbackHeightSmall: string;
|
|
328
328
|
feedbackHeightMedium: string;
|
|
@@ -345,15 +345,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
345
345
|
labelTextAlignHorizontal: string;
|
|
346
346
|
}, any>> | undefined;
|
|
347
347
|
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
348
|
+
blankHeightSmall: string;
|
|
349
|
+
blankHeightMedium: string;
|
|
350
|
+
blankHeightLarge: string;
|
|
348
351
|
lineHeight: string;
|
|
349
352
|
labelTextColor: string;
|
|
350
353
|
asteriskColor: string;
|
|
351
354
|
feedbackTextColorError: string;
|
|
352
355
|
feedbackTextColorWarning: string;
|
|
353
356
|
feedbackTextColor: string;
|
|
354
|
-
blankHeightSmall: string;
|
|
355
|
-
blankHeightMedium: string;
|
|
356
|
-
blankHeightLarge: string;
|
|
357
357
|
feedbackPadding: string;
|
|
358
358
|
feedbackHeightSmall: string;
|
|
359
359
|
feedbackHeightMedium: string;
|