@opentiny/vue-renderless 3.26.0 → 3.28.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/autocomplete/index.js +7 -2
- package/autocomplete/vue.js +1 -1
- package/base-select/index.js +189 -86
- package/base-select/vue.js +82 -20
- package/calendar-view/index.js +6 -3
- package/calendar-view/vue.js +9 -5
- package/color-picker/vue.js +4 -0
- package/color-select-panel/alpha-select/index.js +17 -12
- package/color-select-panel/alpha-select/vue.js +4 -2
- package/color-select-panel/hue-select/index.js +42 -11
- package/color-select-panel/hue-select/vue.js +32 -6
- package/color-select-panel/index.js +223 -39
- package/color-select-panel/linear-gradient/index.js +131 -0
- package/color-select-panel/linear-gradient/vue.js +21 -0
- package/color-select-panel/sv-select/index.js +12 -9
- package/color-select-panel/sv-select/vue.js +4 -2
- package/color-select-panel/utils/color-map.js +154 -0
- package/color-select-panel/utils/color-points.js +86 -0
- package/color-select-panel/utils/color.js +1 -1
- package/color-select-panel/utils/context.js +14 -0
- package/color-select-panel/vue.js +3 -3
- package/common/deps/infinite-scroll.js +1 -1
- package/dialog-box/index.js +3 -3
- package/dialog-box/vue.js +1 -0
- package/drawer/index.js +20 -0
- package/drawer/vue.js +9 -1
- package/dropdown/index.js +10 -4
- package/file-upload/index.js +18 -4
- package/form-item/index.js +28 -16
- package/form-item/vue.js +50 -11
- package/grid/static/array/eachTree.js +1 -0
- package/grid/utils/common.js +10 -3
- package/grid-select/index.js +418 -32
- package/grid-select/vue.js +103 -9
- package/guide/index.js +3 -3
- package/guide/vue.js +11 -1
- package/input/vue.js +2 -1
- package/package.json +3 -3
- package/picker/index.js +30 -13
- package/picker/vue.js +10 -0
- package/popover/index.js +1 -1
- package/rich-text/index.js +42 -0
- package/select/index.js +32 -15
- package/select/vue.js +31 -10
- package/select-dropdown/vue.js +8 -3
- package/select-wrapper/vue.js +134 -0
- package/slider/vue.js +7 -0
- package/space/index.js +30 -0
- package/space/vue.js +39 -0
- package/switch/vue.js +19 -0
- package/tab-nav/index.js +2 -2
- package/tabs-mf/index.js +9 -1
- package/tabs-mf/vue-nav.js +70 -22
- package/tabs-mf/vue-slider-bar.js +24 -0
- package/tabs-mf/vue.js +23 -5
- package/tag/index.js +1 -1
- package/transfer-panel/index.js +2 -1
- package/tree-menu/index.js +4 -0
- package/tree-menu/vue.js +3 -0
- package/tree-select/index.js +13 -4
- package/tree-select/vue.js +19 -3
- package/types/autocomplete.type.d.ts +2 -1
- package/types/color-select-panel.type.d.ts +197 -1
- package/types/date-picker.type.d.ts +38 -2
- package/types/file-upload.type.d.ts +1 -1
- package/types/form-item.type.d.ts +1 -1
- package/types/{form.type-dd403065.d.ts → form.type-a54e1c06.d.ts} +2 -2
- package/types/form.type.d.ts +1 -1
- package/types/input.type.d.ts +1 -1
- package/types/modal.type.d.ts +4 -0
- package/types/numeric.type.d.ts +1 -1
- package/types/picker.type.d.ts +42 -2
- package/types/popeditor.type.d.ts +76 -4
- package/types/popover.type.d.ts +1 -1
- package/types/space.type.d.ts +31 -0
- package/types/switch.type.d.ts +2 -1
- package/types/transfer.type.d.ts +3 -3
- package/types/tree-menu.type.d.ts +38 -2
- package/types/upload-dragger.type.d.ts +1 -1
- package/types/{upload-list.type-36a8374a.d.ts → upload-list.type-d5ff675d.d.ts} +1 -1
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
package/autocomplete/index.js
CHANGED
|
@@ -158,7 +158,8 @@ const watchVisible = ({ suggestionState, vm }) => (val) => {
|
|
|
158
158
|
const mounted = ({
|
|
159
159
|
vm,
|
|
160
160
|
state,
|
|
161
|
-
suggestionState
|
|
161
|
+
suggestionState,
|
|
162
|
+
props
|
|
162
163
|
}) => () => {
|
|
163
164
|
const input = vm.$refs.input;
|
|
164
165
|
const $input = input.getInput();
|
|
@@ -166,8 +167,12 @@ const mounted = ({
|
|
|
166
167
|
suggestionState.referenceElm = $input;
|
|
167
168
|
$input.setAttribute("role", "textbox");
|
|
168
169
|
$input.setAttribute("aria-autocomplete", "list");
|
|
169
|
-
$input.setAttribute("aria-controls",
|
|
170
|
+
$input.setAttribute("aria-controls", state.id);
|
|
171
|
+
$input.setAttribute("aria-owns", state.id);
|
|
170
172
|
$input.setAttribute("aria-activedescendant", `${state.id}-item-${state.highlightedIndex}`);
|
|
173
|
+
if (props.label || props.placeholder) {
|
|
174
|
+
$input.setAttribute("aria-label", String(props.label || props.placeholder));
|
|
175
|
+
}
|
|
171
176
|
};
|
|
172
177
|
export {
|
|
173
178
|
close,
|
package/autocomplete/vue.js
CHANGED
|
@@ -91,7 +91,7 @@ const initApi = ({
|
|
|
91
91
|
close: close(state),
|
|
92
92
|
open: open(api2),
|
|
93
93
|
handleBlur: handleBlur({ emit, state, dispatch, props }),
|
|
94
|
-
mounted: mounted({ vm, state, suggestionState }),
|
|
94
|
+
mounted: mounted({ vm, state, suggestionState, props }),
|
|
95
95
|
highlight: highlight({ constants, vm, state }),
|
|
96
96
|
handleClear: handleClear({ emit, state }),
|
|
97
97
|
select: select({ emit, nextTick, props, state, dispatch }),
|