<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Spectacle-code-slide滑動代碼塊

          聯(lián)合創(chuàng)作 · 2023-09-26 14:50

          Spectacle-code-slide是一個用JavaScript開發(fā)的滑動代碼塊。Spectacle-code-slide目前的代碼風(fēng)格:

          安裝:

          $ npm install --save spectacle-code-slide

          使用:

          import CodeSlide from 'spectacle-code-slide';
          
          export default class Presentation extends React.Component {
            render() {
              return (
                <Spectacle theme={theme}>
                  <Deck transition={[]} transitionDuration={0} progress="bar">
                    // ...
                    <CodeSlide
                      transition={[]}
                      lang="js"
                      code={require("raw!../assets/code.example")}
                      ranges={[
                        { loc: [0, 270], title: "Walking through some code" },
                        { loc: [0, 1], title: "The Beginning" },
                        { loc: [1, 2] },
                        { loc: [1, 2], note: "Heres a note!" },
                        { loc: [2, 3] },
                        { loc: [4, 7] },
                        { loc: [8, 10] },
                        // ...
                      ]}/>
                    // ...
                  </Deck>
                </Spectacle>
              );
            }
          }
          瀏覽 18
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  爱情岛一区二区 | 蘑菇视频网站入口色鸡 | 国产一线在线观看 | аⅴ天堂 在线 | 欧美日韩三级片免费观看 |