Best JavaScript code snippet using playwright-internal
IconEnum.jsx
Source:IconEnum.jsx
...36 }37};38const iconEnum = {39 // æ¹åæ§å¾æ 40 StepBackwardOutlined: genChildren('StepBackwardOutlined'),41 StepForwardOutlined: genChildren('StepForwardOutlined'),42 FastBackwardOutlined: genChildren('FastBackwardOutlined'),43 FastForwardOutlined: genChildren('FastForwardOutlined'),44 ShrinkOutlined: genChildren('ShrinkOutlined'),45 ArrowsAltOutlined: genChildren('ArrowsAltOutlined'),46 DownOutlined: genChildren('DownOutlined'),47 UpOutlined: genChildren('UpOutlined'),48 LeftOutlined: genChildren('LeftOutlined'),49 RightOutlined: genChildren('RightOutlined'),50 CaretUpOutlined: genChildren('CaretUpOutlined'),51 CaretDownOutlined: genChildren('CaretDownOutlined'),52 CaretLeftOutlined: genChildren('CaretLeftOutlined'),53 CaretRightOutlined: genChildren('CaretRightOutlined'),54 UpCircleOutlined: genChildren('UpCircleOutlined'),55 DownCircleOutlined: genChildren('DownCircleOutlined'),56 LeftCircleOutlined: genChildren('LeftCircleOutlined'),57 RightCircleOutlined: genChildren('RightCircleOutlined'),58 DoubleRightOutlined: genChildren('DoubleRightOutlined'),59 DoubleLeftOutlined: genChildren('DoubleLeftOutlined'),60 VerticalLeftOutlined: genChildren('VerticalLeftOutlined'),61 VerticalRightOutlined: genChildren('VerticalRightOutlined'),62 VerticalAlignTopOutlined: genChildren('VerticalAlignTopOutlined'),63 VerticalAlignMiddleOutlined: genChildren('VerticalAlignMiddleOutlined'),64 VerticalAlignBottomOutlined: genChildren('VerticalAlignBottomOutlined'),65 ForwardOutlined: genChildren('ForwardOutlined'),66 BackwardOutlined: genChildren('BackwardOutlined'),67 RollbackOutlined: genChildren('RollbackOutlined'),68 EnterOutlined: genChildren('EnterOutlined'),69 RetweetOutlined: genChildren('RetweetOutlined'),70 SwapOutlined: genChildren('SwapOutlined'),71 SwapLeftOutlined: genChildren('SwapLeftOutlined'),72 SwapRightOutlined: genChildren('SwapRightOutlined'),73 ArrowUpOutlined: genChildren('ArrowUpOutlined'),74 ArrowDownOutlined: genChildren('ArrowDownOutlined'),75 ArrowLeftOutlined: genChildren('ArrowLeftOutlined'),76 ArrowRightOutlined: genChildren('ArrowRightOutlined'),77 PlayCircleOutlined: genChildren('PlayCircleOutlined'),78 UpSquareOutlined: genChildren('UpSquareOutlined'),79 DownSquareOutlined: genChildren('DownSquareOutlined'),80 LeftSquareOutlined: genChildren('LeftSquareOutlined'),81 RightSquareOutlined: genChildren('RightSquareOutlined'),82 LoginOutlined: genChildren('LoginOutlined'),83 LogoutOutlined: genChildren('LogoutOutlined'),84 MenuFoldOutlined: genChildren('MenuFoldOutlined'),85 MenuUnfoldOutlined: genChildren('MenuUnfoldOutlined'),86 BorderBottomOutlined: genChildren('BorderBottomOutlined'),87 BorderHorizontalOutlined: genChildren('BorderHorizontalOutlined'),88 PicCenterOutlined: genChildren('PicCenterOutlined'),89 PicLeftOutlined: genChildren('PicLeftOutlined'),90 PicRightOutlined: genChildren('PicRightOutlined'),91 FullscreenOutlined: genChildren('FullscreenOutlined'),92 FullscreenExitOutlined: genChildren('FullscreenExitOutlined'),93 // æ示建议æ§å¾æ 94 QuestionOutlined: genChildren('QuestionOutlined'),95 QuestionCircleOutlined: genChildren('QuestionCircleOutlined'),96 PlusOutlined: genChildren('PlusOutlined'),97 PlusCircleOutlined: genChildren('PlusCircleOutlined'),98 PauseOutlined: genChildren('PauseOutlined'),99 PauseCircleOutlined: genChildren('PauseCircleOutlined'),100 MinusOutlined: genChildren('MinusOutlined'),101 MinusCircleOutlined: genChildren('MinusCircleOutlined'),102 PlusSquareOutlined: genChildren('PlusSquareOutlined'),103 MinusSquareOutlined: genChildren('MinusSquareOutlined'),104 InfoOutlined: genChildren('InfoOutlined'),105 InfoCircleOutlined: genChildren('InfoCircleOutlined'),106 ExclamationOutlined: genChildren('ExclamationOutlined'),107 ExclamationCircleOutlined: genChildren('ExclamationCircleOutlined'),108 CloseOutlined: genChildren('CloseOutlined'),109 CloseCircleOutlined: genChildren('CloseCircleOutlined'),110 CloseSquareOutlined: genChildren('CloseSquareOutlined'),111 CheckOutlined: genChildren('CheckOutlined'),112 CheckCircleOutlined: genChildren('CheckCircleOutlined'),113 CheckSquareOutlined: genChildren('CheckSquareOutlined'),114 ClockCircleOutlined: genChildren('ClockCircleOutlined'),115 WarningOutlined: genChildren('WarningOutlined'),116 IssuesCloseOutlined: genChildren('IssuesCloseOutlined'),117 StopOutlined: genChildren('StopOutlined'),118 // ç¼è¾ç±»å¾æ 119 EditOutlined: genChildren('EditOutlined'),120 FormOutlined: genChildren('FormOutlined'),121 CopyOutlined: genChildren('CopyOutlined'),122 ScissorOutlined: genChildren('ScissorOutlined'),123 DeleteOutlined: genChildren('DeleteOutlined'),124 SnippetsOutlined: genChildren('SnippetsOutlined'),125 DiffOutlined: genChildren('DiffOutlined'),126 HighlightOutlined: genChildren('HighlightOutlined'),127 AlignCenterOutlined: genChildren('AlignCenterOutlined'),128 AlignLeftOutlined: genChildren('AlignLeftOutlined'),129 AlignRightOutlined: genChildren('AlignRightOutlined'),130 BgColorsOutlined: genChildren('BgColorsOutlined'),131 BoldOutlined: genChildren('BoldOutlined'),132 ItalicOutlined: genChildren('ItalicOutlined'),133 UnderlineOutlined: genChildren('UnderlineOutlined'),134 StrikethroughOutlined: genChildren('StrikethroughOutlined'),135 RedoOutlined: genChildren('RedoOutlined'),136 UndoOutlined: genChildren('UndoOutlined'),137 ZoomInOutlined: genChildren('ZoomInOutlined'),138 ZoomOutOutlined: genChildren('ZoomOutOutlined'),139 FontColorsOutlined: genChildren('FontColorsOutlined'),140 FontSizeOutlined: genChildren('FontSizeOutlined'),141 LineHeightOutlined: genChildren('LineHeightOutlined'),142 DashOutlined: genChildren('DashOutlined'),143 SmallDashOutlined: genChildren('SmallDashOutlined'),144 SortAscendingOutlined: genChildren('SortAscendingOutlined'),145 SortDescendingOutlined: genChildren('SortDescendingOutlined'),146 DragOutlined: genChildren('DragOutlined'),147 OrderedListOutlined: genChildren('OrderedListOutlined'),148 UnorderedListOutlined: genChildren('UnorderedListOutlined'),149 RadiusSettingOutlined: genChildren('RadiusSettingOutlined'),150 ColumnWidthOutlined: genChildren('ColumnWidthOutlined'),151 ColumnHeightOutlined: genChildren('ColumnHeightOutlined'),152 // æ°æ®ç±»å¾æ 153 AreaChartOutlined: genChildren('AreaChartOutlined'),154 PieChartOutlined: genChildren('PieChartOutlined'),155 BarChartOutlined: genChildren('BarChartOutlined'),156 DotChartOutlined: genChildren('DotChartOutlined'),157 LineChartOutlined: genChildren('LineChartOutlined'),158 RadarChartOutlined: genChildren('RadarChartOutlined'),159 HeatMapOutlined: genChildren('HeatMapOutlined'),160 FallOutlined: genChildren('FallOutlined'),161 RiseOutlined: genChildren('RiseOutlined'),162 StockOutlined: genChildren('StockOutlined'),163 BoxPlotOutlined: genChildren('BoxPlotOutlined'),164 FundOutlined: genChildren('FundOutlined'),165 SlidersOutlined: genChildren('SlidersOutlined'),166 // åçåæ è¯167 AndroidOutlined: genChildren('AndroidOutlined'),168 AppleOutlined: genChildren('AppleOutlined'),169 WindowsOutlined: genChildren('WindowsOutlined'),170 IeOutlined: genChildren('IeOutlined'),171 ChromeOutlined: genChildren('ChromeOutlined'),172 GithubOutlined: genChildren('GithubOutlined'),173 AliwangwangOutlined: genChildren('AliwangwangOutlined'),174 DingdingOutlined: genChildren('DingdingOutlined'),175 WeiboSquareOutlined: genChildren('WeiboSquareOutlined'),176 WeiboCircleOutlined: genChildren('WeiboCircleOutlined'),177 TaobaoCircleOutlined: genChildren('TaobaoCircleOutlined'),178 Html5Outlined: genChildren('Html5Outlined'),179 WeiboOutlined: genChildren('WeiboOutlined'),180 TwitterOutlined: genChildren('TwitterOutlined'),181 WechatOutlined: genChildren('WechatOutlined'),182 YoutubeOutlined: genChildren('YoutubeOutlined'),183 AlipayCircleOutlined: genChildren('AlipayCircleOutlined'),184 TaobaoOutlined: genChildren('TaobaoOutlined'),185 SkypeOutlined: genChildren('SkypeOutlined'),186 QqOutlined: genChildren('QqOutlined'),187 MediumWorkmarkOutlined: genChildren('MediumWorkmarkOutlined'),188 GitlabOutlined: genChildren('GitlabOutlined'),189 MediumOutlined: genChildren('MediumOutlined'),190 LinkedinOutlined: genChildren('LinkedinOutlined'),191 GooglePlusOutlined: genChildren('GooglePlusOutlined'),192 DropboxOutlined: genChildren('DropboxOutlined'),193 FacebookOutlined: genChildren('FacebookOutlined'),194 CodepenOutlined: genChildren('CodepenOutlined'),195 CodeSandboxOutlined: genChildren('CodeSandboxOutlined'),196 AmazonOutlined: genChildren('AmazonOutlined'),197 GoogleOutlined: genChildren('GoogleOutlined'),198 CodepenCircleOutlined: genChildren('CodepenCircleOutlined'),199 AlipayOutlined: genChildren('AlipayOutlined'),200 AntDesignOutlined: genChildren('AntDesignOutlined'),201 AntCloudOutlined: genChildren('AntCloudOutlined'),202 AliyunOutlined: genChildren('AliyunOutlined'),203 ZhihuOutlined: genChildren('ZhihuOutlined'),204 SlackOutlined: genChildren('SlackOutlined'),205 SlackSquareOutlined: genChildren('SlackSquareOutlined'),206 BehanceOutlined: genChildren('BehanceOutlined'),207 BehanceSquareOutlined: genChildren('BehanceSquareOutlined'),208 DribbbleOutlined: genChildren('DribbbleOutlined'),209 DribbbleSquareOutlined: genChildren('DribbbleSquareOutlined'),210 InstagramOutlined: genChildren('InstagramOutlined'),211 YuqueOutlined: genChildren('YuqueOutlined'),212 AlibabaOutlined: genChildren('AlibabaOutlined'),213 YahooOutlined: genChildren('YahooOutlined'),214 RedditOutlined: genChildren('RedditOutlined'),215 SketchOutlined: genChildren('SketchOutlined'),216 //ç½ç«éç¨å¾æ 217 AccountBookOutlined: genChildren('AccountBookOutlined'),218 AimOutlined: genChildren('AimOutlined'),219 AlertOutlined: genChildren('AlertOutlined'),220 ApartmentOutlined: genChildren('ApartmentOutlined'),221 ApiOutlined: genChildren('ApiOutlined'),222 AppstoreAddOutlined: genChildren('AppstoreAddOutlined'),223 AppstoreOutlined: genChildren('AppstoreOutlined'),224 AudioOutlined: genChildren('AudioOutlined'),225 AudioMutedOutlined: genChildren('AudioMutedOutlined'),226 AuditOutlined: genChildren('AuditOutlined'),227 BankOutlined: genChildren('BankOutlined'),228 BarcodeOutlined: genChildren('BarcodeOutlined'),229 BarsOutlined: genChildren('BarsOutlined'),230 BellOutlined: genChildren('BellOutlined'),231 BlockOutlined: genChildren('BlockOutlined'),232 BookOutlined: genChildren('BookOutlined'),233 BorderOutlined: genChildren('BorderOutlined'),234 BorderlessTableOutlined: genChildren('BorderlessTableOutlined'),235 BranchesOutlined: genChildren('BranchesOutlined'),236 BugOutlined: genChildren('BugOutlined'),237 BuildOutlined: genChildren('BuildOutlined'),238 BulbOutlined: genChildren('BulbOutlined'),239 CalculatorOutlined: genChildren('CalculatorOutlined'),240 CalendarOutlined: genChildren('CalendarOutlined'),241 CameraOutlined: genChildren('CameraOutlined'),242 CarOutlined: genChildren('CarOutlined'),243 CarryOutOutlined: genChildren('CarryOutOutlined'),244 CiCircleOutlined: genChildren('CiCircleOutlined'),245 CiOutlined: genChildren('CiOutlined'),246 ClearOutlined: genChildren('ClearOutlined'),247 CloudDownloadOutlined: genChildren('CloudDownloadOutlined'),248 CloudOutlined: genChildren('CloudOutlined'),249 CloudServerOutlined: genChildren('CloudServerOutlined'),250 CloudSyncOutlined: genChildren('CloudSyncOutlined'),251 CloudUploadOutlined: genChildren('CloudUploadOutlined'),252 ClusterOutlined: genChildren('ClusterOutlined'),253 CodeOutlined: genChildren('CodeOutlined'),254 CoffeeOutlined: genChildren('CoffeeOutlined'),255 CommentOutlined: genChildren('CommentOutlined'),256 CompassOutlined: genChildren('CompassOutlined'),257 CompressOutlined: genChildren('CompressOutlined'),258 ConsoleSqlOutlined: genChildren('ConsoleSqlOutlined'),259 ContactsOutlined: genChildren('ContactsOutlined'),260 ContainerOutlined: genChildren('ContainerOutlined'),261 ControlOutlined: genChildren('ControlOutlined'),262 CopyrightOutlined: genChildren('CopyrightOutlined'),263 CreditCardOutlined: genChildren('CreditCardOutlined'),264 CrownOutlined: genChildren('CrownOutlined'),265 CustomerServiceOutlined: genChildren('CustomerServiceOutlined'),266 DashboardOutlined: genChildren('DashboardOutlined'),267 DatabaseOutlined: genChildren('DatabaseOutlined'),268 DeleteColumnOutlined: genChildren('DeleteColumnOutlined'),269 DeleteRowOutlined: genChildren('DeleteRowOutlined'),270 DeliveredProcedureOutlined: genChildren('DeliveredProcedureOutlined'),271 DeploymentUnitOutlined: genChildren('DeploymentUnitOutlined'),272 DesktopOutlined: genChildren('DesktopOutlined'),273 DingtalkOutlined: genChildren('DingtalkOutlined'),274 DisconnectOutlined: genChildren('DisconnectOutlined'),275 DislikeOutlined: genChildren('DislikeOutlined'),276 DollarCircleOutlined: genChildren('DollarCircleOutlined'),277 DollarOutlined: genChildren('DollarOutlined'),278 DownloadOutlined: genChildren('DownloadOutlined'),279 EllipsisOutlined: genChildren('EllipsisOutlined'),280 EnvironmentOutlined: genChildren('EnvironmentOutlined'),281 EuroCircleOutlined: genChildren('EuroCircleOutlined'),282 EuroOutlined: genChildren('EuroOutlined'),283 ExceptionOutlined: genChildren('ExceptionOutlined'),284 ExpandAltOutlined: genChildren('ExpandAltOutlined'),285 ExpandOutlined: genChildren('ExpandOutlined'),286 ExperimentOutlined: genChildren('ExperimentOutlined'),287 ExportOutlined: genChildren('ExportOutlined'),288 EyeOutlined: genChildren('EyeOutlined'),289 EyeInvisibleOutlined: genChildren('EyeInvisibleOutlined'),290 FieldBinaryOutlined: genChildren('FieldBinaryOutlined'),291 FieldNumberOutlined: genChildren('FieldNumberOutlined'),292 FieldStringOutlined: genChildren('FieldStringOutlined'),293 FieldTimeOutlined: genChildren('FieldTimeOutlined'),294 FileAddOutlined: genChildren('FileAddOutlined'),295 FileDoneOutlined: genChildren('FileDoneOutlined'),296 FileExcelOutlined: genChildren('FileExcelOutlined'),297 FileExclamationOutlined: genChildren('FileExclamationOutlined'),298 FileOutlined: genChildren('FileOutlined'),299 FileGifOutlined: genChildren('FileGifOutlined'),300 FileImageOutlined: genChildren('FileImageOutlined'),301 FileJpgOutlined: genChildren('FileJpgOutlined'),302 FileMarkdownOutlined: genChildren('FileMarkdownOutlined'),303 FilePdfOutlined: genChildren('FilePdfOutlined'),304 FilePptOutlined: genChildren('FilePptOutlined'),305 FileProtectOutlined: genChildren('FileProtectOutlined'),306 FileSearchOutlined: genChildren('FileSearchOutlined'),307 FileSyncOutlined: genChildren('FileSyncOutlined'),308 FileTextOutlined: genChildren('FileTextOutlined'),309 FileUnknownOutlined: genChildren('FileUnknownOutlined'),310 FileWordOutlined: genChildren('FileWordOutlined'),311 FileZipOutlined: genChildren('FileZipOutlined'),312 FilterOutlined: genChildren('FilterOutlined'),313 FireOutlined: genChildren('FireOutlined'),314 FlagOutlined: genChildren('FlagOutlined'),315 FolderAddOutlined: genChildren('FolderAddOutlined'),316 FolderOutlined: genChildren('FolderOutlined'),317 FolderOpenOutlined: genChildren('FolderOpenOutlined'),318 FolderViewOutlined: genChildren('FolderViewOutlined'),319 ForkOutlined: genChildren('ForkOutlined'),320 FormatPainterOutlined: genChildren('FormatPainterOutlined'),321 FrownOutlined: genChildren('FrownOutlined'),322 FunctionOutlined: genChildren('FunctionOutlined'),323 FundProjectionScreenOutlined: genChildren('FundProjectionScreenOutlined'),324 FundViewOutlined: genChildren('FundViewOutlined'),325 FunnelPlotOutlined: genChildren('FunnelPlotOutlined'),326 GatewayOutlined: genChildren('GatewayOutlined'),327 GifOutlined: genChildren('GifOutlined'),328 GiftOutlined: genChildren('GiftOutlined'),329 GlobalOutlined: genChildren('GlobalOutlined'),330 GoldOutlined: genChildren('GoldOutlined'),331 GroupOutlined: genChildren('GroupOutlined'),332 HddOutlined: genChildren('HddOutlined'),333 HeartOutlined: genChildren('HeartOutlined'),334 HistoryOutlined: genChildren('HistoryOutlined'),335 HomeOutlined: genChildren('HomeOutlined'),336 HourglassOutlined: genChildren('HourglassOutlined'),337 IdcardOutlined: genChildren('IdcardOutlined'),338 ImportOutlined: genChildren('ImportOutlined'),339 InboxOutlined: genChildren('InboxOutlined'),340 InsertRowAboveOutlined: genChildren('InsertRowAboveOutlined'),341 InsertRowBelowOutlined: genChildren('InsertRowBelowOutlined'),342 InsertRowLeftOutlined: genChildren('InsertRowLeftOutlined'),343 InsertRowRightOutlined: genChildren('InsertRowRightOutlined'),344 InsuranceOutlined: genChildren('InsuranceOutlined'),345 InteractionOutlined: genChildren('InteractionOutlined'),346 KeyOutlined: genChildren('KeyOutlined'),347 LaptopOutlined: genChildren('LaptopOutlined'),348 LayoutOutlined: genChildren('LayoutOutlined'),349 LikeOutlined: genChildren('LikeOutlined'),350 LineOutlined: genChildren('LineOutlined'),351 LinkOutlined: genChildren('LinkOutlined'),352 Loading3QuartersOutlined: genChildren('Loading3QuartersOutlined'),353 LoadingOutlined: genChildren('LoadingOutlined'),354 LockOutlined: genChildren('LockOutlined'),355 MacCommandOutlined: genChildren('MacCommandOutlined'),356 MailOutlined: genChildren('MailOutlined'),357 ManOutlined: genChildren('ManOutlined'),358 MedicineBoxOutlined: genChildren('MedicineBoxOutlined'),359 MehOutlined: genChildren('MehOutlined'),360 MenuOutlined: genChildren('MenuOutlined'),361 MergeCellsOutlined: genChildren('MergeCellsOutlined'),362 MessageOutlined: genChildren('MessageOutlined'),363 MobileOutlined: genChildren('MobileOutlined'),364 MoneyCollectOutlined: genChildren('MoneyCollectOutlined'),365 MonitorOutlined: genChildren('MonitorOutlined'),366 MoreOutlined: genChildren('MoreOutlined'),367 NodeCollapseOutlined: genChildren('NodeCollapseOutlined'),368 NodeExpandOutlined: genChildren('NodeExpandOutlined'),369 NodeIndexOutlined: genChildren('NodeIndexOutlined'),370 NotificationOutlined: genChildren('NotificationOutlined'),371 NumberOutlined: genChildren('NumberOutlined'),372 OneToOneOutlined: genChildren('OneToOneOutlined'),373 PaperClipOutlined: genChildren('PaperClipOutlined'),374 PartitionOutlined: genChildren('PartitionOutlined'),375 PayCircleOutlined: genChildren('PayCircleOutlined'),376 PercentageOutlined: genChildren('PercentageOutlined'),377 PhoneOutlined: genChildren('PhoneOutlined'),378 PictureOutlined: genChildren('PictureOutlined'),379 PlaySquareOutlined: genChildren('PlaySquareOutlined'),380 PoundCircleOutlined: genChildren('PoundCircleOutlined'),381 PoundOutlined: genChildren('PoundOutlined'),382 PoweroffOutlined: genChildren('PoweroffOutlined'),383 PrinterOutlined: genChildren('PrinterOutlined'),384 ProfileOutlined: genChildren('ProfileOutlined'),385 ProjectOutlined: genChildren('ProjectOutlined'),386 PropertySafetyOutlined: genChildren('PropertySafetyOutlined'),387 PullRequestOutlined: genChildren('PullRequestOutlined'),388 PushpinOutlined: genChildren('PushpinOutlined'),389 QrcodeOutlined: genChildren('QrcodeOutlined'),390 ReadOutlined: genChildren('ReadOutlined'),391 ReconciliationOutlined: genChildren('ReconciliationOutlined'),392 RedEnvelopeOutlined: genChildren('RedEnvelopeOutlined'),393 ReloadOutlined: genChildren('ReloadOutlined'),394 RestOutlined: genChildren('RestOutlined'),395 RobotOutlined: genChildren('RobotOutlined'),396 RocketOutlined: genChildren('RocketOutlined'),397 RotateLeftOutlined: genChildren('RotateLeftOutlined'),398 RotateRightOutlined: genChildren('RotateRightOutlined'),399 SafetyCertificateOutlined: genChildren('SafetyCertificateOutlined'),400 SafetyOutlined: genChildren('SafetyOutlined'),401 SaveOutlined: genChildren('SaveOutlined'),402 ScanOutlined: genChildren('ScanOutlined'),403 ScheduleOutlined: genChildren('ScheduleOutlined'),404 SearchOutlined: genChildren('SearchOutlined'),405 SecurityScanOutlined: genChildren('SecurityScanOutlined'),406 SelectOutlined: genChildren('SelectOutlined'),407 SendOutlined: genChildren('SendOutlined'),408 SettingOutlined: genChildren('SettingOutlined'),409 ShakeOutlined: genChildren('ShakeOutlined'),410 ShareAltOutlined: genChildren('ShareAltOutlined'),411 ShopOutlined: genChildren('ShopOutlined'),412 ShoppingCartOutlined: genChildren('ShoppingCartOutlined'),413 ShoppingOutlined: genChildren('ShoppingOutlined'),414 SisternodeOutlined: genChildren('SisternodeOutlined'),415 SkinOutlined: genChildren('SkinOutlined'),416 SmileOutlined: genChildren('SmileOutlined'),417 SolutionOutlined: genChildren('SolutionOutlined'),418 SoundOutlined: genChildren('SoundOutlined'),419 SplitCellsOutlined: genChildren('SplitCellsOutlined'),420 StarOutlined: genChildren('StarOutlined'),421 SubnodeOutlined: genChildren('SubnodeOutlined'),422 SwitcherOutlined: genChildren('SwitcherOutlined'),423 SyncOutlined: genChildren('SyncOutlined'),424 TableOutlined: genChildren('TableOutlined'),425 TabletOutlined: genChildren('TabletOutlined'),426 TagOutlined: genChildren('TagOutlined'),427 TagsOutlined: genChildren('TagsOutlined'),428 TeamOutlined: genChildren('TeamOutlined'),429 ThunderboltOutlined: genChildren('ThunderboltOutlined'),430 ToTopOutlined: genChildren('ToTopOutlined'),431 ToolOutlined: genChildren('ToolOutlined'),432 TrademarkCircleOutlined: genChildren('TrademarkCircleOutlined'),433 TrademarkOutlined: genChildren('TrademarkOutlined'),434 TransactionOutlined: genChildren('TransactionOutlined'),435 TranslationOutlined: genChildren('TranslationOutlined'),436 TrophyOutlined: genChildren('TrophyOutlined'),437 UngroupOutlined: genChildren('UngroupOutlined'),438 UnlockOutlined: genChildren('UnlockOutlined'),439 UploadOutlined: genChildren('UploadOutlined'),440 UsbOutlined: genChildren('UsbOutlined'),441 UserAddOutlined: genChildren('UserAddOutlined'),442 UserDeleteOutlined: genChildren('UserDeleteOutlined'),443 UserOutlined: genChildren('UserOutlined'),444 UserSwitchOutlined: genChildren('UserSwitchOutlined'),445 UsergroupAddOutlined: genChildren('UsergroupAddOutlined'),446 UsergroupDeleteOutlined: genChildren('UsergroupDeleteOutlined'),447 VerifiedOutlined: genChildren('VerifiedOutlined'),448 VideoCameraAddOutlined: genChildren('VideoCameraAddOutlined'),449 VideoCameraOutlined: genChildren('VideoCameraOutlined'),450 WalletOutlined: genChildren('WalletOutlined'),451 WhatsAppOutlined: genChildren('WhatsAppOutlined'),452 WifiOutlined: genChildren('WifiOutlined'),453 WomanOutlined: genChildren('WomanOutlined'),454};...
codegen.js
Source:codegen.js
...37 return genFor(el)38 } else if (el.if) {39 return genIf(el)40 } else if (el.tag === 'template' && !el.slotTarget) {41 return genChildren(el) || 'void 0'42 } else if (el.tag === 'render') {43 return genRender(el)44 } else if (el.tag === 'slot') {45 return genSlot(el)46 } else if (el.component) {47 return genComponent(el)48 } else {49 const data = genData(el)50 // if the element is potentially a component,51 // wrap its children as a thunk.52 const children = !el.inlineTemplate53 ? genChildren(el, !el.ns && !isPlatformReservedTag(el.tag) /* asThunk */)54 : null55 const code = `_h(_e('${el.tag}'${56 data ? `,${data}` : el.ns ? ',void 0' : '' // data57 }${58 el.ns ? `,'${el.ns}'` : '' // namespace59 })${60 children ? `,${children}` : '' // children61 })`62 if (el.staticRoot) {63 // hoist static sub-trees out64 staticRenderFns.push(`with(this){return ${code}}`)65 return `_m(${staticRenderFns.length - 1})`66 } else {67 return code68 }69 }70}71function genIf (el: ASTElement): string {72 const exp = el.if73 el.if = null // avoid recursion74 return `(${exp})?${genElement(el)}:${genElse(el)}`75}76function genElse (el: ASTElement): string {77 return el.elseBlock78 ? genElement(el.elseBlock)79 : 'void 0'80}81function genFor (el: ASTElement): string {82 const exp = el.for83 const alias = el.alias84 const iterator = el.iterator85 el.for = null // avoid recursion86 return `(${exp})&&_l((${exp}),` +87 `function(${alias},$index,${iterator || '$key'}){` +88 `return ${genElement(el)}` +89 '})'90}91function genData (el: ASTElement): string | void {92 if (el.plain) {93 return94 }95 let data = '{'96 // directives first.97 // directives may mutate the el's other properties before they are generated.98 const dirs = genDirectives(el)99 if (dirs) data += dirs + ','100 // key101 if (el.key) {102 data += `key:${el.key},`103 }104 // ref105 if (el.ref) {106 data += `ref:"${el.ref}",`107 }108 if (el.refInFor) {109 data += `refInFor:true,`110 }111 // slot target112 if (el.slotTarget) {113 data += `slot:${el.slotTarget},`114 }115 // platform modules116 for (let i = 0; i < platformModules.length; i++) {117 data += platformModules[i].genData(el)118 }119 // v-show, used to avoid transition being applied120 // since v-show takes it over121 if (el.attrsMap['v-show']) {122 data += 'show:true,'123 }124 // props125 if (el.props) {126 data += `props:{${genProps(el.props)}},`127 }128 // attributes129 if (el.attrs) {130 data += `attrs:{${genProps(el.attrs)}},`131 }132 // static attributes133 if (el.staticAttrs) {134 data += `staticAttrs:{${genProps(el.staticAttrs)}},`135 }136 // hooks137 if (el.hooks) {138 data += `hook:{${genHooks(el.hooks)}},`139 }140 // event handlers141 if (el.events) {142 data += `${genHandlers(el.events)},`143 }144 // inline-template145 if (el.inlineTemplate) {146 const ast = el.children[0]147 if (process.env.NODE_ENV !== 'production' && (148 el.children.length > 1 || ast.type !== 1149 )) {150 warn('Inline-template components must have exactly one child element.')151 }152 if (ast.type === 1) {153 const inlineRenderFns = generate(ast, currentOptions)154 data += `inlineTemplate:{render:function(){${155 inlineRenderFns.render156 }},staticRenderFns:[${157 inlineRenderFns.staticRenderFns.map(code => `function(){${code}}`).join(',')158 }]}`159 }160 }161 return data.replace(/,$/, '') + '}'162}163function genDirectives (el: ASTElement): string | void {164 const dirs = el.directives165 if (!dirs) return166 let res = 'directives:['167 let hasRuntime = false168 let i, l, dir, needRuntime169 for (i = 0, l = dirs.length; i < l; i++) {170 dir = dirs[i]171 needRuntime = true172 const gen = platformDirectives[dir.name] || baseDirectives[dir.name]173 if (gen) {174 // compile-time directive that manipulates AST.175 // returns true if it also needs a runtime counterpart.176 needRuntime = !!gen(el, dir, warn)177 }178 if (needRuntime) {179 hasRuntime = true180 res += `{name:"${dir.name}"${181 dir.value ? `,value:(${dir.value})` : ''182 }${183 dir.arg ? `,arg:"${dir.arg}"` : ''184 }${185 dir.modifiers ? `,modifiers:${JSON.stringify(dir.modifiers)}` : ''186 }},`187 }188 }189 if (hasRuntime) {190 return res.slice(0, -1) + ']'191 }192}193function genChildren (el: ASTElement, asThunk?: boolean): string | void {194 if (!el.children.length) {195 return196 }197 const code = '[' + el.children.map(genNode).join(',') + ']'198 return asThunk199 ? `function(){return ${code}}`200 : code201}202function genNode (node: ASTNode) {203 if (node.type === 1) {204 return genElement(node)205 } else {206 return genText(node)207 }208}209function genText (text: ASTText | ASTExpression): string {210 return text.type === 2211 ? `(${text.expression})`212 : '_t(' + JSON.stringify(text.text) + ')'213}214function genRender (el: ASTElement): string {215 if (!el.renderMethod) {216 return 'void 0'217 }218 const children = genChildren(el)219 return `${el.renderMethod}(${220 el.renderArgs || ''221 }${222 children ? (el.renderArgs ? ',' : '') + children : ''223 })`224}225function genSlot (el: ASTElement): string {226 const slot = `$slots[${el.slotName || '"default"'}]`227 const children = genChildren(el)228 return children229 ? `(${slot}||${children})`230 : slot231}232function genComponent (el: ASTElement): string {233 const children = genChildren(el, true)234 return `_h(_e(${el.component},${genData(el)})${235 children ? `,${children}` : ''236 })`237}238function genProps (props: Array<{ name: string, value: string }>): string {239 let res = ''240 for (let i = 0; i < props.length; i++) {241 const prop = props[i]242 res += `"${prop.name}":${prop.value},`243 }244 return res.slice(0, -1)245}246function genHooks (hooks: { [key: string]: Array<string> }): string {247 let res = ''...
parser.js
Source:parser.js
...57 if (useCache && cacheStr[this.input]) {58 return cacheStr[this.input]59 }60 var array = (new JSXParser(this.input)).parse()61 var evalString = this.genChildren([array])62 if (useCache) {63 return cacheStr[this.input] = evalString64 }65 return evalString66 } else {67 throw 'need JSXParser https://github.com/RubyLouvre/jsx-parser'68 }69 },70 genTag: function (el) {71 var children = this.genChildren(el.children, el)72 var ns = this.ns73 var type = rComponent.test(el.type) ? el.type : JSON.stringify(el.type)74 return ns + '.createElement(' + type +75 ',' + this.genProps(el.props, el) +76 ',' + children + ')'77 },78 genProps: function (props, el) {79 if (!props && !el.spreadAttribute) {80 return 'null'81 }82 var ret = '{'83 for (var i in props) {84 ret += JSON.stringify(i) + ':' + this.genPropValue(props[i]) + ',\n'85 }86 ret = ret.replace(/\,\n$/, '') + '}'87 if (el.spreadAttribute) {88 return 'Object.assign({},' + el.spreadAttribute + ',' + ret + ')'89 }90 return ret91 },92 genPropValue: function (val) {93 if (typeof val === 'string') {94 return JSON.stringify(val)95 }96 if (val) {97 if (Array.isArray(val.nodeValue)) {98 return this.genChildren(val.nodeValue)99 }100 if (val) {101 return val.nodeValue102 }103 }104 },105 genChildren: function (children, obj, join) {106 if (obj) {107 if (obj.isVoidTag || !obj.children.length) {108 return 'null'109 }110 }111 var ret = []112 for (var i = 0, el; el = children[i++];) {113 if (el.type === '#jsx') {114 if (Array.isArray(el.nodeValue)) {115 ret[ret.length] = this.genChildren(el.nodeValue, null, ' ')116 } else {117 ret[ret.length] = el.nodeValue118 }119 } else if (el.type === '#text') {120 ret[ret.length] = JSON.stringify(el.nodeValue)121 } else if(el.type === "script"){122 var scriptStr = el.children[0].nodeValue;123 if(el.props.execute == "lazy"){124 var lazyScripts = db.get('lazyScripts') || [];125 lazyScripts.push(scriptStr);126 db.set('lazyScripts',lazyScripts);127 }else{128 window.eval(scriptStr)129 }...
index.js
Source:index.js
...45 return `_v(${tokens.join('+')})`46 }47 }48}49function genChildren(el) {50 let children = el.children; // è·åå¿å51 if (children) {52 return children.map(c => gen(c)).join(',')53 }54 return false;55}56function genData(el) {57 let data = '{'58 if (el.slotTarget) {59 data += `slot:${el.slotTarget}`60 }61 data += '}'62 return data63}64function genSlot(el) {65 var slotName = el.slotName || '"default"'66 var children = genChildren(el)67 var res = "_t(" + slotName + (children ? (",function(){return " + children + "}") : '')68 // TODO...69 // var attrs = el.attrs || el.dynamicAttrs70 res += ')'71 // debugger72 return res73}74function genIf(el) {75 return `(${el.attrsMap['v-if']})?_c('${el.tag}',${genProps(el.attrs)},${genChildren(el)}):_e()`76}77function genFor(el) {78 // debugger79 // console.log('genFor---el----', el)80 let arr = el.attrsMap['v-for'].split(' ')81 let exp = arr[2]82 let alias = arr[0]83 return `_l((${exp}),function(${alias}){return _c('div',{},_v(_s(a)))})`84}85export function generate(el) { // _c('div',{id:'app',a:1},_c('span',{},'world'),_v())86 // éåæ å°æ æ¼æ¥æå符串87 const code = el ? genElement(el) : '_c("div")'88 return code;89}90export function genElement(el) { // _c('div',{id:'app',a:1},_c('span',{},'world'),_v())91 // éåæ å°æ æ¼æ¥æå符串92 let data93 if (!el.plain) {94 data = genData(el)95 }96 for (let i = 0; i < el.attrs.length; i++) {97 el.attrsMap[el.attrs[i]['name']] = el.attrs[i]['value']98 }99 // debugger100 if (el.attrsMap['v-for']) {101 return genFor(el)102 } else if (el.attrsMap['v-if']) {103 // debugger104 return genIf(el)105 } else if (el.tag === 'slot') {106 return genSlot(el)107 } else {108 let children = genChildren(el);109 // debugger110 let code = `_c('${el.tag}',${111 el.attrs.length? genProps(el.attrs): 'undefined'112 }${113 children? `,${children}`:''114 })`;115 return code;116 }...
evalJSX.js
Source:evalJSX.js
...38 if (useCache && cacheStr[input]) {39 return cacheStr[input]40 }41 let array = (new JSXParser(input)).parse()42 let evalString = this.genChildren([array])43 if (useCache) {44 return cacheStr[input] = evalString45 }46 return evalString47 } else {48 throw 'need JSXParser https://github.com/RubyLouvre/jsx-parser'49 }50 };51 this.genTag = function(el) {52 let type = rComponent.test(el.type) ? el.type : JSON.stringify(el.type);53 let props = this.genProps(el);54 let str = '';55 if (properties[el.type] == null || properties[el.type] == 1)56 str = `{"ctor":"${el.type}", "props": ${props}}`;57 else if (properties[el.type] == 3)58 str = props;59 return str;60 };61 this.genProps = function (el) {62 let props = el.props;63 if (!props && !el.spreadAttribute) {64 return 'null'65 }66 let ret = '';67 for (let i in props) {68 ret += JSON.stringify(i) + ':' + this.genPropValue(props[i]) + ',\n'69 }70 let c = false;71 if (el.children.length > 0) {72 let len = el.children.length;73 let children = [];74 for (let i = 0; i < len; i++) {75 if (properties[el.children[i].type] == null) {76 children.push(el.children[i]);77 } else {78 if (properties[el.children[i].type] == 1) {79 ret += '"' + el.children[i].type + '": ' + this.genChildren(el.children[i].children, el) + ",";80 c = true;81 }82 else {83 ret += '"' + el.children[i].type + '": [' + this.genChildren(el.children[i].children, el) + ']' + ",";84 c = true;85 }86 }87 }88 if (children.length > 0) {89 ret += '"components": [' + this.genChildren(children, el) + ']' + ",";90 c = true;91 }92 if (c) {93 ret = ret.substring(0, ret.length - 1);94 }95 }96 ret = `{${ret}}`;97 if (el.spreadAttribute) {98 return 'Object.assign({},' + el.spreadAttribute + ',' + ret + ')'99 }100 return ret;101 };102 this.genPropValue = function(val) {103 if (typeof val === 'string') {104 return JSON.stringify(val)105 }106 if (val) {107 if (Array.isArray(val.nodeValue)) {108 return this.genChildren(val.nodeValue)109 }110 if (val) {111 return val.nodeValue112 }113 }114 };115 this.genChildren = function(children, obj, join) {116 if (obj) {117 if (!obj.isVoidTag && !obj.children.length) {118 return ''119 }120 }121 let ret = [];122 for (let i = 0, el; el = children[i++];) {123 if (el.type === '#jsx') {124 if (Array.isArray(el.nodeValue)) {125 ret[ret.length] = this.genChildren(el.nodeValue, null, ' ')126 } else {127 ret[ret.length] = el.nodeValue128 }129 } else if (el.type === '#text') {130 ret[ret.length] = JSON.stringify(el.nodeValue)131 } else if (el) {132 ret[ret.length] = this.genTag(el)133 }134 }135 return ret.join(join || ',')136 };137};138export {139 evalJSX...
Content.js
Source:Content.js
...49 this.$emit('change', currentIndex + 1);50 }51 }52 },53 genChildren: function genChildren() {54 var h = this.$createElement;55 if (this.animated) {56 return h("div", {57 "class": bem('track'),58 "style": this.style59 }, [this.slots()]);60 }61 return this.slots();62 }63 },64 render: function render() {65 var h = arguments[0];66 return h("div", {67 "class": bem('content', {68 animated: this.animated69 }),70 "on": _extends({}, this.listeners)71 }, [this.genChildren()]);72 }...
generate.js
Source:generate.js
...15 }16 return ' ' + attribsArr.join(' ')17}1819function genChildren(node) {20 if (!node.children) {21 return ''22 }23 return node.children.map(childNode => genElement(childNode)).join('')24}2526function genElement(node) {27 if (node.type === 'text') {28 return node.data29 } else if (node.type === 'tag') {30 const name = node.name31 return `<${name}${genAttrs(node)}>${genChildren(node)}</${name}>`32 }33 return ''34}3536function genWxs(wxs, state) {37 const wxsCode = []38 const wxsFiles = []39 wxs.forEach(wxsNode => {40 const {41 src,42 module43 } = wxsNode.attribs44 if (!module) {45 return46 }47 if (!src) {48 wxsNode.attribs.src = './' + (state.filename ? (state.filename + '-' + module) : module) + '.wxs'49 wxsFiles.push({50 path: wxsNode.attribs.src,51 content: genChildren(wxsNode)52 })53 }54 wxsNode.children.length = 055 wxsCode.push(genElement(wxsNode))56 })57 return [wxsCode.join('').trim(), wxsFiles]58}5960module.exports = function generate(node, state) {61 return [62 `<uni-shadow-root${state.shadowRootHost?(` class="${state.shadowRootHost}"`):''}>${genChildren(node).trim()}</uni-shadow-root>`,63 ...genWxs(state.wxs, state)64 ]
...
VBreadcrumbs.js
Source:VBreadcrumbs.js
...32 * v-breadcrumbs-item33 * 34 * @return {array}35 */36 genChildren: function genChildren() {37 var _this = this;38 if (!this.$slots.default) return null;39 var children = [];40 var dividerData = { staticClass: 'vf-breadcrumbs__divider' };41 var length = this.$slots.default.length;42 this.$slots.default.forEach(function (elm, i) {43 children.push(elm);44 if (!elm.componentOptions || elm.componentOptions.tag !== 'v-breadcrumbs-item' || i === length - 1) return;45 children.push(_this.$createElement('li', dividerData, _this.computedDivider));46 });47 return children;48 }49 },50 render: function render(h) {51 return h('ul', {52 staticClass: 'vf-breadcrumbs',53 'class': this.classes,54 style: this.styles55 }, this.genChildren());56 }...
Using AI Code Generation
1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch({ headless: false });4 const page = await browser.newPage();5 const element = await page.$('text=Get started');6 const children = await element._internal.genChildren();7 console.log(children);8 await browser.close();9})();10 {11 _attributes: { href: '/docs/intro' },12 }
Using AI Code Generation
1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const page = await browser.newPage();5 const children = await page._delegate.genChildren();6 console.log(children);7 await browser.close();8})();9 {10 {11 {12 "importedDocument": null,13 }14 "importedDocument": null,15 }16 "importedDocument": null,17 }
Using AI Code Generation
1const {chromium} = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const page = await browser.newPage();5 const input = await page.$('input[name="q"]');6 const children = await input._client.send('DOM.getFlattenedDocument');7 console.log(children);8 await browser.close();9})();10### `getFlattenedDocument()`
Using AI Code Generation
1const { genChildren } = require('playwright/lib/server/dom.js');2const { serializeNode } = require('playwright/lib/server/serializers.js');3const node = document.querySelector('div');4const children = genChildren(node);5console.log(serializeNode(children, node.ownerDocument));6{7 "attributes": {},8 {9 "attributes": {},10 {11 "attributes": {},12 {13 "attributes": {},14 {15 "attributes": {},16 {17 "attributes": {},18 {19 "attributes": {},20 {21 "attributes": {},22 {23 "attributes": {},24 {25 "attributes": {},
Using AI Code Generation
1const { genChildren } = require('playwright/lib/server/dom.js');2const { parse } = require('playwright/lib/server/dom.js');3const { serialize } = require('playwright/lib/server/dom.js');4const { createTree } = require('playwright/lib/server/dom.js');5const { serializeNode } = require('playwright/lib/server/dom.js');6const { setInnerHTML } = require('playwright/lib/server/dom.js');7const { setOuterHTML } = require('playwright/lib/server/dom.js');8const { setNodeValue } = require('playwright/lib/server/dom.js');9const { setAttribute } = require('playwright/lib/server/dom.js');10const { removeAttribute } = require('playwright/lib/server/dom.js');11const { insertChild } = require('playwright/lib/server/dom.js');12const { removeChild } = require('playwright/lib/server/dom.js');13const { setDocumentContent } = require('playwright/lib/server/dom.js');14const { adoptAttributes } = require('playwright/lib/server/dom.js');15const { adoptNode } = require('playwright/lib/server/dom.js');16const { adoptShadowRoot } = require('playwright/lib/server/dom.js');17const { setFocused } = require('playwright/lib/server/dom.js');18const { setFileInputFiles } = require('playwright/lib/server/dom.js');19const { dispatchEvent } = require('playwright/lib/server/dom.js');20const { dispatchKeyEvent } = require('playwright/lib/server/dom.js');21const { dispatchMouseEvent } = require('playwright/lib/server/dom.js');22const { dispatchTouchEvent } = require('playwright/lib/server/dom.js');23const { dispatchWheelEvent } = require('playwright/lib/server/dom.js');24const { setViewportSize } = require('playwright/lib/server/dom.js');25const { setEmulateMedia } = require('playwright/lib/server/dom.js');26const { dispatchMessageEvent } = require('playwright/lib/server/dom.js');27const { dispatchStorageEvent } = require('playwright/lib/server/dom.js');28const { dispatchCustomEvent } = require('playwright/lib/server/dom.js');29const { setGeolocation } = require('playwright/lib/server/dom.js');30const { setExtraHTTPHeaders } = require('playwright/lib/server/dom.js');31const { setOffline } = require('playwright/lib/server/dom.js');32const { setHTTPCredentials } = require('playwright/lib/server/dom.js');33const {
LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.
Get 100 minutes of automation test minutes FREE!!