rayyy-vue-table-components 1.0.37 → 1.0.39
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/index.es.js +1724 -1702
- package/dist/index.umd.js +3 -3
- package/dist/rayyy-vue-table-components.css +1 -1
- package/dist/src/components/index.d.ts +4 -0
- package/dist/src/components/transfer/TransferDialog.vue.d.ts +24 -0
- package/dist/src/components/transfer/transferItem.vue.d.ts +29 -0
- package/dist/src/index.d.ts +42 -13558
- package/package.json +1 -4
- package/src/components/index.ts +4 -0
- package/src/components/tables/SortTable.vue +3 -3
- package/tailwind-preset.js +51 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rayyy-vue-table-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "Vue 3 + Element Plus 表格組件庫",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.js",
|
|
@@ -123,8 +123,5 @@
|
|
|
123
123
|
"vue-tsc": "^2.2.8",
|
|
124
124
|
"vuedraggable": "^4.1.0",
|
|
125
125
|
"@vueuse/core": "^11.2.0"
|
|
126
|
-
},
|
|
127
|
-
"dependencies": {
|
|
128
|
-
"vuedraggable": "^2.24.3"
|
|
129
126
|
}
|
|
130
127
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// 單獨導出組件
|
|
2
2
|
export { default as BaseTable } from './tables/BaseTable.vue'
|
|
3
3
|
export { default as BaseBtn } from './items/BaseBtn.vue'
|
|
4
|
+
export { default as BaseInput } from './items/BaseInput.vue'
|
|
5
|
+
export { default as FilterBtn } from './items/FilterBtn.vue'
|
|
4
6
|
export { default as BaseDialog } from './BaseDialog.vue'
|
|
5
7
|
export { default as SortTable } from './tables/SortTable.vue'
|
|
6
8
|
export { default as SearchBar } from './SearchBar.vue'
|
|
@@ -23,6 +25,8 @@ export type {
|
|
|
23
25
|
// 重新導出組件定義類型
|
|
24
26
|
export type { default as BaseTableType } from './tables/BaseTable.vue'
|
|
25
27
|
export type { default as BaseBtnType } from './items/BaseBtn.vue'
|
|
28
|
+
export type { default as BaseInputType } from './items/BaseInput.vue'
|
|
29
|
+
export type { default as FilterBtnType } from './items/FilterBtn.vue'
|
|
26
30
|
export type { default as BaseDialogType } from './BaseDialog.vue'
|
|
27
31
|
export type { default as SortTableType } from './tables/SortTable.vue'
|
|
28
32
|
export type { default as SearchBarType } from './SearchBar.vue'
|
|
@@ -41,10 +41,10 @@ const handleColumnSortChange = (data: SortChangValue<T>) => {
|
|
|
41
41
|
</script>
|
|
42
42
|
|
|
43
43
|
<template>
|
|
44
|
-
<div class="
|
|
45
|
-
<div class="
|
|
44
|
+
<div class="w-full mb-4">
|
|
45
|
+
<div class="flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-end">
|
|
46
46
|
<div class="flex items-center mr-4">
|
|
47
|
-
<div class="
|
|
47
|
+
<div class="cursor-pointer text-blue-800 text-xl flex items-center justify-center hover:text-blue-600" @click="openTransferDialog">
|
|
48
48
|
<el-icon><Setting /></el-icon>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
package/tailwind-preset.js
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
/** @type {import('tailwindcss').Config} */
|
|
2
2
|
module.exports = {
|
|
3
3
|
content: [],
|
|
4
|
+
safelist: [
|
|
5
|
+
// SortTable 組件類別
|
|
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 顏色類別
|
|
30
|
+
'bg-primary',
|
|
31
|
+
'bg-primary-10',
|
|
32
|
+
'bg-primary-15',
|
|
33
|
+
'bg-primary-20',
|
|
34
|
+
'bg-primary-40',
|
|
35
|
+
'bg-primary-60',
|
|
36
|
+
'bg-primary-80',
|
|
37
|
+
'bg-primary-dark',
|
|
38
|
+
'text-primary',
|
|
39
|
+
'text-primary-10',
|
|
40
|
+
'text-primary-15',
|
|
41
|
+
'text-primary-20',
|
|
42
|
+
'text-primary-40',
|
|
43
|
+
'text-primary-60',
|
|
44
|
+
'text-primary-80',
|
|
45
|
+
'text-primary-dark',
|
|
46
|
+
'border-primary',
|
|
47
|
+
'border-primary-10',
|
|
48
|
+
'border-primary-15',
|
|
49
|
+
'border-primary-20',
|
|
50
|
+
'border-primary-40',
|
|
51
|
+
'border-primary-60',
|
|
52
|
+
'border-primary-80',
|
|
53
|
+
'border-primary-dark',
|
|
54
|
+
],
|
|
4
55
|
theme: {
|
|
5
56
|
extend: {
|
|
6
57
|
colors: {
|