@opentiny/vue-renderless 3.27.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/drawer/index.js +20 -0
- package/drawer/vue.js +9 -1
- package/dropdown/index.js +10 -4
- package/file-upload/index.js +18 -5
- 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/vue.js +11 -1
- package/package.json +3 -3
- package/picker/index.js +30 -13
- package/popover/index.js +1 -1
- package/rich-text/index.js +42 -0
- package/select/index.js +2 -2
- package/select/vue.js +2 -1
- package/select-dropdown/vue.js +8 -3
- package/select-wrapper/vue.js +134 -0
- package/switch/vue.js +19 -0
- package/tabs-mf/index.js +9 -1
- package/tabs-mf/vue-nav.js +66 -9
- package/tabs-mf/vue.js +21 -5
- package/transfer-panel/index.js +2 -1
- package/tree-select/index.js +13 -4
- package/tree-select/vue.js +19 -3
- package/types/autocomplete.type.d.ts +2 -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/picker.type.d.ts +38 -2
- package/types/popeditor.type.d.ts +76 -4
- package/types/popover.type.d.ts +1 -1
- package/types/switch.type.d.ts +1 -0
- 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 }),
|