@sdata/web-vue 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sd.css +105 -1
- package/dist/sd.min.css +1 -1
- package/es/_hooks/use-allow-clear.d.ts +4 -0
- package/es/_hooks/use-allow-clear.js +20 -0
- package/es/_hooks/use-component-ref.d.ts +1 -1
- package/es/_hooks/use-teleport-container.d.ts +2 -2
- package/es/_hooks/use-teleport-container.js +7 -4
- package/es/_utils/color.js +1 -18
- package/es/auto-complete/auto-complete.js +4 -2
- package/es/cascader/cascader.js +1 -1
- package/es/cascader/cascader.vue.d.ts +1 -0
- package/es/cascader/cascader.vue_vue_type_script_lang.js +4 -1
- package/es/cascader/index.d.ts +3 -0
- package/es/color-picker/color-picker.d.ts +115 -40
- package/es/color-picker/color-picker.js +146 -102
- package/es/color-picker/index.d.ts +217 -69
- package/es/color-picker/interface.d.ts +41 -0
- package/es/color-picker/palette.js +1 -1
- package/es/color-picker/panel.d.ts +73 -34
- package/es/color-picker/panel.js +423 -89
- package/es/color-picker/style/index.css +92 -1
- package/es/color-picker/style/index.scss +107 -1
- package/es/color-picker/utils.d.ts +89 -0
- package/es/color-picker/utils.js +456 -0
- package/es/config-provider/config-provider.vue.d.ts +9 -0
- package/es/config-provider/config-provider.vue_vue_type_script_lang.js +6 -1
- package/es/config-provider/context.d.ts +3 -1
- package/es/config-provider/context.js +2 -1
- package/es/config-provider/index.d.ts +15 -0
- package/es/config-provider/style/css.js +1 -0
- package/es/config-provider/style/index.css +29 -0
- package/es/config-provider/style/index.d.ts +1 -1
- package/es/config-provider/style/index.js +1 -0
- package/es/config-provider/style/index.scss +17 -0
- package/es/config-provider/theme-provider.js +1 -3
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +44 -4
- package/es/date-picker/index.d.ts +1 -0
- package/es/date-picker/picker.js +1 -1
- package/es/date-picker/picker.vue.d.ts +1 -0
- package/es/date-picker/picker.vue_vue_type_script_lang.js +4 -1
- package/es/date-picker/range-picker.js +1 -1
- package/es/date-picker/range-picker.vue.d.ts +1 -0
- package/es/date-picker/range-picker.vue_vue_type_script_lang.js +4 -1
- package/es/drawer/drawer.vue.d.ts +1 -1
- package/es/drawer/index.d.ts +3 -3
- package/es/index.css +105 -1
- package/es/index.scss +1 -0
- package/es/input/input.js +4 -2
- package/es/input-number/input-number.js +4 -2
- package/es/input-tag/input-tag.js +4 -2
- package/es/mention/mention.js +4 -2
- package/es/modal/index.d.ts +3 -3
- package/es/modal/modal.vue.d.ts +1 -1
- package/es/rate/rate.js +4 -2
- package/es/select/select-dropdown.vue.d.ts +1 -1
- package/es/select/select.js +4 -2
- package/es/textarea/index.d.ts +3 -3
- package/es/textarea/textarea.vue.d.ts +1 -1
- package/es/textarea/textarea.vue_vue_type_script_lang.js +6 -2
- package/es/time-picker/index.d.ts +3 -0
- package/es/time-picker/time-picker.js +1 -1
- package/es/time-picker/time-picker.vue.d.ts +1 -0
- package/es/time-picker/time-picker.vue_vue_type_script_lang.js +4 -1
- package/es/tree-select/index.d.ts +3 -0
- package/es/tree-select/tree-select.js +1 -1
- package/es/tree-select/tree-select.vue.d.ts +1 -0
- package/es/tree-select/tree-select.vue_vue_type_script_lang.js +4 -1
- package/es/trigger/trigger.js +8 -4
- package/json/vetur-attributes.json +46 -20
- package/json/vetur-tags.json +14 -6
- package/json/web-types.json +86 -22
- package/package.json +3 -1
- package/es/color-picker/input-alpha.js +0 -32
- package/es/color-picker/input-hex.js +0 -73
- package/es/color-picker/input-rgb.js +0 -55
- package/es/web-vue.css +0 -5
|
@@ -2,6 +2,7 @@ import { useFormItem } from "../_hooks/use-form-item.js";
|
|
|
2
2
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isNumber, isUndefined } from "../_utils/is.js";
|
|
5
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
5
6
|
import { useSize } from "../_hooks/use-size.js";
|
|
6
7
|
import Button from "../button/index.js";
|
|
7
8
|
import Input from "../input/index.js";
|
|
@@ -79,7 +80,7 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
79
80
|
},
|
|
80
81
|
setup(props, { emit, slots }) {
|
|
81
82
|
var _props$modelValue;
|
|
82
|
-
const { size, disabled } = toRefs(props);
|
|
83
|
+
const { size, disabled, allowClear } = toRefs(props);
|
|
83
84
|
const prefixCls = getPrefixCls("input-number");
|
|
84
85
|
const inputRef = ref();
|
|
85
86
|
const { mergedSize: _mergedSize, mergedDisabled, eventHandlers } = useFormItem({
|
|
@@ -87,6 +88,7 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
87
88
|
disabled
|
|
88
89
|
});
|
|
89
90
|
const { mergedSize } = useSize(_mergedSize);
|
|
91
|
+
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
90
92
|
const mergedPrecision = computed(() => {
|
|
91
93
|
if (isNumber(props.precision)) {
|
|
92
94
|
const decimal = `${props.step}`.split(".")[1];
|
|
@@ -277,7 +279,7 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
277
279
|
"ref": inputRef,
|
|
278
280
|
"class": cls.value,
|
|
279
281
|
"type": "text",
|
|
280
|
-
"allowClear":
|
|
282
|
+
"allowClear": mergedAllowClear.value,
|
|
281
283
|
"size": mergedSize.value,
|
|
282
284
|
"modelValue": _value.value,
|
|
283
285
|
"placeholder": props.placeholder,
|
|
@@ -5,6 +5,7 @@ import { isNull, isObject, isUndefined } from "../_utils/is.js";
|
|
|
5
5
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
6
6
|
import icon_hover_default from "../_components/icon-hover.js";
|
|
7
7
|
import IconClose from "../icon/icon-close/index.js";
|
|
8
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
8
9
|
import feedback_icon_default from "../_components/feedback-icon.js";
|
|
9
10
|
import { useSize } from "../_hooks/use-size.js";
|
|
10
11
|
import { INPUT_EVENTS } from "../_utils/constant.js";
|
|
@@ -88,7 +89,7 @@ var input_tag_default = /* @__PURE__ */ defineComponent({
|
|
|
88
89
|
"blur": (_ev) => true
|
|
89
90
|
},
|
|
90
91
|
setup(props, { emit, slots, attrs }) {
|
|
91
|
-
const { size, disabled, error, uninjectFormItemContext, modelValue } = toRefs(props);
|
|
92
|
+
const { size, disabled, error, uninjectFormItemContext, modelValue, allowClear } = toRefs(props);
|
|
92
93
|
const prefixCls = props.baseCls || getPrefixCls("input-tag");
|
|
93
94
|
const inputRef = ref();
|
|
94
95
|
const mirrorRef = ref();
|
|
@@ -99,6 +100,7 @@ var input_tag_default = /* @__PURE__ */ defineComponent({
|
|
|
99
100
|
uninject: uninjectFormItemContext === null || uninjectFormItemContext === void 0 ? void 0 : uninjectFormItemContext.value
|
|
100
101
|
});
|
|
101
102
|
const { mergedSize } = useSize(_mergedSize);
|
|
103
|
+
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
102
104
|
const mergedFieldNames = computed(() => _objectSpread2(_objectSpread2({}, DEFAULT_FIELD_NAMES), props.fieldNames));
|
|
103
105
|
const _focused = ref(false);
|
|
104
106
|
const _value = ref(props.defaultValue);
|
|
@@ -196,7 +198,7 @@ var input_tag_default = /* @__PURE__ */ defineComponent({
|
|
|
196
198
|
updateValue([], e);
|
|
197
199
|
emit("clear", e);
|
|
198
200
|
};
|
|
199
|
-
const showClearBtn = computed(() => !mergedDisabled.value && !props.readonly &&
|
|
201
|
+
const showClearBtn = computed(() => !mergedDisabled.value && !props.readonly && mergedAllowClear.value && Boolean(computedValue.value.length));
|
|
200
202
|
const handlePressEnter = (e) => {
|
|
201
203
|
if (computedInputValue.value) {
|
|
202
204
|
var _computedValue$value2;
|
package/es/mention/mention.js
CHANGED
|
@@ -3,6 +3,7 @@ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helper
|
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isFunction, isNull, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
6
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
6
7
|
import Input from "../input/index.js";
|
|
7
8
|
import { getKeyFromValue } from "../select/utils.js";
|
|
8
9
|
import { useSelect } from "../select/hooks/use-select.js";
|
|
@@ -62,6 +63,7 @@ var mention_default = /* @__PURE__ */ defineComponent({
|
|
|
62
63
|
},
|
|
63
64
|
setup(props, { emit, attrs, slots }) {
|
|
64
65
|
const prefixCls = getPrefixCls("mention");
|
|
66
|
+
const { mergedAllowClear } = useAllowClear(toRef(props, "allowClear"));
|
|
65
67
|
let styleDeclaration;
|
|
66
68
|
const { mergedDisabled, eventHandlers } = useFormItem({ disabled: toRef(props, "disabled") });
|
|
67
69
|
const { data, modelValue } = toRefs(props);
|
|
@@ -211,7 +213,7 @@ var mention_default = /* @__PURE__ */ defineComponent({
|
|
|
211
213
|
var _computedValue$value;
|
|
212
214
|
return createVNode("div", { "class": prefixCls }, [createVNode(resize_observer_default, { "onResize": handleResize }, { default: () => [createVNode(Textarea, mergeProps(attrs, {
|
|
213
215
|
"ref": inputRef,
|
|
214
|
-
"allowClear":
|
|
216
|
+
"allowClear": mergedAllowClear.value,
|
|
215
217
|
"modelValue": computedValue.value,
|
|
216
218
|
"disabled": mergedDisabled.value,
|
|
217
219
|
"onInput": handleInput,
|
|
@@ -251,7 +253,7 @@ var mention_default = /* @__PURE__ */ defineComponent({
|
|
|
251
253
|
}, {
|
|
252
254
|
default: () => [createVNode(Input, mergeProps(attrs, {
|
|
253
255
|
"ref": inputRef,
|
|
254
|
-
"allowClear":
|
|
256
|
+
"allowClear": mergedAllowClear.value,
|
|
255
257
|
"modelValue": computedValue.value,
|
|
256
258
|
"disabled": mergedDisabled.value,
|
|
257
259
|
"onInput": handleInput,
|
package/es/modal/index.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ declare const Modal: {
|
|
|
153
153
|
modalCls: import("vue").ComputedRef<(string | any[] | {
|
|
154
154
|
[x: string]: boolean;
|
|
155
155
|
} | undefined)[]>;
|
|
156
|
-
teleportContainer: import("vue").Ref<string | HTMLElement | undefined, string | HTMLElement | undefined>;
|
|
156
|
+
teleportContainer: import("vue").Ref<string | HTMLElement | null | undefined, string | HTMLElement | null | undefined>;
|
|
157
157
|
handleMoveDown: (ev: MouseEvent) => void;
|
|
158
158
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
159
159
|
'update:visible': (_visible: boolean) => true;
|
|
@@ -1404,7 +1404,7 @@ declare const Modal: {
|
|
|
1404
1404
|
modalCls: import("vue").ComputedRef<(string | any[] | {
|
|
1405
1405
|
[x: string]: boolean;
|
|
1406
1406
|
} | undefined)[]>;
|
|
1407
|
-
teleportContainer: import("vue").Ref<string | HTMLElement | undefined, string | HTMLElement | undefined>;
|
|
1407
|
+
teleportContainer: import("vue").Ref<string | HTMLElement | null | undefined, string | HTMLElement | null | undefined>;
|
|
1408
1408
|
handleMoveDown: (ev: MouseEvent) => void;
|
|
1409
1409
|
}, {}, {}, {}, {
|
|
1410
1410
|
footer: boolean;
|
|
@@ -1582,7 +1582,7 @@ declare const Modal: {
|
|
|
1582
1582
|
modalCls: import("vue").ComputedRef<(string | any[] | {
|
|
1583
1583
|
[x: string]: boolean;
|
|
1584
1584
|
} | undefined)[]>;
|
|
1585
|
-
teleportContainer: import("vue").Ref<string | HTMLElement | undefined, string | HTMLElement | undefined>;
|
|
1585
|
+
teleportContainer: import("vue").Ref<string | HTMLElement | null | undefined, string | HTMLElement | null | undefined>;
|
|
1586
1586
|
handleMoveDown: (ev: MouseEvent) => void;
|
|
1587
1587
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1588
1588
|
'update:visible': (_visible: boolean) => true;
|
package/es/modal/modal.vue.d.ts
CHANGED
|
@@ -146,7 +146,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
146
146
|
modalCls: import("vue").ComputedRef<(string | any[] | {
|
|
147
147
|
[x: string]: boolean;
|
|
148
148
|
} | undefined)[]>;
|
|
149
|
-
teleportContainer: import("vue").Ref<string | HTMLElement | undefined, string | HTMLElement | undefined>;
|
|
149
|
+
teleportContainer: import("vue").Ref<string | HTMLElement | null | undefined, string | HTMLElement | null | undefined>;
|
|
150
150
|
handleMoveDown: (ev: MouseEvent) => void;
|
|
151
151
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
152
152
|
'update:visible': (_visible: boolean) => true;
|
package/es/rate/rate.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isNull, isObject, isString, isUndefined } from "../_utils/is.js";
|
|
4
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
4
5
|
import IconFaceFrownFill from "../icon/icon-face-frown-fill/index.js";
|
|
5
6
|
import IconFaceMehFill from "../icon/icon-face-meh-fill/index.js";
|
|
6
7
|
import IconFaceSmileFill from "../icon/icon-face-smile-fill/index.js";
|
|
@@ -51,9 +52,10 @@ var rate_default = /* @__PURE__ */ defineComponent({
|
|
|
51
52
|
"hoverChange": (_value) => true
|
|
52
53
|
},
|
|
53
54
|
setup(props, { emit, slots }) {
|
|
54
|
-
const { modelValue } = toRefs(props);
|
|
55
|
+
const { modelValue, allowClear } = toRefs(props);
|
|
55
56
|
const prefixCls = getPrefixCls("rate");
|
|
56
57
|
const { mergedDisabled: _mergedDisabled, eventHandlers } = useFormItem({ disabled: toRef(props, "disabled") });
|
|
58
|
+
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
57
59
|
const _value = ref(props.defaultValue);
|
|
58
60
|
const animation = ref(false);
|
|
59
61
|
watch(modelValue, (value) => {
|
|
@@ -107,7 +109,7 @@ var rate_default = /* @__PURE__ */ defineComponent({
|
|
|
107
109
|
emit("update:modelValue", newValue);
|
|
108
110
|
emit("change", newValue);
|
|
109
111
|
(_eventHandlers$value = eventHandlers.value) === null || _eventHandlers$value === void 0 || (_eventHandlers$value$ = _eventHandlers$value.onChange) === null || _eventHandlers$value$ === void 0 || _eventHandlers$value$.call(_eventHandlers$value);
|
|
110
|
-
} else if (
|
|
112
|
+
} else if (mergedAllowClear.value) {
|
|
111
113
|
var _eventHandlers$value2, _eventHandlers$value3;
|
|
112
114
|
_value.value = 0;
|
|
113
115
|
emit("update:modelValue", 0);
|
|
@@ -38,7 +38,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
38
38
|
[x: string]: boolean;
|
|
39
39
|
})[]>;
|
|
40
40
|
wrapperRef: import("vue").Ref<any, any>;
|
|
41
|
-
wrapperComRef: import("vue").Ref<import("vue").ComponentPublicInstance | HTMLElement |
|
|
41
|
+
wrapperComRef: import("vue").Ref<HTMLElement | import("vue").ComponentPublicInstance | undefined, HTMLElement | import("vue").ComponentPublicInstance | undefined>;
|
|
42
42
|
handleScroll: (e: Event) => void;
|
|
43
43
|
displayScrollbar: import("vue").ComputedRef<boolean>;
|
|
44
44
|
scrollbarProps: import("vue").ComputedRef<ScrollbarProps | undefined>;
|
package/es/select/select.js
CHANGED
|
@@ -3,6 +3,7 @@ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helper
|
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isArray, isBoolean, isEmptyObject, isFunction, isNull, isNumber, isObject, isString, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import virtual_list_v2_default from "../_components/virtual-list-v2/index.js";
|
|
6
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
6
7
|
import { getKeyFromValue, hasEmptyStringKey, isGroupOptionInfo, isValidOption } from "./utils.js";
|
|
7
8
|
import { useSelect } from "./hooks/use-select.js";
|
|
8
9
|
import option_default from "./option.js";
|
|
@@ -176,13 +177,14 @@ var select_default = /* @__PURE__ */ defineComponent({
|
|
|
176
177
|
"exceedLimit": (_value, _ev) => true
|
|
177
178
|
},
|
|
178
179
|
setup(props, { slots, emit, attrs }) {
|
|
179
|
-
const { size, disabled, error, options, filterOption, valueKey, multiple, popupVisible, defaultPopupVisible, showExtraOptions, modelValue, fieldNames, loading, defaultActiveFirstOption } = toRefs(props);
|
|
180
|
+
const { size, disabled, error, options, filterOption, valueKey, multiple, popupVisible, defaultPopupVisible, showExtraOptions, modelValue, fieldNames, loading, defaultActiveFirstOption, allowClear } = toRefs(props);
|
|
180
181
|
const prefixCls = getPrefixCls("select");
|
|
181
182
|
const { mergedSize, mergedDisabled, mergedError, eventHandlers } = useFormItem({
|
|
182
183
|
size,
|
|
183
184
|
disabled,
|
|
184
185
|
error
|
|
185
186
|
});
|
|
187
|
+
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
186
188
|
const component = computed(() => props.virtualListProps ? "div" : "li");
|
|
187
189
|
const retainInputValue = computed(() => isObject(props.allowSearch) && Boolean(props.allowSearch.retainInputValue));
|
|
188
190
|
const dropdownRef = ref();
|
|
@@ -479,7 +481,7 @@ var select_default = /* @__PURE__ */ defineComponent({
|
|
|
479
481
|
"disabled": mergedDisabled.value,
|
|
480
482
|
"error": mergedError.value,
|
|
481
483
|
"loading": props.loading,
|
|
482
|
-
"allowClear":
|
|
484
|
+
"allowClear": mergedAllowClear.value,
|
|
483
485
|
"allowCreate": props.allowCreate,
|
|
484
486
|
"allowSearch": Boolean(props.allowSearch),
|
|
485
487
|
"opened": computedPopupVisible.value,
|
package/es/textarea/index.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ declare const Textarea: {
|
|
|
65
65
|
mirrorRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
66
66
|
mirrorStyle: import("vue").Ref<import("vue").CSSProperties | undefined, import("vue").CSSProperties | undefined>;
|
|
67
67
|
computedValue: import("vue").ComputedRef<string>;
|
|
68
|
-
showClearBtn: import("vue").ComputedRef<string | false>;
|
|
68
|
+
showClearBtn: import("vue").ComputedRef<string | false | undefined>;
|
|
69
69
|
valueLength: import("vue").ComputedRef<number>;
|
|
70
70
|
computedMaxLength: import("vue").ComputedRef<number>;
|
|
71
71
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -329,7 +329,7 @@ declare const Textarea: {
|
|
|
329
329
|
mirrorRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
330
330
|
mirrorStyle: import("vue").Ref<import("vue").CSSProperties | undefined, import("vue").CSSProperties | undefined>;
|
|
331
331
|
computedValue: import("vue").ComputedRef<string>;
|
|
332
|
-
showClearBtn: import("vue").ComputedRef<string | false>;
|
|
332
|
+
showClearBtn: import("vue").ComputedRef<string | false | undefined>;
|
|
333
333
|
valueLength: import("vue").ComputedRef<number>;
|
|
334
334
|
computedMaxLength: import("vue").ComputedRef<number>;
|
|
335
335
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -429,7 +429,7 @@ declare const Textarea: {
|
|
|
429
429
|
mirrorRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
430
430
|
mirrorStyle: import("vue").Ref<import("vue").CSSProperties | undefined, import("vue").CSSProperties | undefined>;
|
|
431
431
|
computedValue: import("vue").ComputedRef<string>;
|
|
432
|
-
showClearBtn: import("vue").ComputedRef<string | false>;
|
|
432
|
+
showClearBtn: import("vue").ComputedRef<string | false | undefined>;
|
|
433
433
|
valueLength: import("vue").ComputedRef<number>;
|
|
434
434
|
computedMaxLength: import("vue").ComputedRef<number>;
|
|
435
435
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -57,7 +57,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
57
57
|
mirrorRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
58
58
|
mirrorStyle: import("vue").Ref<CSSProperties | undefined, CSSProperties | undefined>;
|
|
59
59
|
computedValue: import("vue").ComputedRef<string>;
|
|
60
|
-
showClearBtn: import("vue").ComputedRef<string | false>;
|
|
60
|
+
showClearBtn: import("vue").ComputedRef<string | false | undefined>;
|
|
61
61
|
valueLength: import("vue").ComputedRef<number>;
|
|
62
62
|
computedMaxLength: import("vue").ComputedRef<number>;
|
|
63
63
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -5,6 +5,7 @@ import { isFunction, isNull, isObject, isUndefined } from "../_utils/is.js";
|
|
|
5
5
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
6
6
|
import icon_hover_default from "../_components/icon-hover.js";
|
|
7
7
|
import IconClose from "../icon/icon-close/index.js";
|
|
8
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
8
9
|
import { useCursor } from "../_hooks/use-cursor.js";
|
|
9
10
|
import { INPUT_EVENTS } from "../_utils/constant.js";
|
|
10
11
|
import { omit } from "../_utils/omit.js";
|
|
@@ -64,12 +65,13 @@ var textarea_vue_vue_type_script_lang_default = defineComponent({
|
|
|
64
65
|
"blur": (_ev) => true
|
|
65
66
|
},
|
|
66
67
|
setup(props, { emit, attrs }) {
|
|
67
|
-
const { disabled, error, modelValue } = toRefs(props);
|
|
68
|
+
const { disabled, error, modelValue, allowClear } = toRefs(props);
|
|
68
69
|
const prefixCls = getPrefixCls("textarea");
|
|
69
70
|
const { mergedDisabled, mergedError: _mergedError, eventHandlers } = useFormItem({
|
|
70
71
|
disabled,
|
|
71
72
|
error
|
|
72
73
|
});
|
|
74
|
+
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
73
75
|
const textareaRef = ref();
|
|
74
76
|
const textareaStyle = ref();
|
|
75
77
|
const mirrorRef = ref();
|
|
@@ -97,7 +99,9 @@ var textarea_vue_vue_type_script_lang_default = defineComponent({
|
|
|
97
99
|
const mergedError = computed(() => _mergedError.value || Boolean(computedMaxLength.value && maxLengthErrorOnly.value && valueLength.value > computedMaxLength.value));
|
|
98
100
|
const isScroll = ref(false);
|
|
99
101
|
const focused = ref(false);
|
|
100
|
-
const showClearBtn = computed(() =>
|
|
102
|
+
const showClearBtn = computed(() => {
|
|
103
|
+
return mergedAllowClear.value && !mergedDisabled.value && computedValue.value;
|
|
104
|
+
});
|
|
101
105
|
const isComposition = ref(false);
|
|
102
106
|
const compositionValue = ref("");
|
|
103
107
|
const keepControl = () => {
|
|
@@ -100,6 +100,7 @@ declare const TimePicker: {
|
|
|
100
100
|
inputValue: import("vue").Ref<string | (string | undefined)[] | undefined, string | (string | undefined)[] | undefined>;
|
|
101
101
|
computedFormat: import("vue").ComputedRef<string>;
|
|
102
102
|
computedUse12Hours: import("vue").ComputedRef<boolean>;
|
|
103
|
+
mergedAllowClear: import("vue").ComputedRef<boolean | undefined>;
|
|
103
104
|
inputProps: import("vue").ComputedRef<{
|
|
104
105
|
focusedIndex: number;
|
|
105
106
|
onFocusedIndexChange: (index: number) => void;
|
|
@@ -3885,6 +3886,7 @@ declare const TimePicker: {
|
|
|
3885
3886
|
inputValue: import("vue").Ref<string | (string | undefined)[] | undefined, string | (string | undefined)[] | undefined>;
|
|
3886
3887
|
computedFormat: import("vue").ComputedRef<string>;
|
|
3887
3888
|
computedUse12Hours: import("vue").ComputedRef<boolean>;
|
|
3889
|
+
mergedAllowClear: import("vue").ComputedRef<boolean | undefined>;
|
|
3888
3890
|
inputProps: import("vue").ComputedRef<{
|
|
3889
3891
|
focusedIndex: number;
|
|
3890
3892
|
onFocusedIndexChange: (index: number) => void;
|
|
@@ -4025,6 +4027,7 @@ declare const TimePicker: {
|
|
|
4025
4027
|
inputValue: import("vue").Ref<string | (string | undefined)[] | undefined, string | (string | undefined)[] | undefined>;
|
|
4026
4028
|
computedFormat: import("vue").ComputedRef<string>;
|
|
4027
4029
|
computedUse12Hours: import("vue").ComputedRef<boolean>;
|
|
4030
|
+
mergedAllowClear: import("vue").ComputedRef<boolean | undefined>;
|
|
4028
4031
|
inputProps: import("vue").ComputedRef<{
|
|
4029
4032
|
focusedIndex: number;
|
|
4030
4033
|
onFocusedIndexChange: (index: number) => void;
|
|
@@ -65,7 +65,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65
65
|
error: _ctx.error,
|
|
66
66
|
readonly: _ctx.readonly,
|
|
67
67
|
editable: !_ctx.readonly,
|
|
68
|
-
"allow-clear": _ctx.
|
|
68
|
+
"allow-clear": _ctx.mergedAllowClear && !_ctx.readonly,
|
|
69
69
|
placeholder: _ctx.computedPlaceholder,
|
|
70
70
|
onClear: _ctx.onInputClear
|
|
71
71
|
}), createSlots({
|
|
@@ -95,6 +95,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
95
95
|
inputValue: import("vue").Ref<string | (string | undefined)[] | undefined, string | (string | undefined)[] | undefined>;
|
|
96
96
|
computedFormat: import("vue").ComputedRef<string>;
|
|
97
97
|
computedUse12Hours: import("vue").ComputedRef<boolean>;
|
|
98
|
+
mergedAllowClear: import("vue").ComputedRef<boolean | undefined>;
|
|
98
99
|
inputProps: import("vue").ComputedRef<{
|
|
99
100
|
focusedIndex: number;
|
|
100
101
|
onFocusedIndexChange: (index: number) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isArray, isUndefined } from "../_utils/is.js";
|
|
4
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
4
5
|
import useState from "../_hooks/use-state.js";
|
|
5
6
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
6
7
|
import { useI18n } from "../locale/index.js";
|
|
@@ -90,8 +91,9 @@ var time_picker_vue_vue_type_script_lang_default = defineComponent({
|
|
|
90
91
|
"update:popupVisible": (_visible) => true
|
|
91
92
|
},
|
|
92
93
|
setup(props, { emit }) {
|
|
93
|
-
const { type, format, use12Hours, modelValue, defaultValue, popupVisible, defaultPopupVisible, disabled, placeholder, disableConfirm, disabledHours, disabledMinutes, disabledSeconds } = toRefs(props);
|
|
94
|
+
const { type, format, use12Hours, modelValue, defaultValue, popupVisible, defaultPopupVisible, disabled, placeholder, allowClear, disableConfirm, disabledHours, disabledMinutes, disabledSeconds } = toRefs(props);
|
|
94
95
|
const { mergedDisabled, eventHandlers } = useFormItem({ disabled });
|
|
96
|
+
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
95
97
|
const isRange = computed(() => type.value === "time-range");
|
|
96
98
|
const prefixCls = getPrefixCls("timepicker");
|
|
97
99
|
const refInput = ref();
|
|
@@ -237,6 +239,7 @@ var time_picker_vue_vue_type_script_lang_default = defineComponent({
|
|
|
237
239
|
inputValue,
|
|
238
240
|
computedFormat,
|
|
239
241
|
computedUse12Hours,
|
|
242
|
+
mergedAllowClear,
|
|
240
243
|
inputProps: computed(() => {
|
|
241
244
|
if (isRange.value) return {
|
|
242
245
|
focusedIndex: focusedInputIndex.value,
|
|
@@ -147,6 +147,7 @@ declare const TreeSelect: {
|
|
|
147
147
|
isEmpty: import("vue").ComputedRef<boolean | undefined>;
|
|
148
148
|
computedFilterTreeNode: import("vue").ComputedRef<((node: import("..").TreeNodeData) => boolean) | undefined>;
|
|
149
149
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
150
|
+
mergedAllowClear: import("vue").ComputedRef<boolean | undefined>;
|
|
150
151
|
selectViewValue: import("vue").ComputedRef<import("../_components/select-view/interface").SelectViewValue[]>;
|
|
151
152
|
computedDropdownStyle: import("vue").ComputedRef<import("vue").StyleValue[]>;
|
|
152
153
|
onSearchValueChange: (inputValue: string) => void;
|
|
@@ -2816,6 +2817,7 @@ declare const TreeSelect: {
|
|
|
2816
2817
|
isEmpty: import("vue").ComputedRef<boolean | undefined>;
|
|
2817
2818
|
computedFilterTreeNode: import("vue").ComputedRef<((node: import("..").TreeNodeData) => boolean) | undefined>;
|
|
2818
2819
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
2820
|
+
mergedAllowClear: import("vue").ComputedRef<boolean | undefined>;
|
|
2819
2821
|
selectViewValue: import("vue").ComputedRef<import("../_components/select-view/interface").SelectViewValue[]>;
|
|
2820
2822
|
computedDropdownStyle: import("vue").ComputedRef<import("vue").StyleValue[]>;
|
|
2821
2823
|
onSearchValueChange: (inputValue: string) => void;
|
|
@@ -3009,6 +3011,7 @@ declare const TreeSelect: {
|
|
|
3009
3011
|
isEmpty: import("vue").ComputedRef<boolean | undefined>;
|
|
3010
3012
|
computedFilterTreeNode: import("vue").ComputedRef<((node: import("..").TreeNodeData) => boolean) | undefined>;
|
|
3011
3013
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
3014
|
+
mergedAllowClear: import("vue").ComputedRef<boolean | undefined>;
|
|
3012
3015
|
selectViewValue: import("vue").ComputedRef<import("../_components/select-view/interface").SelectViewValue[]>;
|
|
3013
3016
|
computedDropdownStyle: import("vue").ComputedRef<import("vue").StyleValue[]>;
|
|
3014
3017
|
onSearchValueChange: (inputValue: string) => void;
|
|
@@ -80,7 +80,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
80
80
|
"model-value": _ctx.selectViewValue,
|
|
81
81
|
"input-value": _ctx.searchValue,
|
|
82
82
|
"allow-search": Boolean(_ctx.allowSearch),
|
|
83
|
-
"allow-clear": _ctx.
|
|
83
|
+
"allow-clear": _ctx.mergedAllowClear,
|
|
84
84
|
loading: _ctx.loading,
|
|
85
85
|
size: _ctx.size,
|
|
86
86
|
"max-tag-count": _ctx.maxTagCount,
|
|
@@ -145,6 +145,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
145
145
|
isEmpty: import("vue").ComputedRef<boolean | undefined>;
|
|
146
146
|
computedFilterTreeNode: import("vue").ComputedRef<((node: TreeNodeData) => boolean) | undefined>;
|
|
147
147
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
148
|
+
mergedAllowClear: import("vue").ComputedRef<boolean | undefined>;
|
|
148
149
|
selectViewValue: import("vue").ComputedRef<SelectViewValue[]>;
|
|
149
150
|
computedDropdownStyle: import("vue").ComputedRef<StyleValue[]>;
|
|
150
151
|
onSearchValueChange: (inputValue: string) => void;
|
|
@@ -3,6 +3,7 @@ import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
|
3
3
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
|
|
4
4
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
5
5
|
import { isFunction, isObject, isUndefined } from "../_utils/is.js";
|
|
6
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
6
7
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
7
8
|
import Empty from "../empty/index.js";
|
|
8
9
|
import Spin from "../spin/index.js";
|
|
@@ -123,10 +124,11 @@ var tree_select_vue_vue_type_script_lang_default = defineComponent({
|
|
|
123
124
|
},
|
|
124
125
|
setup(props, { emit, slots }) {
|
|
125
126
|
var _configCtx$slots, _configCtx$slots$empt;
|
|
126
|
-
const { defaultValue, modelValue, multiple, popupVisible, defaultPopupVisible, treeCheckable, treeCheckStrictly, data, fieldNames, disabled, labelInValue, filterTreeNode, disableFilter, dropdownStyle, treeProps, fallbackOption, selectable,
|
|
127
|
+
const { defaultValue, modelValue, multiple, popupVisible, defaultPopupVisible, treeCheckable, treeCheckStrictly, data, fieldNames, disabled, labelInValue, filterTreeNode, disableFilter, dropdownStyle, treeProps, fallbackOption, selectable, allowClear } = toRefs(props);
|
|
127
128
|
const { mergedDisabled, eventHandlers } = useFormItem({ disabled });
|
|
128
129
|
const prefixCls = getPrefixCls("tree-select");
|
|
129
130
|
const configCtx = inject(configProviderInjectionKey, void 0);
|
|
131
|
+
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
130
132
|
const TreeSelectEmpty = configCtx === null || configCtx === void 0 || (_configCtx$slots$empt = (_configCtx$slots = configCtx.slots).empty) === null || _configCtx$slots$empt === void 0 || (_configCtx$slots$empt = _configCtx$slots$empt.call(_configCtx$slots, { component: "tree-select" })) === null || _configCtx$slots$empt === void 0 ? void 0 : _configCtx$slots$empt[0];
|
|
131
133
|
const isMultiple = computed(() => multiple.value || treeCheckable.value);
|
|
132
134
|
const isSelectable = (node, info) => {
|
|
@@ -229,6 +231,7 @@ var tree_select_vue_vue_type_script_lang_default = defineComponent({
|
|
|
229
231
|
isEmpty,
|
|
230
232
|
computedFilterTreeNode,
|
|
231
233
|
isMultiple,
|
|
234
|
+
mergedAllowClear,
|
|
232
235
|
selectViewValue,
|
|
233
236
|
computedDropdownStyle,
|
|
234
237
|
onSearchValueChange: handleInputValueChange,
|
package/es/trigger/trigger.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
1
|
+
import { configProviderInjectionKey, themePopupContainerInjectionKey } from "../config-provider/context.js";
|
|
2
2
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isEmptyChildren, mergeFirstChild } from "../_utils/vue-utils.js";
|
|
@@ -14,7 +14,7 @@ import { useResizeObserver } from "../_hooks/use-resize-observer.js";
|
|
|
14
14
|
import { useTeleportContainer } from "../_hooks/use-teleport-container.js";
|
|
15
15
|
import { triggerInjectionKey } from "./context.js";
|
|
16
16
|
import { getArrowStyle, getElementScrollRect, getPopupStyle, getScrollElements, getTransformOrigin } from "./utils.js";
|
|
17
|
-
import { Fragment, Teleport, Transition, computed, createVNode, defineComponent, inject, mergeProps, nextTick, onBeforeUnmount, onDeactivated, onMounted, onUpdated, provide, reactive, ref,
|
|
17
|
+
import { Fragment, Teleport, Transition, computed, createVNode, defineComponent, inject, mergeProps, nextTick, onBeforeUnmount, onDeactivated, onMounted, onUpdated, provide, reactive, ref, vShow, watch, withDirectives } from "vue";
|
|
18
18
|
//#region components/trigger/trigger.tsx
|
|
19
19
|
var TRIGGER_EVENTS = [
|
|
20
20
|
"onClick",
|
|
@@ -170,10 +170,14 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
170
170
|
"resize": () => true
|
|
171
171
|
},
|
|
172
172
|
setup(props, { emit, slots, attrs }) {
|
|
173
|
-
const { popupContainer } = toRefs(props);
|
|
174
173
|
const prefixCls = getPrefixCls("trigger");
|
|
175
174
|
const popupAttrs = computed(() => omit(attrs, TRIGGER_EVENTS));
|
|
176
175
|
const configCtx = inject(configProviderInjectionKey, void 0);
|
|
176
|
+
const themePopupContainer = inject(themePopupContainerInjectionKey, void 0);
|
|
177
|
+
const mergedPopupContainer = computed(() => {
|
|
178
|
+
var _props$popupContainer;
|
|
179
|
+
return (_props$popupContainer = props.popupContainer) !== null && _props$popupContainer !== void 0 ? _props$popupContainer : themePopupContainer === null || themePopupContainer === void 0 ? void 0 : themePopupContainer.value;
|
|
180
|
+
});
|
|
177
181
|
const triggerMethods = computed(() => [].concat(props.trigger));
|
|
178
182
|
const childrenRefs = /* @__PURE__ */ new Set();
|
|
179
183
|
const triggerCtx = inject(triggerInjectionKey, void 0);
|
|
@@ -196,7 +200,7 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
196
200
|
return (_props$popupVisible = props.popupVisible) !== null && _props$popupVisible !== void 0 ? _props$popupVisible : popupVisible.value;
|
|
197
201
|
});
|
|
198
202
|
const { teleportContainer, containerRef } = useTeleportContainer({
|
|
199
|
-
popupContainer,
|
|
203
|
+
popupContainer: mergedPopupContainer,
|
|
200
204
|
visible: computedVisible,
|
|
201
205
|
documentContainer: true
|
|
202
206
|
});
|
|
@@ -698,53 +698,75 @@
|
|
|
698
698
|
"sd-color-picker/popup-visible-change": {
|
|
699
699
|
"description": "Triggered when the color panel is expanded and collapsed"
|
|
700
700
|
},
|
|
701
|
-
"sd-color-picker/
|
|
701
|
+
"sd-color-picker/value": {
|
|
702
702
|
"description": "Value",
|
|
703
703
|
"type": "string"
|
|
704
704
|
},
|
|
705
705
|
"sd-color-picker/default-value": {
|
|
706
|
-
"description": "Default value
|
|
706
|
+
"description": "Default value",
|
|
707
707
|
"type": "string"
|
|
708
708
|
},
|
|
709
709
|
"sd-color-picker/format": {
|
|
710
|
-
"description": "
|
|
711
|
-
"type": "string"
|
|
710
|
+
"description": "Value format"
|
|
712
711
|
},
|
|
713
712
|
"sd-color-picker/size": {
|
|
714
713
|
"description": "Size"
|
|
715
714
|
},
|
|
716
|
-
"sd-color-picker/
|
|
717
|
-
"description": "
|
|
715
|
+
"sd-color-picker/enable-alpha": {
|
|
716
|
+
"description": "Whether alpha channel is enabled",
|
|
718
717
|
"type": "boolean"
|
|
719
718
|
},
|
|
720
|
-
"sd-color-picker/show-
|
|
721
|
-
"description": "
|
|
719
|
+
"sd-color-picker/show-primary-color-preview": {
|
|
720
|
+
"description": "Whether to show primary color preview",
|
|
722
721
|
"type": "boolean"
|
|
723
722
|
},
|
|
724
|
-
"sd-color-picker/
|
|
725
|
-
"description": "
|
|
726
|
-
"type": "boolean"
|
|
723
|
+
"sd-color-picker/input-props": {
|
|
724
|
+
"description": "Input props"
|
|
727
725
|
},
|
|
728
|
-
"sd-color-picker/
|
|
729
|
-
"description": "
|
|
730
|
-
"type": "boolean"
|
|
726
|
+
"sd-color-picker/recent-colors": {
|
|
727
|
+
"description": "Recent colors"
|
|
731
728
|
},
|
|
732
|
-
"sd-color-picker/
|
|
733
|
-
"description": "
|
|
729
|
+
"sd-color-picker/default-recent-colors": {
|
|
730
|
+
"description": "Default recent colors"
|
|
731
|
+
},
|
|
732
|
+
"sd-color-picker/swatch-colors": {
|
|
733
|
+
"description": "Swatch colors"
|
|
734
|
+
},
|
|
735
|
+
"sd-color-picker/disabled": {
|
|
736
|
+
"description": "Disabled",
|
|
734
737
|
"type": "boolean"
|
|
735
738
|
},
|
|
736
739
|
"sd-color-picker/hide-trigger": {
|
|
737
|
-
"description": "
|
|
740
|
+
"description": "Render panel inline",
|
|
738
741
|
"type": "boolean"
|
|
739
742
|
},
|
|
740
743
|
"sd-color-picker/trigger-props": {
|
|
741
|
-
"description": "
|
|
744
|
+
"description": "Trigger props"
|
|
742
745
|
},
|
|
743
746
|
"sd-color-picker/history-colors": {
|
|
744
|
-
"description": "
|
|
747
|
+
"description": "Legacy history colors"
|
|
745
748
|
},
|
|
746
749
|
"sd-color-picker/preset-colors": {
|
|
747
|
-
"description": "
|
|
750
|
+
"description": "Legacy preset colors"
|
|
751
|
+
},
|
|
752
|
+
"sd-color-picker/show-text": {
|
|
753
|
+
"description": "Legacy show text",
|
|
754
|
+
"type": "boolean"
|
|
755
|
+
},
|
|
756
|
+
"sd-color-picker/show-history": {
|
|
757
|
+
"description": "Legacy show history",
|
|
758
|
+
"type": "boolean"
|
|
759
|
+
},
|
|
760
|
+
"sd-color-picker/show-preset": {
|
|
761
|
+
"description": "Legacy show preset",
|
|
762
|
+
"type": "boolean"
|
|
763
|
+
},
|
|
764
|
+
"sd-color-picker/disabled-alpha": {
|
|
765
|
+
"description": "Legacy disable alpha",
|
|
766
|
+
"type": "boolean"
|
|
767
|
+
},
|
|
768
|
+
"sd-color-picker/select-input-props": {
|
|
769
|
+
"description": "Select input props"
|
|
748
770
|
},
|
|
749
771
|
"sd-comment/author": {
|
|
750
772
|
"description": "Display as the comment author",
|
|
@@ -776,6 +798,10 @@
|
|
|
776
798
|
"sd-config-provider/size": {
|
|
777
799
|
"description": "Size"
|
|
778
800
|
},
|
|
801
|
+
"sd-config-provider/allow-clear": {
|
|
802
|
+
"description": "Whether to enable clear buttons by default",
|
|
803
|
+
"type": "boolean"
|
|
804
|
+
},
|
|
779
805
|
"sd-config-provider/global": {
|
|
780
806
|
"description": "Is global effect",
|
|
781
807
|
"type": "boolean"
|
package/json/vetur-tags.json
CHANGED
|
@@ -300,19 +300,26 @@
|
|
|
300
300
|
"attributes": [
|
|
301
301
|
"change",
|
|
302
302
|
"popup-visible-change",
|
|
303
|
-
"
|
|
303
|
+
"value",
|
|
304
304
|
"default-value",
|
|
305
305
|
"format",
|
|
306
306
|
"size",
|
|
307
|
-
"
|
|
308
|
-
"show-
|
|
309
|
-
"
|
|
307
|
+
"enable-alpha",
|
|
308
|
+
"show-primary-color-preview",
|
|
309
|
+
"input-props",
|
|
310
|
+
"recent-colors",
|
|
311
|
+
"default-recent-colors",
|
|
312
|
+
"swatch-colors",
|
|
310
313
|
"disabled",
|
|
311
|
-
"disabled-alpha",
|
|
312
314
|
"hide-trigger",
|
|
313
315
|
"trigger-props",
|
|
314
316
|
"history-colors",
|
|
315
|
-
"preset-colors"
|
|
317
|
+
"preset-colors",
|
|
318
|
+
"show-text",
|
|
319
|
+
"show-history",
|
|
320
|
+
"show-preset",
|
|
321
|
+
"disabled-alpha",
|
|
322
|
+
"select-input-props"
|
|
316
323
|
]
|
|
317
324
|
},
|
|
318
325
|
"sd-comment": {
|
|
@@ -329,6 +336,7 @@
|
|
|
329
336
|
"prefix-cls",
|
|
330
337
|
"locale",
|
|
331
338
|
"size",
|
|
339
|
+
"allow-clear",
|
|
332
340
|
"global",
|
|
333
341
|
"scroll-to-close",
|
|
334
342
|
"exchange-time",
|