1.0.41 • Published 2 years ago
@timus-networks/filter v1.0.41
Timus Filter - Nuxt Module
TnFilter Vue bileşeni, kullanıcılara gelişmiş bir filtreleme arayüzü sağlar. Bu bileşen, belirli kurallara göre bir veri kümesini filtrelemek için kullanılabilir ve JQL (Jira Query Language) formatında bir çıktı üretir.
Installation
First install package
npm i @timus-networks/tableAdd package to
moduleproperty innuxt.config.jsfile
{
"modules": ["@nuxtjs/axios", ["@timus-networks/filter", { "client": false, "typescript": false }]]
}- You can manually set the
clientandtypescriptsupport properties. - If you render this component on the client side, set the value to
true. - If you prefer to use
typescriptduring development, settypescripttotrue. - You can also set the
namespaceto define the module path's position within the .nuxt folder.
Kullanım
TnFilter bileşeni, kullanıcının belirttiği filtreleme kurallarına göre JQL formatında bir sorgu string'i üretir.
Props:
fields: Filtrelenen alanların listesi.filters: Filtreleme kurallarının listesi.
Örnek Kullanım:
<template>
<div>
<TnFilter :fields="['name', 'age', 'city']" :filters="filters" @emit="handleEmit" />
<!-- Filtrelenen sonuçları JQL formatında göstermek için -->
<pre>{{ jqlQuery }}</pre>
</div>
</template>
<script>
export default {
data() {
return {
jqlQuery: '',
};
},
methods: {
// Bu fonksiyon JQL formatında bir string alır.
handleEmit(jql) {
this.jqlQuery = jql;
},
},
};
</script>Katkıda Bulunanlar
Bu projeye katkıda bulunmak için lütfen CONTRIBUTING.md dosyasına başvurun.
Lisans
Bu proje MIT lisansı altında lisanslanmıştır. Daha fazla bilgi için LICENCE.md dosyasına başvurun.