eco-vue-js 0.26.22 → 0.26.23
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/components/Input/components/ContentEditable.vue.d.ts.map +1 -1
- package/dist/components/Input/components/ContentEditable.vue_vue_type_script_setup_true_lang.js +5 -14
- package/dist/components/Input/models/utils.d.ts.map +1 -1
- package/dist/components/Input/models/utils.js +15 -6
- package/dist/components/Input/types.d.ts +1 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/docs/components/input.md +5 -5
- package/docs/components/select.md +5 -5
- package/docs/llms.txt +1 -1
- package/package.json +1 -1
- package/tailwind-base/plugins/internal-classes.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentEditable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/ContentEditable.vue"],"names":[],"mappings":"AAeA;
|
|
1
|
+
{"version":3,"file":"ContentEditable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/ContentEditable.vue"],"names":[],"mappings":"AAeA;AAugBA,OAAO,KAAK,EAAC,QAAQ,EAAG,aAAa,EAAC,MAAM,UAAU,CAAA;AAUtD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IACjC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAC;AA+hBF,QAAA,MAAM,YAAY;;;2BA1OY,aAAa,KAAG,IAAI;2BATpB,MAAM,aAAa,MAAM;;wBAhB5B,MAAM;;;;;;;;;;;;;;kFAuQ/B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/components/Input/components/ContentEditable.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -210,22 +210,13 @@ var ContentEditable_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
210
210
|
if (handleLineBoundaryDelete(e)) return;
|
|
211
211
|
}
|
|
212
212
|
if (e.inputType === "insertText" && e.data && autoPairMap[e.data]) {
|
|
213
|
-
e.preventDefault();
|
|
214
213
|
const { start, end } = getCaret();
|
|
214
|
+
if (start === end) return;
|
|
215
|
+
e.preventDefault();
|
|
215
216
|
const currentText = getCurrentText();
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
const selected = currentText.slice(start, end);
|
|
220
|
-
const after = currentText.slice(end);
|
|
221
|
-
const newText = before + e.data + selected + closingChar + after;
|
|
222
|
-
emit("update:model-value", newText, true);
|
|
223
|
-
nextTick(() => setCaret(start + 1, end + 1));
|
|
224
|
-
} else {
|
|
225
|
-
const newText = currentText.slice(0, start) + e.data + closingChar + currentText.slice(start);
|
|
226
|
-
emit("update:model-value", newText, true);
|
|
227
|
-
nextTick(() => setCaret(start + 1));
|
|
228
|
-
}
|
|
217
|
+
const newText = currentText.slice(0, start) + e.data + currentText.slice(start, end) + autoPairMap[e.data] + currentText.slice(end);
|
|
218
|
+
emit("update:model-value", newText, true);
|
|
219
|
+
nextTick(() => setCaret(start + 1, end + 1));
|
|
229
220
|
}
|
|
230
221
|
};
|
|
231
222
|
const regexDifferentEnding = /\r\n?/g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/models/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/models/utils.ts"],"names":[],"mappings":"AA2EA,MAAM,MAAM,WAAW,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAC,CAAA;AAEtD,eAAO,MAAM,cAAc,GAAI,QAAQ,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,YAAY,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,SAelH,CAAA;AA8ED,eAAO,MAAM,cAAc,GAAI,QAAQ,OAAO,GAAG,IAAI,GAAG,SAAS,KAAG,WAUnE,CAAA"}
|
|
@@ -4,11 +4,20 @@ var collectLines = (parent) => {
|
|
|
4
4
|
for (const child of Array.from(parent.children)) if (child instanceof HTMLElement && child.classList.contains("line")) out.push(child);
|
|
5
5
|
return out;
|
|
6
6
|
};
|
|
7
|
+
var afterNonEditable = (line, text) => {
|
|
8
|
+
let element = text.parentElement;
|
|
9
|
+
while (element.parentElement && element.parentElement !== line && element.parentElement.contentEditable === "false") element = element.parentElement;
|
|
10
|
+
const parent = element.parentNode;
|
|
11
|
+
return {
|
|
12
|
+
node: parent,
|
|
13
|
+
offset: Array.prototype.indexOf.call(parent.childNodes, element) + 1
|
|
14
|
+
};
|
|
15
|
+
};
|
|
7
16
|
var findInLine = (line, offsetInLine) => {
|
|
8
17
|
const walker = document.createTreeWalker(line, NodeFilter.SHOW_TEXT, null);
|
|
9
18
|
let node;
|
|
10
19
|
let remaining = offsetInLine;
|
|
11
|
-
let
|
|
20
|
+
let tail = null;
|
|
12
21
|
while (node = walker.nextNode()) {
|
|
13
22
|
const text = node;
|
|
14
23
|
const len = text.nodeValue?.length ?? 0;
|
|
@@ -17,13 +26,13 @@ var findInLine = (line, offsetInLine) => {
|
|
|
17
26
|
node: text,
|
|
18
27
|
offset: Math.max(remaining, 0)
|
|
19
28
|
};
|
|
20
|
-
|
|
29
|
+
tail = editable ? {
|
|
30
|
+
node: text,
|
|
31
|
+
offset: len
|
|
32
|
+
} : afterNonEditable(line, text);
|
|
21
33
|
remaining -= len;
|
|
22
34
|
}
|
|
23
|
-
if (
|
|
24
|
-
node: lastEditable,
|
|
25
|
-
offset: lastEditable.nodeValue?.length ?? 0
|
|
26
|
-
};
|
|
35
|
+
if (tail) return tail;
|
|
27
36
|
let container = line;
|
|
28
37
|
while (container.firstElementChild && container.firstElementChild.tagName !== "BR" && container.firstElementChild.contentEditable !== "false") container = container.firstElementChild;
|
|
29
38
|
return {
|
|
@@ -32,7 +32,7 @@ export interface InputProps<Type extends InputType, ClearValue extends InputClea
|
|
|
32
32
|
name?: string;
|
|
33
33
|
/** Native `autocomplete` attribute. */
|
|
34
34
|
autocomplete?: 'off' | string;
|
|
35
|
-
/** Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
35
|
+
/** Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. */
|
|
36
36
|
autofocus?: boolean | number;
|
|
37
37
|
/** Shows the value as text without an input. When unset, inherits the readonly state provided by a parent. */
|
|
38
38
|
readonly?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAC,qBAAqB,EAAE,0BAA0B,EAAC,MAAM,iBAAiB,CAAA;AACtF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEpD,MAAM,MAAM,eAAe,GAAG,EAAE,GAAG,SAAS,GAAG,IAAI,CAAA;AAEnD,MAAM,WAAW,UAAU,CAAC,IAAI,SAAS,SAAS,EAAE,UAAU,SAAS,eAAe,GAAG,EAAE,CAAE,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC;IACxI,8EAA8E;IAC9E,UAAU,CAAC,EAAE,CAAC,IAAI,SAAS,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,GAAG,IAAI,CAAA;IACzE,kEAAkE;IAClE,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX,4EAA4E;IAC5E,QAAQ,C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,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,CAAA;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,4HAA4H;IAC5H,KAAK,CAAC,EAAE,aAAa,GAAG;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,YAAY,CAAC;QAAC,KAAK,CAAC,EAAE,aAAa,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,EAAE,CAAA;IACtG,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,qBAAqB,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAC,GAAG,MAAM,CAAA"}
|
package/docs/components/input.md
CHANGED
|
@@ -274,7 +274,7 @@ import WInput from 'eco-vue-js/dist/components/Input/WInput.vue'
|
|
|
274
274
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
275
275
|
| `name` | `string` | — | Native `name` attribute. |
|
|
276
276
|
| `autocomplete` | `string` | `"off"` | Native `autocomplete` attribute. |
|
|
277
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
277
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
278
278
|
| `readonly` | `boolean` | — | Shows the value as text without an input. When unset, inherits the readonly state provided by a parent. |
|
|
279
279
|
| `unclickable` | `boolean \| null` | `null` | Blocks typing and turns a click into a `focus` event, for fields that open a menu instead of taking text. |
|
|
280
280
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
@@ -384,7 +384,7 @@ import WInputAsync from 'eco-vue-js/dist/components/Input/WInputAsync.vue'
|
|
|
384
384
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
385
385
|
| `name` | `string` | — | Native `name` attribute. |
|
|
386
386
|
| `autocomplete` | `string` | — | Native `autocomplete` attribute. |
|
|
387
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
387
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
388
388
|
| `readonly` | `boolean` | — | Shows the value as text without an input. When unset, inherits the readonly state provided by a parent. |
|
|
389
389
|
| `unclickable` | `boolean \| null` | `null` | Blocks typing and turns a click into a `focus` event, for fields that open a menu instead of taking text. |
|
|
390
390
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
@@ -482,7 +482,7 @@ import WInputSuggest from 'eco-vue-js/dist/components/Input/WInputSuggest.vue'
|
|
|
482
482
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
483
483
|
| `name` | `string` | — | Native `name` attribute. |
|
|
484
484
|
| `autocomplete` | `string` | — | Native `autocomplete` attribute. |
|
|
485
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
485
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
486
486
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
487
487
|
| `loading` | `boolean` | — | Shows a spinner in the actions and blocks input. |
|
|
488
488
|
| `spellcheck` | `boolean` | — | Enables the browser's spell check. |
|
|
@@ -592,7 +592,7 @@ import WInputOptions from 'eco-vue-js/dist/components/Input/WInputOptions.vue'
|
|
|
592
592
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
593
593
|
| `name` | `string` | — | Native `name` attribute. |
|
|
594
594
|
| `autocomplete` | `string` | — | Native `autocomplete` attribute. |
|
|
595
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
595
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
596
596
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
597
597
|
| `loading` | `boolean` | — | Shows a spinner in the actions and blocks input. |
|
|
598
598
|
| `spellcheck` | `boolean` | — | Enables the browser's spell check. |
|
|
@@ -696,7 +696,7 @@ import WInputDate from 'eco-vue-js/dist/components/Input/WInputDate.vue'
|
|
|
696
696
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
697
697
|
| `name` | `string` | — | Native `name` attribute. |
|
|
698
698
|
| `autocomplete` | `string` | — | Native `autocomplete` attribute. |
|
|
699
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
699
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
700
700
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
701
701
|
| `loading` | `boolean` | — | Shows a spinner in the actions and blocks input. |
|
|
702
702
|
| `spellcheck` | `boolean` | — | Enables the browser's spell check. |
|
|
@@ -1226,7 +1226,7 @@ import WSelectSingle from 'eco-vue-js/dist/components/Select/WSelectSingle.vue'
|
|
|
1226
1226
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
1227
1227
|
| `name` | `string` | — | Native `name` attribute. |
|
|
1228
1228
|
| `autocomplete` | `string` | — | Native `autocomplete` attribute. |
|
|
1229
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
1229
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
1230
1230
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
1231
1231
|
| `loading` | `boolean` | — | Shows a spinner in the actions and blocks input. |
|
|
1232
1232
|
| `spellcheck` | `boolean` | — | Enables the browser's spell check. |
|
|
@@ -1353,7 +1353,7 @@ import WSelect from 'eco-vue-js/dist/components/Select/WSelect.vue'
|
|
|
1353
1353
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
1354
1354
|
| `name` | `string` | — | Native `name` attribute. |
|
|
1355
1355
|
| `autocomplete` | `string` | — | Native `autocomplete` attribute. |
|
|
1356
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
1356
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
1357
1357
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
1358
1358
|
| `loading` | `boolean` | — | Shows a spinner in the actions and blocks input. |
|
|
1359
1359
|
| `spellcheck` | `boolean` | — | Enables the browser's spell check. |
|
|
@@ -1483,7 +1483,7 @@ import WSelectAsyncSingle from 'eco-vue-js/dist/components/Select/WSelectAsyncSi
|
|
|
1483
1483
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
1484
1484
|
| `name` | `string` | — | Native `name` attribute. |
|
|
1485
1485
|
| `autocomplete` | `string` | — | Native `autocomplete` attribute. |
|
|
1486
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
1486
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
1487
1487
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
1488
1488
|
| `loading` | `boolean` | — | Shows a spinner in the actions and blocks input. |
|
|
1489
1489
|
| `spellcheck` | `boolean` | — | Enables the browser's spell check. |
|
|
@@ -1611,7 +1611,7 @@ import WSelectAsync from 'eco-vue-js/dist/components/Select/WSelectAsync.vue'
|
|
|
1611
1611
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
1612
1612
|
| `name` | `string` | — | Native `name` attribute. |
|
|
1613
1613
|
| `autocomplete` | `string` | — | Native `autocomplete` attribute. |
|
|
1614
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
1614
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
1615
1615
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
1616
1616
|
| `loading` | `boolean` | — | Shows a spinner in the actions and blocks input. |
|
|
1617
1617
|
| `spellcheck` | `boolean` | — | Enables the browser's spell check. |
|
|
@@ -1740,7 +1740,7 @@ import WSelectStringified from 'eco-vue-js/dist/components/Select/WSelectStringi
|
|
|
1740
1740
|
| `max` | `number` | — | Native `max` attribute for `type="number"`. |
|
|
1741
1741
|
| `name` | `string` | — | Native `name` attribute. |
|
|
1742
1742
|
| `autocomplete` | `string` | — | Native `autocomplete` attribute. |
|
|
1743
|
-
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms
|
|
1743
|
+
| `autofocus` | `number \| boolean` | — | Focuses the field after mount, and again when the browser tab becomes active. Skipped while another input has focus. A number sets the delay in ms; `0` focuses at once, even if another input has focus. |
|
|
1744
1744
|
| `disabledActions` | `boolean` | — | Disables the action buttons (clear, paste, copy) while keeping the input editable. |
|
|
1745
1745
|
| `loading` | `boolean` | — | Shows a spinner in the actions and blocks input. |
|
|
1746
1746
|
| `spellcheck` | `boolean` | — | Enables the browser's spell check. |
|
package/docs/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# eco-vue-js
|
|
2
2
|
|
|
3
|
-
> Vue 3 UI kit with Tailwind v4 — components, utilities, icons and recipes. These are the docs of version 0.26.
|
|
3
|
+
> Vue 3 UI kit with Tailwind v4 — components, utilities, icons and recipes. These are the docs of version 0.26.23, the one installed next to them. Start with Getting started and Conventions; each component page lists its props, events and slots with examples.
|
|
4
4
|
|
|
5
5
|
Release notes, for what changed between versions: https://github.com/rsmple/eco-vue-js/releases. The docs site, with live demos: https://rsmple.github.io/eco-vue-js/
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ const pluginDefault = plugin(function ({addBase, addUtilities, theme}) {
|
|
|
7
7
|
'*': {
|
|
8
8
|
'--w-left-inner': 'calc(var(--left-margin, 0px) + var(--nav-bar-width, 0px) + var(--inner-margin, 0px))',
|
|
9
9
|
'--w-right-inner': 'calc(var(--right-margin, 0px) + var(--actions-bar-width, 0px) + var(--inner-margin, 0px))',
|
|
10
|
-
'--w-width-inner': 'calc(100vw - var(--w-left-inner, 0px) - var(--w-right-inner, 0px))',
|
|
10
|
+
'--w-width-inner': 'calc(100vw - var(--scroll-bar-width, 0px) - var(--w-left-inner, 0px) - var(--w-right-inner, 0px))',
|
|
11
11
|
|
|
12
12
|
'--w-top-inner': 'calc(var(--header-height, 0px) + var(--infinite-list-header-height, 0px))',
|
|
13
13
|
'--w-bottom-inner': '0px',
|