quasar-factory-lib 0.0.25 → 0.0.27
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/components/TaskNavBar/TaskNavBar.vue.d.ts +1 -0
- package/dist/pages/NavBarPage.vue.d.ts +1 -0
- package/dist/pages/TablePage.vue.d.ts +16 -3
- package/dist/quasar-factory-lib.js +335 -331
- package/dist/quasar-factory-lib.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Table/components/TableSlotBody.vue +1 -1
- package/src/components/Table/components/TableSlotGrid.vue +1 -0
- package/src/components/Table/components/TableSlotHeader.vue +1 -0
- package/src/components/TaskNavBar/TaskNavBar.vue +13 -6
- package/src/components/TaskNavBar/css/taskNavBar.css +1 -1
- package/src/css/app.css +4 -0
- package/src/pages/TablePage.vue +1 -24
package/package.json
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
:key="col.name"
|
|
18
18
|
:class="tableProps.row.rowBgColor || 'bg-main-color'"
|
|
19
19
|
:props="tableProps"
|
|
20
|
-
:style="tablePropsData.row.tdStyle"
|
|
21
20
|
>
|
|
22
21
|
<span
|
|
22
|
+
:style="tablePropsData.row.tdStyle"
|
|
23
23
|
v-if="getColumnValue(col)"
|
|
24
24
|
v-html="tableProps.row[col.name]"
|
|
25
25
|
/>
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<div id="taskNavBar">
|
|
3
3
|
<q-toolbar class="q-toolbar-unset-height">
|
|
4
4
|
<div class="row full-width">
|
|
5
|
-
<div class="col-
|
|
5
|
+
<div class="col-8">
|
|
6
6
|
<img :src="logo" class="logo">
|
|
7
7
|
<span id="mobile-title">{{ title }}</span>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="col-
|
|
10
|
-
<q-icon v-if="showBtnBack" size="md" @click="onClickBtnBack">
|
|
9
|
+
<div class="col-4 text-right">
|
|
10
|
+
<q-icon v-if="showBtnBack" size="md" class="cursor-pointer" @click="onClickBtnBack">
|
|
11
11
|
<svg class="text-h4" xmlns="http://www.w3.org/2000/svg" width="30" height="30"
|
|
12
12
|
viewBox="0 0 23.648 22.836">
|
|
13
13
|
<g id="Arrow_brand" data-name="Arrow brand" transform="translate(0 22.836) rotate(-90)">
|
|
@@ -17,10 +17,15 @@
|
|
|
17
17
|
</g>
|
|
18
18
|
</svg>
|
|
19
19
|
</q-icon>
|
|
20
|
-
<q-icon
|
|
20
|
+
<q-icon
|
|
21
|
+
v-if="showBtnSearch"
|
|
22
|
+
color="primary"
|
|
23
|
+
:name="showIconSearch ?'search' : 'search_off'"
|
|
24
|
+
size="md"
|
|
25
|
+
class="q-ml-md cursor-pointer"
|
|
26
|
+
@click="onClickBtnSearch">
|
|
21
27
|
</q-icon>
|
|
22
|
-
|
|
23
|
-
<q-icon id="menu" size="md" @click="onClickBtnMenu" class="q-ml-md">
|
|
28
|
+
<q-icon id="iconMenu" size="md" @click="onClickBtnMenu" class="q-ml-md cursor-pointer">
|
|
24
29
|
<svg xmlns="http://www.w3.org/2000/svg" width="30.448" height="28.247" viewBox="0 0 30.448 28.247">
|
|
25
30
|
<g id="Componente_11_3" data-name="Componente 11 – 3" transform="translate(0 1)">
|
|
26
31
|
<path id="Caminho_702" data-name="Caminho 702" d="M38.053,40.174H24"
|
|
@@ -53,6 +58,7 @@ export default defineComponent({
|
|
|
53
58
|
data() {
|
|
54
59
|
return {
|
|
55
60
|
date,
|
|
61
|
+
showIconSearch: true,
|
|
56
62
|
rightDrawerOpen: false
|
|
57
63
|
}
|
|
58
64
|
},
|
|
@@ -81,6 +87,7 @@ export default defineComponent({
|
|
|
81
87
|
console.log('menu')
|
|
82
88
|
},
|
|
83
89
|
onClickBtnSearch() {
|
|
90
|
+
this.showIconSearch = !this.showIconSearch
|
|
84
91
|
this.$emit('onClickBtnSearch')
|
|
85
92
|
console.log('search')
|
|
86
93
|
},
|
package/src/css/app.css
CHANGED
package/src/pages/TablePage.vue
CHANGED
|
@@ -23,30 +23,12 @@
|
|
|
23
23
|
@on-update-customized-checkbox-value="onUpdateCustomizedCheckboxValue"
|
|
24
24
|
@on-click-button="setItemNotFound"
|
|
25
25
|
/>
|
|
26
|
-
<q-dialog v-model="showDialog" >
|
|
27
|
-
<div>
|
|
28
|
-
<q-btn @click="close">Close</q-btn>
|
|
29
|
-
<Table
|
|
30
|
-
:rows="rows"
|
|
31
|
-
:columns="columns"
|
|
32
|
-
:visible-columns="visibleColumns"
|
|
33
|
-
:small-device="false"
|
|
34
|
-
:store="store"
|
|
35
|
-
:table-style="tableStyle"
|
|
36
|
-
:show-skeleton="false"
|
|
37
|
-
:selection-type="'multiple'"
|
|
38
|
-
:filter-method="filterMethod"
|
|
39
|
-
:filter-computed="filter"
|
|
40
|
-
/>
|
|
41
|
-
</div>
|
|
42
|
-
</q-dialog>
|
|
43
26
|
</div>
|
|
44
27
|
</q-page>
|
|
45
28
|
</q-page-container>
|
|
46
29
|
</template>
|
|
47
30
|
<script lang="ts">
|
|
48
31
|
import Table from '../components/Table/Table.vue'
|
|
49
|
-
// import rows from '../testData.js'
|
|
50
32
|
import setTableHeight from '../components/Table/utils/setTableHeight'
|
|
51
33
|
import infiniteScroll from '../components/Table/utils/infiniteScroll'
|
|
52
34
|
import FilterMethod from '../components/Table/utils/filterMethod'
|
|
@@ -162,6 +144,7 @@ export default {
|
|
|
162
144
|
rows: [],
|
|
163
145
|
rowsData: [
|
|
164
146
|
{
|
|
147
|
+
tdStyle: "color: #597765 !important; font-weight: bold;",
|
|
165
148
|
name: 'Frozen Yogurt',
|
|
166
149
|
booleanIcon: true,
|
|
167
150
|
available: true,
|
|
@@ -329,12 +312,6 @@ export default {
|
|
|
329
312
|
},
|
|
330
313
|
setItemNotFound (rows: object []) {
|
|
331
314
|
console.log(rows, 'onClickButton')
|
|
332
|
-
this.showDialog = true
|
|
333
|
-
this.store.lastFilterValue = this.store.filterValue
|
|
334
|
-
},
|
|
335
|
-
close () {
|
|
336
|
-
this.showDialog= false
|
|
337
|
-
this.store.filterValue = this.store.lastFilterValue
|
|
338
315
|
}
|
|
339
316
|
}
|
|
340
317
|
}
|