@@ -39,7 +39,7 @@ import { useEffect, useRef, useState } from "react";
3939import ReactResizeDetector from "react-resize-detector" ;
4040
4141import { useContext } from "react" ;
42- import { IconScoutAssetType , IconscoutControl } from "@lowcoder-ee/comps/controls/iconscoutControl" ;
42+ import { AssetType , IconscoutControl } from "@lowcoder-ee/comps/controls/iconscoutControl" ;
4343
4444const Container = styled . div < { $style : any } > `
4545 height: 100%;
@@ -173,7 +173,7 @@ const typeOptions = [
173173
174174const ModeOptions = [
175175 { label : "Standard" , value : "standard" } ,
176- { label : "Advanced " , value : "advanced " } ,
176+ { label : "Asset Library " , value : "asset-library " } ,
177177] as const ;
178178
179179function isDefault ( type ?: string ) {
@@ -198,7 +198,7 @@ const childrenMap = {
198198 form : SelectFormControl ,
199199 sourceMode : dropdownControl ( ModeOptions , "standard" ) ,
200200 prefixIcon : IconControl ,
201- prefixIconScout : IconscoutControl ( IconScoutAssetType . ICON ) ,
201+ iconScoutAsset : IconscoutControl ( AssetType . ICON ) ,
202202 style : ButtonStyleControl ,
203203 viewRef : RefControl < HTMLElement > ,
204204 restrictPaddingOnRotation :withDefault ( StringControl , 'controlButton' )
@@ -241,7 +241,7 @@ let ButtonTmpComp = (function () {
241241
242242 setStyle ( container ?. clientHeight + "px" , container ?. clientWidth + "px" ) ;
243243 } ;
244- console . log ( props . prefixIconScout ) ;
244+
245245 return (
246246 < EditorContext . Consumer >
247247 { ( editorState ) => (
@@ -292,11 +292,11 @@ let ButtonTmpComp = (function () {
292292 { props . prefixIcon }
293293 </ IconWrapper >
294294 ) }
295- { props . sourceMode === 'advanced ' && props . prefixIconScout && (
295+ { props . sourceMode === 'asset-library ' && props . iconScoutAsset && (
296296 < IconScoutWrapper
297297 $style = { { ...props . style , size : props . iconSize } }
298298 >
299- < img src = { props . prefixIconScout . value } />
299+ < img src = { props . iconScoutAsset . value } />
300300 </ IconScoutWrapper >
301301 ) }
302302 </ Button100 >
@@ -319,7 +319,7 @@ let ButtonTmpComp = (function () {
319319 { children . sourceMode . getView ( ) === 'standard' && children . prefixIcon . propertyView ( {
320320 label : trans ( "button.icon" ) ,
321321 } ) }
322- { children . sourceMode . getView ( ) === 'advanced ' && children . prefixIconScout . propertyView ( {
322+ { children . sourceMode . getView ( ) === 'asset-library ' && children . iconScoutAsset . propertyView ( {
323323 label : trans ( "button.icon" ) ,
324324 } ) }
325325 </ Section >
0 commit comments