diff --git a/exports/scrollpanel.d.ts b/exports/scrollpanel.d.ts new file mode 100644 index 000000000..d71fe46c2 --- /dev/null +++ b/exports/scrollpanel.d.ts @@ -0,0 +1 @@ +export * from './components/scrollpanel/ScrollPanel'; \ No newline at end of file diff --git a/exports/scrollpanel.js b/exports/scrollpanel.js new file mode 100644 index 000000000..61c699d49 --- /dev/null +++ b/exports/scrollpanel.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/scrollpanel/ScrollPanel.vue'); + \ No newline at end of file diff --git a/public/index.html b/public/index.html index 4599eb1bf..dbdac3ef6 100644 --- a/public/index.html +++ b/public/index.html @@ -2,12 +2,6 @@ - - diff --git a/src/App.vue b/src/App.vue index 80cb09b5e..ede0731fb 100755 --- a/src/App.vue +++ b/src/App.vue @@ -49,12 +49,6 @@ export default { $route: { immediate: true, handler(to) { - let route = window.location.href.split('/#')[1]; - if (to.path === route) { - window['gtag']('config', 'UA-93461466-1', { - 'page_path': '/primevue' + to.path - }); - } this.sidebarActive = false; this.$toast.removeAllGroups(); } diff --git a/src/AppMenu.vue b/src/AppMenu.vue index 0e717b78e..04a5a55aa 100755 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -152,6 +152,7 @@ Deferred Fieldset Panel + ScrollPanel TabView Toolbar diff --git a/src/assets/styles/app/_content.scss b/src/assets/styles/app/_content.scss index 86f7972b9..1d8031952 100644 --- a/src/assets/styles/app/_content.scss +++ b/src/assets/styles/app/_content.scss @@ -93,6 +93,10 @@ text-decoration: none; color: $linkColor; font-weight: 500; + + &:hover { + text-decoration: underline; + } } p { @@ -152,6 +156,10 @@ transition: background-color .2s, box-shadow .2s; box-shadow: 0 0 0 0.2em $focusBorderColor; } + + &:hover { + text-decoration: none; + } } &.p-highlight a, @@ -180,6 +188,10 @@ text-decoration: none; color: $linkColor; font-weight: 500; + + &:hover { + text-decoration: underline; + } } } } diff --git a/src/components/scrollpanel/ScrollPanel.d.ts b/src/components/scrollpanel/ScrollPanel.d.ts new file mode 100644 index 000000000..9ac96c88c --- /dev/null +++ b/src/components/scrollpanel/ScrollPanel.d.ts @@ -0,0 +1,7 @@ +import Vue, {VNode} from 'vue'; + +export declare class ScrollPanel extends Vue { + $slots: { + '': VNode[]; + } +} \ No newline at end of file diff --git a/src/components/scrollpanel/ScrollPanel.vue b/src/components/scrollpanel/ScrollPanel.vue new file mode 100644 index 000000000..e6bbf980c --- /dev/null +++ b/src/components/scrollpanel/ScrollPanel.vue @@ -0,0 +1,263 @@ + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 69d229733..380195139 100644 --- a/src/main.js +++ b/src/main.js @@ -52,6 +52,7 @@ import ProgressSpinner from './components/progressspinner/ProgressSpinner'; import Rating from './components/rating/Rating'; import RadioButton from './components/radiobutton/RadioButton'; import Row from './components/row/Row'; +import ScrollPanel from './components/scrollpanel/ScrollPanel'; import SelectButton from './components/selectbutton/SelectButton'; import Slider from './components/slider/Slider'; import Sidebar from './components/sidebar/Sidebar'; @@ -141,6 +142,7 @@ Vue.component('ProgressSpinner', ProgressSpinner); Vue.component('RadioButton', RadioButton); Vue.component('Rating', Rating); Vue.component('Row', Row); +Vue.component('ScrollPanel', ScrollPanel); Vue.component('SelectButton', SelectButton); Vue.component('Slider', Slider); Vue.component('Sidebar', Sidebar); diff --git a/src/router.js b/src/router.js index 807a63c22..8c02614c9 100755 --- a/src/router.js +++ b/src/router.js @@ -435,7 +435,12 @@ export default new Router({ path: '/rating', name: 'rating', component: () => import('./views/rating/RatingDemo.vue') - }, + }, + { + path: '/scrollpanel', + name: 'scrollpanel', + component: () => import('./views/scrollpanel/ScrollPanelDemo.vue') + }, { path: '/selectbutton', name: 'selectbutton', diff --git a/src/views/scrollpanel/ScrollPanelDemo.vue b/src/views/scrollpanel/ScrollPanelDemo.vue new file mode 100644 index 000000000..880bd6076 --- /dev/null +++ b/src/views/scrollpanel/ScrollPanelDemo.vue @@ -0,0 +1,117 @@ + + + + \ No newline at end of file diff --git a/src/views/scrollpanel/ScrollPanelDoc.vue b/src/views/scrollpanel/ScrollPanelDoc.vue new file mode 100644 index 000000000..e905992fe --- /dev/null +++ b/src/views/scrollpanel/ScrollPanelDoc.vue @@ -0,0 +1,199 @@ + \ No newline at end of file