@vtable-guild/vtable-guild 2.1.3 → 2.2.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/README.md +15 -3
- package/css/index.css +2 -2
- package/css/style.css +2055 -0
- package/css/style.d.ts +3 -0
- package/css/tailwind3-utilities.css +555 -871
- package/css/tailwind3.css +558 -874
- package/css/tailwind4.css +541 -0
- package/css/tailwind4.d.ts +3 -0
- package/dist/core/src/components/Input.d.ts +3 -3
- package/dist/core/src/components/Scrollbar.d.ts.map +1 -1
- package/dist/core/src/components/Tooltip.d.ts +1 -1
- package/dist/core/src/components/VTableGuildConfigProvider.d.ts +19 -1
- package/dist/core/src/components/VTableGuildConfigProvider.d.ts.map +1 -1
- package/dist/core/src/composables/useTheme.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +7 -2
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/plugin/index.d.ts.map +1 -1
- package/dist/core/src/utils/classPrefix.d.ts +7 -0
- package/dist/core/src/utils/classPrefix.d.ts.map +1 -0
- package/dist/core/src/utils/types.d.ts +13 -0
- package/dist/core/src/utils/types.d.ts.map +1 -1
- package/dist/css/index.css +2 -2
- package/dist/css/style.css +2055 -0
- package/dist/css/style.d.ts +3 -0
- package/dist/css/tailwind3-utilities.css +555 -871
- package/dist/css/tailwind3.css +558 -874
- package/dist/css/tailwind4.css +542 -0
- package/dist/css/tailwind4.d.ts +3 -0
- package/dist/index.mjs +2753 -2629
- package/dist/table/src/components/ExpandIcon.d.ts.map +1 -1
- package/dist/table/src/components/FilterDropdown.d.ts.map +1 -1
- package/dist/table/src/components/FilterIcon.d.ts.map +1 -1
- package/dist/table/src/components/ResizeHandle.d.ts.map +1 -1
- package/dist/table/src/components/SortButton.d.ts.map +1 -1
- package/dist/table/src/components/Table.d.ts +1 -1
- package/dist/table/src/components/Table.d.ts.map +1 -1
- package/dist/table/src/components/TableHeaderCell.d.ts.map +1 -1
- package/dist/table/src/components/TableLoading.d.ts.map +1 -1
- package/dist/table/src/context.d.ts +7 -1
- package/dist/table/src/context.d.ts.map +1 -1
- package/dist/theme/src/presets/antdv/table.d.ts +3 -3
- package/package.json +27 -15
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -10,20 +10,32 @@ pnpm add @vtable-guild/vtable-guild
|
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
|
+
Default prebuilt CSS mode:
|
|
14
|
+
|
|
13
15
|
```ts
|
|
14
16
|
import { createVTableGuild } from '@vtable-guild/vtable-guild'
|
|
15
|
-
import '@vtable-guild/vtable-guild/css'
|
|
17
|
+
import '@vtable-guild/vtable-guild/css/style'
|
|
16
18
|
|
|
17
19
|
const app = createApp(App)
|
|
18
20
|
app.use(createVTableGuild())
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
This works without installing Tailwind CSS or configuring `@tailwindcss/vite`. Internal utility
|
|
24
|
+
classes are emitted with the `vtg-` prefix. If you need to override an internal utility in `ui` or
|
|
25
|
+
`theme`, use the same prefix, for example `vtg-px-2`.
|
|
26
|
+
|
|
27
|
+
If your project uses Tailwind CSS 4 and you want unprefixed utilities, use the Tailwind 4 CSS entry
|
|
28
|
+
and runtime mode:
|
|
22
29
|
|
|
23
30
|
```ts
|
|
24
|
-
import '@vtable-guild/vtable-guild/css/
|
|
31
|
+
import '@vtable-guild/vtable-guild/css/tailwind4'
|
|
32
|
+
|
|
33
|
+
app.use(createVTableGuild({ cssMode: 'tailwind4' }))
|
|
25
34
|
```
|
|
26
35
|
|
|
36
|
+
`@vtable-guild/vtable-guild/css/tailwind3` is kept as a legacy compatibility alias for existing
|
|
37
|
+
prebuilt CSS projects.
|
|
38
|
+
|
|
27
39
|
```vue
|
|
28
40
|
<template>
|
|
29
41
|
<VTable :columns="columns" :data-source="data" />
|
package/css/index.css
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
@import './transitions.css';
|
|
16
16
|
|
|
17
17
|
/* Hide native scrollbar — used by Scrollbar component */
|
|
18
|
-
.scrollbar-none {
|
|
18
|
+
.vtg-scrollbar-none {
|
|
19
19
|
scrollbar-width: none;
|
|
20
20
|
-ms-overflow-style: none;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.scrollbar-none::-webkit-scrollbar {
|
|
23
|
+
.vtg-scrollbar-none::-webkit-scrollbar {
|
|
24
24
|
display: none;
|
|
25
25
|
}
|
|
26
26
|
|