+
● Accordion
● Panel
● Fieldset
● FlexGrid
diff --git a/src/assets/styles/primevue.css b/src/assets/styles/primevue.css
index 029daab34..cda1cdfb8 100644
--- a/src/assets/styles/primevue.css
+++ b/src/assets/styles/primevue.css
@@ -1,4 +1,5 @@
@import '../../components/common/Common.css';
+@import '../../components/accordion/Accordion.css';
@import '../../components/inputtext/InputText.css';
@import '../../components/listbox/ListBox.css';
@import '../../components/button/Button.css';
diff --git a/src/components/accordion/Accordion.css b/src/components/accordion/Accordion.css
new file mode 100644
index 000000000..abc74fdd7
--- /dev/null
+++ b/src/components/accordion/Accordion.css
@@ -0,0 +1,56 @@
+.p-accordion {
+ width: 100%;
+}
+
+.p-accordion .p-accordion-header {
+ cursor: pointer;
+ position: relative;
+ margin-top: 1px;
+ zoom: 1;
+}
+
+.p-accordion .p-accordion-header a {
+ display: block;
+ padding: .5em;
+}
+
+.p-accordion .p-accordion-toggle-icon,
+.p-accordion .p-accordion-header-text {
+ vertical-align: middle;
+}
+
+.p-accordion .p-accordion-header a > span {
+ display: inline-block;
+ vertical-align: middle;
+}
+
+.p-accordion .p-accordion-content {
+ padding: 1em;
+ border-top: 0;
+ zoom: 1;
+}
+
+.p-accordion .p-accordion-header.p-disabled,
+.p-accordion .p-accordion-header.p-disabled a {
+ cursor: default;
+}
+
+.p-accordion-content-wrapper-enter,
+.p-accordion-content-wrapper-leave-to {
+ max-height: 0;
+}
+
+.p-accordion-content-wrapper-enter-to,
+.p-accordion-content-wrapper-leave {
+ max-height: 1000px;
+}
+
+.p-accordion-content-wrapper-leave-active {
+ overflow: hidden;
+ transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
+}
+
+.p-accordion-content-wrapper-enter-active {
+ overflow: hidden;
+ transition: max-height 1s ease-in-out;
+}
\ No newline at end of file
diff --git a/src/components/accordion/Accordion.vue b/src/components/accordion/Accordion.vue
new file mode 100644
index 000000000..25b232aaa
--- /dev/null
+++ b/src/components/accordion/Accordion.vue
@@ -0,0 +1,70 @@
+
\ No newline at end of file
diff --git a/src/components/accordion/AccordionTab.vue b/src/components/accordion/AccordionTab.vue
new file mode 100644
index 000000000..affc7247b
--- /dev/null
+++ b/src/components/accordion/AccordionTab.vue
@@ -0,0 +1,22 @@
+
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index 9c5fd43ac..f5c510d98 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,6 +1,8 @@
import Vue from 'vue';
import App from './App.vue';
import router from './router';
+import Accordion from './components/accordion/Accordion';
+import AccordionTab from './components/accordion/AccordionTab';
import Button from './components/button/Button';
import InputText from './components/inputtext/InputText';
import Fieldset from './components/fieldset/Fieldset';
@@ -17,11 +19,13 @@ import 'primeicons/primeicons.css';
Vue.config.productionTip = false;
-Vue.component('p-inputtext', InputText);
+Vue.component('p-accordion', Accordion);
+Vue.component('p-accordionTab', AccordionTab);
Vue.component('p-button', Button);
+Vue.component('p-inputtext', InputText);
Vue.component('p-listBox', ListBox);
-Vue.component('p-panel', Panel);
Vue.component('p-fieldset', Fieldset);
+Vue.component('p-panel', Panel);
Vue.component('p-tabView', TabView);
Vue.component('p-tabPanel', TabPanel);
Vue.component('p-textarea', Textarea);
diff --git a/src/router.js b/src/router.js
index e8b835ec5..c094eca25 100644
--- a/src/router.js
+++ b/src/router.js
@@ -11,6 +11,11 @@ export default new Router({
name: 'home',
component: Home
},
+ {
+ path: '/accordion',
+ name: 'accordion',
+ component: () => import('./views/accordion/AccordionDemo.vue')
+ },
{
path: '/button',
name: 'button',
diff --git a/src/views/accordion/AccordionDemo.vue b/src/views/accordion/AccordionDemo.vue
new file mode 100644
index 000000000..62528cb5b
--- /dev/null
+++ b/src/views/accordion/AccordionDemo.vue
@@ -0,0 +1,51 @@
+
+
+
+
+
AccordionPanel
+
AccordionPanel groups a collection of contents in tabs.
+
+
+
+
+
Default
+
+
+ The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war,
+ but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is
+ just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
+
+
+ Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall,
+ deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills
+ his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy.
+
+
+ The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal
+ interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father.
+ A decade earlier, he gave custody of his two children to Kay, who has since remarried.
+
+
+
+
Multiple
+
+
+ The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war,
+ but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is
+ just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
+
+
+ Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall,
+ deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills
+ his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy.
+
+
+ The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal
+ interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father.
+ A decade earlier, he gave custody of his two children to Kay, who has since remarried.
+
+
+
+
+
+
\ No newline at end of file