rayyy-vue-table-components 1.2.6 → 1.2.8
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 +178 -5
- package/dist/index.es.js +2823 -2732
- package/dist/index.umd.js +14 -14
- package/dist/rayyy-vue-table-components.css +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/utils/tableStyles.d.ts +100 -0
- package/package.json +9 -3
- package/src/assets/styles/_dialog.scss +44 -0
- package/src/assets/styles/_table.scss +49 -0
- package/src/assets/styles/element/index.scss +103 -0
- package/src/assets/styles/tailwind.scss +7 -0
- package/src/components/BaseDialog.vue +5 -9
- package/src/utils/tableStyles.ts +152 -0
- package/tailwind-preset.js +18 -121
package/tailwind-preset.js
CHANGED
|
@@ -2,31 +2,7 @@
|
|
|
2
2
|
module.exports = {
|
|
3
3
|
content: [],
|
|
4
4
|
safelist: [
|
|
5
|
-
//
|
|
6
|
-
'sort-table-container',
|
|
7
|
-
'sort-table-function-bar',
|
|
8
|
-
'sort-table-settings-btn',
|
|
9
|
-
|
|
10
|
-
// FilterBtn 組件類別
|
|
11
|
-
'filter-btn',
|
|
12
|
-
|
|
13
|
-
// TransferItem 組件類別
|
|
14
|
-
'transfer-item-wrapper',
|
|
15
|
-
'transfer-arrow-wrapper',
|
|
16
|
-
|
|
17
|
-
// TransferDialog 組件類別
|
|
18
|
-
'transfer-sort-wrapper',
|
|
19
|
-
'transfer-active-bg',
|
|
20
|
-
'transfer-active-border',
|
|
21
|
-
|
|
22
|
-
// BaseDialog 組件類別
|
|
23
|
-
'base-dialog-title',
|
|
24
|
-
|
|
25
|
-
// 通用類別
|
|
26
|
-
'cursor-grab',
|
|
27
|
-
'cursor-grabbing',
|
|
28
|
-
|
|
29
|
-
// Primary 顏色類別
|
|
5
|
+
// 保留必要的顏色類別供 Tailwind 使用
|
|
30
6
|
'bg-primary',
|
|
31
7
|
'bg-primary-10',
|
|
32
8
|
'bg-primary-15',
|
|
@@ -51,6 +27,22 @@ module.exports = {
|
|
|
51
27
|
'border-primary-60',
|
|
52
28
|
'border-primary-80',
|
|
53
29
|
'border-primary-dark',
|
|
30
|
+
'text-blue-10',
|
|
31
|
+
'text-redText',
|
|
32
|
+
'bg-blue-20',
|
|
33
|
+
'border-b-orange',
|
|
34
|
+
'border-b-blue-10',
|
|
35
|
+
|
|
36
|
+
// 組件樣式類別(現在由 TypeScript 工具提供)
|
|
37
|
+
'cursor-grab',
|
|
38
|
+
'cursor-grabbing',
|
|
39
|
+
'bg-primary/10',
|
|
40
|
+
'hover:text-primary-40',
|
|
41
|
+
'text-sky-500',
|
|
42
|
+
'hover:bg-sky-500',
|
|
43
|
+
'disabled:bg-white',
|
|
44
|
+
'disabled:opacity-50',
|
|
45
|
+
'disabled:text-black/20',
|
|
54
46
|
],
|
|
55
47
|
theme: {
|
|
56
48
|
extend: {
|
|
@@ -128,101 +120,6 @@ module.exports = {
|
|
|
128
120
|
},
|
|
129
121
|
},
|
|
130
122
|
plugins: [
|
|
131
|
-
|
|
132
|
-
// 組件級樣式
|
|
133
|
-
addComponents({
|
|
134
|
-
// SortTable 組件樣式
|
|
135
|
-
'.sort-table-container': {
|
|
136
|
-
width: '100%',
|
|
137
|
-
marginBottom: '1rem',
|
|
138
|
-
},
|
|
139
|
-
'.sort-table-function-bar': {
|
|
140
|
-
display: 'flex',
|
|
141
|
-
alignItems: 'center',
|
|
142
|
-
height: '3rem',
|
|
143
|
-
backgroundColor: theme('colors.primary.20'),
|
|
144
|
-
padding: '0 0.375rem',
|
|
145
|
-
borderTopLeftRadius: '0.25rem',
|
|
146
|
-
borderTopRightRadius: '0.25rem',
|
|
147
|
-
justifyContent: 'flex-end',
|
|
148
|
-
},
|
|
149
|
-
'.sort-table-settings-btn': {
|
|
150
|
-
cursor: 'pointer',
|
|
151
|
-
color: theme('colors.primary.dark'),
|
|
152
|
-
fontSize: '1.25rem',
|
|
153
|
-
display: 'flex',
|
|
154
|
-
alignItems: 'center',
|
|
155
|
-
justifyContent: 'center',
|
|
156
|
-
'&:hover': {
|
|
157
|
-
color: theme('colors.primary.40'),
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
// FilterBtn 組件樣式
|
|
162
|
-
'.filter-btn': {
|
|
163
|
-
color: '#0ea5e9',
|
|
164
|
-
'& p': {
|
|
165
|
-
color: '#000',
|
|
166
|
-
marginLeft: '0.5rem',
|
|
167
|
-
fontWeight: 'bold',
|
|
168
|
-
},
|
|
169
|
-
'& i': {
|
|
170
|
-
fontSize: '1.25rem',
|
|
171
|
-
},
|
|
172
|
-
'&:hover': {
|
|
173
|
-
color: '#fff',
|
|
174
|
-
backgroundColor: '#0ea5e9',
|
|
175
|
-
'& p': {
|
|
176
|
-
color: '#fff',
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
'&:disabled': {
|
|
180
|
-
backgroundColor: '#fff',
|
|
181
|
-
opacity: '0.5',
|
|
182
|
-
'&:hover': {
|
|
183
|
-
backgroundColor: '#fff',
|
|
184
|
-
'& p': {
|
|
185
|
-
color: 'rgba(0, 0, 0, 0.2)',
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
// TransferItem 組件樣式
|
|
192
|
-
'.transfer-item-wrapper': {
|
|
193
|
-
borderTop: '1px solid #e5e7eb',
|
|
194
|
-
padding: '0 1rem',
|
|
195
|
-
display: 'flex',
|
|
196
|
-
alignItems: 'center',
|
|
197
|
-
justifyContent: 'space-between',
|
|
198
|
-
width: '100%',
|
|
199
|
-
},
|
|
200
|
-
'.transfer-arrow-wrapper': {
|
|
201
|
-
width: '7rem',
|
|
202
|
-
color: theme('colors.primary.10'),
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
// TransferDialog 組件樣式
|
|
206
|
-
'.transfer-sort-wrapper': {
|
|
207
|
-
border: '1px solid #e5e7eb',
|
|
208
|
-
height: '24rem',
|
|
209
|
-
overflow: 'auto',
|
|
210
|
-
},
|
|
211
|
-
'.transfer-active-bg': {
|
|
212
|
-
backgroundColor: 'rgba(103, 133, 193, 0.1)',
|
|
213
|
-
},
|
|
214
|
-
'.transfer-active-border': {
|
|
215
|
-
border: '1px solid',
|
|
216
|
-
borderRadius: '0.25rem',
|
|
217
|
-
borderColor: theme('colors.primary.10'),
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
// BaseDialog 組件樣式
|
|
221
|
-
'.base-dialog-title': {
|
|
222
|
-
fontWeight: 'bold',
|
|
223
|
-
fontSize: '1rem',
|
|
224
|
-
},
|
|
225
|
-
})
|
|
226
|
-
}
|
|
123
|
+
// 移除了舊的組件級樣式,現在使用 TypeScript 樣式工具和 Sass 模組
|
|
227
124
|
],
|
|
228
125
|
}
|