@@ -39,7 +39,7 @@ import { useEffect, useRef, useState } from "react";
39
39
import ReactResizeDetector from "react-resize-detector" ;
40
40
41
41
import { useContext } from "react" ;
42
- import { IconScoutAssetType , IconscoutControl } from "@lowcoder-ee/comps/controls/iconscoutControl" ;
42
+ import { AssetType , IconscoutControl } from "@lowcoder-ee/comps/controls/iconscoutControl" ;
43
43
44
44
const Container = styled . div < { $style : any } > `
45
45
height: 100%;
@@ -173,7 +173,7 @@ const typeOptions = [
173
173
174
174
const ModeOptions = [
175
175
{ label : "Standard" , value : "standard" } ,
176
- { label : "Advanced " , value : "advanced " } ,
176
+ { label : "Asset Library " , value : "asset-library " } ,
177
177
] as const ;
178
178
179
179
function isDefault ( type ?: string ) {
@@ -198,7 +198,7 @@ const childrenMap = {
198
198
form : SelectFormControl ,
199
199
sourceMode : dropdownControl ( ModeOptions , "standard" ) ,
200
200
prefixIcon : IconControl ,
201
- prefixIconScout : IconscoutControl ( IconScoutAssetType . ICON ) ,
201
+ iconScoutAsset : IconscoutControl ( AssetType . ICON ) ,
202
202
style : ButtonStyleControl ,
203
203
viewRef : RefControl < HTMLElement > ,
204
204
restrictPaddingOnRotation :withDefault ( StringControl , 'controlButton' )
@@ -241,7 +241,7 @@ let ButtonTmpComp = (function () {
241
241
242
242
setStyle ( container ?. clientHeight + "px" , container ?. clientWidth + "px" ) ;
243
243
} ;
244
- console . log ( props . prefixIconScout ) ;
244
+
245
245
return (
246
246
< EditorContext . Consumer >
247
247
{ ( editorState ) => (
@@ -292,11 +292,11 @@ let ButtonTmpComp = (function () {
292
292
{ props . prefixIcon }
293
293
</ IconWrapper >
294
294
) }
295
- { props . sourceMode === 'advanced ' && props . prefixIconScout && (
295
+ { props . sourceMode === 'asset-library ' && props . iconScoutAsset && (
296
296
< IconScoutWrapper
297
297
$style = { { ...props . style , size : props . iconSize } }
298
298
>
299
- < img src = { props . prefixIconScout . value } />
299
+ < img src = { props . iconScoutAsset . value } />
300
300
</ IconScoutWrapper >
301
301
) }
302
302
</ Button100 >
@@ -319,7 +319,7 @@ let ButtonTmpComp = (function () {
319
319
{ children . sourceMode . getView ( ) === 'standard' && children . prefixIcon . propertyView ( {
320
320
label : trans ( "button.icon" ) ,
321
321
} ) }
322
- { children . sourceMode . getView ( ) === 'advanced ' && children . prefixIconScout . propertyView ( {
322
+ { children . sourceMode . getView ( ) === 'asset-library ' && children . iconScoutAsset . propertyView ( {
323
323
label : trans ( "button.icon" ) ,
324
324
} ) }
325
325
</ Section >
0 commit comments