defaults.ts 100 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101
  1. import { Pen, FormItem } from '@meta2d/core';
  2. import { cdn } from './api';
  3. const getRootDomain = ()=>{
  4. const a =location.host.split('.');
  5. return `.${a[a.length-2]}.${a[a.length-1]}`
  6. };
  7. export let rootDomain = getRootDomain().indexOf('localhost')!==-1?'.le5le.com':getRootDomain();
  8. export const fromArrows = [
  9. { icon: '#l-line', value: '' },
  10. { icon: '#l-from-triangle', value: 'triangle' },
  11. { icon: '#l-from-diamond', value: 'diamond' },
  12. { icon: '#l-from-circle', value: 'circle' },
  13. { icon: '#l-from-lineDown', value: 'lineDown' },
  14. { icon: '#l-from-lineUp', value: 'lineUp' },
  15. { icon: '#l-from-triangleSolid', value: 'triangleSolid' },
  16. { icon: '#l-from-diamondSolid', value: 'diamondSolid' },
  17. { icon: '#l-from-circleSolid', value: 'circleSolid' },
  18. { icon: '#l-from-line', value: 'line' },
  19. ];
  20. export const toArrows = [
  21. { icon: '#l-line', value: '' },
  22. { icon: '#l-to-triangle', value: 'triangle' },
  23. { icon: '#l-to-diamond', value: 'diamond' },
  24. { icon: '#l-to-circle', value: 'circle' },
  25. { icon: '#l-to-lineDown', value: 'lineDown' },
  26. { icon: '#l-to-lineUp', value: 'lineUp' },
  27. { icon: '#l-to-triangleSolid', value: 'triangleSolid' },
  28. { icon: '#l-to-diamondSolid', value: 'diamondSolid' },
  29. { icon: '#l-to-circleSolid', value: 'circleSolid' },
  30. { icon: '#l-to-line', value: 'line' },
  31. ];
  32. export const lineDashObj = [
  33. undefined,
  34. [5, 5],
  35. [10, 10],
  36. [10, 10, 2, 10],
  37. [1, 16],
  38. ];
  39. /**
  40. * 默认动画
  41. */
  42. export const normalAnimate: any = {
  43. upDown: [
  44. {
  45. y: -10,
  46. duration: 100,
  47. },
  48. { y: 0, duration: 100 },
  49. { y: -10, duration: 200 },
  50. ],
  51. leftRight: [
  52. {
  53. x: -10,
  54. duration: 100,
  55. },
  56. {
  57. x: 10,
  58. duration: 80,
  59. },
  60. {
  61. x: -10,
  62. duration: 50,
  63. },
  64. {
  65. x: 10,
  66. duration: 30,
  67. },
  68. {
  69. x: 0,
  70. duration: 300,
  71. },
  72. ],
  73. heart: [
  74. {
  75. // 通过 scale 来替代原版心跳
  76. scale: 1.1,
  77. duration: 100,
  78. },
  79. {
  80. scale: 1,
  81. duration: 400,
  82. },
  83. ],
  84. success: [{ background: '#389e0d22', color: '#237804', duration: 500 }],
  85. warning: [
  86. {
  87. color: '#fa8c16',
  88. lineDash: [10, 10],
  89. duration: 300,
  90. },
  91. {
  92. color: '#fa8c16',
  93. lineDash: undefined,
  94. duration: 500,
  95. },
  96. {
  97. color: '#fa8c16',
  98. lineDash: [10, 10],
  99. duration: 300,
  100. },
  101. ],
  102. error: [{ color: '#cf1322', background: '#cf132222', duration: 100 }],
  103. show: [
  104. {
  105. color: '#fa541c',
  106. rotate: -10,
  107. duration: 100,
  108. },
  109. {
  110. color: '#fa541c',
  111. rotate: 10,
  112. duration: 100,
  113. },
  114. {
  115. color: '#fa541c',
  116. rotate: 0,
  117. duration: 100,
  118. },
  119. ],
  120. rotate: [
  121. {
  122. rotate: 360,
  123. duration: 1000,
  124. },
  125. ],
  126. };
  127. export const defaultFormat: Pen = {
  128. borderRadius: 0,
  129. rotate: 0,
  130. paddingLeft: 0,
  131. paddingRight: 0,
  132. paddingTop: 0,
  133. paddingBottom: 0,
  134. progress: 0,
  135. progressColor: '#fff0',
  136. verticalProgress: false,
  137. flipX: false,
  138. flipY: false,
  139. input: false,
  140. lineDash: [],
  141. lineCap: 'round',
  142. lineJoin: 'round',
  143. strokeType: 0,
  144. lineGradientFromColor: undefined,
  145. lineGradientToColor: undefined,
  146. lineGradientAngle: 0,
  147. // color: "#222",
  148. hoverColor: undefined,
  149. activeColor: undefined,
  150. lineWidth: 1,
  151. bkType: 0,
  152. gradientFromColor: undefined,
  153. gradientToColor: undefined,
  154. gradientAngle: 0,
  155. gradientRadius: 0,
  156. hoverBackground: undefined,
  157. activeBackground: undefined,
  158. globalAlpha: 1,
  159. anchorColor: undefined,
  160. anchorRadius: 0,
  161. shadowColor: undefined,
  162. shadowBlur: 0,
  163. shadowOffsetX: 0,
  164. shadowOffsetY: 0,
  165. textHasShadow: undefined,
  166. fontFamily: undefined,
  167. fontSize: 0,
  168. textColor: undefined,
  169. hoverTextColor: undefined,
  170. activeTextColor: undefined,
  171. textBackground: undefined,
  172. fontStyle: undefined,
  173. fontWeight: undefined,
  174. textAlign: undefined,
  175. textBaseline: undefined,
  176. lineHeight: 0,
  177. whiteSpace: undefined,
  178. textWidth: 0,
  179. textHeight: 0,
  180. textLeft: 0,
  181. textTop: 0,
  182. ellipsis: false,
  183. hiddenText: false,
  184. keepDecimal: 0,
  185. borderWidth: 0,
  186. borderColor: undefined,
  187. animateLineWidth: 0,
  188. lineAnimateType: 0,
  189. frames: [],
  190. animateColor: undefined,
  191. // animateType: undefined,
  192. animateReverse: false,
  193. background: '#fff0',
  194. gradientColors: undefined,
  195. lineGradientColors: undefined,
  196. gradientSmooth: 0,
  197. };
  198. export interface FormItemType extends FormItem {
  199. key: string; // 属性标识,绑定变量时使用
  200. key2?: string; // 有些属性存在嵌套
  201. name: string; // 标题
  202. tips?: string; // 提示
  203. placeholder?: string; // input placeholder
  204. type:
  205. | 'text' // string 类型输入框
  206. | 'number'
  207. | 'color'
  208. | 'textarea'
  209. | 'select'
  210. | 'switch'
  211. | 'code'
  212. | 'image'
  213. | 'icon'
  214. | 'slider'
  215. | 'autoComplete'
  216. | 'label'; // 文字,不含输入框;
  217. options?: {
  218. // 选项
  219. label: string; // 选项的标题,可以使用 html
  220. value: any; // 选项的值
  221. disabled?: boolean;
  222. }[];
  223. min?: number; // 最小值
  224. max?: number; // 最大值
  225. step?: number; // 步长
  226. rows?: number; // textarea 所需要的行数
  227. iconFamily?: string; // icon 类型节点需要
  228. title?: string; // code 类型编辑器需要
  229. language?: 'javascript' | 'json' | 'markdown'; // code 编辑器需要
  230. readonly?: boolean; // 是否只读
  231. mode?: 'multiple' | 'tags'; // select 选项
  232. isNotString?: boolean; // monaco 需要 string 类型的 code ,不是 string 协助转换
  233. multiple?: boolean; // 绑定多个属性
  234. isTime?: boolean; // 是否是时序的, undefined 不会出现 历史趋势 的 checkbox
  235. isYCategory?: boolean; // y 轴是否是分类,true y 轴分类,false x 轴分类,undefined 不会出现 y轴分类轴 的 checkbox
  236. // 绑定单个属性是对象, 多个数组
  237. // dataIds?: BindId | BindId[]; // 关联业务数据
  238. precision?: number; //精度
  239. gradient?: boolean; //是否为渐变色
  240. hidden?: boolean; //是否隐藏
  241. }
  242. export const iframeCustom = [
  243. {
  244. key: 'iframe',
  245. label: '网页地址',
  246. type: 'string',
  247. },
  248. {
  249. key: 'zIndex',
  250. label: 'dom层级(z-index)',
  251. type: 'number',
  252. min: 0,
  253. placeholder: '默认4',
  254. },
  255. {
  256. key: 'operationalRect.x',
  257. label: '可操作x',
  258. type: 'number',
  259. min: 0,
  260. max: 1,
  261. placeholder: '范围0-1',
  262. },
  263. {
  264. key: 'operationalRect.y',
  265. label: '可操作y',
  266. type: 'number',
  267. min: 0,
  268. max: 1,
  269. placeholder: '范围0-1',
  270. },
  271. {
  272. key: 'operationalRect.width',
  273. label: '可操作宽度',
  274. type: 'number',
  275. min: 0,
  276. max: 1,
  277. placeholder: '范围0-1',
  278. },
  279. {
  280. key: 'operationalRect.height',
  281. label: '可操作高度',
  282. type: 'number',
  283. min: 0,
  284. max: 1,
  285. placeholder: '范围0-1',
  286. },
  287. {
  288. key: 'blur',
  289. label: '背景模糊',
  290. type: 'number',
  291. min: 0,
  292. },
  293. {
  294. key: 'blurBackground',
  295. label: '毛玻璃颜色',
  296. type: 'color',
  297. },
  298. ];
  299. export const shapes = [
  300. {
  301. name: '基本形状',
  302. show: true,
  303. list: [
  304. {
  305. name: '正方形',
  306. icon: 'l-rect',
  307. id: 1,
  308. data: {
  309. width: 100,
  310. height: 100,
  311. name: 'square',
  312. },
  313. },
  314. {
  315. name: '矩形',
  316. icon: 'l-rectangle',
  317. id: 2,
  318. data: {
  319. width: 200,
  320. height: 50,
  321. borderRadius: 0.1,
  322. name: 'rectangle',
  323. },
  324. },
  325. {
  326. name: '圆',
  327. icon: 'l-circle',
  328. id: 3,
  329. data: {
  330. width: 100,
  331. height: 100,
  332. name: 'circle',
  333. },
  334. },
  335. {
  336. name: '三角形',
  337. icon: 'l-triangle',
  338. id: 4,
  339. data: {
  340. width: 100,
  341. height: 100,
  342. name: 'triangle',
  343. },
  344. },
  345. {
  346. name: '菱形',
  347. icon: 'l-diamond',
  348. id: 5,
  349. data: {
  350. width: 100,
  351. height: 100,
  352. name: 'diamond',
  353. },
  354. },
  355. {
  356. name: '五边形',
  357. icon: 'l-pentagon',
  358. id: 6,
  359. data: {
  360. width: 100,
  361. height: 100,
  362. name: 'pentagon',
  363. },
  364. },
  365. {
  366. name: '六边形',
  367. icon: 'l-hexagon',
  368. id: 7,
  369. data: {
  370. width: 100,
  371. height: 100,
  372. name: 'hexagon',
  373. },
  374. },
  375. {
  376. name: '五角星',
  377. icon: 'l-pentagram',
  378. id: 8,
  379. data: {
  380. width: 100,
  381. height: 100,
  382. name: 'pentagram',
  383. },
  384. },
  385. {
  386. name: '左箭头',
  387. icon: 'l-arrow-left',
  388. id: 9,
  389. data: {
  390. width: 120,
  391. height: 60,
  392. name: 'leftArrow',
  393. },
  394. },
  395. {
  396. name: '右箭头',
  397. icon: 'l-arrow-right',
  398. id: 10,
  399. data: {
  400. width: 120,
  401. height: 60,
  402. name: 'rightArrow',
  403. },
  404. },
  405. {
  406. name: '双向箭头',
  407. icon: 'l-twoway-arrow',
  408. id: 11,
  409. data: {
  410. width: 150,
  411. height: 60,
  412. name: 'twowayArrow',
  413. },
  414. },
  415. {
  416. name: '云',
  417. icon: 'l-cloud',
  418. id: 13,
  419. data: {
  420. width: 100,
  421. height: 100,
  422. name: 'cloud',
  423. },
  424. },
  425. {
  426. name: '消息框',
  427. icon: 'l-msg',
  428. id: 14,
  429. data: {
  430. textTop: -0.1,
  431. width: 100,
  432. height: 100,
  433. name: 'message',
  434. },
  435. },
  436. {
  437. name: '文件',
  438. icon: 'l-file',
  439. id: 15,
  440. data: {
  441. width: 80,
  442. height: 100,
  443. name: 'file',
  444. },
  445. },
  446. {
  447. name: '立方体',
  448. icon: 'l-cube',
  449. id: 18,
  450. data: {
  451. width: 60,
  452. height: 100,
  453. name: 'cube',
  454. z: 0.25,
  455. props: {
  456. custom: [
  457. {
  458. key: 'z',
  459. label: 'Z',
  460. type: 'number',
  461. min: 0,
  462. placeholder: '<= 1 即宽度的比例',
  463. },
  464. {
  465. key: 'backgroundFront',
  466. label: '前背景色',
  467. type: 'color',
  468. },
  469. {
  470. key: 'backgroundUp',
  471. label: '顶背景色',
  472. type: 'color',
  473. },
  474. {
  475. key: 'backgroundRight',
  476. label: '右背景色',
  477. type: 'color',
  478. },
  479. ],
  480. },
  481. },
  482. },
  483. {
  484. name: '人',
  485. icon: 'l-people',
  486. id: 19,
  487. data: {
  488. width: 70,
  489. height: 100,
  490. name: 'people',
  491. },
  492. },
  493. ],
  494. },
  495. {
  496. name: '脑图',
  497. show: true,
  498. list: [
  499. {
  500. name: '主题',
  501. icon: 'l-zhuti',
  502. data: {
  503. text: '主题',
  504. width: 200,
  505. height: 50,
  506. name: 'mindNode',
  507. borderRadius: 0.5,
  508. },
  509. },
  510. {
  511. name: '子主题',
  512. icon: 'l-zizhuti',
  513. data: {
  514. text: '子主题',
  515. width: 160,
  516. height: 40,
  517. name: 'mindLine',
  518. },
  519. },
  520. ],
  521. },
  522. {
  523. name: '流程图',
  524. show: true,
  525. list: [
  526. {
  527. name: '开始/结束',
  528. icon: 'l-flow-start',
  529. id: 21,
  530. data: {
  531. text: '开始/结束',
  532. width: 120,
  533. height: 40,
  534. borderRadius: 0.5,
  535. name: 'rectangle',
  536. },
  537. },
  538. {
  539. name: '流程',
  540. icon: 'l-rectangle',
  541. id: 22,
  542. data: {
  543. text: '流程',
  544. width: 120,
  545. height: 40,
  546. name: 'rectangle',
  547. },
  548. },
  549. {
  550. name: '判定',
  551. icon: 'l-diamond',
  552. id: 23,
  553. data: {
  554. text: '判定',
  555. width: 120,
  556. height: 60,
  557. name: 'diamond',
  558. },
  559. },
  560. {
  561. name: '数据',
  562. icon: 'l-flow-data',
  563. id: 24,
  564. data: {
  565. text: '数据',
  566. width: 120,
  567. height: 50,
  568. name: 'flowData',
  569. offsetX: 0.14,
  570. form: [
  571. {
  572. key: 'offsetX',
  573. name: '斜率',
  574. type: 'number',
  575. min: 0,
  576. step: 0.1,
  577. placeholder: '<= 1 即宽度的比例',
  578. },
  579. ] as FormItemType[],
  580. },
  581. },
  582. {
  583. name: '准备',
  584. icon: 'l-flow-ready',
  585. id: 25,
  586. data: {
  587. text: '准备',
  588. width: 120,
  589. height: 50,
  590. name: 'hexagon',
  591. },
  592. },
  593. {
  594. name: '子流程',
  595. icon: 'l-flow-subprocess',
  596. id: 26,
  597. data: {
  598. text: '子流程',
  599. width: 120,
  600. height: 50,
  601. name: 'flowSubprocess',
  602. },
  603. },
  604. {
  605. name: '数据库',
  606. icon: 'l-db',
  607. id: 27,
  608. data: {
  609. text: '数据库',
  610. width: 80,
  611. height: 120,
  612. name: 'flowDb',
  613. },
  614. },
  615. {
  616. name: '文档',
  617. icon: 'l-flow-document',
  618. id: 28,
  619. data: {
  620. text: '文档',
  621. width: 120,
  622. height: 100,
  623. name: 'flowDocument',
  624. },
  625. },
  626. {
  627. name: '内部存储',
  628. icon: 'l-internal-storage',
  629. id: 29,
  630. data: {
  631. text: '内部存储',
  632. width: 120,
  633. height: 80,
  634. name: 'flowInternalStorage',
  635. },
  636. },
  637. {
  638. name: '外部存储',
  639. icon: 'l-extern-storage',
  640. id: 30,
  641. data: {
  642. text: '外部存储',
  643. width: 120,
  644. height: 80,
  645. name: 'flowExternStorage',
  646. },
  647. },
  648. {
  649. name: '队列',
  650. icon: 'l-flow-queue',
  651. id: 31,
  652. data: {
  653. text: '队列',
  654. width: 100,
  655. height: 100,
  656. name: 'flowQueue',
  657. },
  658. },
  659. {
  660. name: '手动输入',
  661. icon: 'l-flow-manually',
  662. id: 32,
  663. data: {
  664. text: '手动输入',
  665. width: 120,
  666. height: 80,
  667. name: 'flowManually',
  668. },
  669. },
  670. {
  671. name: '展示',
  672. icon: 'l-flow-display',
  673. id: 33,
  674. data: {
  675. text: '展示',
  676. width: 120,
  677. height: 80,
  678. name: 'flowDisplay',
  679. },
  680. },
  681. {
  682. name: '并行模式',
  683. icon: 'l-flow-parallel',
  684. id: 34,
  685. data: {
  686. text: '并行模式',
  687. width: 120,
  688. height: 50,
  689. name: 'flowParallel',
  690. },
  691. },
  692. {
  693. name: '注释',
  694. icon: 'l-flow-comment',
  695. id: 35,
  696. data: {
  697. text: '注释',
  698. width: 100,
  699. height: 100,
  700. name: 'flowComment',
  701. },
  702. },
  703. ],
  704. },
  705. {
  706. name: '活动图',
  707. show: true,
  708. list: [
  709. {
  710. name: '开始',
  711. icon: 'l-inital',
  712. id: 36,
  713. data: {
  714. text: '',
  715. width: 30,
  716. height: 30,
  717. name: 'circle',
  718. background: '#555',
  719. lineWidth: 0,
  720. },
  721. },
  722. {
  723. name: '结束',
  724. icon: 'l-final',
  725. id: 37,
  726. data: {
  727. width: 30,
  728. height: 30,
  729. name: 'activityFinal',
  730. },
  731. },
  732. {
  733. name: '活动',
  734. icon: 'l-action',
  735. id: 38,
  736. data: {
  737. text: '活动',
  738. width: 120,
  739. height: 50,
  740. borderRadius: 0.25,
  741. name: 'rectangle',
  742. },
  743. },
  744. {
  745. name: '决策/合并',
  746. icon: 'l-diamond',
  747. id: 39,
  748. data: {
  749. text: '决策/合并',
  750. width: 120,
  751. height: 50,
  752. name: 'diamond',
  753. },
  754. },
  755. {
  756. name: '垂直泳道',
  757. icon: 'l-swimlane-v',
  758. id: 40,
  759. data: {
  760. text: '垂直泳道',
  761. width: 200,
  762. height: 500,
  763. name: 'swimlaneV',
  764. textBaseline: 'top',
  765. textTop: 20,
  766. // textHeight: ,
  767. lineTop: 0.08,
  768. },
  769. },
  770. {
  771. name: '水平泳道',
  772. icon: 'l-swimlane-h',
  773. id: 41,
  774. data: {
  775. text: '水平泳道',
  776. width: 500,
  777. height: 200,
  778. name: 'swimlaneH',
  779. textWidth: 0.01,
  780. textLeft: 0.04,
  781. textAlign: 'left',
  782. lineLeft: 0.08,
  783. },
  784. },
  785. {
  786. name: '垂直分岔/汇合',
  787. icon: 'l-fork-v',
  788. id: 42,
  789. data: {
  790. text: '垂直分岔/汇合',
  791. width: 10,
  792. height: 150,
  793. name: 'forkV',
  794. fillStyle: '#555',
  795. strokeStyle: 'transparent',
  796. },
  797. },
  798. {
  799. name: '水平分岔/汇合',
  800. icon: 'l-fork',
  801. id: 43,
  802. data: {
  803. text: '水平分岔/汇合',
  804. width: 150,
  805. height: 10,
  806. name: 'forkH',
  807. fillStyle: '#555',
  808. strokeStyle: 'transparent',
  809. },
  810. },
  811. ],
  812. },
  813. {
  814. name: '时序图和类图',
  815. show: true,
  816. list: [
  817. {
  818. name: '生命线',
  819. icon: 'l-lifeline',
  820. id: 44,
  821. data: {
  822. text: '生命线',
  823. width: 150,
  824. height: 400,
  825. textHeight: 50,
  826. name: 'lifeline',
  827. },
  828. },
  829. {
  830. name: '激活',
  831. icon: 'l-focus',
  832. id: 45,
  833. data: {
  834. text: '激活',
  835. width: 12,
  836. height: 200,
  837. name: 'sequenceFocus',
  838. },
  839. },
  840. {
  841. name: '简单类',
  842. icon: 'l-simple-class',
  843. id: 46,
  844. data: {
  845. text: 'Topolgoy',
  846. width: 270,
  847. height: 200,
  848. textHeight: 200,
  849. name: 'simpleClass',
  850. textAlign: 'center',
  851. textBaseline: 'top',
  852. textTop: 10,
  853. list: [
  854. {
  855. text: '- name: string\n+ setName(name: string): void',
  856. },
  857. ],
  858. },
  859. },
  860. {
  861. name: '类',
  862. icon: 'l-class',
  863. id: 47,
  864. data: {
  865. text: 'Topolgoy',
  866. width: 270,
  867. height: 200,
  868. textHeight: 200,
  869. name: 'interfaceClass',
  870. textAlign: 'center',
  871. textBaseline: 'top',
  872. textTop: 10,
  873. list: [
  874. {
  875. text: '- name: string',
  876. },
  877. {
  878. text: '+ setName(name: string): void',
  879. },
  880. ],
  881. },
  882. },
  883. ],
  884. },
  885. {
  886. name: '故障树',
  887. show: true,
  888. list: [
  889. {
  890. name: '与门',
  891. icon: 'l-ANDmen',
  892. data: {
  893. name: 'andGate',
  894. width: 100,
  895. height: 150,
  896. },
  897. },
  898. {
  899. name: '基本事件',
  900. icon: 'l-jibenshijian',
  901. data: {
  902. name: 'basicEvent',
  903. width: 100,
  904. height: 150,
  905. },
  906. },
  907. {
  908. name: '未展开事件',
  909. icon: 'l-weizhankaishijian',
  910. data: {
  911. name: 'unexpandedEvent',
  912. width: 100,
  913. height: 150,
  914. },
  915. },
  916. {
  917. name: '优先AND门',
  918. icon: 'l-youxianANDmen',
  919. data: {
  920. name: 'priorityAndGate',
  921. width: 100,
  922. height: 150,
  923. },
  924. },
  925. {
  926. name: '禁止门',
  927. icon: 'l-jinzhimen',
  928. data: {
  929. name: 'forbiddenGate',
  930. width: 100,
  931. height: 150,
  932. },
  933. },
  934. {
  935. name: '事件',
  936. icon: 'l-shijian',
  937. data: {
  938. name: 'event',
  939. width: 100,
  940. height: 150,
  941. },
  942. },
  943. {
  944. name: '开关事件',
  945. icon: 'l-kaiguanshijian',
  946. data: {
  947. name: 'switchEvent',
  948. width: 100,
  949. height: 150,
  950. },
  951. },
  952. {
  953. name: '条件事件',
  954. icon: 'l-tiaojianshijian',
  955. data: {
  956. name: 'conditionalEvent',
  957. width: 150,
  958. height: 100,
  959. },
  960. },
  961. {
  962. name: '转移符号',
  963. icon: 'l-zhuanyifuhao',
  964. data: {
  965. name: 'transferSymbol',
  966. width: 100,
  967. height: 150,
  968. },
  969. },
  970. {
  971. name: '或门',
  972. icon: 'l-ORmen',
  973. data: {
  974. name: 'orGate',
  975. width: 100,
  976. height: 150,
  977. },
  978. },
  979. {
  980. name: '异或门',
  981. icon: 'l-yihuomen',
  982. data: {
  983. name: 'xorGate',
  984. width: 100,
  985. height: 150,
  986. },
  987. },
  988. {
  989. name: '表决门',
  990. icon: 'l-biaojuemen',
  991. data: {
  992. name: 'votingGate',
  993. width: 100,
  994. height: 150,
  995. },
  996. },
  997. ],
  998. },
  999. ];
  1000. export const formComponents = [
  1001. {
  1002. name: '基础',
  1003. show: true,
  1004. list: [
  1005. {
  1006. name: '文本',
  1007. icon: 'l-wenben',
  1008. data: {
  1009. width: 160,
  1010. height: 30,
  1011. name: 'text',
  1012. text: '乐吾乐le5le - 大屏可视化',
  1013. textAutoAdjust: true,
  1014. props: {
  1015. custom: [
  1016. {
  1017. key: 'textAutoAdjust',
  1018. label: '文本自动大小',
  1019. type: 'bool',
  1020. },
  1021. ],
  1022. },
  1023. },
  1024. },
  1025. {
  1026. name: '数字',
  1027. icon: 'l-shuzi',
  1028. data: {
  1029. width: 160,
  1030. height: 30,
  1031. name: 'text',
  1032. text: '3.1415926',
  1033. keepDecimal: 2,
  1034. },
  1035. },
  1036. {
  1037. name: '进度条',
  1038. icon: 'l-jindutiao',
  1039. data: {
  1040. anchors: [],
  1041. disableAnchor: true,
  1042. name: 'progress',
  1043. width: 164,
  1044. height: 6,
  1045. borderRadius: 0.5,
  1046. progressColor: '#4583FF',
  1047. progress: 0.8,
  1048. background: '#303746',
  1049. disableInput: true,
  1050. lineWidth: 0,
  1051. borderWidth: 0,
  1052. props: {
  1053. custom: [
  1054. {
  1055. key: 'progress',
  1056. label: '进度',
  1057. type: 'number',
  1058. max: 1,
  1059. min: 0,
  1060. },
  1061. {
  1062. key: 'progressColor',
  1063. label: '进度颜色',
  1064. type: 'color',
  1065. },
  1066. ],
  1067. },
  1068. },
  1069. },
  1070. {
  1071. name: '图标',
  1072. icon: 'l-tubiao',
  1073. data: {
  1074. width: 100,
  1075. height: 100,
  1076. name: 'image',
  1077. icon: '\uea86',
  1078. iconFamily: 'l-icon',
  1079. },
  1080. },
  1081. {
  1082. name: '图片',
  1083. icon: 'l-tupian',
  1084. data: {
  1085. width: 100,
  1086. height: 100,
  1087. name: 'image',
  1088. image: (cdn ? cdn + '/v' : import.meta.env.BASE_URL.slice(0,-1)) + '/img/logo.png',
  1089. },
  1090. },
  1091. {
  1092. name: 'GIF',
  1093. icon: 'l-GIF',
  1094. data: {
  1095. width: 100,
  1096. height: 100,
  1097. name: 'gif',
  1098. image: (cdn ? cdn + '/v' : '') + '/png/电信机房/防火墙.gif',
  1099. },
  1100. },
  1101. {
  1102. name: '头像',
  1103. icon: 'l-touxiang',
  1104. data: {
  1105. width: 30,
  1106. height: 30,
  1107. disableAnchor: true,
  1108. name: 'square',
  1109. lineWidth: 0,
  1110. image: (cdn ? cdn + '/v' : '') + '/img/avatar.png',
  1111. imageRadius: 0.5,
  1112. background: '#689f38',
  1113. borderRadius: 0.5,
  1114. ratio: true,
  1115. props: {
  1116. custom: [
  1117. {
  1118. key: 'imageRadius',
  1119. label: '图片圆角半径',
  1120. type: 'slider',
  1121. },
  1122. ],
  1123. },
  1124. },
  1125. },
  1126. {
  1127. name: '徽标',
  1128. icon: 'l-huibiao',
  1129. data: {
  1130. width: 35,
  1131. height: 20,
  1132. name: 'square',
  1133. borderRadius: 0.5,
  1134. lineWidth: 0,
  1135. background: '#d54941',
  1136. color: '#fff',
  1137. text: '99+',
  1138. },
  1139. },
  1140. {
  1141. name: '标签',
  1142. icon: 'l-biaoqian',
  1143. data: {
  1144. text: 'success',
  1145. width: 80,
  1146. height: 24,
  1147. borderRadius: 0.1,
  1148. name: 'rectangle',
  1149. lineWidth: 1,
  1150. fontSize: 12,
  1151. icon: '\uea10',
  1152. iconFamily: 'l-icon',
  1153. iconColor: '#FFFFFF99', //#52c41a
  1154. iconSize: 12,
  1155. iconAlign: 'left',
  1156. iconLeft: 8,
  1157. textAlign: 'right',
  1158. color: '#FFFFFFAA',
  1159. background: '#282E3B', //#f6ffed
  1160. textLeft: -6,
  1161. },
  1162. },
  1163. ],
  1164. },
  1165. {
  1166. name: '音视频',
  1167. show: true,
  1168. list: [
  1169. {
  1170. name: '视频',
  1171. icon: 'l-shipin',
  1172. data: {
  1173. width: 200,
  1174. height: 200,
  1175. externElement: true,
  1176. name: 'video',
  1177. video:
  1178. 'https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4',
  1179. props: {
  1180. custom: [
  1181. {
  1182. key: 'video',
  1183. label: '视频地址',
  1184. type: 'string',
  1185. },
  1186. ],
  1187. },
  1188. },
  1189. },
  1190. {
  1191. name: 'FLV视频流',
  1192. icon: 'l-pc',
  1193. data: {
  1194. name: 'flvPlayerDom',
  1195. width: 477,
  1196. height: 268,
  1197. externElement: true,
  1198. video:
  1199. 'https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv',
  1200. mediaDataSource: {},
  1201. optionalConfig: {},
  1202. props: {
  1203. custom: [
  1204. {
  1205. key: 'video',
  1206. label: '视频地址',
  1207. type: 'string',
  1208. },
  1209. {
  1210. key: 'mediaDataSource',
  1211. label: '媒体数据源',
  1212. type: 'code',
  1213. placeholder:
  1214. '具体配置参考:https://github.com/bilibili/flv.js/blob/master/docs/api.md',
  1215. },
  1216. {
  1217. key: 'optionalConfig',
  1218. label: '配置',
  1219. type: 'code',
  1220. placeholder:
  1221. '具体配置参考:https://github.com/bilibili/flv.js/blob/master/docs/api.md',
  1222. },
  1223. ],
  1224. },
  1225. },
  1226. },
  1227. {
  1228. name: '音频',
  1229. icon: 'l-yinpin',
  1230. data: {
  1231. width: 200,
  1232. height: 40,
  1233. externElement: true,
  1234. name: 'video',
  1235. audio: 'https://www.xzmp3.com/down/597caee79849.mp3',
  1236. props: {
  1237. custom: [
  1238. {
  1239. key: 'audio',
  1240. label: '视频地址',
  1241. type: 'string',
  1242. },
  1243. ],
  1244. },
  1245. },
  1246. },
  1247. {
  1248. name: '摄像头',
  1249. icon: 'l-10',
  1250. data: {
  1251. width: 400,
  1252. height: 250,
  1253. name: 'rtspPlayerDom',
  1254. externElement: true,
  1255. mse: true,
  1256. url: '',
  1257. rtspUrl: '',
  1258. props: {
  1259. custom: [
  1260. {
  1261. key: 'mse',
  1262. label: '类型',
  1263. type: 'select',
  1264. options: [
  1265. { label: 'Webrtc(低延迟,仅支持H264格式)', value: false },
  1266. { label: 'MSE(支持H265格式,需最新chrome)', value: true },
  1267. ],
  1268. },
  1269. {
  1270. key: 'url',
  1271. label: '流服务',
  1272. type: 'string',
  1273. },
  1274. {
  1275. key: 'rtspUrl',
  1276. label: 'RTSP URL',
  1277. type: 'string',
  1278. },
  1279. ],
  1280. },
  1281. },
  1282. }
  1283. ],
  1284. },
  1285. {
  1286. name: '时间',
  1287. show: true,
  1288. list: [
  1289. {
  1290. name: '时间',
  1291. icon: 'l-clock',
  1292. data: {
  1293. name: 'time',
  1294. width: 300,
  1295. height: 40,
  1296. text: '当前时间',
  1297. lineWidth: 0,
  1298. fillZero: true,
  1299. timeFormat:
  1300. '`${year}-${month}-${day} ${hours}:${minutes}:${seconds} 星期${week}`',
  1301. props: {
  1302. custom: [
  1303. {
  1304. key: 'timeFormat',
  1305. label: '显示格式',
  1306. type: 'string',
  1307. },
  1308. // {
  1309. // key: 'fillZero',
  1310. // label: '补0',
  1311. // type: 'switch',
  1312. // },
  1313. ],
  1314. },
  1315. },
  1316. },
  1317. {
  1318. name: '倒计时',
  1319. icon: 'l-daojishi',
  1320. data: {
  1321. name: 'countdown',
  1322. width: 300,
  1323. height: 40,
  1324. text: '倒计时',
  1325. // deadline: '2024/1/1 00:00:00', //配置未来的时间
  1326. borderWidth: 0,
  1327. timeFormat:
  1328. '`距离下一年还有:${day}天${hours}时${minutes}分${seconds}秒`',
  1329. props: {
  1330. custom: [
  1331. {
  1332. key: 'timeFormat',
  1333. label: '显示格式',
  1334. type: 'string',
  1335. },
  1336. {
  1337. key: 'deadline',
  1338. label: '截止时间',
  1339. type: 'string',
  1340. },
  1341. ],
  1342. },
  1343. },
  1344. },
  1345. {
  1346. name: '水平时间轴',
  1347. icon: 'l-shuipingshijianzhou',
  1348. data: {
  1349. name: 'timeline',
  1350. width: 300,
  1351. height: 40,
  1352. hiddenText: true,
  1353. direction: 'horizontal',
  1354. labelAlign: 'top', //left/right/alternate/top/bottom
  1355. mode: 'alternate', //alternate
  1356. data: [
  1357. {
  1358. label: '2022-01-01',
  1359. content: '事件一',
  1360. circleBg: '#BFDBFF',
  1361. circleShadow: '#4583FF33',
  1362. color: '#BFDBFF',
  1363. textColor: '#FFFFFF',
  1364. // path: 'M71.3,61.9v2.21L56.66,66V63.82l3.27-.43.25-1-2.39.31V60.84l2.84-.37.21-.87-3.4.44V57.85l13.08-1.73v2.2l-6.85.9-.21.88,6-.79-.15,2.85ZM58.11,66.56,69.86,65v5.63L58.11,72.19Zm2.59,3.09,6.44-.84V67.52l-6.44.85ZM62.78,63l3.87-.51.07-.95L63,62.05Z',
  1365. },
  1366. {
  1367. label: '2022-02-01',
  1368. content: '事件二',
  1369. circleBg: '#BFDBFF',
  1370. circleShadow: '#4583FF33',
  1371. textColor: '#FFFFFF',
  1372. },
  1373. {
  1374. label: '2022-03-01',
  1375. content: '事件三',
  1376. textColor: '#FFFFFF66',
  1377. },
  1378. {
  1379. label: '2022-04-01',
  1380. content: '事件四',
  1381. textColor: '#FFFFFF66',
  1382. },
  1383. ],
  1384. text: '时间轴',
  1385. props: {
  1386. custom: [
  1387. {
  1388. key: 'mode',
  1389. label: '标签分布',
  1390. type: 'select',
  1391. options: [
  1392. { label: '同侧', value: 'same' },
  1393. { label: '交叉', value: 'alternate' },
  1394. ],
  1395. },
  1396. {
  1397. key: 'labelAlign',
  1398. label: '标签对齐',
  1399. type: 'select',
  1400. options: [
  1401. { label: '顶部', value: 'top' },
  1402. { label: '底部', value: 'bottom' },
  1403. ],
  1404. },
  1405. {
  1406. key: 'data',
  1407. label: '数据',
  1408. type: 'code',
  1409. },
  1410. ],
  1411. },
  1412. },
  1413. },
  1414. {
  1415. name: '垂直时间轴',
  1416. icon: 'l-chuizhishijianzhou',
  1417. data: {
  1418. name: 'timeline',
  1419. width: 40,
  1420. height: 300,
  1421. text: '时间轴',
  1422. hiddenText: true,
  1423. direction: 'vertical',
  1424. labelAlign: 'left', //left/right/alternate/top/bottom
  1425. mode: 'alternate', //alternate
  1426. data: [
  1427. {
  1428. label: '2022-01-01',
  1429. content: '事件一',
  1430. circleBg: '#BFDBFF',
  1431. circleShadow: '#4583FF33',
  1432. color: '#BFDBFF',
  1433. textColor: '#FFFFFF',
  1434. // path: 'M71.3,61.9v2.21L56.66,66V63.82l3.27-.43.25-1-2.39.31V60.84l2.84-.37.21-.87-3.4.44V57.85l13.08-1.73v2.2l-6.85.9-.21.88,6-.79-.15,2.85ZM58.11,66.56,69.86,65v5.63L58.11,72.19Zm2.59,3.09,6.44-.84V67.52l-6.44.85ZM62.78,63l3.87-.51.07-.95L63,62.05Z',
  1435. },
  1436. {
  1437. label: '2022-02-01',
  1438. content: '事件二',
  1439. circleBg: '#BFDBFF',
  1440. circleShadow: '#4583FF33',
  1441. textColor: '#FFFFFF',
  1442. },
  1443. {
  1444. label: '2022-03-01',
  1445. content: '事件三',
  1446. textColor: '#FFFFFF66',
  1447. },
  1448. {
  1449. label: '2022-04-01',
  1450. content: '事件四',
  1451. textColor: '#FFFFFF66',
  1452. },
  1453. ],
  1454. props: {
  1455. custom: [
  1456. {
  1457. key: 'mode',
  1458. label: '标签分布',
  1459. type: 'select',
  1460. options: [
  1461. { label: '同侧', value: 'same' },
  1462. { label: '交叉', value: 'alternate' },
  1463. ],
  1464. },
  1465. {
  1466. key: 'labelAlign',
  1467. label: '标签对齐',
  1468. type: 'select',
  1469. options: [
  1470. { label: '靠左', value: 'left' },
  1471. { label: '靠右', value: 'right' },
  1472. ],
  1473. },
  1474. {
  1475. key: 'data',
  1476. label: '数据',
  1477. type: 'code',
  1478. },
  1479. ],
  1480. },
  1481. },
  1482. },
  1483. {
  1484. name: '日历(日期)',
  1485. icon: 'l-rili',
  1486. data: {
  1487. width: 280,
  1488. height: 326,
  1489. hiddenText: true,
  1490. name: 'calendar',
  1491. background: '#fff0',
  1492. hoverTextColor: '#fff',
  1493. dbInput: true,
  1494. // input: true,
  1495. text: '8月',
  1496. },
  1497. },
  1498. {
  1499. name: '日历(日期时间)',
  1500. icon: 'l-rili',
  1501. data: {
  1502. width: 496,
  1503. height: 326,
  1504. hiddenText: true,
  1505. name: 'calendar',
  1506. background: '#fff0',
  1507. hoverTextColor: '#fff',
  1508. dbInput: true,
  1509. // input: true,
  1510. text: '8月',
  1511. calendarType: 'time',
  1512. },
  1513. },
  1514. ],
  1515. },
  1516. {
  1517. name: '面板',
  1518. show: true,
  1519. list: [
  1520. {
  1521. name: '列表',
  1522. icon: 'l-liebiao',
  1523. data: {
  1524. width: 400,
  1525. height: 200,
  1526. name: 'list',
  1527. headingColor: '#FFFFFFE6',
  1528. headingSize: 16,
  1529. background: '#282E3B',
  1530. textColor: '#FFFFFF66',
  1531. hoverTextColor: '#FFFFFF66',
  1532. data: [
  1533. {
  1534. title: '列表标题',
  1535. description: '列表内容的描述性文字',
  1536. },
  1537. {
  1538. title: '列表标题',
  1539. description: '列表内容的描述性文字',
  1540. },
  1541. {
  1542. title: '列表标题',
  1543. description: '列表内容的描述性文字',
  1544. },
  1545. ],
  1546. props: {
  1547. custom: [
  1548. {
  1549. key: 'data',
  1550. label: '数据',
  1551. type: 'code',
  1552. },
  1553. {
  1554. key: 'background',
  1555. label: '背景颜色',
  1556. type: 'color',
  1557. },
  1558. {
  1559. key: 'headingSize',
  1560. label: '标题大小',
  1561. type: 'number',
  1562. },
  1563. {
  1564. key: 'headingColor',
  1565. label: '标题颜色',
  1566. type: 'color',
  1567. },
  1568. ],
  1569. },
  1570. },
  1571. },
  1572. {
  1573. name: '表格',
  1574. icon: 'l-biaoge',
  1575. data: {
  1576. name: 'table2',
  1577. width: 0,
  1578. height: 0,
  1579. disableAnchor: true,
  1580. // disableSize: true,
  1581. colWidth: 150,
  1582. rowHeight: 40,
  1583. data: [
  1584. ['设备 ID', '设备名称', '数据协议', '状态', '操作'],
  1585. ['1', '200', 'MQTT', '正在运行', {}],
  1586. ['2', '湿度传感器', 'MQTT', '正在运行', {}],
  1587. ['3', '物联网设备', 'MQTT', '正在运行', {}],
  1588. ['4', '物联网设备/智能家居/智慧城市', 'MQTT', '正在运行', {}],
  1589. ],
  1590. styles: [
  1591. {
  1592. row: 1,
  1593. col: 1,
  1594. color: '#ff0000',
  1595. background: '#ffff00',
  1596. wheres: [
  1597. //触发条件 成立后才允许配置样式
  1598. {
  1599. comparison: '<=',
  1600. value: '123',
  1601. },
  1602. ],
  1603. },
  1604. {
  1605. row: 0,
  1606. height: 60,
  1607. },
  1608. {
  1609. col: 4,
  1610. width: 200, //为该列设置额外的节点
  1611. pens: [
  1612. {
  1613. name: 'rectangle',
  1614. width: 50,
  1615. height: 20,
  1616. text: '编辑',
  1617. fontSize: 0.6,
  1618. disableAnchor: true,
  1619. activeBackground: '#2D71EC',
  1620. activeColor: '#40a9ff',
  1621. background: '#4583FF',
  1622. color: '#1890ff',
  1623. hoverBackground: '#7DA4FF',
  1624. hoverColor: '#40a9ff',
  1625. textColor: '#ffffff',
  1626. hoverTextColor: '#ffffff',
  1627. activeTextColor: '#ffffff',
  1628. events: [
  1629. {
  1630. action: 5,
  1631. name: 'click',
  1632. value: 'alert("点击了编辑")',
  1633. },
  1634. ],
  1635. },
  1636. {
  1637. name: 'rectangle',
  1638. width: 80,
  1639. height: 20,
  1640. text: '实时数据',
  1641. fontSize: 0.6,
  1642. disableAnchor: true,
  1643. activeBackground: '#2D71EC',
  1644. activeColor: '#40a9ff',
  1645. background: '#4583FF',
  1646. color: '#1890ff',
  1647. hoverBackground: '#7DA4FF',
  1648. hoverColor: '#40a9ff',
  1649. textColor: '#ffffff',
  1650. hoverTextColor: '#ffffff',
  1651. activeTextColor: '#ffffff',
  1652. events: [
  1653. {
  1654. action: 5,
  1655. name: 'click',
  1656. value: 'alert("点击了实时数据")',
  1657. },
  1658. ],
  1659. },
  1660. ],
  1661. },
  1662. ],
  1663. props: {
  1664. custom: [
  1665. {
  1666. key: 'data',
  1667. label: '数据',
  1668. type: 'code',
  1669. },
  1670. {
  1671. key: 'styles',
  1672. label: '样式',
  1673. type: 'code',
  1674. },
  1675. ],
  1676. },
  1677. },
  1678. },
  1679. {
  1680. name: '斑马纹表格',
  1681. icon: 'l-biaoge',
  1682. data: {
  1683. name: 'table2',
  1684. width: 0,
  1685. height: 0,
  1686. disableAnchor: true,
  1687. disableSize: true,
  1688. colWidth: 90,
  1689. rowHeight: 32,
  1690. bordered: false,
  1691. vLine: false,
  1692. hLine: false,
  1693. stripe: true,
  1694. stripeColor: '#407FFF1F', //'#15181c',
  1695. // hasHeader: false,
  1696. textColor: '#FFFFFF',
  1697. data: [
  1698. ['设备 ID', '设备名称', '数据协议', '级别'],
  1699. [
  1700. '1',
  1701. '200',
  1702. 'MQTT',
  1703. {
  1704. text: '一级告警',
  1705. // background: '#650b09',
  1706. textColor: '#FF5D3CFF',
  1707. },
  1708. ],
  1709. [
  1710. '2',
  1711. '湿度传感器',
  1712. 'MQTT',
  1713. {
  1714. text: '二级告警',
  1715. // background: '#4d2a02',
  1716. textColor: '#E6A82EFF',
  1717. },
  1718. ],
  1719. [
  1720. '3',
  1721. '物联网设备',
  1722. 'MQTT',
  1723. {
  1724. text: '一级告警',
  1725. // background: '#650b09',
  1726. textColor: '#FF5D3CFF',
  1727. },
  1728. ],
  1729. [
  1730. '4',
  1731. '物联网设备/智能家居/智慧城市',
  1732. 'MQTT',
  1733. {
  1734. text: '三级告警',
  1735. textColor: '#58CC84FF',
  1736. // background: '#042617;',
  1737. },
  1738. ],
  1739. ],
  1740. styles: [
  1741. {
  1742. row: 0,
  1743. textColor: '#ffffff66',
  1744. },
  1745. {
  1746. col: 3,
  1747. pens: [
  1748. {
  1749. name: 'rectangle',
  1750. width: 56,
  1751. height: 20,
  1752. fontSize: 0.6,
  1753. disableAnchor: true,
  1754. lineWidth: 0,
  1755. },
  1756. ],
  1757. },
  1758. ],
  1759. props: {
  1760. custom: [
  1761. {
  1762. key: 'stripe',
  1763. label: '显示斑马纹',
  1764. type: 'bool',
  1765. },
  1766. {
  1767. key: 'stripeColor',
  1768. label: '斑马纹颜色',
  1769. type: 'color',
  1770. },
  1771. {
  1772. key: 'bordered',
  1773. label: '外边框',
  1774. type: 'bool',
  1775. },
  1776. {
  1777. key: 'hLine',
  1778. label: '水平线',
  1779. type: 'bool',
  1780. },
  1781. {
  1782. key: 'vLine',
  1783. label: '垂直线',
  1784. type: 'bool',
  1785. },
  1786. {
  1787. key: 'hasHeader',
  1788. label: '有无表头',
  1789. type: 'bool',
  1790. },
  1791. {
  1792. key: 'data',
  1793. label: '数据',
  1794. type: 'code',
  1795. },
  1796. {
  1797. key: 'styles',
  1798. label: '样式',
  1799. type: 'code',
  1800. },
  1801. ],
  1802. },
  1803. realTimes: [
  1804. {
  1805. label: '自定义',
  1806. key: 'data.1.3.text',
  1807. type: 'string',
  1808. mock: '{一级告警,二级告警,三级告警}',
  1809. enableMock: true,
  1810. triggers: [
  1811. {
  1812. name: '触发器1',
  1813. conditionType: 'and',
  1814. conditions: [
  1815. {
  1816. type: '',
  1817. operator: '=',
  1818. valueType: '',
  1819. value: '一级告警',
  1820. },
  1821. ],
  1822. actions: [
  1823. {
  1824. action: 5,
  1825. value:
  1826. "meta2d.setValue({id:pen.id,'data.1.3.textColor':'#FF5D3CFF'},{doEvent:false,render:true})",
  1827. params: '',
  1828. },
  1829. ],
  1830. },
  1831. {
  1832. name: '触发器2',
  1833. conditionType: 'and',
  1834. conditions: [
  1835. {
  1836. type: '',
  1837. operator: '=',
  1838. valueType: '',
  1839. value: '二级告警',
  1840. },
  1841. ],
  1842. actions: [
  1843. {
  1844. action: 5,
  1845. value:
  1846. "meta2d.setValue({id:pen.id,'data.1.3.textColor':'#E6A82EFF'},{doEvent:false,render:true})",
  1847. params: '',
  1848. },
  1849. ],
  1850. },
  1851. {
  1852. name: '触发器3',
  1853. conditionType: 'and',
  1854. conditions: [
  1855. {
  1856. type: '',
  1857. operator: '=',
  1858. valueType: '',
  1859. value: '三级告警',
  1860. },
  1861. ],
  1862. actions: [
  1863. {
  1864. action: 5,
  1865. value:
  1866. "meta2d.setValue({id:pen.id,'data.1.3.textColor':'#58CC84FF'},{doEvent:false,render:true})",
  1867. params: '',
  1868. },
  1869. ],
  1870. },
  1871. ],
  1872. },
  1873. ],
  1874. },
  1875. },
  1876. {
  1877. name: '滚动表格',
  1878. icon: 'l-biaoge',
  1879. data: {
  1880. name: 'table2',
  1881. width: 0,
  1882. height: 0,
  1883. disableAnchor: true,
  1884. disableSize: true,
  1885. colWidth: 90,
  1886. rowHeight: 32,
  1887. bordered: false,
  1888. vLine: false,
  1889. hLine: true,
  1890. // stripe: true,
  1891. swiper:true,
  1892. // stripeColor: '#407FFF1F', //'#15181c',
  1893. hasHeader:true,
  1894. textColor: '#FFFFFF',
  1895. maxNum:5,
  1896. data: [
  1897. [
  1898. "序号",
  1899. "时间",
  1900. "事件内容",
  1901. "处理状态"
  1902. ],
  1903. [
  1904. {
  1905. "text": "1"
  1906. },
  1907. "2023-06-17 13:50",
  1908. "事件内容",
  1909. {
  1910. "text": "处理中",
  1911. "textColor": "#05CFF9FF"
  1912. }
  1913. ],
  1914. [
  1915. {
  1916. "text": "2"
  1917. },
  1918. "2023-06-17 13:51",
  1919. "事件内容",
  1920. {
  1921. "text": "已完成",
  1922. "textColor": "#B3D1FFFF"
  1923. }
  1924. ],
  1925. [
  1926. {
  1927. "text": "3"
  1928. },
  1929. "2023-06-17 13:52",
  1930. "事件内容",
  1931. {
  1932. "text": "待处理",
  1933. "textColor": "#E6A82EFF"
  1934. }
  1935. ],
  1936. [
  1937. {
  1938. "text": "4"
  1939. },
  1940. "2023-06-17 13:53",
  1941. "事件内容",
  1942. {
  1943. "text": "已完成",
  1944. "textColor": "#B3D1FFFF"
  1945. }
  1946. ],
  1947. [
  1948. {
  1949. "text": "5"
  1950. },
  1951. "2023-06-17 13:54",
  1952. "事件内容",
  1953. {
  1954. "text": "处理中",
  1955. "textColor": "#05CFF9FF"
  1956. }
  1957. ],
  1958. [
  1959. {
  1960. "text": "6"
  1961. },
  1962. "2023-06-17 13:55",
  1963. "事件内容",
  1964. {
  1965. "text": "处理中",
  1966. "textColor": "#05CFF9FF"
  1967. }
  1968. ],
  1969. [
  1970. {
  1971. "text": "7"
  1972. },
  1973. "2023-06-17 13:57",
  1974. "事件内容",
  1975. {
  1976. "text": "处理中",
  1977. "textColor": "#05CFF9FF"
  1978. }
  1979. ],
  1980. [
  1981. {
  1982. "text": "8"
  1983. },
  1984. "2023-06-17 13:58",
  1985. "事件内容",
  1986. {
  1987. "text": "处理中",
  1988. "textColor": "#05CFF9FF"
  1989. }
  1990. ],
  1991. [
  1992. {
  1993. "text": "9"
  1994. },
  1995. "2023-06-17 13:59",
  1996. "事件内容",
  1997. {
  1998. "text": "处理中",
  1999. "textColor": "#05CFF9FF"
  2000. }
  2001. ],
  2002. [
  2003. {
  2004. "text": "10"
  2005. },
  2006. "2023-06-17 14:00",
  2007. "事件内容",
  2008. {
  2009. "text": "处理中",
  2010. "textColor": "#05CFF9FF"
  2011. }
  2012. ],
  2013. [
  2014. {
  2015. "text": "11"
  2016. },
  2017. "2023-06-17 14:01",
  2018. "事件内容",
  2019. {
  2020. "text": "处理中",
  2021. "textColor": "#05CFF9FF"
  2022. }
  2023. ],
  2024. [
  2025. {
  2026. "text": "12"
  2027. },
  2028. "2023-06-17 13:02",
  2029. "事件内容",
  2030. {
  2031. "text": "处理中",
  2032. "textColor": "#05CFF9FF"
  2033. }
  2034. ]
  2035. ],
  2036. styles: [
  2037. {
  2038. "col": 1,
  2039. "width": 112
  2040. },
  2041. {
  2042. "col": 2,
  2043. "width": 112
  2044. },
  2045. {
  2046. "col": 3,
  2047. "pens": [
  2048. {
  2049. "disableAnchor": true,
  2050. "fontSize": 0.6,
  2051. "height": 20,
  2052. "lineWidth": 0,
  2053. "name": "rectangle",
  2054. "textColor": "#05CFF9FF",
  2055. "width": 56
  2056. }
  2057. ],
  2058. "width": 70
  2059. },
  2060. {
  2061. "col": 0,
  2062. "pens": [
  2063. {
  2064. "background": "#4583FF33",
  2065. "disableAnchor": true,
  2066. "height": 20,
  2067. "isBottom": false,
  2068. "lineWidth": 0,
  2069. "name": "rectangle",
  2070. "width": 20
  2071. }
  2072. ],
  2073. "width": 40
  2074. }
  2075. ],
  2076. props: {
  2077. custom: [
  2078. {
  2079. key: 'hasHeader',
  2080. label: '有无表头',
  2081. type: 'bool',
  2082. },
  2083. {
  2084. key: 'swiper',
  2085. label: '是否轮播',
  2086. type: 'bool',
  2087. },
  2088. {
  2089. key: 'maxNum',
  2090. label: '最大展示数',
  2091. type: 'number',
  2092. },
  2093. {
  2094. key: 'data',
  2095. label: '数据',
  2096. type: 'code',
  2097. },
  2098. {
  2099. key: 'styles',
  2100. label: '样式',
  2101. type: 'code',
  2102. },
  2103. ],
  2104. },
  2105. },
  2106. },
  2107. {
  2108. name: '树',
  2109. icon: 'l-shu', //l-shu
  2110. data: {
  2111. name: 'tree',
  2112. width: 150,
  2113. height: 210,
  2114. expanded: ['1', '2'],
  2115. fontSize: 20,
  2116. disableInput: true,
  2117. textColor: '#FFFFFF',
  2118. hoverTextColor: '#FFFFFF',
  2119. // iconFamily:'l-icon',
  2120. // icon:'\ue607',
  2121. data: [
  2122. {
  2123. key: '1',
  2124. label: '1',
  2125. children: [
  2126. {
  2127. key: '1-1',
  2128. label: '1-1',
  2129. },
  2130. {
  2131. key: '1-1',
  2132. label: '1-2',
  2133. },
  2134. ],
  2135. },
  2136. {
  2137. key: '2',
  2138. label: '2',
  2139. children: [
  2140. {
  2141. key: '2-1',
  2142. label: '2-1',
  2143. children: [
  2144. {
  2145. key: '2-1-1',
  2146. label: '2-1-1',
  2147. },
  2148. {
  2149. key: '2-1-2',
  2150. label: '2-2-2',
  2151. },
  2152. ],
  2153. },
  2154. {
  2155. key: '2-2',
  2156. label: '2-2',
  2157. },
  2158. ],
  2159. },
  2160. {
  2161. key: '3',
  2162. label: '3',
  2163. },
  2164. ],
  2165. props: {
  2166. custom: [
  2167. {
  2168. key: 'expandAll',
  2169. label: '展开全部节点',
  2170. type: 'bool',
  2171. },
  2172. {
  2173. key: 'data',
  2174. label: '数据',
  2175. type: 'code',
  2176. },
  2177. ],
  2178. },
  2179. },
  2180. },
  2181. {
  2182. name: '网页',
  2183. icon: 'l-iframe',
  2184. data: {
  2185. name: 'iframe',
  2186. width: 500,
  2187. height: 400,
  2188. externElement: true,
  2189. iframe: `https://${rootDomain?.slice(1)}`,
  2190. props: {
  2191. custom: iframeCustom,
  2192. },
  2193. },
  2194. },
  2195. ],
  2196. },
  2197. {
  2198. name: '提醒',
  2199. show: true,
  2200. list: [
  2201. {
  2202. name: '业务指标',
  2203. icon: 'l-yewuzhibiao',
  2204. data: {
  2205. width: 115,
  2206. height: 25,
  2207. name: 'indicator',
  2208. data: [
  2209. {
  2210. type: 'text',
  2211. color: '#FFFFFFD9',
  2212. x: 0,
  2213. text: '业务指标',
  2214. },
  2215. {
  2216. type: 'icon',
  2217. x: 0.5,
  2218. size: 0.5, //高度的倍数
  2219. color: '#ff0000',
  2220. background: '#f00',
  2221. path: 'M116.77950993 500.07050546c15.9195644 15.9195644 41.65144342 15.9195644 57.57100785 0L471.28500154 203.13602167 471.28500154 919.14998461c0 22.47467916 18.24031931 40.71499846 40.71499846 40.71499845s40.71499846-18.24031931 40.71499846-40.71499845l0-716.01396294 296.93448376 296.93448379c15.9195644 15.9195644 41.65144342 15.9195644 57.57100785 0s15.9195644-41.65144342 1e-8-57.57100783l-366.43498616-366.39427116c-3.74577985-3.78649485-8.26514469-6.75868973-13.27308951-8.83515464C522.5858996 65.19360688 517.29294978 64.13501693 512 64.13501694s-10.5858996 1.05858996-15.55312942 3.13505489c-5.00794479 2.07646491-9.48659464 5.0486598-13.27308948 8.83515464l-366.43498616 366.39427115C100.85994556 458.41906201 100.85994555 484.15094105 116.77950993 500.07050546z',
  2222. },
  2223. {
  2224. textColor: '#f00',
  2225. type: 'text',
  2226. color: '',
  2227. x: 0.6,
  2228. text: '20%',
  2229. },
  2230. ],
  2231. props: {
  2232. custom: [
  2233. {
  2234. key: 'data',
  2235. label: '数据',
  2236. type: 'code',
  2237. },
  2238. ],
  2239. },
  2240. },
  2241. },
  2242. {
  2243. name: '全局消息',
  2244. icon: 'l-quanjuxiaoxi',
  2245. data: {
  2246. width: 200,
  2247. height: 40,
  2248. text: '用于表示普通操作信息提示',
  2249. borderRadius: 6,
  2250. name: 'rectangle',
  2251. icon: '\ue6e4',
  2252. iconFamily: 'l-icon',
  2253. iconColor: '#4583ff',
  2254. iconSize: 17.5,
  2255. iconAlign: 'left',
  2256. iconLeft: 10,
  2257. textAlign: 'left',
  2258. color: 'rgba(235, 235, 235, 1)',
  2259. background: '#282E3B',
  2260. textLeft: 30,
  2261. lineWidth: 0,
  2262. shadow: false,
  2263. textColor: '#FFFFFF',
  2264. hoverTextColor: 'rgba(0, 0, 0, 1)',
  2265. shadowColor: '#00000014',
  2266. shadowOffsetX: 6,
  2267. shadowOffsetY: 6,
  2268. shadowBlur: 20,
  2269. props: {
  2270. custom: [
  2271. {
  2272. key: 'text',
  2273. label: '文本',
  2274. type: 'text',
  2275. },
  2276. {
  2277. key: 'textColor',
  2278. label: '文本颜色',
  2279. type: 'color',
  2280. },
  2281. ],
  2282. },
  2283. },
  2284. },
  2285. {
  2286. name: '通知',
  2287. icon: 'l-tongzhi',
  2288. data: {
  2289. width: 360,
  2290. height: 178,
  2291. text: '通知具体内容;通知具体内容;通知具体内容;通知具体内容;通知具体内容;通知具体内容;通知具体内容;通知具体内容;通知具体内容;',
  2292. borderRadius: 6,
  2293. name: 'notification',
  2294. icon: '\ue6e4',
  2295. iconFamily: 'l-icon',
  2296. iconColor: '#4583ff',
  2297. iconSize: 18,
  2298. iconAlign: 'left-top',
  2299. iconLeft: 15,
  2300. iconTop: 20,
  2301. textAlign: 'left',
  2302. textBaseline: 'top',
  2303. textLeft: 40,
  2304. textTop: 50,
  2305. color: 'rgba(235, 235, 235, 1)',
  2306. background: '#282E3B',
  2307. shadow: false,
  2308. textColor: '#FFFFFF99',
  2309. hoverTextColor: '#666666',
  2310. shadowColor: '#0000000D',
  2311. shadowOffsetX: 6,
  2312. shadowOffsetY: 6,
  2313. textWidth: 300,
  2314. shadowBlur: 24,
  2315. heading: '标题名称',
  2316. headingColor: '#FFFFFFE6',
  2317. headingSize: 16,
  2318. // headingWeight: 'bold',
  2319. props: {
  2320. custom: [
  2321. {
  2322. key: 'heading',
  2323. label: '标题',
  2324. type: 'string',
  2325. },
  2326. {
  2327. key: 'headingColor',
  2328. label: '标题颜色',
  2329. type: 'color',
  2330. },
  2331. {
  2332. key: 'headingSize',
  2333. label: '标题大小',
  2334. type: 'number',
  2335. },
  2336. {
  2337. key: 'headingWeight',
  2338. label: '标题加粗',
  2339. type: 'select',
  2340. options: [
  2341. { label: '加粗', value: 'bold' },
  2342. { label: '正常', value: '' },
  2343. ],
  2344. },
  2345. ],
  2346. },
  2347. },
  2348. },
  2349. // {
  2350. // name: '对话框',
  2351. // icon: 'l-pc',
  2352. // data: {
  2353. // width: 200,
  2354. // height: 200,
  2355. // },
  2356. // },
  2357. ],
  2358. },
  2359. {
  2360. name: '轮播',
  2361. show: true,
  2362. list: [
  2363. {
  2364. name: '水平轮播',
  2365. icon: 'l-paomadeng',
  2366. data: {
  2367. name: 'swiperline',
  2368. width: 200,
  2369. height: 40,
  2370. data: ['轮播第一次数据', '轮播第二次数据', '轮播第三次数据'],
  2371. hiddenText: true,
  2372. props: {
  2373. custom: [
  2374. {
  2375. key: 'data',
  2376. label: '数据',
  2377. type: 'code',
  2378. },
  2379. {
  2380. key: 'timeout',
  2381. label: '轮播时间',
  2382. type: 'number',
  2383. },
  2384. ],
  2385. },
  2386. },
  2387. },
  2388. {
  2389. name: '垂直轮播',
  2390. icon: 'l-chuizhigundong',
  2391. data: {
  2392. name: 'swiperline',
  2393. width: 200,
  2394. height: 24,
  2395. direction: 'vertical',
  2396. lineHeight: 2,
  2397. data: ['轮播第一次数据', '轮播第二次数据', '轮播第三次数据'],
  2398. hiddenText: true,
  2399. props: {
  2400. custom: [
  2401. {
  2402. key: 'data',
  2403. label: '数据',
  2404. type: 'code',
  2405. },
  2406. {
  2407. key: 'timeout',
  2408. label: '轮播时间',
  2409. type: 'number',
  2410. },
  2411. ],
  2412. },
  2413. },
  2414. },
  2415. {
  2416. name: '轮播图',
  2417. icon: 'l-lunbotu',
  2418. data: {
  2419. name: 'swiperDom',
  2420. externElement: true,
  2421. width: 400,
  2422. height: 300,
  2423. data: [
  2424. {
  2425. src: `https://2ds${rootDomain}/img/banner1.bc890350.png`,
  2426. },
  2427. {
  2428. src: `https://2ds${rootDomain}/img/banner2.adab6a6e.png`,
  2429. },
  2430. {
  2431. src: `https://2ds${rootDomain}/img/banner3.86b53aed.png`,
  2432. },
  2433. ],
  2434. hiddenText: true,
  2435. props: {
  2436. custom: [
  2437. {
  2438. key: 'data',
  2439. label: '数据',
  2440. type: 'code',
  2441. },
  2442. ],
  2443. },
  2444. },
  2445. },
  2446. {
  2447. name: '轮播页面',
  2448. icon: 'l-lunboyemian',
  2449. data: {
  2450. name: 'swiperDom',
  2451. width: 400,
  2452. height: 300,
  2453. swiperType: 'iframe',
  2454. data: [
  2455. {
  2456. src: `https://2d${rootDomain}/preview?id=6357a9e2d44b9402de84d2e8`,
  2457. },
  2458. {
  2459. src: `https://2d${rootDomain}/preview?id=6357aec8d44b9402de84d2f1`,
  2460. },
  2461. {
  2462. src: `https://2d${rootDomain}/preview?id=641d524a8df2c654ea652d7e`,
  2463. },
  2464. ],
  2465. hiddenText: true,
  2466. props: {
  2467. custom: [
  2468. {
  2469. key: 'data',
  2470. label: '数据',
  2471. type: 'code',
  2472. },
  2473. ],
  2474. },
  2475. },
  2476. },
  2477. ],
  2478. },
  2479. {
  2480. name: '导航',
  2481. show: true,
  2482. list: [
  2483. {
  2484. name: '链接',
  2485. icon: 'l-lianjie',
  2486. data: {
  2487. text: '乐吾乐2D编辑器',
  2488. width: 100,
  2489. height: 30,
  2490. name: 'text',
  2491. textColor: '#0052d9',
  2492. events: [
  2493. {
  2494. name: 'click',
  2495. actions: [
  2496. {
  2497. action: 0,
  2498. params: '_blank',
  2499. value: `https://2d${rootDomain}`,
  2500. },
  2501. ],
  2502. },
  2503. ],
  2504. props: {
  2505. custom: [
  2506. {
  2507. key: 'events.0.actions.0.value',
  2508. label: '地址',
  2509. type: 'string',
  2510. },
  2511. ],
  2512. },
  2513. },
  2514. },
  2515. {
  2516. name: '返回',
  2517. icon: 'l-fanhui',
  2518. data: {
  2519. width: 40,
  2520. height: 40,
  2521. name: 'image',
  2522. icon: '\ue697',
  2523. iconFamily: 'l-icon',
  2524. events: [
  2525. {
  2526. name: 'click',
  2527. actions: [
  2528. {
  2529. action: 5,
  2530. value: 'window.history.go(-1);',
  2531. },
  2532. ],
  2533. },
  2534. ],
  2535. },
  2536. },
  2537. {
  2538. name: '锚点',
  2539. icon: 'l-anchor',
  2540. data: {
  2541. width: 40,
  2542. height: 40,
  2543. name: 'image',
  2544. icon: '\uea7b',
  2545. iconFamily: 'l-icon',
  2546. events: [
  2547. {
  2548. name: 'click',
  2549. actions: [
  2550. {
  2551. action: 5,
  2552. params: 'pen.id/tag',
  2553. value:
  2554. 'let pens = context.meta2d.find(params);\r\nif (!pens.length) {\r\n pens = [pen]\r\n}\r\ncontext.meta2d.active(pens, true);\r\ncontext.meta2d.gotoView(pens[0]);\r\ncontext.meta2d.resize();\r\ncontext.meta2d.render();',
  2555. },
  2556. ],
  2557. },
  2558. ],
  2559. props: {
  2560. custom: [
  2561. {
  2562. key: 'events.0.actions.0.params',
  2563. label: '定位图元',
  2564. type: 'string',
  2565. },
  2566. ],
  2567. },
  2568. },
  2569. },
  2570. {
  2571. name: '回到顶部',
  2572. icon: 'l-huidaodingbu',
  2573. data: {
  2574. width: 64,
  2575. height: 64,
  2576. name: 'rectangle',
  2577. activeBackground: '#282E3B',
  2578. background: '#282E3B',
  2579. borderRadius: 0.1,
  2580. color: '#eee',
  2581. hoverBackground: '#282E3B',
  2582. hoverColor: '#eee',
  2583. hoverTextColor: '#FFFFFFE6',
  2584. iconAlign: 'top',
  2585. iconColor: '#FFFFFFE6',
  2586. iconSize: 20,
  2587. iconTop: 10,
  2588. text: 'TOP',
  2589. textBaseline: 'bottom',
  2590. lineWidth: 0,
  2591. textColor: '#FFFFFFE6',
  2592. textTop: -2,
  2593. icon: '\uec57',
  2594. iconFamily: 'l-icon',
  2595. events: [
  2596. {
  2597. name: 'click',
  2598. actions: [
  2599. {
  2600. action: 5,
  2601. value: `
  2602. const { scale, origin, y: dataY } = context.meta2d.store.data;
  2603. context.meta2d.translate(
  2604. 0,
  2605. ((parseInt(params)||32) * context.meta2d.store.data.scale - origin.y) / scale - dataY / scale
  2606. );`,
  2607. },
  2608. ],
  2609. },
  2610. ],
  2611. },
  2612. },
  2613. {
  2614. name: '面包屑',
  2615. icon: 'l-mianbaoxie', //l-mianbaoxie
  2616. data: {
  2617. name: 'breadcrumb',
  2618. width: 200,
  2619. height: 20,
  2620. data: [
  2621. {
  2622. key: '1',
  2623. title: '页面1',
  2624. to: `https://doc${rootDomain}/document/135787991`,
  2625. target: '_blank',
  2626. },
  2627. {
  2628. key: '2',
  2629. title: '页面2',
  2630. to: `https://2d${rootDomain}/?id=641d524a8df2c654ea652d7e`,
  2631. target: '_blank',
  2632. },
  2633. {
  2634. key: '3',
  2635. title: '页面3',
  2636. to: `https://2d${rootDomain}/?id=6357a9e2d44b9402de84d2e8`,
  2637. target: '_self',
  2638. },
  2639. ],
  2640. props: {
  2641. custom: [
  2642. {
  2643. key: 'gap',
  2644. label: '间距',
  2645. type: 'number',
  2646. min: 0,
  2647. },
  2648. {
  2649. key: 'data',
  2650. label: '数据',
  2651. type: 'code',
  2652. },
  2653. ],
  2654. },
  2655. },
  2656. },
  2657. {
  2658. name: '下拉菜单',
  2659. icon: 'l-xialacaidan',
  2660. data: {
  2661. name: 'headMenuDom',
  2662. width: 650,
  2663. height: 60,
  2664. externElement: true,
  2665. selectedKeys: ['1'],
  2666. // activeColor: '#4E85E5',
  2667. iconPosition: 'left',
  2668. renderSubMenu:true,
  2669. data: [
  2670. {
  2671. key: '1',
  2672. icon: 'l-icon l-user',
  2673. title: '个人中心',
  2674. children: [
  2675. {
  2676. key: '1-1',
  2677. icon: 'l-icon l-fly',
  2678. title: '测试测试',
  2679. },
  2680. ],
  2681. },
  2682. {
  2683. key: '2',
  2684. icon: 'l-icon l-panel',
  2685. title: '安全运行',
  2686. },
  2687. {
  2688. key: '3',
  2689. icon: 'l-icon l-align-center',
  2690. title: '智慧能源',
  2691. },
  2692. {
  2693. key: '4',
  2694. icon: 'l-icon l-kongzhuangtai1',
  2695. title: '数据分析',
  2696. },
  2697. {
  2698. key: '5',
  2699. icon: 'l-icon l-quanjutishi',
  2700. title: '运维管理',
  2701. },
  2702. ],
  2703. props: {
  2704. custom: [
  2705. {
  2706. key: 'data',
  2707. label: '数据',
  2708. type: 'code',
  2709. },
  2710. {
  2711. key: "background",
  2712. label: "背景颜色",
  2713. type: "color"
  2714. },
  2715. {
  2716. key: "textColor",
  2717. label: "字体颜色",
  2718. type: "color"
  2719. },
  2720. {
  2721. key: "fontSize",
  2722. label: "字体大小",
  2723. type: "number"
  2724. },
  2725. {
  2726. key: "iconSize",
  2727. min: 12,
  2728. label: "图标大小",
  2729. type: "number"
  2730. },
  2731. {
  2732. key: "iconPosition",
  2733. label: "图标位置",
  2734. type: 'select',
  2735. options: [
  2736. { label: '靠左', value: 'left' },
  2737. { label: '靠下', value: 'bottom' },
  2738. ],
  2739. },
  2740. {
  2741. isNotString: true,
  2742. key: "marginRight",
  2743. label: "图标右间距",
  2744. type: "number"
  2745. },
  2746. {
  2747. isNotString: true,
  2748. key: "menuItemWidth",
  2749. min: 100,
  2750. label: "选项宽度",
  2751. type: "number"
  2752. },
  2753. {
  2754. isNotString: true,
  2755. key: "menuItemBgImg",
  2756. label: "选项背景图",
  2757. type: "text"
  2758. },
  2759. {
  2760. isNotString: true,
  2761. key: "menuItemHeight",
  2762. min: 0,
  2763. label: "选项高度",
  2764. type: "number"
  2765. },
  2766. {
  2767. key: "hoverBackground",
  2768. label: "hover背景色",
  2769. type: "color"
  2770. },
  2771. {
  2772. isNotString: true,
  2773. key: "hoverColor",
  2774. label: "hover字体颜色",
  2775. type: "color"
  2776. },
  2777. {
  2778. isNotString: true,
  2779. key: "activeBackground",
  2780. label: "选中背景色",
  2781. type: "color"
  2782. },
  2783. {
  2784. key: "activeColor",
  2785. label: "选中字体颜色",
  2786. type: "color"
  2787. },
  2788. {
  2789. key: "dropContentBgColor",
  2790. label: "下拉内容背景色",
  2791. type: "color"
  2792. },
  2793. {
  2794. isNotString: true,
  2795. key: "renderSubMenu",
  2796. label: "是否渲染二级菜单",
  2797. type: "switch"
  2798. },
  2799. {
  2800. key: 'iframe',
  2801. label: '关联Iframe',
  2802. type: 'text',
  2803. },
  2804. ],
  2805. },
  2806. },
  2807. },
  2808. {
  2809. name: '导航菜单',
  2810. icon: 'l-daohangcaidan',
  2811. data: {
  2812. name: 'menuDom',
  2813. width: 200,
  2814. height: 400,
  2815. externElement: true,
  2816. data: [
  2817. {
  2818. title: '实时监测',
  2819. key: '0',
  2820. icon: 'l-icon l-suofang',
  2821. children: [
  2822. {
  2823. title: '站点看板',
  2824. key: '',
  2825. icon: 'l-icon l-fenzuzhuzhuangtu',
  2826. children: [
  2827. {
  2828. title: '三级标题',
  2829. key: '',
  2830. },
  2831. {
  2832. title: '三级标题',
  2833. key: '',
  2834. },
  2835. ],
  2836. },
  2837. {
  2838. title: '监控画面',
  2839. key: '',
  2840. icon: 'l-icon l-biaoge',
  2841. },
  2842. {
  2843. title: '设备监控',
  2844. key: '',
  2845. icon: 'l-icon l-zhexiantu',
  2846. },
  2847. ],
  2848. },
  2849. {
  2850. title: '控制中心',
  2851. key: '',
  2852. icon: 'l-icon l-tiaoxingtu',
  2853. },
  2854. {
  2855. title: '告警管理',
  2856. key: '',
  2857. icon: 'l-icon l-zhishideng',
  2858. },
  2859. ],
  2860. props: {
  2861. custom: [
  2862. {
  2863. key: 'data',
  2864. label: '数据',
  2865. type: 'code',
  2866. },
  2867. ],
  2868. },
  2869. },
  2870. },
  2871. {
  2872. name: '分页',
  2873. icon: 'l-fenye', //l-fenye
  2874. data: {
  2875. name: 'pagination',
  2876. width: 300,
  2877. height: 200,
  2878. size: 'small',
  2879. total: 25,
  2880. pageSize: 5,
  2881. current: 1,
  2882. maxPageBtn: 5,
  2883. disableInput: true,
  2884. pageSizeOptions: [5, 10, 20, 30],
  2885. props: {
  2886. custom: [
  2887. {
  2888. key: 'total',
  2889. label: '数据总条数',
  2890. type: 'number',
  2891. min: 0,
  2892. },
  2893. {
  2894. key: 'pageSize',
  2895. label: '每页数据量',
  2896. type: 'number',
  2897. },
  2898. {
  2899. key: 'pageSizeOptions',
  2900. label: '分页大小控制器',
  2901. type: 'code',
  2902. },
  2903. // {
  2904. // key: 'maxPageBtn',
  2905. // label: '最多显示页码数按钮数',
  2906. // type: 'number',
  2907. // },
  2908. ],
  2909. },
  2910. },
  2911. },
  2912. {
  2913. name: '步骤条',
  2914. icon: 'l-buzhoutiao',
  2915. data: {
  2916. name: 'steps',
  2917. width: 600,
  2918. height: 60,
  2919. direction: 'horizontal', //horizontal/vertical
  2920. theme: 'default', //dot
  2921. data: [
  2922. {
  2923. title: '已完成的步骤',
  2924. content: '这里是提示文字',
  2925. status: 'finish', //default/process/finish/error
  2926. },
  2927. {
  2928. title: '出错的步骤',
  2929. content: '这里是提示文字',
  2930. status: 'error', //default/process/finish/error
  2931. },
  2932. {
  2933. title: '进行中的步骤',
  2934. content: '这里是提示文字',
  2935. status: 'process', //default/process/finish/error
  2936. },
  2937. {
  2938. title: '未完成的步骤',
  2939. content: '这里是提示文字',
  2940. status: 'default', //default/process/finish/error
  2941. },
  2942. ],
  2943. statusColor:{
  2944. default: {
  2945. titleColor: '#FFFFFF66',
  2946. contentColor: '#FFFFFF66',
  2947. iconColor: '#FFFFFF66',
  2948. },
  2949. finish: {
  2950. titleColor: '#FFFFFFE6',
  2951. contentColor: '#FFFFFF99',
  2952. iconColor: '#4583FF',
  2953. },
  2954. process: {
  2955. titleColor: '#4583FF',
  2956. contentColor: '#FFFFFF99',
  2957. iconColor: '#4583FF ',
  2958. },
  2959. error: {
  2960. titleColor: '#FF5D3C',
  2961. contentColor: '#FFFFFF99',
  2962. iconColor: '#FF5D3C',
  2963. },
  2964. },
  2965. props: {
  2966. custom: [
  2967. {
  2968. key: 'data',
  2969. label: '数据',
  2970. type: 'code',
  2971. },
  2972. {
  2973. key: 'statusColor',
  2974. label: '各个状态颜色',
  2975. type: 'code',
  2976. },
  2977. {
  2978. key: 'direction',
  2979. label: '方向',
  2980. type: 'select',
  2981. options: [
  2982. { label: '水平', value: 'horizontal' },
  2983. { label: '垂直', value: 'vertical' },
  2984. ],
  2985. },
  2986. ],
  2987. },
  2988. },
  2989. },
  2990. {
  2991. name: '选项卡',
  2992. icon: 'l-xuanxiangka',
  2993. data: {
  2994. name: 'tab',
  2995. width: 440,
  2996. height: 48,
  2997. direction: 'horizontal',
  2998. selectedKey: '1',
  2999. btnHeight: 32,
  3000. btnWidth: 100,
  3001. gap:8,
  3002. // selectedKeys: [],
  3003. disableInput: true,
  3004. data: [
  3005. { text: '场景一', key: '0', isForbidden: true },
  3006. { text: '场景二', key: '1' },
  3007. { text: '场景三', key: '2' },
  3008. { text: '场景四', key: '3' },
  3009. ],
  3010. props: {
  3011. custom: [
  3012. {
  3013. key: 'data',
  3014. label: '数据',
  3015. type: 'code',
  3016. },
  3017. {
  3018. key: 'direction',
  3019. label: '方向',
  3020. type: 'select',
  3021. options: [
  3022. { label: '水平', value: 'horizontal' },
  3023. { label: '垂直', value: 'vertical' },
  3024. ],
  3025. },
  3026. {
  3027. key: 'gap',
  3028. label: '间隔',
  3029. type: 'number',
  3030. min:1
  3031. },
  3032. {
  3033. key: 'btnWidth',
  3034. label: '按钮宽度',
  3035. type: 'number',
  3036. min:1
  3037. },
  3038. {
  3039. key: 'btnHeight',
  3040. label: '按钮高度',
  3041. type: 'number',
  3042. min:1
  3043. },
  3044. {
  3045. key: 'activeBackground',
  3046. label: '选中背景',
  3047. type: 'color',
  3048. },
  3049. {
  3050. key: 'activeColor',
  3051. label: '选中边框',
  3052. type: 'color',
  3053. },
  3054. {
  3055. key: 'activeTextColor',
  3056. label: '选中文字',
  3057. type: 'color',
  3058. },
  3059. {
  3060. key: 'activeBgImage',
  3061. label: '选中背景图片',
  3062. type: 'string',
  3063. },
  3064. {
  3065. key: 'background',
  3066. label: '(未选中)背景',
  3067. type: 'color',
  3068. },
  3069. {
  3070. key: 'color',
  3071. label: '(未选中)边框',
  3072. type: 'color',
  3073. },
  3074. {
  3075. key: 'textColor',
  3076. label: '(未选中)文字',
  3077. type: 'color',
  3078. },
  3079. {
  3080. key: 'bgImage',
  3081. label: '(未选中)背景图片',
  3082. type: 'string',
  3083. }
  3084. ],
  3085. },
  3086. },
  3087. },
  3088. {
  3089. name: '多选选项卡',
  3090. icon: 'l-duoxiangxuanxiangka',
  3091. data: {
  3092. name: 'tab',
  3093. width: 440,
  3094. height: 48,
  3095. direction: 'horizontal',
  3096. selectedKeys: ['0'],
  3097. multiple:true,
  3098. disableInput: true,
  3099. btnHeight: 32,
  3100. btnWidth: 100,
  3101. gap:8,
  3102. data: [
  3103. { text: '场景一', key: '0' },
  3104. { text: '场景二', key: '1', isForbidden: true },
  3105. { text: '场景三', key: '2' },
  3106. { text: '场景四', key: '3' },
  3107. ],
  3108. props: {
  3109. custom: [
  3110. {
  3111. key: 'data',
  3112. label: '数据',
  3113. type: 'code',
  3114. },
  3115. {
  3116. key: 'direction',
  3117. label: '方向',
  3118. type: 'select',
  3119. options: [
  3120. { label: '水平', value: 'horizontal' },
  3121. { label: '垂直', value: 'vertical' },
  3122. ],
  3123. },
  3124. {
  3125. key: 'gap',
  3126. label: '间隔',
  3127. type: 'number',
  3128. min:1
  3129. },
  3130. {
  3131. key: 'btnWidth',
  3132. label: '按钮宽度',
  3133. type: 'number',
  3134. min:1
  3135. },
  3136. {
  3137. key: 'btnHeight',
  3138. label: '按钮高度',
  3139. type: 'number',
  3140. min:1
  3141. },
  3142. {
  3143. key: 'activeBackground',
  3144. label: '选中背景',
  3145. type: 'color',
  3146. },
  3147. {
  3148. key: 'activeColor',
  3149. label: '选中边框',
  3150. type: 'color',
  3151. },
  3152. {
  3153. key: 'activeTextColor',
  3154. label: '选中文字',
  3155. type: 'color',
  3156. },
  3157. {
  3158. key: 'activeBgImage',
  3159. label: '选中背景图片',
  3160. type: 'string',
  3161. },
  3162. {
  3163. key: 'background',
  3164. label: '(未选中)背景',
  3165. type: 'color',
  3166. },
  3167. {
  3168. key: 'color',
  3169. label: '(未选中)边框',
  3170. type: 'color',
  3171. },
  3172. {
  3173. key: 'textColor',
  3174. label: '(未选中)文字',
  3175. type: 'color',
  3176. },
  3177. {
  3178. key: 'bgImage',
  3179. label: '(未选中)背景图片',
  3180. type: 'string',
  3181. }
  3182. ],
  3183. },
  3184. },
  3185. },
  3186. ],
  3187. },
  3188. {
  3189. name: '输入',
  3190. show: true,
  3191. list: [
  3192. {
  3193. name: '按钮',
  3194. icon: 'l-anniu',
  3195. data: {
  3196. name: 'rectangle',
  3197. x: 300,
  3198. y: 200,
  3199. width: 80,
  3200. height: 30,
  3201. disableAnchor: true,
  3202. borderRadius: 2,
  3203. text: '按钮',
  3204. activeBackground: '#2D71EC',
  3205. activeColor: '#40a9ff',
  3206. background: '#4583FF',
  3207. color: '#1890ff',
  3208. hoverBackground: '#40a9ff',
  3209. hoverColor: '#7DA4FF',
  3210. textColor: '#ffffff',
  3211. hoverTextColor: '#ffffff',
  3212. activeTextColor: '#ffffff',
  3213. },
  3214. },
  3215. {
  3216. name: '文本输入框',
  3217. icon: 'l-wenbenshurukuang',
  3218. data: {
  3219. x: 100,
  3220. y: 100,
  3221. height: 40,
  3222. width: 200,
  3223. disableAnchor: true,
  3224. name: 'rectangle',
  3225. borderRadius: 0.05,
  3226. input: true,
  3227. ellipsis: true,
  3228. text: '输入文本',
  3229. textAlign: 'left',
  3230. background: '#15181C',
  3231. color: '#424B61',
  3232. textColor: '#FFFFFFE6',
  3233. // color: '#D9D9D9FF',
  3234. // hoverTextColor: '#000000FF',
  3235. // activeTextColor: '#000000FF',
  3236. textLeft: 10,
  3237. },
  3238. },
  3239. {
  3240. name: '数字输入框',
  3241. icon: 'l-shuzishurukuang',
  3242. data: {
  3243. x: 100,
  3244. y: 100,
  3245. height: 40,
  3246. width: 200,
  3247. disableAnchor: true,
  3248. name: 'rectangle',
  3249. borderRadius: 0.05,
  3250. input: true,
  3251. ellipsis: true,
  3252. text: '输入数字',
  3253. textAlign: 'left',
  3254. background: '#15181C',
  3255. color: '#424B61',
  3256. textColor: '#FFFFFFE6',
  3257. // color: '#D9D9D9FF',
  3258. // textColor: '#000000FF',
  3259. // hoverTextColor: '#000000FF',
  3260. // activeTextColor: '#000000FF',
  3261. textLeft: 10,
  3262. events: [
  3263. {
  3264. action: 5,
  3265. actions:[
  3266. {
  3267. "action": 5,
  3268. "value": "context.meta2d.setValue({ id: pen.id, text: parseFloat(pen.text) }, { doEvent: false });",
  3269. "params": ""
  3270. }
  3271. ],
  3272. name: 'inactive',
  3273. // value:
  3274. // 'context.meta2d.setValue({ id: pen.id, text: parseFloat(pen.text) }, { doEvent: false });',
  3275. where: { type: null },
  3276. },
  3277. ],
  3278. },
  3279. },
  3280. {
  3281. name: '单选框',
  3282. icon: 'l-danxuanxiang',
  3283. data: {
  3284. name: 'radio',
  3285. width: 300,
  3286. height: 30,
  3287. disableAnchor: true,
  3288. direction: 'horizontal', // 'vertical', //'horizontal',
  3289. theme: 'normal',
  3290. itemPosition: [],
  3291. data: [
  3292. { key: '1', text: '选项一', isForbidden: true },
  3293. { key: '2', text: '选项示例二' },
  3294. { key: '3', text: '选项三' },
  3295. ],
  3296. selectKey: '2',
  3297. props: {
  3298. custom: [
  3299. {
  3300. key: 'data',
  3301. label: '数据',
  3302. type: 'code',
  3303. },
  3304. {
  3305. key: 'direction',
  3306. label: '排列方向',
  3307. type: 'select',
  3308. options: [
  3309. { label: '横向', value: 'horizontal' },
  3310. { label: '纵向', value: 'vertical' },
  3311. ],
  3312. },
  3313. {
  3314. key: 'theme',
  3315. label: '模式',
  3316. type: 'select',
  3317. options: [
  3318. { label: '通用模式', value: 'normal' },
  3319. { label: '按钮模式', value: 'button' },
  3320. ],
  3321. },
  3322. ],
  3323. },
  3324. },
  3325. },
  3326. {
  3327. name: '多选框',
  3328. icon: 'l-duoxuanxiang',
  3329. data: {
  3330. name: 'checkbox',
  3331. width: 300,
  3332. height: 30,
  3333. direction: 'horizontal', // 'vertical', //'horizontal',
  3334. theme: 'normal', //button normal
  3335. data: [
  3336. { key: '1', text: '选项一', isForbidden: true },
  3337. { key: '2', text: '选项示例二' },
  3338. { key: '3', text: '选项三' },
  3339. ],
  3340. selectedKeys: ['2', '3'],
  3341. props: {
  3342. custom: [
  3343. {
  3344. key: 'data',
  3345. label: '数据',
  3346. type: 'code',
  3347. },
  3348. {
  3349. key: 'direction',
  3350. label: '排列方向',
  3351. type: 'select',
  3352. options: [
  3353. { label: '横向', value: 'horizontal' },
  3354. { label: '纵向', value: 'vertical' },
  3355. ],
  3356. },
  3357. {
  3358. key: 'theme',
  3359. label: '模式',
  3360. type: 'select',
  3361. options: [
  3362. { label: '通用模式', value: 'normal' },
  3363. { label: '按钮模式', value: 'button' },
  3364. ],
  3365. },
  3366. ],
  3367. },
  3368. },
  3369. },
  3370. {
  3371. name: '下拉选择器',
  3372. icon: 'l-xialaxuanzekuang',
  3373. data: {
  3374. x: 100,
  3375. y: 100,
  3376. height: 40,
  3377. width: 200,
  3378. disableAnchor: true,
  3379. name: 'rectangle',
  3380. borderRadius: 0.05,
  3381. ellipsis: true,
  3382. text: '选项1',
  3383. textAlign: 'left',
  3384. input: true,
  3385. background: '#15181C',
  3386. color: '#424B61',
  3387. textColor: '#FFFFFFE6',
  3388. hoverTextColor: '#FFFFFFE6',
  3389. activeTextColor: '#FFFFFFE6',
  3390. textLeft: 10,
  3391. dropdownList: [
  3392. {
  3393. text: '选项1',
  3394. },
  3395. {
  3396. text: '选项2',
  3397. },
  3398. {
  3399. text: '选项3',
  3400. },
  3401. ],
  3402. props: {
  3403. custom: [
  3404. {
  3405. key: 'dropdownList',
  3406. label: '下拉列表',
  3407. type: 'code',
  3408. },
  3409. ]
  3410. }
  3411. },
  3412. },
  3413. {
  3414. name: '时间选择器',
  3415. icon: 'l-shijianxuanzekuang',
  3416. data: {
  3417. name: 'inputDom',
  3418. width: 200,
  3419. height: 32,
  3420. externElement: true,
  3421. prefix: false,
  3422. suffix: false,
  3423. inputType: 'time',
  3424. hiddenText: true,
  3425. },
  3426. },
  3427. {
  3428. name: '日期选择器',
  3429. icon: 'l-riqixuanzekuang',
  3430. data: {
  3431. name: 'inputDom',
  3432. width: 200,
  3433. height: 32,
  3434. externElement: true,
  3435. prefix: false,
  3436. suffix: false,
  3437. inputType: 'date',
  3438. hiddenText: true,
  3439. },
  3440. },
  3441. {
  3442. name: '颜色选择器',
  3443. icon: 'l-yansexuanzekuang',
  3444. data: {
  3445. name: 'inputDom',
  3446. width: 32,
  3447. height: 32,
  3448. externElement: true,
  3449. prefix: false,
  3450. suffix: false,
  3451. inputType: 'color',
  3452. hiddenText: true,
  3453. },
  3454. },
  3455. {
  3456. name: '开关',
  3457. icon: 'l-kaiguan',
  3458. data: {
  3459. name: 'switch',
  3460. disableAnchor: true,
  3461. height: 30,
  3462. width: 60,
  3463. checked: true,
  3464. offColor: '#303746',
  3465. onColor: '#4583FF',
  3466. disableOffColor: '#E5E5E5',
  3467. disableOnColor: '#A3D3FF',
  3468. hoverBackground: '#40a9ff',
  3469. props: {
  3470. custom: [
  3471. {
  3472. key: 'onColor',
  3473. label: '开颜色',
  3474. type: 'color',
  3475. },
  3476. {
  3477. key: 'offColor',
  3478. label: '关颜色',
  3479. type: 'color',
  3480. },
  3481. {
  3482. key: 'disable',
  3483. label: '是否禁用',
  3484. type: 'bool',
  3485. },
  3486. {
  3487. key: 'disableOnColor',
  3488. label: '开(禁)颜色',
  3489. type: 'color',
  3490. },
  3491. {
  3492. key: 'disableOffColor',
  3493. label: '关(禁)颜色',
  3494. type: 'color',
  3495. },
  3496. ]
  3497. }
  3498. },
  3499. },
  3500. {
  3501. name: '滑块',
  3502. icon: 'l-huakuai',
  3503. data: {
  3504. anchors: [],
  3505. disableAnchor: true,
  3506. name: 'slider',
  3507. width: 300,
  3508. height: 20,
  3509. value: 10,
  3510. textWidth: 50,
  3511. barHeight: 4,
  3512. min: 0,
  3513. max: 100,
  3514. activeColor: '#4583FF',
  3515. background: '#303746',
  3516. textColor: '#FFFFFF66',
  3517. unit: '%',
  3518. },
  3519. },
  3520. ],
  3521. },
  3522. {
  3523. name: '工控',
  3524. show: true,
  3525. list: [
  3526. {
  3527. name: '圆柱水位',
  3528. icon: 'l-yuanzhushuiwei',
  3529. data: {
  3530. name: 'waterTank',
  3531. width: 128,
  3532. height: 128,
  3533. disableAnchor: true,
  3534. color: '#FFFFFF00',
  3535. progress: 0.5,
  3536. progressColor: '#4583FF',
  3537. props: {
  3538. custom: [
  3539. {
  3540. key: 'progress',
  3541. label: '水位',
  3542. type: 'number',
  3543. min:0,
  3544. max:1,
  3545. },
  3546. {
  3547. key: 'progressColor',
  3548. label: '水位颜色',
  3549. type: 'color',
  3550. }
  3551. ]
  3552. }
  3553. },
  3554. },
  3555. {
  3556. name: '球形水位',
  3557. icon: 'l-qiuxingshuiwei',
  3558. data: {
  3559. name: 'watermeter',
  3560. width: 128,
  3561. height: 128,
  3562. disableAnchor: true,
  3563. background: '#4583FF',
  3564. value: 50,
  3565. max: 70,
  3566. min: 20,
  3567. maxBackground: '#f5222d',
  3568. minBackground: '#52c41a',
  3569. // maxText: 'max',
  3570. // minText: 'min',
  3571. scaleShow: false,
  3572. props: {
  3573. custom: [
  3574. {
  3575. key: 'value',
  3576. label: '值',
  3577. type: 'number',
  3578. },
  3579. {
  3580. key: 'max',
  3581. label: '最大值',
  3582. type: 'number',
  3583. },
  3584. {
  3585. key: 'min',
  3586. label: '最小值',
  3587. type: 'number',
  3588. },
  3589. {
  3590. key: 'maxBackground',
  3591. label: '>最大颜色',
  3592. type: 'color',
  3593. },
  3594. {
  3595. key: 'minBackground',
  3596. label: '<最小颜色',
  3597. type: 'color',
  3598. },
  3599. {
  3600. key: 'scaleShow',
  3601. label: '刻度显示',
  3602. type: 'bool',
  3603. }
  3604. ]
  3605. }
  3606. },
  3607. },
  3608. {
  3609. name: '指示灯',
  3610. icon: 'l-zhishideng',
  3611. data: {
  3612. name: 'indicatorLight',
  3613. disableAnchor: true,
  3614. width: 128,
  3615. height: 128,
  3616. displayStatus: 0, //显示状态 默认 方形 圆形
  3617. background: '#4583FF33',
  3618. color: '#4583FF',
  3619. hiddenText: true,
  3620. // onColor: '#58CC84',
  3621. animations:[
  3622. {
  3623. name: "动画1",
  3624. temType: "id",
  3625. animate: "custom",
  3626. frames: [
  3627. {
  3628. background: '#4583FF33',
  3629. color: '#4583FF',
  3630. bkType: 0,
  3631. duration: 200,
  3632. strokeType: 0,
  3633. visible: true,
  3634. },
  3635. {
  3636. background: '#58CC8433',
  3637. color: '#58CC84',
  3638. bkType: 0,
  3639. duration: 200,
  3640. strokeType: 0,
  3641. visible: true,
  3642. }
  3643. ]
  3644. }
  3645. ],
  3646. // frames: [
  3647. // {
  3648. // background: '#4583FF33',
  3649. // color: '#4583FF',
  3650. // bkType: 0,
  3651. // duration: 200,
  3652. // strokeType: 0,
  3653. // visible: true,
  3654. // },
  3655. // {
  3656. // background: '#4583FF33',
  3657. // color: '#4583FF',
  3658. // bkType: 0,
  3659. // duration: 200,
  3660. // strokeType: 0,
  3661. // visible: true,
  3662. // },
  3663. // ],
  3664. // animateType: 'custom',
  3665. props: {
  3666. custom: [
  3667. {
  3668. key: 'displayStatus',
  3669. label: '显示状态',
  3670. type: 'number',
  3671. },
  3672. ]
  3673. }
  3674. },
  3675. props: {
  3676. custom: [
  3677. {
  3678. key: 'state',
  3679. value: 'on',
  3680. type: 'select',
  3681. options: [
  3682. { label: '开', value: 'on' },
  3683. { label: '关', value: 'off' },
  3684. ],
  3685. },
  3686. ],
  3687. },
  3688. },
  3689. {
  3690. name: '圆形按钮',
  3691. icon: 'l-yuanxinganniu', //l-yuanxinganniu
  3692. data: {
  3693. name: 'roundSwitch',
  3694. width: 128,
  3695. height: 128,
  3696. checked: true,
  3697. disableInput: true,
  3698. offColor: '#FFA98F',
  3699. onColor: '#80D99F',
  3700. color: '#4583FF', //66 33
  3701. background: '#4583FF33',
  3702. offShadowColor: '#FF5D3C',
  3703. onShadowColor: '#58CC84',
  3704. props: {
  3705. custom: [
  3706. {
  3707. key: 'onColor',
  3708. label: '开时颜色',
  3709. type: 'color',
  3710. },
  3711. {
  3712. key: 'offColor',
  3713. label: '关时颜色',
  3714. type: 'color',
  3715. },
  3716. {
  3717. key: 'onShadowColor',
  3718. label: '开时阴影颜色',
  3719. type: 'color',
  3720. },
  3721. {
  3722. key: 'offShadowColor',
  3723. label: '关时阴影颜色',
  3724. type: 'color',
  3725. },
  3726. ]
  3727. }
  3728. },
  3729. },
  3730. {
  3731. name: '船型开关',
  3732. icon: 'l-chuanxingkaiguan',
  3733. data: {
  3734. name: 'rockerSwitch',
  3735. width: 72,
  3736. height: 128,
  3737. disableInput: true,
  3738. offColor: '#FFA98F',
  3739. onColor: '#80D99F',
  3740. color: '#4583FF', //66 33
  3741. background: '#4583FF33',
  3742. offShadowColor: '#FF5D3C',
  3743. onShadowColor: '#58CC84',
  3744. props: {
  3745. custom: [
  3746. {
  3747. key: 'onColor',
  3748. label: '开时颜色',
  3749. type: 'color',
  3750. },
  3751. {
  3752. key: 'offColor',
  3753. label: '关时颜色',
  3754. type: 'color',
  3755. },
  3756. {
  3757. key: 'onShadowColor',
  3758. label: '开时阴影颜色',
  3759. type: 'color',
  3760. },
  3761. {
  3762. key: 'offShadowColor',
  3763. label: '关时阴影颜色',
  3764. type: 'color',
  3765. },
  3766. ]
  3767. }
  3768. },
  3769. },
  3770. {
  3771. name: '转换开关',
  3772. icon: 'l-zhuanhuankaiguan', //l-zhuanhuankaiguan
  3773. data: {
  3774. name: 'transferSwitch',
  3775. width: 128,
  3776. height: 128,
  3777. checked: true,
  3778. disableInput: true,
  3779. offColor: '#FFA98F',
  3780. onColor: '#80D99F',
  3781. color: '#4583FF', //66 33
  3782. background: '#4583FF33',
  3783. offShadowColor: '#FF5D3C',
  3784. onShadowColor: '#58CC84',
  3785. props: {
  3786. custom: [
  3787. {
  3788. key: 'onColor',
  3789. label: '开时颜色',
  3790. type: 'color',
  3791. },
  3792. {
  3793. key: 'offColor',
  3794. label: '关时颜色',
  3795. type: 'color',
  3796. },
  3797. {
  3798. key: 'onShadowColor',
  3799. label: '开时阴影颜色',
  3800. type: 'color',
  3801. },
  3802. {
  3803. key: 'offShadowColor',
  3804. label: '关时阴影颜色',
  3805. type: 'color',
  3806. },
  3807. ]
  3808. }
  3809. },
  3810. },
  3811. {
  3812. name: '闸刀',
  3813. icon: 'l-zhadao',
  3814. data: {
  3815. name: 'knifeSwitch',
  3816. width: 64,
  3817. height: 128,
  3818. color: '#4583FF',
  3819. disableInput: true,
  3820. background: '#4583FF33',
  3821. offColor: '#FF5D3C',
  3822. onColor: '#58CC84',
  3823. props: {
  3824. custom: [
  3825. {
  3826. key: 'onColor',
  3827. label: '开时颜色',
  3828. type: 'color',
  3829. },
  3830. {
  3831. key: 'offColor',
  3832. label: '关时颜色',
  3833. type: 'color',
  3834. },
  3835. ]
  3836. }
  3837. // events: [
  3838. // {
  3839. // action: 5,
  3840. // name: 'click',
  3841. // value: 'window.meta2d.setValue({id:pen.id,switch:!pen.switch});',
  3842. // },
  3843. // ],
  3844. },
  3845. },
  3846. {
  3847. name: '拨动开关',
  3848. icon: 'l-bodongkaiguan',
  3849. data: {
  3850. name: 'toggleSwitch',
  3851. width: 128,
  3852. height: 128,
  3853. checked: true,
  3854. disableInput: true,
  3855. color: '#4583FF',
  3856. background: '#4583FF33',
  3857. offColor: '#FF5D3C',
  3858. onColor: '#58CC84',
  3859. props: {
  3860. custom: [
  3861. {
  3862. key: 'onColor',
  3863. label: '开时颜色',
  3864. type: 'color',
  3865. },
  3866. {
  3867. key: 'offColor',
  3868. label: '关时颜色',
  3869. type: 'color',
  3870. },
  3871. ]
  3872. }
  3873. // events: [
  3874. // {
  3875. // action: 5,
  3876. // name: 'click',
  3877. // value:
  3878. // 'window.meta2d.setValue({id:pen.id,switch:!pen.switch});window.meta2d.render()',
  3879. // },
  3880. // ],
  3881. },
  3882. },
  3883. {
  3884. name: '空气开关',
  3885. icon: 'l-kongqikaiguan',
  3886. data: {
  3887. name: 'airSwitch',
  3888. width: 120,
  3889. height: 128,
  3890. switch: true,
  3891. color: '#4583FF',
  3892. background: '#4583FF33',
  3893. offColor: '#FF5D3C',
  3894. onColor: '#58CC84',
  3895. disableInput: true,
  3896. props: {
  3897. custom: [
  3898. {
  3899. key: 'onColor',
  3900. label: '开时颜色',
  3901. type: 'color',
  3902. },
  3903. {
  3904. key: 'offColor',
  3905. label: '关时颜色',
  3906. type: 'color',
  3907. },
  3908. ]
  3909. }
  3910. },
  3911. },
  3912. {
  3913. name: '水柱温度计',
  3914. icon: 'l-shuizhuwendu',
  3915. data: {
  3916. name: 'thermometer',
  3917. width: 32,
  3918. height: 128,
  3919. disableAnchor: true,
  3920. color: '#4583FF',
  3921. textColor: '#FFFFFFB3',
  3922. background: '#FF5D3C33',
  3923. activeBacground: '#FF5D3C',
  3924. value: -10,
  3925. min: -20,
  3926. max: 20,
  3927. },
  3928. },
  3929. {
  3930. name: '扁平温度计',
  3931. icon: 'l-bianpingwendu',
  3932. data: {
  3933. name: 'thermometer1',
  3934. disableAnchor: true,
  3935. width: 48,
  3936. height: 128,
  3937. backgroundColor: '#666',
  3938. value: 0,
  3939. min: -20,
  3940. max: 20,
  3941. color: '#4583FF',
  3942. markColor: '#fff',
  3943. background: '#FF5D3C33',
  3944. activeBackground: '#FF5D3C',
  3945. textColor: '#FFFFFFB3',
  3946. sub: 5,
  3947. barrel: {
  3948. x: 0.3,
  3949. y: 0.2,
  3950. width: 0.2,
  3951. height: 7 / 9,
  3952. },
  3953. },
  3954. },
  3955. {
  3956. name: '电池',
  3957. icon: 'l-dianchi',
  3958. data: {
  3959. name: 'battery',
  3960. disableAnchor: true,
  3961. width: 40,
  3962. height: 80,
  3963. // rotate: 90,
  3964. progress:0.6,
  3965. color:'#4583FF',
  3966. background:'#4583FF33',
  3967. progressColor:'#58CC84',
  3968. props: {
  3969. custom: [
  3970. {
  3971. key: 'min',
  3972. label: '最小值',
  3973. type: 'number',
  3974. placeholder:'默认0'
  3975. },
  3976. {
  3977. key: 'max',
  3978. label: '最大值',
  3979. type: 'number',
  3980. placeholder:'默认1'
  3981. },
  3982. {
  3983. key: 'splitNumber',
  3984. label: '分段数',
  3985. type: 'number',
  3986. },
  3987. {
  3988. key: 'gap',
  3989. label: '间隔占比',
  3990. type: 'number',
  3991. min:0,
  3992. max:1,
  3993. },
  3994. ],
  3995. },
  3996. },
  3997. },
  3998. ],
  3999. },
  4000. ];
  4001. export const cases: any[] = [
  4002. { name: '智慧物联' },
  4003. { name: '电力能源' },
  4004. { name: '智慧水务' },
  4005. { name: '智慧工厂' },
  4006. { name: '智慧校园' },
  4007. { name: '智慧园区' },
  4008. { name: '智慧交通' },
  4009. { name: '智慧城市' },
  4010. { name: '智慧农业' },
  4011. { name: '电信机房' },
  4012. { name: '航天航空' },
  4013. { name: '智能家居' },
  4014. ];
  4015. export const templates: any[] = [
  4016. { name: '主题', list: [] },
  4017. { name: '布局', list: [] },
  4018. ];
  4019. export const defaultPureColor: string[] = [
  4020. '#FF5959',
  4021. '#F5693B',
  4022. '#E6B420',
  4023. '#30EE6F',
  4024. '#30EEDC',
  4025. '#31A7F5',
  4026. '#7381FF',
  4027. '#AB73FF',
  4028. '#F054B1',
  4029. '#F75781',
  4030. '#ff925c',
  4031. '#e6d950',
  4032. '#51e69b',
  4033. '#59c8ff',
  4034. '#FF7875',
  4035. '#FF9C6E',
  4036. '#FFC069',
  4037. '#FFD666',
  4038. '#FFF566',
  4039. '#D3F261',
  4040. '#95DE64',
  4041. '#5CDBD3',
  4042. '#69C0FF',
  4043. '#85A5FF',
  4044. '#B37FEB',
  4045. '#FF85C0',
  4046. '#000000',
  4047. '#FFFFFF',
  4048. '#FFFFFF00',
  4049. ];
  4050. // export const defaultGradientColor: string[] = [
  4051. // 'linear-gradient(90deg, #E52600 0%, #CC0000 12%, #FF925C 80%, #FF622E 100%)',
  4052. // 'linear-gradient(90deg, #B36800 0%, #B36800 12%, #E6D950 80%, #CCB125 100%)',
  4053. // 'linear-gradient(90deg, #00B35A 0%, #00735F 12%, #51E69B 80%, #24CC6B 100%)',
  4054. // 'linear-gradient(90deg, #0073E6 0%, #1433CC 12%, #59C8FF 80%, #2EA5FF 100%)',
  4055. // 'linear-gradient(90deg, #a3aab2 0%, #7b7f8c 12%, #e5ecf0 80%, #bac2c9 100%)',
  4056. //
  4057. // 'linear-gradient(90deg, #FF622E 0%, #FF622E 18%,#CC0000 20%,#FF622E 50%, #CC0000 80%,#FF622E 82%, #FF622E 100%)',
  4058. // 'linear-gradient(90deg, #ccb125 0%, #ccb125 18%,#B36800 20%,#CCB125 50%, #B36800 80%,#CCB125 82%, #CCB125 100%)',
  4059. // 'linear-gradient(90deg, #24CC6B 0%, #24CC6B 18%,#00735F 20%,#24CC6B 50%, #00735F 80%,#24CC6B 82%, #24CC6B 100%)',
  4060. // 'linear-gradient(90deg, #2EA5FF 0%, #2EA5FF 18%,#1433CC 20%,#2EA5FF 50%, #1433CC 80%,#2EA5FF 82%, #2EA5FF 100%)',
  4061. // 'linear-gradient(90deg, #bac2c9 0%, #bac2c9 18%,#7b7f8c 20%,#bac2c9 50%, #7b7f8c 80%,#bac2c9 82%, #bac2c9 100%)'
  4062. // ]
  4063. export const defaultGradientColor: string[] = [
  4064. '#ff925c',
  4065. '#e6d950',
  4066. '#51e69b',
  4067. '#59c8ff',
  4068. '#FF7875',
  4069. '#FF9C6E',
  4070. '#FFC069',
  4071. '#FFD666',
  4072. '#FFF566',
  4073. '#D3F261',
  4074. '#95DE64',
  4075. '#5CDBD3',
  4076. '#69C0FF',
  4077. '#85A5FF',
  4078. '#B37FEB',
  4079. '#FF85C0',
  4080. '#000000',
  4081. '#FFFFFF',
  4082. ];