vue-devui 1.6.5 → 1.6.6
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/auto-complete/index.es.js +18 -4
- package/auto-complete/index.umd.js +10 -10
- package/auto-complete/style.css +1 -1
- package/breadcrumb/style.css +1 -1
- package/button/index.es.js +30 -10
- package/button/index.umd.js +10 -10
- package/button/style.css +1 -1
- package/category-search/index.es.js +50 -12
- package/category-search/index.umd.js +12 -12
- package/category-search/style.css +1 -1
- package/checkbox/index.es.js +22 -9
- package/checkbox/index.umd.js +8 -8
- package/checkbox/style.css +1 -1
- package/code-review/style.css +1 -1
- package/data-grid/index.es.js +45 -12
- package/data-grid/index.umd.js +6 -6
- package/data-grid/style.css +1 -1
- package/date-picker-pro/index.es.js +70 -14
- package/date-picker-pro/index.umd.js +14 -14
- package/date-picker-pro/style.css +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +83 -205
- package/editable-select/index.umd.js +20 -16
- package/editable-select/style.css +1 -1
- package/editor-md/style.css +1 -1
- package/form/style.css +1 -1
- package/input/index.es.js +6 -1
- package/input/index.umd.js +6 -6
- package/input/style.css +1 -1
- package/input-number/index.es.js +5 -0
- package/input-number/index.umd.js +10 -10
- package/input-number/style.css +1 -1
- package/mention/index.es.js +11 -1
- package/mention/index.umd.js +8 -8
- package/mention/style.css +1 -1
- package/modal/style.css +1 -1
- package/overlay/style.css +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +28 -10
- package/pagination/index.umd.js +14 -14
- package/pagination/style.css +1 -1
- package/popover/style.css +1 -1
- package/radio/index.es.js +10 -28
- package/radio/index.umd.js +9 -9
- package/radio/style.css +1 -1
- package/search/index.es.js +6 -1
- package/search/index.umd.js +6 -6
- package/search/style.css +1 -1
- package/select/index.es.js +28 -10
- package/select/index.umd.js +15 -15
- package/select/style.css +1 -1
- package/splitter/style.css +1 -1
- package/style.css +2 -2
- package/switch/index.es.js +16 -2
- package/switch/index.umd.js +15 -15
- package/switch/style.css +1 -1
- package/table/index.es.js +46 -13
- package/table/index.umd.js +12 -12
- package/table/style.css +1 -1
- package/textarea/index.es.js +6 -1
- package/textarea/index.umd.js +1 -1
- package/textarea/style.css +1 -1
- package/time-picker/index.es.js +45 -8
- package/time-picker/index.umd.js +9 -9
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +28 -10
- package/time-select/index.umd.js +8 -8
- package/time-select/style.css +1 -1
- package/tooltip/style.css +1 -1
- package/tree/index.es.js +22 -9
- package/tree/index.umd.js +9 -9
- package/tree/style.css +1 -1
- package/types/auto-complete/src/auto-complete-types.d.ts +4 -0
- package/types/cascader/src/cascader-types.d.ts +4 -0
- package/types/checkbox/src/checkbox-types.d.ts +8 -0
- package/types/date-picker-pro/src/date-picker-pro-types.d.ts +12 -0
- package/types/date-picker-pro/src/range-date-picker-types.d.ts +4 -0
- package/types/editable-select/src/editable-select-types.d.ts +4 -0
- package/types/input/src/input-types.d.ts +4 -0
- package/types/input-icon/src/input-icon.d.ts +9 -0
- package/types/input-number/src/input-number-types.d.ts +4 -0
- package/types/mention/src/mention-types.d.ts +4 -0
- package/types/mention/src/mention.d.ts +9 -0
- package/types/radio/src/radio-types.d.ts +8 -0
- package/types/select/src/select-types.d.ts +4 -0
- package/types/textarea/src/textarea-types.d.ts +4 -0
- package/types/time-picker/src/components/time-scroll/index.d.ts +9 -0
- package/types/time-picker/src/time-picker-types.d.ts +4 -0
- package/vue-devui.es.js +208 -79
- package/vue-devui.umd.js +52 -52
|
@@ -151,6 +151,10 @@ const autoCompleteProps = {
|
|
|
151
151
|
clearable: {
|
|
152
152
|
type: Boolean,
|
|
153
153
|
default: false
|
|
154
|
+
},
|
|
155
|
+
showGlowStyle: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: true
|
|
154
158
|
}
|
|
155
159
|
};
|
|
156
160
|
const DropdownPropsKey = Symbol("DropdownPropsKey");
|
|
@@ -8263,6 +8267,7 @@ function useAutoCompleteRender(props, ctx2, visible, isFocus, isDisabled, autoCo
|
|
|
8263
8267
|
const inputWrapperClasses = computed(() => ({
|
|
8264
8268
|
[inputNs.e("wrapper")]: true,
|
|
8265
8269
|
[inputNs.em("wrapper", "error")]: isValidatorError.value,
|
|
8270
|
+
[ns2.m("glow-style")]: props.showGlowStyle,
|
|
8266
8271
|
[inputNs.em("wrapper", "feedback")]: Boolean(formItemContext == null ? void 0 : formItemContext.validateState) && (formItemContext == null ? void 0 : formItemContext.showFeedback),
|
|
8267
8272
|
[ns2.m("disabled")]: isDisabled.value
|
|
8268
8273
|
}));
|
|
@@ -9004,6 +9009,7 @@ var AutoComplete = defineComponent({
|
|
|
9004
9009
|
const inputNs = useNamespace("auto-complete-input");
|
|
9005
9010
|
const isDisabled = computed(() => (formContext == null ? void 0 : formContext.disabled) || disabled.value);
|
|
9006
9011
|
const autoCompleteSize = computed(() => (formContext == null ? void 0 : formContext.size) || props.size);
|
|
9012
|
+
const align = computed(() => position.value.some((item) => item.includes("start") || item.includes("end")) ? "start" : null);
|
|
9007
9013
|
const {
|
|
9008
9014
|
handleSearch,
|
|
9009
9015
|
searchList,
|
|
@@ -9063,22 +9069,30 @@ var AutoComplete = defineComponent({
|
|
|
9063
9069
|
valueParser
|
|
9064
9070
|
});
|
|
9065
9071
|
const origin = ref();
|
|
9072
|
+
const currentPosition = ref("bottom");
|
|
9066
9073
|
const prefixVisible = ctx2.slots.prefix || props.prefix;
|
|
9067
9074
|
const suffixVisible = ctx2.slots.suffix || props.suffix || props.clearable;
|
|
9068
9075
|
const showClearable = computed(() => props.clearable && !isDisabled.value);
|
|
9076
|
+
const overlayStyles = computed(() => ({
|
|
9077
|
+
transformOrigin: currentPosition.value === "top" ? "0% 100%" : "0% 0%",
|
|
9078
|
+
zIndex: "var(--devui-z-index-dropdown, 1052)"
|
|
9079
|
+
}));
|
|
9080
|
+
const handlePositionChange = (pos) => {
|
|
9081
|
+
currentPosition.value = pos.includes("top") || pos.includes("right-end") || pos.includes("left-end") ? "top" : "bottom";
|
|
9082
|
+
};
|
|
9069
9083
|
const renderBasicDropdown = () => {
|
|
9070
9084
|
let _slot;
|
|
9071
9085
|
return createVNode(Transition, {
|
|
9072
|
-
"name": showAnimation ?
|
|
9086
|
+
"name": showAnimation ? ns2.m(`fade-${currentPosition.value}`) : ""
|
|
9073
9087
|
}, {
|
|
9074
9088
|
default: () => [createVNode(FlexibleOverlay, {
|
|
9075
9089
|
"origin": origin.value,
|
|
9076
9090
|
"position": position.value,
|
|
9091
|
+
"align": align.value,
|
|
9077
9092
|
"modelValue": visible.value,
|
|
9078
9093
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
9079
|
-
"
|
|
9080
|
-
|
|
9081
|
-
}
|
|
9094
|
+
"onPositionChange": handlePositionChange,
|
|
9095
|
+
"style": overlayStyles.value
|
|
9082
9096
|
}, {
|
|
9083
9097
|
default: () => [createVNode("div", {
|
|
9084
9098
|
"class": ns2.e("menu"),
|