feat: make RSS feed scrollable (#10108)
This commit is contained in:
parent
cc1b34d3e5
commit
5fcbf699ff
|
@ -1,5 +1,10 @@
|
|||
<template>
|
||||
<MkContainer :show-header="widgetProps.showHeader" class="mkw-rss">
|
||||
<MkContainer
|
||||
:show-header="widgetProps.showHeader"
|
||||
class="mkw-rss"
|
||||
:scrollable="true"
|
||||
:style="`height: ${widgetProps.height}px;`"
|
||||
>
|
||||
<template #header><i class="ph-rss ph-bold ph-lg"></i>RSS</template>
|
||||
<template #func
|
||||
><button class="_button" @click="configure">
|
||||
|
@ -44,6 +49,10 @@ const widgetPropsDef = {
|
|||
type: "string" as const,
|
||||
default: "http://feeds.afpbb.com/rss/afpbb/afpbbnews",
|
||||
},
|
||||
height: {
|
||||
type: "number" as const,
|
||||
default: 300,
|
||||
},
|
||||
showHeader: {
|
||||
type: "boolean" as const,
|
||||
default: true,
|
||||
|
|
Loading…
Reference in New Issue