mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
1 line
3.1 KiB
JavaScript
1 line
3.1 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{329:function(t,e,a){},385:function(t,e,a){"use strict";var s=a(329);a.n(s).a},451:function(t,e,a){"use strict";a.r(e);var s={},l=(a(385),a(46)),i=Object(l.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"backtop-回到顶部"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#backtop-回到顶部"}},[t._v("#")]),t._v(" BackTop 回到顶部")]),t._v(" "),a("h2",{attrs:{id:"概述"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#概述"}},[t._v("#")]),t._v(" 概述")]),t._v(" "),a("p",[t._v("页面过长时,方便回到页面顶部")]),t._v(" "),a("h2",{attrs:{id:"代码示例"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#代码示例"}},[t._v("#")]),t._v(" 代码示例")]),t._v(" "),a("ClientOnly",[a("row",[a("cell",{staticClass:"pr-20",attrs:{span:"12"}},[a("componetTemplate",{attrs:{title:"基础使用",template:"ui/templates/backTop/1.html"},scopedSlots:t._u([{key:"demo",fn:function(){return[a("Back-top")]},proxy:!0},{key:"description",fn:function(){return[a("p",[t._v("默认target滚动元素为document.body,默认height-to-show为400px。")]),t._v(" "),a("p",[t._v("由于此时页面滚动元素为.right-panel,所以这里不会看到效果。")])]},proxy:!0}])})],1),t._v(" "),a("cell",{staticClass:"pl-20",attrs:{span:"12"}},[a("componetTemplate",{attrs:{title:"自定义样式",template:"ui/templates/backTop/2.html"},scopedSlots:t._u([{key:"demo",fn:function(){return[a("Back-top",{staticStyle:{bottom:"100px"},attrs:{"height-to-show":300}},[a("div",{staticClass:"self-cls"},[t._v("TOP")])])]},proxy:!0},{key:"description",fn:function(){return[a("p",[t._v("自定义组件内元素的样式")])]},proxy:!0}])})],1)],1)],1),t._v(" "),a("h2",{attrs:{id:"api"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[t._v("#")]),t._v(" API")]),t._v(" "),a("h3",{attrs:{id:"props"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#props"}},[t._v("#")]),t._v(" Props")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("属性")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("说明")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("类型")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("默认值")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[t._v("height-to-show")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("定义显示时距顶部的距离(单位:px)")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Number")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("400")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[t._v("target")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("当处于滚动元素中时,定义滚动的父元素")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Function")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("document.body")])])])]),t._v(" "),a("div",{staticStyle:{height:"1000px"}})],1)}),[],!1,null,null,null);e.default=i.exports}}]); |