@onereach/ui-components-vue2 25.1.2 → 25.1.3-beta.5772.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.
|
@@ -935,6 +935,18 @@ var script = defineComponent({
|
|
|
935
935
|
if (popoverInstance) {
|
|
936
936
|
popoverInstance.open();
|
|
937
937
|
}
|
|
938
|
+
nextTick(() => {
|
|
939
|
+
if (proxyModelValue.value) {
|
|
940
|
+
const value = Array.isArray(proxyModelValue.value) ? proxyModelValue.value[0] : proxyModelValue.value;
|
|
941
|
+
const selectedOptionElement = document.querySelector(`[data-value="${value}"]`);
|
|
942
|
+
if (selectedOptionElement) {
|
|
943
|
+
selectedOptionElement.scrollIntoView({
|
|
944
|
+
behavior: 'auto',
|
|
945
|
+
block: 'start'
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
});
|
|
938
950
|
}
|
|
939
951
|
function close() {
|
|
940
952
|
const popoverInstance = popover.value;
|
|
@@ -1280,7 +1292,8 @@ var __vue_render__ = function () {
|
|
|
1280
1292
|
attrs: {
|
|
1281
1293
|
"tooltip-text": option.label,
|
|
1282
1294
|
"selected": _vm.proxyModelValue && _vm.proxyModelValue.includes(option.value),
|
|
1283
|
-
"disabled": option.disabled
|
|
1295
|
+
"disabled": option.disabled,
|
|
1296
|
+
"data-value": option.value
|
|
1284
1297
|
},
|
|
1285
1298
|
on: {
|
|
1286
1299
|
"click": function ($event) {
|
|
@@ -1314,6 +1327,7 @@ var __vue_render__ = function () {
|
|
|
1314
1327
|
attrs: {
|
|
1315
1328
|
"selected": _vm.proxyModelValue === option.value,
|
|
1316
1329
|
"tooltip-text": option.label,
|
|
1330
|
+
"data-value": option.value,
|
|
1317
1331
|
"disabled": option.disabled
|
|
1318
1332
|
},
|
|
1319
1333
|
on: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components-vue2",
|
|
3
|
-
"version": "25.1.
|
|
3
|
+
"version": "25.1.3-beta.5772.0",
|
|
4
4
|
"description": "Vue components library for v2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@codemirror/view": "^6",
|
|
41
41
|
"@floating-ui/dom": "1.5.3",
|
|
42
42
|
"@lezer/highlight": "*",
|
|
43
|
-
"@onereach/styles": "^25.1.
|
|
44
|
-
"@onereach/ui-components-common": "^25.1.
|
|
43
|
+
"@onereach/styles": "^25.1.3-beta.5772.0",
|
|
44
|
+
"@onereach/ui-components-common": "^25.1.3-beta.5772.0",
|
|
45
45
|
"@splidejs/splide": "4.0.6",
|
|
46
46
|
"@tiptap/core": "2.0.3",
|
|
47
47
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -102,6 +102,5 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"npmUnpacked": "4.15.2"
|
|
106
|
-
"gitHead": "a074a252a6ca80f6ba59853c2e072a1970c84ce7"
|
|
105
|
+
"npmUnpacked": "4.15.2"
|
|
107
106
|
}
|