Update ScrollTop visuals
parent
004737eb38
commit
54fdc0447a
|
@ -25,7 +25,7 @@ export default {
|
|||
buttonProps: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
return { severity: 'secondary' };
|
||||
return { rounded: true };
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -132,7 +132,7 @@ export interface ScrollTopProps {
|
|||
/**
|
||||
* Used to pass all properties of the ButtonProps to the Button component.
|
||||
* @type {ButtonProps}
|
||||
* @defaultValue { severity: 'secondary', rounded: true }
|
||||
* @defaultValue { rounded: true }
|
||||
*/
|
||||
buttonProps?: object | undefined;
|
||||
/**
|
||||
|
|
|
@ -11,17 +11,7 @@
|
|||
dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus viverra accumsan in nisl nisi.
|
||||
Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
|
||||
</p>
|
||||
<ScrollTop
|
||||
target="parent"
|
||||
:threshold="100"
|
||||
icon="pi pi-arrow-up"
|
||||
:pt="{
|
||||
button: {
|
||||
root: 'w-8 h-8 rounded bg-primary text-primary-contrast',
|
||||
icon: 'text-base w-4 h-4'
|
||||
}
|
||||
}"
|
||||
/>
|
||||
<ScrollTop target="parent" :threshold="100" icon="pi pi-arrow-up" :buttonProps="{ severity: 'contrast', raised: true, rounded: true }" />
|
||||
</ScrollPanel>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
|
@ -41,17 +31,7 @@ export default {
|
|||
dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus viverra accumsan in nisl nisi.
|
||||
Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
|
||||
</p>
|
||||
<ScrollTop
|
||||
target="parent"
|
||||
:threshold="100"
|
||||
icon="pi pi-arrow-up"
|
||||
:pt="{
|
||||
button: {
|
||||
root: 'w-8 h-8 rounded bg-primary text-primary-contrast',
|
||||
icon: 'text-base w-4 h-4'
|
||||
}
|
||||
}"
|
||||
/>
|
||||
<ScrollTop target="parent" :threshold="100" icon="pi pi-arrow-up" :buttonProps="{ severity: 'contrast', raised: true, rounded: true }" />
|
||||
</ScrollPanel>
|
||||
`,
|
||||
options: `
|
||||
|
@ -65,17 +45,7 @@ export default {
|
|||
dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus viverra accumsan in nisl nisi.
|
||||
Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
|
||||
</p>
|
||||
<ScrollTop
|
||||
target="parent"
|
||||
:threshold="100"
|
||||
icon="pi pi-arrow-up"
|
||||
:pt="{
|
||||
button: {
|
||||
root: 'w-8 h-8 rounded bg-primary text-primary-contrast',
|
||||
icon: 'text-base w-4 h-4'
|
||||
}
|
||||
}"
|
||||
/>
|
||||
<ScrollTop target="parent" :threshold="100" icon="pi pi-arrow-up" :buttonProps="{ severity: 'contrast', raised: true, rounded: true }" />
|
||||
</ScrollPanel>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -91,17 +61,7 @@ export default {
|
|||
dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus viverra accumsan in nisl nisi.
|
||||
Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
|
||||
</p>
|
||||
<ScrollTop
|
||||
target="parent"
|
||||
:threshold="100"
|
||||
icon="pi pi-arrow-up"
|
||||
:pt="{
|
||||
button: {
|
||||
root: 'w-8 h-8 rounded bg-primary text-primary-contrast',
|
||||
icon: 'text-base w-4 h-4'
|
||||
}
|
||||
}"
|
||||
/>
|
||||
<ScrollTop target="parent" :threshold="100" icon="pi pi-arrow-up" :buttonProps="{ severity: 'contrast', raised: true, rounded: true }" />
|
||||
</ScrollPanel>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue