(function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.VtjUIMaterial=e())})(this,function(){"use strict";/**!
 * Copyright (c) 2024, VTJ.PRO All rights reserved.
 * @name @vtj/materials 
 * @author CHC chenhuachun1549@dingtalk.com 
 * @version 0.7.16
 * @license <a href="https://vtj.pro/license.html">MIT License</a>
 */const t="0.7.16";function e(a="size"){return{name:a,defaultValue:"default",setters:"SelectSetter",options:["default","large","small"]}}function r(a="type"){return{name:a,defaultValue:"default",setters:"SelectSetter",options:["default","primary","success","warning","danger","info"]}}function l(a,p){return a.map(c=>({...c,package:p}))}const s={name:"XTest",label:"测试组件",categoryId:"test",props:[{name:"booleanProp",label:"布尔值",setters:"BooleanSetter",title:"提示说明文本",defaultValue:!0},{name:"stringProp",setters:"StringSetter"},{name:"numberProp",setters:"NumberSetter"},{name:"selectProp",setters:"SelectSetter",defaultValue:"default",options:["default","primary","success","warning","danger","info"]},{name:"objectProp",setters:"ObjectSetter"},{name:"arrayProp",setters:"ArraySetter"},{name:"iconProp",setters:"IconSetter"},{name:"colorProp",setters:"ColorSetter"},{name:"modelValue",setters:"StringSetter"},{name:"syncProp",setters:"StringSetter"}],events:[{name:"click",params:["props"]},{name:"submit",params:["props"]},{name:"change",params:["data"]},{name:"update:modelValue",params:["value"]},{name:"update:syncProp",params:["value"]}],slots:[{name:"default",params:["props","data"]},{name:"extra",params:["props","data"]}],snippet:{props:{}}},n={name:"XIcon",label:"图标",categoryId:"base",props:[{name:"icon",label:"图标",setters:"IconSetter"},Object.assign(e("size"),{setters:["SelectSetter","NumberSetter"]}),{name:"color",label:"颜色",setters:"ColorSetter"},{name:"background",label:"背景色",setters:"ColorSetter"},{name:"src",label:"图片Url",setters:"InputSetter"},{name:"radius",label:"圆角值",setters:"NumberSetter"},{name:"padding",label:"内边距",setters:"NumberSetter"}],snippet:{props:{icon:"Star"}}},o={name:"XContainer",label:"容器",categoryId:"base",props:[{name:"tag",label:"标签名",setters:"StringSetter",defaultValue:"div"},{name:"fit",label:"高度自适应",setters:"BooleanSetter"},{name:"width",label:"宽度",setters:"StringSetter"},{name:"height",label:"高度",setters:"StringSetter"},{name:"flex",label:"flex布局",setters:"BooleanSetter",defaultValue:!0},{name:"inline",label:"inline-flex",setters:"BooleanSetter"},{name:"direction",label:"排版方向",setters:"SelectSetter",options:["row","row-reverse","column","column-reverse"],defaultValue:"row"},{name:"wrap",label:"换行",setters:"SelectSetter",options:["nowrap","wrap","wrap-reverse"],defaultValue:"nowrap"},{name:"justify",label:"主轴对齐",setters:"SelectSetter",options:["flex-start","flex-end","center","space-between","space-around"],defaultValue:"flex-start"},{name:"align",label:"交叉轴对齐",setters:"SelectSetter",options:["flex-start","flex-end","center","baseline","stretch"],defaultValue:"flex-start"},{name:"alignContent",label:"多轴线对齐",title:"多根轴线的对齐方式。如果项目只有一根轴线，该属性不起作用",setters:"SelectSetter",options:["flex-start","flex-end","center","space-between","space-around","stretch"],defaultValue:"stretch"},{name:"grow",label:"自动放大",setters:"BooleanSetter",defaultValue:!1},{name:"shrink",label:"自动缩小",setters:"BooleanSetter",defaultValue:!1},{name:"alignSelf",label:"alignSelf",title:"单个项目有与其他项目不一样的对齐方式。可覆盖容器的align-items属性",setters:"SelectSetter",options:["flex-start","flex-end","center","baseline","stretch"],defaultValue:"auto"},{name:"overflow",label:"overflow",setters:"SelectSetter",options:["auto","hidden","visible"]},{name:"padding",label:"内边距",setters:"BooleanSetter",defaultValue:!1},{name:"gap",label:"子组件间隔",setters:"BooleanSetter"},{name:"autoPointer",label:"autoPointer",setters:"BooleanSetter"}],snippet:{props:{padding:!0}}},i={name:"XAction",label:"操作按钮",categoryId:"base",props:[{name:"name",label:"名称标识",setters:"StringSetter"},{name:"label",label:"标题文本",setters:"StringSetter"},{name:"value",label:"动作值",setters:"StringSetter",title:"用来传输数据"},{name:"icon",label:"图标配置",setters:"IconSetter"},{name:"mode",label:"模式",setters:"SelectSetter",options:["button","text","icon"],defaultValue:"button"},{name:"menus",label:"菜单配置",setters:"JsonSetter"},{name:"tooltip",label:"Tooltip配置",setters:["StringSetter","JsonSetter"]},{name:"badge",label:"Badge配置",setters:["StringSetter","NumberSetter","JsonSetter"]},{name:"dropdown",label:"Dropdown配置",setters:"JsonSetter"},{name:"button",label:"Button配置",setters:"JsonSetter",title:"mode为button时有效"},{name:"disabled",label:"禁用",setters:"BooleanSetter"},e(),r(),{name:"background",label:"背景",setters:"SelectSetter",options:["always","hover","none"]},{name:"circle",label:"圆形",setters:"BooleanSetter"}],events:["click","command"],slots:[{name:"item",params:["item","index"]},{name:"default"}],snippet:{props:{label:"操作按钮"}}},m="@vtj/ui",u=[s,n,o,i].flat();return{name:"@vtj/ui",version:t,label:"UI",library:"VtjUIMaterial",order:1,categories:[{id:"base",category:"基础元件"},{id:"layout",category:"布局排版"},{id:"form",category:"表单"},{id:"data",category:"数据展示"},{id:"test",category:"测试套件"}],components:l(u,m)}});
