@ledvance/ui-biz-bundle 1.1.52 → 1.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.52",
7
+ "version": "1.1.53",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -60,7 +60,7 @@ const FlagPage = () => {
60
60
  ...params
61
61
  })
62
62
  const state = useReactive({
63
- loading: true,
63
+ loading: false,
64
64
  flags: cloneDeep(flags) as FlagUiInfo[],
65
65
  moods: params.isStripLight ? [] : cloneDeep(moods),
66
66
  searchText: ''
@@ -199,6 +199,7 @@ const FlagPage = () => {
199
199
  headlineText={I18n.getLang('Feature_devicepanel_flags')}
200
200
  backText={devInfo.name}
201
201
  headlineIcon={res.add}
202
+ loading={state.loading}
202
203
  onHeadlineIconClick={() => {
203
204
  const useIds = map([
204
205
  ...state.flags,
@@ -228,7 +229,9 @@ const FlagPage = () => {
228
229
  colors={item.colors.map(item => hsv2Hex(item.h, item.s, item.v)).reverse()}
229
230
  onSwitch={async (enable) => {
230
231
  if (enable) {
232
+ state.loading = true
231
233
  await setFlag(item)
234
+ state.loading = false
232
235
  updateFlagMode(true, item)
233
236
  }
234
237
  }}