refactor
parent
1cec9e9959
commit
39fd8a0b95
|
@ -22,6 +22,7 @@ With PRO Support: 1 hour
|
||||||
Please demonstrate your case at CodeSandbox by using the issue template below. Issues without a test case have much less possibility to be reviewed in detail and assisted.
|
Please demonstrate your case at CodeSandbox by using the issue template below. Issues without a test case have much less possibility to be reviewed in detail and assisted.
|
||||||
|
|
||||||
https://codesandbox.io/s/primevue-issue-template-v3-5tlbl
|
https://codesandbox.io/s/primevue-issue-template-v3-5tlbl
|
||||||
|
https://codesandbox.io/s/github/cagataycivici/primevue-issue-template-v2
|
||||||
|
|
||||||
**Current behavior**
|
**Current behavior**
|
||||||
<!-- Describe how the bug manifests. -->
|
<!-- Describe how the bug manifests. -->
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
dataKey="id" v-model:filters="filters1" filterDisplay="menu" :loading="loading1" responsiveLayout="scroll"
|
dataKey="id" v-model:filters="filters1" filterDisplay="menu" :loading="loading1" responsiveLayout="scroll"
|
||||||
:globalFilterFields="['name','country.name','representative.name','balance','status']">
|
:globalFilterFields="['name','country.name','representative.name','balance','status']">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex justify-content-center">
|
<div class="flex justify-content-between">
|
||||||
<Button type="button" icon="pi pi-filter-slash" label="Clear" class="p-button-outlined" @click="clearFilter1()"/>
|
<Button type="button" icon="pi pi-filter-slash" label="Clear" class="p-button-outlined" @click="clearFilter1()"/>
|
||||||
<span class="p-input-icon-left">
|
<span class="p-input-icon-left">
|
||||||
<i class="pi pi-search" />
|
<i class="pi pi-search" />
|
||||||
|
@ -261,7 +261,7 @@ export default {
|
||||||
dataKey="id" v-model:filters="filters1" filterDisplay="menu" :loading="loading1" responsiveLayout="scroll"
|
dataKey="id" v-model:filters="filters1" filterDisplay="menu" :loading="loading1" responsiveLayout="scroll"
|
||||||
:globalFilterFields="['name','country.name','representative.name','balance','status']">
|
:globalFilterFields="['name','country.name','representative.name','balance','status']">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex justify-content-center">
|
<div class="flex justify-content-between">
|
||||||
<Button type="button" icon="pi pi-filter-slash" label="Clear" class="p-button-outlined" @click="clearFilter1()"/>
|
<Button type="button" icon="pi pi-filter-slash" label="Clear" class="p-button-outlined" @click="clearFilter1()"/>
|
||||||
<span class="p-input-icon-left">
|
<span class="p-input-icon-left">
|
||||||
<i class="pi pi-search" />
|
<i class="pi pi-search" />
|
||||||
|
@ -602,7 +602,7 @@ export default {
|
||||||
dataKey="id" v-model:filters="filters1" filterDisplay="menu" :loading="loading1" responsiveLayout="scroll"
|
dataKey="id" v-model:filters="filters1" filterDisplay="menu" :loading="loading1" responsiveLayout="scroll"
|
||||||
:globalFilterFields="['name','country.name','representative.name','balance','status']">
|
:globalFilterFields="['name','country.name','representative.name','balance','status']">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex justify-content-center">
|
<div class="flex justify-content-between">
|
||||||
<Button type="button" icon="pi pi-filter-slash" label="Clear" class="p-button-outlined" @click="clearFilter1()"/>
|
<Button type="button" icon="pi pi-filter-slash" label="Clear" class="p-button-outlined" @click="clearFilter1()"/>
|
||||||
<span class="p-input-icon-left">
|
<span class="p-input-icon-left">
|
||||||
<i class="pi pi-search" />
|
<i class="pi pi-search" />
|
||||||
|
@ -957,7 +957,7 @@ export default {
|
||||||
data-key="id" v-model:filters="filters1" filter-display="menu" :loading="loading1" responsive-layout="scroll"
|
data-key="id" v-model:filters="filters1" filter-display="menu" :loading="loading1" responsive-layout="scroll"
|
||||||
:global-filter-fields="['name','country.name','representative.name','balance','status']">
|
:global-filter-fields="['name','country.name','representative.name','balance','status']">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex justify-content-center">
|
<div class="flex justify-content-between">
|
||||||
<p-button type="button" icon="pi pi-filter-slash" label="Clear" class="p-button-outlined" @click="clearFilter1()"></p-button>
|
<p-button type="button" icon="pi pi-filter-slash" label="Clear" class="p-button-outlined" @click="clearFilter1()"></p-button>
|
||||||
<span class="p-input-icon-left">
|
<span class="p-input-icon-left">
|
||||||
<i class="pi pi-search"></i>
|
<i class="pi pi-search"></i>
|
||||||
|
|
|
@ -32,8 +32,8 @@ export default class CustomerService {
|
||||||
}
|
}
|
||||||
|
|
||||||
getCustomers(params) {
|
getCustomers(params) {
|
||||||
const queryParams = Object.keys(params).map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k])).join('&');
|
const queryParams = params ? Object.keys(params).map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k])).join('&') : '';
|
||||||
return fetch('https://www.primefaces.org/demo/data/customers?' + queryParams).then(res => res.json())
|
return fetch('https://www.primefaces.org/data/customers?' + queryParams).then(res => res.json())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
|
|
Loading…
Reference in New Issue