vueless 0.0.762 → 0.0.764
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/package.json +3 -3
- package/preset-tailwind.js +1 -1
- package/ui.data-table/UTable.vue +3 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.764",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
|
|
6
6
|
"keywords": [
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"lodash-es": "^4.17.21",
|
|
52
52
|
"svgo": "^3.3.2",
|
|
53
53
|
"tailwind-merge": "^2.5.4",
|
|
54
|
-
"tailwindcss": "^3.4.14",
|
|
55
54
|
"tippy.js": "^6.3.7",
|
|
56
55
|
"unplugin-vue-components": "^0.27.4",
|
|
57
56
|
"vuedraggable": "^4.1.0"
|
|
@@ -81,8 +80,9 @@
|
|
|
81
80
|
"postcss": "^8.4.38",
|
|
82
81
|
"prettier": "^3.3.3",
|
|
83
82
|
"release-it": "^17.2.1",
|
|
83
|
+
"tailwindcss": "^3.4.17",
|
|
84
84
|
"typescript": "^5.6.3",
|
|
85
|
-
"vite": "
|
|
85
|
+
"vite": "6.0.9",
|
|
86
86
|
"vite-plugin-compression": "^0.5.1",
|
|
87
87
|
"vue": "^3.5.4",
|
|
88
88
|
"vue-i18n": "^10.0.4",
|
package/preset-tailwind.js
CHANGED
|
@@ -126,7 +126,7 @@ export function vuelessPreset() {
|
|
|
126
126
|
theme: merge({}, globalSettings.tailwindTheme || {}, vuelessTailwindConfig.theme),
|
|
127
127
|
darkMode: vuelessTailwindConfig.darkMode,
|
|
128
128
|
content: vuelessTailwindConfig.content,
|
|
129
|
-
plugins: [forms],
|
|
129
|
+
plugins: [forms({ strategy: "base" })],
|
|
130
130
|
safelist,
|
|
131
131
|
};
|
|
132
132
|
}
|
package/ui.data-table/UTable.vue
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import { COMPONENT_NAME } from "./constants.ts";
|
|
39
39
|
|
|
40
40
|
import type { Cell, Row, RowId, UTableProps, UTableRowAttrs, Config } from "./types.ts";
|
|
41
|
-
import type { Ref, ComputedRef
|
|
41
|
+
import type { Ref, ComputedRef } from "vue";
|
|
42
42
|
|
|
43
43
|
defineOptions({ inheritAttrs: false });
|
|
44
44
|
|
|
@@ -186,17 +186,6 @@ const isCheckedMoreOneTableItems = computed(() => {
|
|
|
186
186
|
|
|
187
187
|
const tableRowWidthStyle = computed(() => ({ width: `${tableWidth.value / PX_IN_REM}rem` }));
|
|
188
188
|
|
|
189
|
-
const hasSlotContentBeforeFirstRow = computed(() => {
|
|
190
|
-
if (
|
|
191
|
-
hasSlotContent(slots["before-first-row"]) &&
|
|
192
|
-
typeof slots["before-first-row"] === "function"
|
|
193
|
-
) {
|
|
194
|
-
return (slots["before-first-row"]({}) as VNode[])?.some((item) => Boolean(item.type));
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
return false;
|
|
198
|
-
});
|
|
199
|
-
|
|
200
189
|
const flatTableRows = computed(() => getFlatRows(tableRows.value));
|
|
201
190
|
|
|
202
191
|
const isSelectedAllRows = computed(() => {
|
|
@@ -345,19 +334,16 @@ function onKeyupEsc(event: KeyboardEvent) {
|
|
|
345
334
|
|
|
346
335
|
function isShownDateDivider(rowIndex: number) {
|
|
347
336
|
const prevIndex = rowIndex ? rowIndex - 1 : rowIndex;
|
|
348
|
-
const nextIndex = rowIndex ? rowIndex + 1 : rowIndex;
|
|
349
337
|
const prevItem = tableRows.value[prevIndex];
|
|
350
|
-
const nextItem = tableRows.value[nextIndex];
|
|
351
338
|
const currentItem = tableRows.value[rowIndex];
|
|
352
339
|
|
|
353
340
|
if (rowIndex === 0) {
|
|
354
|
-
return
|
|
341
|
+
return true;
|
|
355
342
|
}
|
|
356
343
|
|
|
357
344
|
const isPrevSameDate = prevItem?.rowDate === currentItem?.rowDate;
|
|
358
|
-
const isNextSameDate = nextItem?.rowDate === currentItem?.rowDate;
|
|
359
345
|
|
|
360
|
-
return !isPrevSameDate &&
|
|
346
|
+
return !isPrevSameDate && props.dateDivider;
|
|
361
347
|
}
|
|
362
348
|
|
|
363
349
|
function onClickRow(row: Row) {
|