Sfoglia il codice sorgente

添加 backable 控制返回按钮是否可用

icssoa 5 mesi fa
parent
commit
bbdd59068b
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      pages/demo/layout/topbar.uvue

+ 4 - 0
pages/demo/layout/topbar.uvue

@@ -56,6 +56,10 @@
 				</cl-topbar>
 				</cl-topbar>
 			</demo-item>
 			</demo-item>
 
 
+			<demo-item :label="t('禁用返回按钮')">
+				<cl-topbar :title="t('标题')" :backable="false"> </cl-topbar>
+			</demo-item>
+
 			<demo-item :label="t('自定义返回路径')">
 			<demo-item :label="t('自定义返回路径')">
 				<cl-topbar :title="t('标题')" back-path="/pages/user/login">
 				<cl-topbar :title="t('标题')" back-path="/pages/user/login">
 					<template #prepend>
 					<template #prepend>