@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
|
@@ -60,7 +60,7 @@ const FlagPage = () => {
|
|
|
60
60
|
...params
|
|
61
61
|
})
|
|
62
62
|
const state = useReactive({
|
|
63
|
-
loading:
|
|
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
|
}}
|