wl-design-mobile 0.8.13 → 0.8.15
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 +6 -6
- package/api/doc.js +25 -25
- package/api/x1.js +56 -56
- package/btn/components/lambo-info-btn.vue +123 -123
- package/btn/components/lambo-primary-btn.vue +117 -117
- package/btn/components/lambo-text-btn.vue +116 -116
- package/btn/lambo-btn-divide.vue +35 -35
- package/btn/lambo-btn-group.vue +46 -46
- package/btn/lambo-btn-split-line.vue +41 -41
- package/btn/lambo-btn.vue +68 -68
- package/btn/lambo-extend-btn.vue +121 -121
- package/btn/lambo-icon-btn.vue +82 -82
- package/card-item/card-row-icon.vue +71 -71
- package/card-item/filtrate-row.vue +73 -73
- package/card-item/lambo-card-footer.vue +40 -40
- package/card-item/lambo-card-head.vue +66 -66
- package/card-item/lambo-card-row.vue +59 -59
- package/collapse/lambo-collapse.vue +93 -93
- package/config/config.js +14 -14
- package/detail/lambo-detail-grid.vue +58 -58
- package/detail/lambo-detail-row.vue +59 -59
- package/doc/file/compoents/lambo-file-list.vue +42 -42
- package/doc/file/compoents/lambo-file-row.vue +77 -77
- package/doc/file/lambo-file-upload-collapse.vue +107 -107
- package/doc/file-type/file-type.js +286 -286
- package/doc/img/comonents/lambo-img-grid.vue +109 -109
- package/doc/img/lambo-img-upload-collapse.vue +107 -109
- package/doc/img/styles/css/index.css +3 -3
- package/edit/list/Lambo-edit-list.vue +87 -87
- package/edit/list/lambo-edit-card-group.vue +100 -100
- package/edit/list/styles/css/index.css +39 -39
- package/edit/select/lambo-edit-date-range.vue +147 -147
- package/edit/select/lambo-edit-date-time.vue +122 -122
- package/edit/select/lambo-edit-date.vue +120 -120
- package/edit/select/lambo-edit-input-textarea.vue +91 -91
- package/edit/select/lambo-edit-input.vue +91 -91
- package/edit/select/lambo-edit-multi-select.vue +168 -168
- package/edit/select/lambo-edit-search-single-select.vue +186 -186
- package/edit/select/lambo-edit-single-select.vue +162 -162
- package/edit/select/styles/css/index.css +133 -133
- package/flow/approval/flow-approval.vue +552 -552
- package/flow/comps/flow-attachment-list.vue +230 -230
- package/flow/comps/flow-attachment-modal.vue +194 -194
- package/flow/comps/flow-copy-users.vue +358 -358
- package/flow/comps/flow-node-card.vue +150 -150
- package/flow/comps/flow-node-header.vue +172 -172
- package/flow/comps/flow-util.js +156 -156
- package/flow/comps/icons/approved.svg +11 -11
- package/flow/comps/icons/canceled.svg +11 -11
- package/flow/comps/icons/rejected.svg +11 -11
- package/flow/comps/icons/underway.svg +11 -11
- package/flow/detail/flow-detail.vue +467 -467
- package/flow/index.js +51 -51
- package/flow/lambo-flow-detail.vue +912 -912
- package/flow/lambo-flow-edit.vue +15 -15
- package/flow/submit/flow-submit.vue +383 -383
- package/icon/lambo-required-red-star.vue +47 -47
- package/icon/lambo-vector-icon.vue +71 -71
- package/list/lambo-list.vue +412 -294
- package/nav/lambo-top-nav.vue +81 -81
- package/order/comps/icons/approved.svg +10 -10
- package/order/comps/icons/underway.svg +10 -10
- package/order/comps/order-attachment-list.vue +228 -228
- package/order/comps/order-attachment-modal.vue +194 -194
- package/order/comps/order-node-card.vue +126 -126
- package/order/comps/order-node-header.vue +133 -133
- package/order/comps/order-util.js +132 -132
- package/order/detail/order-detail.vue +432 -432
- package/order/handle/order-handle.vue +517 -517
- package/order/index.js +33 -33
- package/package.json +1 -1
- package/search/lambo-date-range-page.vue +196 -196
- package/search/lambo-date-range.vue +111 -111
- package/search/lambo-date.vue +105 -105
- package/search/lambo-input.vue +74 -74
- package/search/lambo-multi-select.vue +129 -129
- package/search/lambo-org-select-page.vue +109 -109
- package/search/lambo-search-box.vue +61 -61
- package/search/lambo-search-single-select.vue +152 -152
- package/search/lambo-single-select.vue +123 -123
- package/search/lambo-week-date-select.vue +521 -521
- package/search/styles/css/index.css +138 -138
- package/styles/base.less +77 -77
- package/styles/components/btn.less +7 -7
- package/styles/components/search.less +33 -33
- package/styles/components/tag.less +181 -181
- package/styles/index.less +4 -4
- package/table/lambo-ag-table.vue +228 -227
- package/tag/lambo-tag.vue +23 -23
- package/title/lambo-title1.vue +151 -151
- package/title/lambo-title2.vue +37 -37
- package/title/lambo-title3.vue +77 -77
- package/util/assist.js +43 -43
- package/util/axios/cacheconf.js +19 -19
- package/util/axios/index.js +11 -11
- package/util/axios/interceptors.js +101 -101
- package/util/bus.js +4 -4
- package/util/jssdk-sczy.js +104 -104
- package/util/jssdk.js +565 -565
- package/util/math.js +76 -76
- package/util/token.js +36 -36
package/table/lambo-ag-table.vue
CHANGED
|
@@ -1,227 +1,228 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="table-container">
|
|
3
|
-
<div class="ag-theme-balham" :style="{width: '100%', height: tableHeight}">
|
|
4
|
-
<ag-grid-vue
|
|
5
|
-
:columnDefs="columns"
|
|
6
|
-
:rowData="rowData"
|
|
7
|
-
:pinnedBottomRowData="sumData"
|
|
8
|
-
:defaultColDef="defaultColDef"
|
|
9
|
-
@grid-ready="onGridReady"
|
|
10
|
-
@sortChanged="onSortChanged"
|
|
11
|
-
@cell-clicked="onCellClicked"
|
|
12
|
-
:row-selection="isMultiSelect === true ? 'multiple' : false"
|
|
13
|
-
:rowMultiSelectWithClick="isMultiSelect"
|
|
14
|
-
:suppressCellSelection="isMultiSelect"
|
|
15
|
-
class="ag-grid-tb"
|
|
16
|
-
:overlay-no-rows-template="overlayNoRowsTemplate"
|
|
17
|
-
></ag-grid-vue>
|
|
18
|
-
</div>
|
|
19
|
-
<van-pagination
|
|
20
|
-
v-if="isPage"
|
|
21
|
-
v-model="currentPage"
|
|
22
|
-
:total-items="total"
|
|
23
|
-
:items-per-page="limit"
|
|
24
|
-
@change="onPageChanged"
|
|
25
|
-
mode="simple"
|
|
26
|
-
class="vant-page-comp">
|
|
27
|
-
<template #prev-text>
|
|
28
|
-
<van-icon name="arrow-left"/>
|
|
29
|
-
</template>
|
|
30
|
-
<template #next-text>
|
|
31
|
-
<van-icon name="arrow"/>
|
|
32
|
-
</template>
|
|
33
|
-
</van-pagination>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
<script>
|
|
37
|
-
import 'ag-grid-community/styles/ag-grid.css'
|
|
38
|
-
import 'ag-grid-community/styles/ag-theme-balham.css'
|
|
39
|
-
/**
|
|
40
|
-
* 打包时候把这一行放开,下面的一行注释掉
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* 本地运行的时候,把这一行放开,上面的一行注释掉
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
let
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
this.searchParams.
|
|
141
|
-
this.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
this.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
this.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
let
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
this.
|
|
208
|
-
this.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="table-container">
|
|
3
|
+
<div class="ag-theme-balham" :style="{width: '100%', height: tableHeight}">
|
|
4
|
+
<ag-grid-vue
|
|
5
|
+
:columnDefs="columns"
|
|
6
|
+
:rowData="rowData"
|
|
7
|
+
:pinnedBottomRowData="sumData"
|
|
8
|
+
:defaultColDef="defaultColDef"
|
|
9
|
+
@grid-ready="onGridReady"
|
|
10
|
+
@sortChanged="onSortChanged"
|
|
11
|
+
@cell-clicked="onCellClicked"
|
|
12
|
+
:row-selection="isMultiSelect === true ? 'multiple' : false"
|
|
13
|
+
:rowMultiSelectWithClick="isMultiSelect"
|
|
14
|
+
:suppressCellSelection="isMultiSelect"
|
|
15
|
+
class="ag-grid-tb"
|
|
16
|
+
:overlay-no-rows-template="overlayNoRowsTemplate"
|
|
17
|
+
></ag-grid-vue>
|
|
18
|
+
</div>
|
|
19
|
+
<van-pagination
|
|
20
|
+
v-if="isPage"
|
|
21
|
+
v-model="currentPage"
|
|
22
|
+
:total-items="total"
|
|
23
|
+
:items-per-page="limit"
|
|
24
|
+
@change="onPageChanged"
|
|
25
|
+
mode="simple"
|
|
26
|
+
class="vant-page-comp">
|
|
27
|
+
<template #prev-text>
|
|
28
|
+
<van-icon name="arrow-left"/>
|
|
29
|
+
</template>
|
|
30
|
+
<template #next-text>
|
|
31
|
+
<van-icon name="arrow"/>
|
|
32
|
+
</template>
|
|
33
|
+
</van-pagination>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
<script>
|
|
37
|
+
import 'ag-grid-community/styles/ag-grid.css'
|
|
38
|
+
import 'ag-grid-community/styles/ag-theme-balham.css'
|
|
39
|
+
/**
|
|
40
|
+
* 打包时候把这一行放开,下面的一行注释掉
|
|
41
|
+
* import {AgGridVue} from 'ag-grid-vue/lib/main.cjs.js'
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 本地运行的时候,把这一行放开,上面的一行注释掉
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
import {AgGridVue} from 'ag-grid-vue'
|
|
49
|
+
import {Toast} from "vant"
|
|
50
|
+
import {axios} from "../util/axios"
|
|
51
|
+
|
|
52
|
+
// 合计行标志
|
|
53
|
+
const TOTAL_ROW_FIELD_KEY = "total_row"
|
|
54
|
+
// 是否下钻标志
|
|
55
|
+
const PAGE_DRILL_FLAG_KEY = "drill"
|
|
56
|
+
|
|
57
|
+
export default {
|
|
58
|
+
name: 'LamboAgTable',
|
|
59
|
+
components: {AgGridVue},
|
|
60
|
+
props: {
|
|
61
|
+
tableHeight: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: '381px', // 默认10行的高度
|
|
64
|
+
},
|
|
65
|
+
url: {
|
|
66
|
+
type: String,
|
|
67
|
+
required: true
|
|
68
|
+
},
|
|
69
|
+
columns: {
|
|
70
|
+
type: Array,
|
|
71
|
+
required: true
|
|
72
|
+
},
|
|
73
|
+
searchParams: {
|
|
74
|
+
type: Object
|
|
75
|
+
},
|
|
76
|
+
isPage: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: false
|
|
79
|
+
},
|
|
80
|
+
isMultiSelect: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: false
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
data() {
|
|
86
|
+
return {
|
|
87
|
+
rowData: null,
|
|
88
|
+
sumData: null,
|
|
89
|
+
defaultColDef: {
|
|
90
|
+
lockPosition: true,
|
|
91
|
+
editable: false,
|
|
92
|
+
sortable: true,
|
|
93
|
+
autoHeight: true,
|
|
94
|
+
resizable: true,
|
|
95
|
+
filter: true
|
|
96
|
+
},
|
|
97
|
+
currentPage: 1,
|
|
98
|
+
offset: 0,
|
|
99
|
+
limit: 10,
|
|
100
|
+
total: 0,
|
|
101
|
+
gridApi: null,
|
|
102
|
+
overlayNoRowsTemplate:'<span>没有可显示的数据</span>',
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
methods: {
|
|
106
|
+
onGridReady(params) {
|
|
107
|
+
this.gridApi = params.api
|
|
108
|
+
},
|
|
109
|
+
columnsFilter() {
|
|
110
|
+
if (this.columns && this.columns.length > 0) {
|
|
111
|
+
for (const item of this.columns) {
|
|
112
|
+
if (item && item.hasOwnProperty("field")) {
|
|
113
|
+
item['comparator'] = this.preventComparator
|
|
114
|
+
}
|
|
115
|
+
if (item.hasOwnProperty(PAGE_DRILL_FLAG_KEY) && item[PAGE_DRILL_FLAG_KEY] === '1') {
|
|
116
|
+
item.cellStyle= (params) => {
|
|
117
|
+
console.log("lambo-ag-grid columnsFilter params:", params)
|
|
118
|
+
if (params.hasOwnProperty("data") && !(params.data.hasOwnProperty(TOTAL_ROW_FIELD_KEY) && params.data[TOTAL_ROW_FIELD_KEY] === '1')) {
|
|
119
|
+
return {color: '#0070D2'}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
preventComparator(v1, v2) {
|
|
127
|
+
return 0;
|
|
128
|
+
},
|
|
129
|
+
onSortChanged(event) {
|
|
130
|
+
console.log("lambo-ag-table onSortChanged event:", event)
|
|
131
|
+
if (event && event.hasOwnProperty("columns") && event.columns) {
|
|
132
|
+
let sortColumns = event.columns
|
|
133
|
+
if (sortColumns && sortColumns.length > 0) {
|
|
134
|
+
let sortCol = sortColumns[sortColumns.length - 1]
|
|
135
|
+
if (sortCol && sortCol.hasOwnProperty("colId") && sortCol.hasOwnProperty("sort")) {
|
|
136
|
+
let sortField = sortCol.colId
|
|
137
|
+
let sortType = sortCol.sort
|
|
138
|
+
console.log("lambo-ag-table onSortChanged sortField:" + sortField + ",sortType:" + sortType)
|
|
139
|
+
if (sortField && (sortType === 'desc' || sortType === 'asc')) {
|
|
140
|
+
this.searchParams.sort = sortField
|
|
141
|
+
this.searchParams.order = sortType
|
|
142
|
+
this.dataRefresh()
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
onPageChanged() {
|
|
149
|
+
this.offset = (this.currentPage - 1) * this.limit
|
|
150
|
+
this.dataRefresh()
|
|
151
|
+
},
|
|
152
|
+
dataRefresh() {
|
|
153
|
+
let params = {}
|
|
154
|
+
if (this.isPage === true) {
|
|
155
|
+
params = {offset: this.offset, limit: this.limit, ...this.searchParams}
|
|
156
|
+
} else {
|
|
157
|
+
params = {...this.searchParams}
|
|
158
|
+
}
|
|
159
|
+
console.log("lambo-ag-table onLoad params:", params)
|
|
160
|
+
axios.get(this.url, {params}).then(res => {
|
|
161
|
+
console.log("lambo-ag-table onLoad dataRefresh res:", res)
|
|
162
|
+
if (res && res.code === 1) {
|
|
163
|
+
let dataObj = res.data
|
|
164
|
+
this.rowData = dataObj.rows || []
|
|
165
|
+
this.sumData = dataObj.sum || []
|
|
166
|
+
|
|
167
|
+
if (this.isPage === true) {
|
|
168
|
+
this.total = dataObj.total || 0
|
|
169
|
+
}
|
|
170
|
+
} else {
|
|
171
|
+
console.error("lambo-ag-table onLoad 查询[" + this.url + "]数据失败", res)
|
|
172
|
+
Toast.fail("查询[" + this.url + "]数据失败:" + res.data || '')
|
|
173
|
+
}
|
|
174
|
+
}).catch(err => {
|
|
175
|
+
console.error("lambo-ag-table onLoad 查询[" + this.title + "]异常:", err)
|
|
176
|
+
Toast.fail("查询[" + this.url + "]数据异常")
|
|
177
|
+
})
|
|
178
|
+
},
|
|
179
|
+
getSelectedRows() {
|
|
180
|
+
let selData = []
|
|
181
|
+
if (this.gridApi) {
|
|
182
|
+
const selectedNodes = this.gridApi.getSelectedNodes()
|
|
183
|
+
if (selectedNodes) {
|
|
184
|
+
selData = selectedNodes.map(node => node.data)
|
|
185
|
+
}
|
|
186
|
+
console.log('lambo-ag-grid getSelectedRows:', selData);
|
|
187
|
+
}
|
|
188
|
+
return selData
|
|
189
|
+
},
|
|
190
|
+
onCellClicked(event) {
|
|
191
|
+
console.log('lambo-ag-grid onCellClicked event:', event);
|
|
192
|
+
if (event && event.hasOwnProperty("colDef") && event.colDef.hasOwnProperty("field") && event.hasOwnProperty("data")) {
|
|
193
|
+
let detailField = event.colDef.field
|
|
194
|
+
let rowData = event.data
|
|
195
|
+
if (!(rowData.hasOwnProperty(TOTAL_ROW_FIELD_KEY) && rowData[TOTAL_ROW_FIELD_KEY] === '1')) {
|
|
196
|
+
this.$emit('on-cell-click', detailField, event.value, rowData);
|
|
197
|
+
}
|
|
198
|
+
} else {
|
|
199
|
+
console.error("lambo-ag-grid onCellClicked event异常无法点击")
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
watch: {
|
|
204
|
+
searchParams: {
|
|
205
|
+
handler: function (val, oldVal) {
|
|
206
|
+
console.log(`lambo-ag-table watch searchParams val,oldVal:`, {val, oldVal}, `val===oldVal:`, val === oldVal)
|
|
207
|
+
this.rowData = []
|
|
208
|
+
this.sumData = []
|
|
209
|
+
this.dataRefresh()
|
|
210
|
+
},
|
|
211
|
+
deep: true
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
created() {
|
|
215
|
+
this.columnsFilter()
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
</script>
|
|
219
|
+
<style scoped>
|
|
220
|
+
.ag-grid-tb {
|
|
221
|
+
height: 100%;
|
|
222
|
+
width: 100%;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/deep/ .vant-page-comp .van-pagination__item {
|
|
226
|
+
color: #0070D2
|
|
227
|
+
}
|
|
228
|
+
</style>
|
package/tag/lambo-tag.vue
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<van-tag :class="tagClass">{{ title }}</van-tag>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
<script>
|
|
7
|
-
export default {
|
|
8
|
-
name: "LamboTag",
|
|
9
|
-
props: {
|
|
10
|
-
tagClass: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: "tag-blue-half-opacity"
|
|
13
|
-
},
|
|
14
|
-
title: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: ""
|
|
17
|
-
},
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
<style scoped>
|
|
22
|
-
|
|
23
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<van-tag :class="tagClass">{{ title }}</van-tag>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
<script>
|
|
7
|
+
export default {
|
|
8
|
+
name: "LamboTag",
|
|
9
|
+
props: {
|
|
10
|
+
tagClass: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "tag-blue-half-opacity"
|
|
13
|
+
},
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
<style scoped>
|
|
22
|
+
|
|
23
|
+
</style>
|