@timus-networks/theme 1.0.92 → 1.0.94
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.
|
@@ -66,6 +66,69 @@
|
|
|
66
66
|
@current-change="handleCurrentChange"
|
|
67
67
|
/>
|
|
68
68
|
</div>
|
|
69
|
+
|
|
70
|
+
<div class="grid flex-column">
|
|
71
|
+
<div class="table-container mb-4">
|
|
72
|
+
<el-table
|
|
73
|
+
ref="multipleTable"
|
|
74
|
+
:data="tableData"
|
|
75
|
+
:default-sort="{ prop: 'date', order: 'descending' }"
|
|
76
|
+
height="360px"
|
|
77
|
+
style="width: 100%"
|
|
78
|
+
@selection-change="handleSelectionChange"
|
|
79
|
+
>
|
|
80
|
+
<el-table-column type="selection" width="16" />
|
|
81
|
+
<el-table-column
|
|
82
|
+
fixed
|
|
83
|
+
prop="date"
|
|
84
|
+
label="Date"
|
|
85
|
+
sortable
|
|
86
|
+
column-key="date"
|
|
87
|
+
:filters="[
|
|
88
|
+
{ text: '2016-05-01', value: '2016-05-01' },
|
|
89
|
+
{ text: '2016-05-02', value: '2016-05-02' },
|
|
90
|
+
{ text: '2016-05-03', value: '2016-05-03' },
|
|
91
|
+
{ text: '2016-05-04', value: '2016-05-04' },
|
|
92
|
+
]"
|
|
93
|
+
:filter-method="filterHandler"
|
|
94
|
+
/>
|
|
95
|
+
<el-table-column prop="name" label="Name" width="60" :show-overflow-tooltip="true" />
|
|
96
|
+
<el-table-column prop="address" label="Address" :formatter="formatter" />
|
|
97
|
+
<el-table-column
|
|
98
|
+
prop="tag"
|
|
99
|
+
label="Tag"
|
|
100
|
+
:filters="[
|
|
101
|
+
{ text: 'Home', value: 'Home' },
|
|
102
|
+
{ text: 'Office', value: 'Office' },
|
|
103
|
+
{ text: 'Potato', value: 'Potato' },
|
|
104
|
+
]"
|
|
105
|
+
:filter-method="filterTag"
|
|
106
|
+
filter-placement="top-start"
|
|
107
|
+
/>
|
|
108
|
+
<el-table-column prop="name" label="Name" width="120" />
|
|
109
|
+
<el-table-column prop="state" label="State" width="120" />
|
|
110
|
+
<el-table-column prop="city" label="City" width="120" />
|
|
111
|
+
<el-table-column prop="address" label="Address" width="300" />
|
|
112
|
+
<el-table-column prop="zip" label="Zip" width="120" />
|
|
113
|
+
<el-table-column label="Operations" width="420" class="items-end">
|
|
114
|
+
<template #default="scope">
|
|
115
|
+
<div class="items-end flex">
|
|
116
|
+
teeee<el-button size="small" @click.native.prevent="deleteRow(scope.$index, tableData)"> Remove </el-button>
|
|
117
|
+
</div>
|
|
118
|
+
</template>
|
|
119
|
+
</el-table-column>
|
|
120
|
+
</el-table>
|
|
121
|
+
</div>
|
|
122
|
+
<el-pagination
|
|
123
|
+
v-model:current-page="currentPage4"
|
|
124
|
+
:page-sizes="[100, 200, 300, 400]"
|
|
125
|
+
:page-size="100"
|
|
126
|
+
layout="total, prev, pager, next, jumper, sizes"
|
|
127
|
+
:total="400"
|
|
128
|
+
@size-change="handleSizeChange"
|
|
129
|
+
@current-change="handleCurrentChange"
|
|
130
|
+
/>
|
|
131
|
+
</div>
|
|
69
132
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
70
133
|
<p class="text-xs">
|
|
71
134
|
<code>
|
|
@@ -15,12 +15,16 @@
|
|
|
15
15
|
:file-list="fileList"
|
|
16
16
|
multiple
|
|
17
17
|
>
|
|
18
|
-
<i class="el-icon-upload"
|
|
18
|
+
<!-- <i class="el-icon-upload" />-->
|
|
19
|
+
<img src="~/assets/images/upload-drop.svg" alt="upload" class="w-[56px] h-[56px]" />
|
|
19
20
|
<div class="el-upload__text">
|
|
20
|
-
<span class="title">
|
|
21
|
-
<span class="description">click to
|
|
21
|
+
<span class="title">Drag CSV here</span>
|
|
22
|
+
<span class="description">or click to browse (5MB Max)</span>
|
|
23
|
+
</div>
|
|
24
|
+
<div slot="tip" class="el-upload__tip">
|
|
25
|
+
Category: Maximum 30 characters. Domain: Valid domain value (wildcard domains are acceptable).You can upload up to 1000 domains at a time.
|
|
26
|
+
Categories that are not in the system will be created as new custom categories.
|
|
22
27
|
</div>
|
|
23
|
-
<div class="el-upload__tip" slot="tip">jpg/png files with a size less than 500kb</div>
|
|
24
28
|
</el-upload>
|
|
25
29
|
</div>
|
|
26
30
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
@@ -60,6 +64,7 @@ export default Vue.extend({
|
|
|
60
64
|
if (!isLt2M) {
|
|
61
65
|
this.$message.error('Avatar picture size can not exceed 2MB!');
|
|
62
66
|
}
|
|
67
|
+
|
|
63
68
|
return isJPG && isLt2M;
|
|
64
69
|
},
|
|
65
70
|
},
|
|
@@ -66,6 +66,69 @@
|
|
|
66
66
|
@current-change="handleCurrentChange"
|
|
67
67
|
/>
|
|
68
68
|
</div>
|
|
69
|
+
|
|
70
|
+
<div class="grid flex-column">
|
|
71
|
+
<div class="table-container mb-4">
|
|
72
|
+
<el-table
|
|
73
|
+
ref="multipleTable"
|
|
74
|
+
:data="tableData"
|
|
75
|
+
:default-sort="{ prop: 'date', order: 'descending' }"
|
|
76
|
+
height="360px"
|
|
77
|
+
style="width: 100%"
|
|
78
|
+
@selection-change="handleSelectionChange"
|
|
79
|
+
>
|
|
80
|
+
<el-table-column type="selection" width="16" />
|
|
81
|
+
<el-table-column
|
|
82
|
+
fixed
|
|
83
|
+
prop="date"
|
|
84
|
+
label="Date"
|
|
85
|
+
sortable
|
|
86
|
+
column-key="date"
|
|
87
|
+
:filters="[
|
|
88
|
+
{ text: '2016-05-01', value: '2016-05-01' },
|
|
89
|
+
{ text: '2016-05-02', value: '2016-05-02' },
|
|
90
|
+
{ text: '2016-05-03', value: '2016-05-03' },
|
|
91
|
+
{ text: '2016-05-04', value: '2016-05-04' },
|
|
92
|
+
]"
|
|
93
|
+
:filter-method="filterHandler"
|
|
94
|
+
/>
|
|
95
|
+
<el-table-column prop="name" label="Name" width="60" :show-overflow-tooltip="true" />
|
|
96
|
+
<el-table-column prop="address" label="Address" :formatter="formatter" />
|
|
97
|
+
<el-table-column
|
|
98
|
+
prop="tag"
|
|
99
|
+
label="Tag"
|
|
100
|
+
:filters="[
|
|
101
|
+
{ text: 'Home', value: 'Home' },
|
|
102
|
+
{ text: 'Office', value: 'Office' },
|
|
103
|
+
{ text: 'Potato', value: 'Potato' },
|
|
104
|
+
]"
|
|
105
|
+
:filter-method="filterTag"
|
|
106
|
+
filter-placement="top-start"
|
|
107
|
+
/>
|
|
108
|
+
<el-table-column prop="name" label="Name" width="120" />
|
|
109
|
+
<el-table-column prop="state" label="State" width="120" />
|
|
110
|
+
<el-table-column prop="city" label="City" width="120" />
|
|
111
|
+
<el-table-column prop="address" label="Address" width="300" />
|
|
112
|
+
<el-table-column prop="zip" label="Zip" width="120" />
|
|
113
|
+
<el-table-column label="Operations" width="420" class="items-end">
|
|
114
|
+
<template #default="scope">
|
|
115
|
+
<div class="items-end flex">
|
|
116
|
+
teeee<el-button size="small" @click.native.prevent="deleteRow(scope.$index, tableData)"> Remove </el-button>
|
|
117
|
+
</div>
|
|
118
|
+
</template>
|
|
119
|
+
</el-table-column>
|
|
120
|
+
</el-table>
|
|
121
|
+
</div>
|
|
122
|
+
<el-pagination
|
|
123
|
+
v-model:current-page="currentPage4"
|
|
124
|
+
:page-sizes="[100, 200, 300, 400]"
|
|
125
|
+
:page-size="100"
|
|
126
|
+
layout="total, prev, pager, next, jumper, sizes"
|
|
127
|
+
:total="400"
|
|
128
|
+
@size-change="handleSizeChange"
|
|
129
|
+
@current-change="handleCurrentChange"
|
|
130
|
+
/>
|
|
131
|
+
</div>
|
|
69
132
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
70
133
|
<p class="text-xs">
|
|
71
134
|
<code>
|
|
@@ -15,12 +15,16 @@
|
|
|
15
15
|
:file-list="fileList"
|
|
16
16
|
multiple
|
|
17
17
|
>
|
|
18
|
-
<i class="el-icon-upload"
|
|
18
|
+
<!-- <i class="el-icon-upload" />-->
|
|
19
|
+
<img src="~/assets/images/upload-drop.svg" alt="upload" class="w-[56px] h-[56px]" />
|
|
19
20
|
<div class="el-upload__text">
|
|
20
|
-
<span class="title">
|
|
21
|
-
<span class="description">click to
|
|
21
|
+
<span class="title">Drag CSV here</span>
|
|
22
|
+
<span class="description">or click to browse (5MB Max)</span>
|
|
23
|
+
</div>
|
|
24
|
+
<div slot="tip" class="el-upload__tip">
|
|
25
|
+
Category: Maximum 30 characters. Domain: Valid domain value (wildcard domains are acceptable).You can upload up to 1000 domains at a time.
|
|
26
|
+
Categories that are not in the system will be created as new custom categories.
|
|
22
27
|
</div>
|
|
23
|
-
<div class="el-upload__tip" slot="tip">jpg/png files with a size less than 500kb</div>
|
|
24
28
|
</el-upload>
|
|
25
29
|
</div>
|
|
26
30
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
@@ -60,6 +64,7 @@ export default Vue.extend({
|
|
|
60
64
|
if (!isLt2M) {
|
|
61
65
|
this.$message.error('Avatar picture size can not exceed 2MB!');
|
|
62
66
|
}
|
|
67
|
+
|
|
63
68
|
return isJPG && isLt2M;
|
|
64
69
|
},
|
|
65
70
|
},
|