跳轉到

2407 → 2025-R1

本次 UOF X 由 2407 升級至 2025-R1 注意事項如下:

破壞性異動

  • NodeJS 升級至 18.20.3
  • Angular 升級至 17.3.11

Danger

全系統下載原始檔時,產生的連結需判斷權限。

外部站點原先從前端所取得使用的 /api/desktop/v1.0/base/file/Download,因為改為需要權限判斷,所以需要將其取代改為 /api/desktop/v1.0/base/file/ext/Download 才能正常使用。

Web

  • primeng 升級至 17.18.8
  • gcpdfviewer 升級至 7.1.2
npm install primeng@17.18.8 @grapecity/gcpdfviewer@7.1.2

App

  • Ionic v8
調整 UofxDatePickerModule import 路徑
-import { UofxDatePickerModule } from '@uofx/app-components/form';
+import { UofxDatePickerModule } from '@uofx/app-components/date-picker';
調整 uofx-error-tip selector
-<uofx-error-tip>...</uofx-error-tip>
+<uofx-form-error-tip>...</uofx-form-error-tip>
調整 uofx-user-select-view 屬性
<uofx-user-select-view
-   [uofUserSet]="users"
+   [userSet]="users"
></uofx-user-select-view>
外掛欄位 IonicModule
imports: [
-   IonicModule
+   IonicModule.forRoot()
]

新功能

Web

App

新增提供 UofxFormTools 工具
import { UofxFormTools } from '@uofx/app-components/form';

export class Page {
    constructor(private uofTool: UofxFormTools) {}
}

💡 詳細使用方式請參考 UOF X APP 元件>Reactive Form 工具包

表單欄位提供與整張表單驗證勾稽方法

同 Web 版本提供UofxFormFieldLogic服務,並有函式parentFormBindingsetSelfControlValuecheckValidators可以使用。

💡 詳細使用方式請參考 外掛欄位進階>表單送出前驗證欄位

安裝 UOF X 新版套件包

套件名稱 版本
@uofx/app-components 3.8.1
@uofx/app-native 1.1.4
@uofx/core 3.4.1
@uofx/error-code 2.6.0
@uofx/icon 2.5.0
@uofx/plugin 4.0.6
@uofx/web-components 4.8.1

可複製下方指令,直接執行。

npm install @uofx/app-components@3.8.1 @uofx/app-native@1.1.4 @uofx/core@3.4.1 @uofx/error-code@2.6.0 @uofx/icon@2.5.0 @uofx/plugin@4.0.6 @uofx/web-components@4.8.1

升級部署流程

  1. 請先調整專案並重新部署
  2. 由於配置與設定檔有變更,請先更新 UOF x
  3. 才至 UOF X 中操作檢查更新

若不慎先使用了檢查更新

  1. 若有「重載設定檔」可以使用,則直接操作。
  2. 若沒有,請重新從 步驟1,加入新的版號與站台,再次操作 步驟3 即可。