侧面导航栏要使用角形材料显示在右侧吗?

时间:2019-01-01 04:02:41

标签: html css angular6 typescript-typings angular-material-6

使用角形材料在右侧显示侧面导航吗?

https://stackblitz.com/edit/angular-b4gmby

结果是中殿显示在右侧

1 个答案:

答案 0 :(得分:0)

var splitter = (str) => { return JSON.stringify( str.split(/(\?\?\?)/) .filter(Boolean) ); } // Tests console.log(splitter("this is some text ???") === JSON.stringify(["this is some text ", "???"])) console.log(splitter("this is ??? text???") === JSON.stringify(["this is ", "???", " text", "???"])) console.log(splitter("this is some text") === JSON.stringify(["this is some text"])) console.log(splitter("(???)") === JSON.stringify(["(", "???", ")"])) console.log(splitter(" ") === JSON.stringify([" "])) console.log(splitter(" ??? ") === JSON.stringify([" ", "???", " "])) console.log(splitter("??????") === JSON.stringify(["???", "???"])) console.log(splitter("?????????") === JSON.stringify(["???", "???", "???"])) console.log(splitter("(??????") === JSON.stringify(["(", "???", "???"]))上添加position="end"

mat-sidenav

https://stackblitz.com/edit/angular-b4gmby-jthbio?file=app/sidenav-autosize-example.html