|
|
@@ -248,38 +248,38 @@ export struct RemoteDriveAccountDialog {
|
|
|
.alignItems(VerticalAlign.Center);
|
|
|
// this.buildHelperText('若留空将自动使用协议默认端口')
|
|
|
|
|
|
- // if (this.driveType === RemoteDriveType.Smb) {
|
|
|
- // // SMB 共享名称
|
|
|
- // Row({ space: 8 }) {
|
|
|
- // Text('共享名称')
|
|
|
- // .fontSize(14)
|
|
|
- // .fontColor($r('app.color.index_tab_font_color'));
|
|
|
- // TextInput({ placeholder: '共享名称', text: this.shareName })
|
|
|
- // .layoutWeight(1)
|
|
|
- // .maxLines(1)
|
|
|
- // .onChange((value: string) => {
|
|
|
- // this.shareName = value;
|
|
|
- // });
|
|
|
- // }
|
|
|
- // .alignItems(VerticalAlign.Center)
|
|
|
- // .visibility(Visibility.None)
|
|
|
- // // this.buildHelperText('NAS 上共享根目录的名称,例如 music、share')
|
|
|
- //
|
|
|
- // Row({ space: 8 }) {
|
|
|
- // Text('域/工作组')
|
|
|
- // .fontSize(14)
|
|
|
- // .fontColor($r('app.color.index_tab_font_color'));
|
|
|
- // TextInput({ placeholder: '可选项', text: this.domain })
|
|
|
- // .layoutWeight(1)
|
|
|
- // .maxLines(1)
|
|
|
- // .onChange((value: string) => {
|
|
|
- // this.domain = value;
|
|
|
- // });
|
|
|
- // }
|
|
|
- // .alignItems(VerticalAlign.Center)
|
|
|
- // .visibility(Visibility.None)
|
|
|
- // // this.buildHelperText('可选,用于需要域/工作组认证的 SMB 服务器')
|
|
|
- // }
|
|
|
+ if (this.driveType === RemoteDriveType.Smb) {
|
|
|
+ // SMB 共享名称
|
|
|
+ Row({ space: 8 }) {
|
|
|
+ Text('共享名称')
|
|
|
+ .fontSize(14)
|
|
|
+ .fontColor($r('app.color.index_tab_font_color'));
|
|
|
+ TextInput({ placeholder: '共享名称', text: this.shareName })
|
|
|
+ .layoutWeight(1)
|
|
|
+ .maxLines(1)
|
|
|
+ .onChange((value: string) => {
|
|
|
+ this.shareName = value;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ .alignItems(VerticalAlign.Center)
|
|
|
+ .visibility(Visibility.Visible)
|
|
|
+ // this.buildHelperText('NAS 上共享根目录的名称,例如 music、share')
|
|
|
+
|
|
|
+ Row({ space: 8 }) {
|
|
|
+ Text('域/工作组')
|
|
|
+ .fontSize(14)
|
|
|
+ .fontColor($r('app.color.index_tab_font_color'));
|
|
|
+ TextInput({ placeholder: '可选项', text: this.domain })
|
|
|
+ .layoutWeight(1)
|
|
|
+ .maxLines(1)
|
|
|
+ .onChange((value: string) => {
|
|
|
+ this.domain = value;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ .alignItems(VerticalAlign.Center)
|
|
|
+ .visibility(Visibility.None)
|
|
|
+ // this.buildHelperText('可选,用于需要域/工作组认证的 SMB 服务器')
|
|
|
+ }
|
|
|
|
|
|
if (this.driveType === RemoteDriveType.Ftp) {
|
|
|
Row({ space: 8 }) {
|