v7.0.0-beta.2 release
This commit is contained in:
1 parent
6595fd0eb5
commit
fa8eba7a0d
1165 files changed
+107118
-762127
No files matched your search
@@ -97,13 +97,16 @@ G7이 자동으로 주입하는 `_global` 속성입니다. 레이아웃에서
|
||||
|
||||
```json
|
||||
{
|
||||
"comment": "appConfig 활용 예시 - 동적 Select 옵션",
|
||||
"comment": "appConfig 활용 예시 - 동적 Select 옵션 (타임존)",
|
||||
"props": {
|
||||
"options": "{{_global.appConfig?.supportedTimezones?.map(tz => ({ value: tz, label: tz })) ?? []}}"
|
||||
"options": "{{_global.appConfig?.supportedTimezones ?? []}}",
|
||||
"searchable": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
> `_global.appConfig.supportedTimezones`는 `[{value: 'Asia/Seoul', label: '(UTC+09:00) Asia/Seoul'}, ...]` 형식의 `{value, label}` 객체 배열입니다(오프셋 오름차순 정렬). 백엔드 `SettingsService::buildTimezoneOptions()`가 매 요청 시점에 UTC 오프셋을 계산하여 라벨을 생성하므로 DST 전환이 자동 반영됩니다. 별도 `.map()` 변환 없이 Select `options`에 직접 바인딩합니다.
|
||||
|
||||
### 기본 사용법
|
||||
|
||||
```json
|
||||
|
||||
Reference in new issue
Block a user