flame-types 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ ## flame-plus-model
2
+
3
+ * 介绍
4
+
5
+ `flame-plus`的type库,用于规范系统配置及框架展示。[仓库地址](https://gitee.com/silence_J/system-layout)
6
+
7
+ * 版本对应(暂未完成)
8
+
9
+ | flame-plus | flame-plus-model |
10
+ | ---------- | ---------------- |
11
+ | v1.0.0 | v1.0.0 |
12
+
13
+ * [打包参考](https://blog.csdn.net/ZY_FlyWay/article/details/122553136)
@@ -0,0 +1 @@
1
+ <!doctype html><html><head><meta charset="utf-8"/><title>Webpack App</title><script defer="defer" src="main.js"></script></head><body><h1>Hello world!</h1><h2>Tip: Check your console</h2></body></html>
package/dist/main.js ADDED
@@ -0,0 +1 @@
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.flameRequest=o():e.flameRequest=o()}(self,(()=>(()=>{"use strict";var e,o,l,t,i={d:(e,o)=>{for(var l in o)i.o(o,l)&&!i.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},a={};i.r(a),i.d(a,{ButtonNativeType:()=>t,ButtonType:()=>l,CascaderPropsExpandTrigger:()=>n,CascaderTagType:()=>r,ColorFormat:()=>c,ControlTypes:()=>M,DateType:()=>p,ElementIcons:()=>o,ElementSize:()=>e,FormEvent:()=>L,SelectTagType:()=>h,TargetSort:()=>B,TimePickerAlign:()=>w,buttonDefaultConfig:()=>d,cascaderDefaultConfig:()=>s,checkboxDefaultConfig:()=>u,checkboxGroupDefaultConfig:()=>f,colorPickerDefaultConfig:()=>m,datePickerDefaultConfig:()=>g,dialogDefaultConfig:()=>x,formDefaultConfig:()=>O,inputDefaultConfig:()=>C,inputNumberDefaultConfig:()=>F,isInputControl:()=>I,paginationDefaultConfig:()=>S,radioDefaultConfig:()=>D,radioGroupDefaultConfig:()=>b,rateDefaultConfig:()=>k,selectDefaultConfig:()=>y,sliderDefaultConfig:()=>P,switchDefaultConfig:()=>v,tableColumnDefaultConfig:()=>U,tableDefaultConfig:()=>E,timePickerDefaultConfig:()=>R,timeSelectDefaultConfig:()=>T,transferDefaultConfig:()=>A}),function(e){e.large="large",e.default="default",e.small="small"}(e||(e={})),function(e){e.AddLocation="AddLocation",e.Aim="Aim",e.AlarmClock="AlarmClock",e.Apple="Apple",e.ArrowDownBold="ArrowDownBold",e.ArrowDown="ArrowDown",e.ArrowLeftBold="ArrowLeftBold",e.ArrowLeft="ArrowLeft",e.ArrowRightBold="ArrowRightBold",e.ArrowRight="ArrowRight",e.ArrowUpBold="ArrowUpBold",e.ArrowUp="ArrowUp",e.Avatar="Avatar",e.Back="Back",e.Baseball="Baseball",e.Basketball="Basketball",e.BellFilled="BellFilled",e.Bell="Bell",e.Bicycle="Bicycle",e.BottomLeft="BottomLeft",e.BottomRight="BottomRight",e.Bottom="Bottom",e.Bowl="Bowl",e.Box="Box",e.Briefcase="Briefcase",e.BrushFilled="BrushFilled",e.Brush="Brush",e.Burger="Burger",e.Calendar="Calendar",e.CameraFilled="CameraFilled",e.Camera="Camera",e.CaretBottom="CaretBottom",e.CaretLeft="CaretLeft",e.CaretRight="CaretRight",e.CaretTop="CaretTop",e.Cellphone="Cellphone",e.ChatDotRound="ChatDotRound",e.ChatDotSquare="ChatDotSquare",e.ChatLineRound="ChatLineRound",e.ChatLineSquare="ChatLineSquare",e.ChatRound="ChatRound",e.ChatSquare="ChatSquare",e.Check="Check",e.Checked="Checked",e.Cherry="Cherry",e.Chicken="Chicken",e.CircleCheckFilled="CircleCheckFilled",e.CircleCheck="CircleCheck",e.CircleCloseFilled="CircleCloseFilled",e.CircleClose="CircleClose",e.CirclePlusFilled="CirclePlusFilled",e.CirclePlus="CirclePlus",e.Clock="Clock",e.CloseBold="CloseBold",e.Close="Close",e.Cloudy="Cloudy",e.CoffeeCup="CoffeeCup",e.Coffee="Coffee",e.Coin="Coin",e.ColdDrink="ColdDrink",e.CollectionTag="CollectionTag",e.Collection="Collection",e.Comment="Comment",e.Compass="Compass",e.Connection="Connection",e.Coordinate="Coordinate",e.CopyDocument="CopyDocument",e.Cpu="Cpu",e.CreditCard="CreditCard",e.Crop="Crop",e.DArrowLeft="DArrowLeft",e.DArrowRight="DArrowRight",e.DCaret="DCaret",e.DataAnalysis="DataAnalysis",e.DataBoard="DataBoard",e.DataLine="DataLine",e.DeleteFilled="DeleteFilled",e.DeleteLocation="DeleteLocation",e.Delete="Delete",e.Dessert="Dessert",e.Discount="Discount",e.DishDot="DishDot",e.Dish="Dish",e.DocumentAdd="DocumentAdd",e.DocumentChecked="DocumentChecked",e.DocumentCopy="DocumentCopy",e.DocumentDelete="DocumentDelete",e.DocumentRemove="DocumentRemove",e.Document="Document",e.Download="Download",e.Drizzling="Drizzling",e.EditPen="EditPen",e.Edit="Edit",e.ElemeFilled="ElemeFilled",e.Eleme="Eleme",e.ElementPlus="ElementPlus",e.Expand="Expand",e.Failed="Failed",e.Female="Female",e.Files="Files",e.Film="Film",e.Filter="Filter",e.Finished="Finished",e.FirstAidKit="FirstAidKit",e.Flag="Flag",e.Fold="Fold",e.FolderAdd="FolderAdd",e.FolderChecked="FolderChecked",e.FolderDelete="FolderDelete",e.FolderOpened="FolderOpened",e.FolderRemove="FolderRemove",e.Folder="Folder",e.Food="Food",e.Football="Football",e.ForkSpoon="ForkSpoon",e.Fries="Fries",e.FullScreen="FullScreen",e.GobletFull="GobletFull",e.GobletSquareFull="GobletSquareFull",e.GobletSquare="GobletSquare",e.Goblet="Goblet",e.GoodsFilled="GoodsFilled",e.Goods="Goods",e.Grape="Grape",e.Grid="Grid",e.Guide="Guide",e.Headset="Headset",e.HelpFilled="HelpFilled",e.Help="Help",e.Hide="Hide",e.Histogram="Histogram",e.HomeFilled="HomeFilled",e.HotWater="HotWater",e.House="House",e.IceCreamRound="IceCreamRound",e.IceCreamSquare="IceCreamSquare",e.IceCream="IceCream",e.IceDrink="IceDrink",e.IceTea="IceTea",e.InfoFilled="InfoFilled",e.Iphone="Iphone",e.Key="Key",e.KnifeFork="KnifeFork",e.Lightning="Lightning",e.Link="Link",e.List="List",e.Loading="Loading",e.LocationFilled="LocationFilled",e.LocationInformation="LocationInformation",e.Location="Location",e.Lock="Lock",e.Lollipop="Lollipop",e.MagicStick="MagicStick",e.Magnet="Magnet",e.Male="Male",e.Management="Management",e.MapLocation="MapLocation",e.Medal="Medal",e.Menu="Menu",e.MessageBox="MessageBox",e.Message="Message",e.Mic="Mic",e.Microphone="Microphone",e.MilkTea="MilkTea",e.Minus="Minus",e.Money="Money",e.Monitor="Monitor",e.MoonNight="MoonNight",e.Moon="Moon",e.MoreFilled="MoreFilled",e.More="More",e.MostlyCloudy="MostlyCloudy",e.Mouse="Mouse",e.Mug="Mug",e.MuteNotification="MuteNotification",e.Mute="Mute",e.NoSmoking="NoSmoking",e.Notebook="Notebook",e.Notification="Notification",e.Odometer="Odometer",e.OfficeBuilding="OfficeBuilding",e.Open="Open",e.Operation="Operation",e.Opportunity="Opportunity",e.Orange="Orange",e.Paperclip="Paperclip",e.PartlyCloudy="PartlyCloudy",e.Pear="Pear",e.PhoneFilled="PhoneFilled",e.Phone="Phone",e.PictureFilled="PictureFilled",e.PictureRounded="PictureRounded",e.Picture="Picture",e.PieChart="PieChart",e.Place="Place",e.Platform="Platform",e.Plus="Plus",e.Pointer="Pointer",e.Position="Position",e.Postcard="Postcard",e.Pouring="Pouring",e.Present="Present",e.PriceTag="PriceTag",e.Printer="Printer",e.Promotion="Promotion",e.QuestionFilled="QuestionFilled",e.Rank="Rank",e.ReadingLamp="ReadingLamp",e.Reading="Reading",e.RefreshLeft="RefreshLeft",e.RefreshRight="RefreshRight",e.Refresh="Refresh",e.Refrigerator="Refrigerator",e.RemoveFilled="RemoveFilled",e.Remove="Remove",e.Right="Right",e.ScaleToOriginal="ScaleToOriginal",e.School="School",e.Scissor="Scissor",e.Search="Search",e.Select="Select",e.Sell="Sell",e.SemiSelect="SemiSelect",e.Service="Service",e.SetUp="SetUp",e.Setting="Setting",e.Share="Share",e.Ship="Ship",e.Shop="Shop",e.ShoppingBag="ShoppingBag",e.ShoppingCartFull="ShoppingCartFull",e.ShoppingCart="ShoppingCart",e.Smoking="Smoking",e.Soccer="Soccer",e.SoldOut="SoldOut",e.SortDown="SortDown",e.SortUp="SortUp",e.Sort="Sort",e.Stamp="Stamp",e.StarFilled="StarFilled",e.Star="Star",e.Stopwatch="Stopwatch",e.SuccessFilled="SuccessFilled",e.Sugar="Sugar",e.Suitcase="Suitcase",e.Sunny="Sunny",e.Sunrise="Sunrise",e.Sunset="Sunset",e.SwitchButton="SwitchButton",e.Switch="Switch",e.TakeawayBox="TakeawayBox",e.Ticket="Ticket",e.Tickets="Tickets",e.Timer="Timer",e.ToiletPaper="ToiletPaper",e.Tools="Tools",e.TopLeft="TopLeft",e.TopRight="TopRight",e.Top="Top",e.TrendCharts="TrendCharts",e.Trophy="Trophy",e.TurnOff="TurnOff",e.Umbrella="Umbrella",e.Unlock="Unlock",e.UploadFilled="UploadFilled",e.Upload="Upload",e.UserFilled="UserFilled",e.User="User",e.Van="Van",e.VideoCameraFilled="VideoCameraFilled",e.VideoCamera="VideoCamera",e.VideoPause="VideoPause",e.VideoPlay="VideoPlay",e.View="View",e.WalletFilled="WalletFilled",e.Wallet="Wallet",e.WarningFilled="WarningFilled",e.Warning="Warning",e.Watch="Watch",e.Watermelon="Watermelon",e.WindPower="WindPower",e.ZoomIn="ZoomIn",e.ZoomOut="ZoomOut"}(o||(o={})),function(e){e.primary="primary",e.success="success",e.warning="warning",e.danger="danger",e.info="info",e.text="text"}(l||(l={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(t||(t={}));var r,n,d={plain:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",disabled:!1,autofocus:!1,"native-type":t.button};!function(e){e.success="success",e.info="info",e.warning="warning",e.danger="danger"}(r||(r={})),function(e){e.click="click",e.hover="hover"}(n||(n={}));var c,s={placeholder:"请选择",disabled:!1,clearable:!1,"show-all-levels":!0,"collapse-tags":!1,"collapse-tags-tooltip":!1,separator:"/",debounce:300,teleported:!0,"tag-type":r.info},u={disabled:!1,border:!1,checked:!1,indeterminate:!1},f={"model-value":[],disabled:!1,"text-color":"#FFFFFF",fill:"#409EFF"};!function(e){e.hsl="hsl",e.hsv="hsv",e.hex="hex",e.rgb="rgb"}(c||(c={}));var p,m={disabled:!1,"show-alpha":!1};!function(e){e.year="year",e.month="month",e.date="date",e.dates="dates",e.datetime="datetime",e.week="week",e.datetimerange="datetimerange",e.daterange="daterange",e.monthrange="monthrange"}(p||(p={}));var h,g={readonly:!1,disabled:!1,size:e.default,editable:!0,clearable:!0,type:p.date,format:"YYYY-MM-DD","range-separator":"-","unlink-panels":!1,"prefix-icon":"Date","clear-icon":o.CircleClose,"validate-event":!0,teleported:!0},C={type:"text","show-word-limit":!1,clearable:!1,"show-password":!1,disabled:!1,rows:2,autosize:!1,autocomplete:"off",readonly:!1,autofocus:!1,"validate-event":!0,"input-style":{}},F={min:-1/0,max:1/0,step:1,"step-strictly":!1,size:e.default,disabled:!1,controls:!0},S={small:!1,background:!1,"page-size":10,"pager-count":7,"current-page":1,layout:"prev, pager, next, jumper, ->, total","page-sizes":[10,20,30,40,50,100],disabled:!1},D={disabled:!1,border:!1},b={size:e.default,disabled:!1,"text-color":"#FFF",fill:"#409EFF"},k={"model-value":0,max:5,size:e.default,disabled:!1,"allow-half":!1,"low-threshold":2,"high-threshold":4,colors:["#F7BA2A","#F7BA2A","#F7BA2A"],"void-color":"#C6D1DE","disabled-void-color":"#EFF2F7",icons:[o.StarFilled,o.StarFilled,o.StarFilled],"void-icon":o.Star,"disabled-void-icon":o.StarFilled,"show-text":!1,"show-score":!1,"text-color":"#1F2D3D",texts:["Extremely bad","Disappointed","Fair","Satisfied","Surprise"]};!function(e){e.success="success",e.info="info",e.warning="warning",e.danger="danger"}(h||(h={}));var w,y={multiple:!1,disabled:!1,"value-key":"value",size:e.default,clearable:!1,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",placeholder:"请选择",filterable:!1,"allow-create":!1,remote:!1,loading:!1,"loading-text":"加载中","no-match-text":"没有匹配的数据","no-data-text":"无数据","reserve-keyword":!0,"default-first-option":!1,"popper-append-to-body":!0,teleported:!0,persistent:!0,"automatic-dropdown":!1,"clear-icon":"CircleClose","fit-input-width":!1,"suffix-icon":"ArrowUp","tag-type":h.info},P={"model-value":0,min:0,max:100,disabled:!1,step:1,"show-input":!1,"show-input-controls":!0,size:e.default,"input-size":e.default,"show-stops":!1,"show-tooltip":!0,range:!1,vertical:!1,debounce:300},v={disabled:!1,loading:!1,size:e.default,width:40,"inline-prompt":!1,"active-value":!0,"inactive-value":!1,"active-color":"#409EFF","inactive-color":"#C0CCDA","validate-event":!0};!function(e){e.left="left",e.center="center",e.right="right"}(w||(w={}));var B,R={readonly:!1,disabled:!1,editable:!0,clearable:!0,"is-range":!1,"arrow-control":!1,align:w.left,format:"HH:mm:ss","prefix-icon":o.Clock,"clear-icon":o.CircleClose,teleported:!0},T={disabled:!1,editable:!0,clearable:!0,size:e.default,effect:"light","prefix-icon":o.Clock,"clear-icon":o.CircleClose,start:"09:00",end:"18:00",step:"00:30","min-time":"00:00",format:"HH:mm"};!function(e){e.original="original",e.push="push",e.unshift="unshift"}(B||(B={}));var M,L,A={data:[],filterable:!1,"filter-placeholder":"Enter keyword","target-order":B.original,titles:["List 1","List 2"],"button-texts":[],format:{noChecked:"${checked}/${total}",hasChecked:"${checked}/${total}"},"left-default-checked":[],"right-default-checked":[]},x={width:"50%",fullscreen:!1,top:"15vh",modal:!0,"append-to-body":!1,"lock-scroll":!0,"open-delay":0,"close-delay":0,"close-on-click-modal":!0,"close-on-press-escape":!0,"show-close":!0,draggable:!1,center:!1,"destroy-on-close":!1};!function(e){e.flmCascader="flmCascader",e.flmCheckbox="flmCheckbox",e.flmColorPicker="flmColorPicker",e.flmDatePicker="flmDatePicker",e.flmInput="flmInput",e.flmInputNumber="flmInputNumber",e.flmRadio="flmRadio",e.flmRate="flmRate",e.flmRead="flmRead",e.flmSelect="flmSelect",e.flmSlider="flmSlider",e.flmSwitch="flmSwitch",e.flmTimePicker="flmTimePicker",e.flmTimeSelect="flmTimeSelect",e.flmTransfer="flmTransfer"}(M||(M={})),function(e){e.submit="submit",e.cancel="cancel"}(L||(L={}));var O={inline:!1,"label-position":"right","hide-required-asterisk":!1,"show-message":!0,"inline-message":!1,"status-icon":!1,"validate-on-rule-change":!0,disabled:!1},I=function(e){return void 0!==e.modelValue},E={stripe:!1,border:!1,fit:!0,"show-header":!0,"highlight-current-row":!1,"empty-text":"暂无数据","default-expand-all":!1,"tooltip-effect":"dark","show-summary":!1,"sum-text":"合计","select-on-indeterminate":!0,indent:16,"tree-props":{hasChildren:"hasChildren",children:"children"},"table-layout":"fixed","scrollbar-always-on":!1},U={sortable:!1,"sort-orders":["ascending","descending",null],resizable:!1,"show-overflow-tooltip":!1,align:"left","reserve-selection":!1,"filter-multiple":!0};return a})()));
@@ -0,0 +1 @@
1
+ /*! Element Plus Icons Vue v2.0.10 */
@@ -0,0 +1,34 @@
1
+ import { ElementSize } from '../index';
2
+ /** @button 按钮 */
3
+ export declare enum ButtonType {
4
+ 'primary' = "primary",
5
+ 'success' = "success",
6
+ 'warning' = "warning",
7
+ 'danger' = "danger",
8
+ 'info' = "info",
9
+ 'text' = "text"
10
+ }
11
+ export declare enum ButtonNativeType {
12
+ 'button' = "button",
13
+ 'submit' = "submit",
14
+ 'reset' = "reset"
15
+ }
16
+ export interface ButtonConfig {
17
+ 'size'?: ElementSize;
18
+ 'type'?: ButtonType;
19
+ 'plain'?: boolean;
20
+ 'text'?: boolean;
21
+ 'bg'?: boolean;
22
+ 'link'?: boolean;
23
+ 'round'?: boolean;
24
+ 'circle'?: boolean;
25
+ 'loading'?: boolean;
26
+ 'loading-icon'?: string;
27
+ 'disabled'?: boolean;
28
+ 'icon'?: string;
29
+ 'autofocus'?: boolean;
30
+ 'native-type'?: ButtonNativeType;
31
+ 'auto-insert-space'?: boolean;
32
+ 'buttonText'?: string;
33
+ }
34
+ export declare const buttonDefaultConfig: ButtonConfig;
@@ -0,0 +1,54 @@
1
+ import { ElementSize } from '../index';
2
+ /** @cascader 级联选择器 */
3
+ export declare enum CascaderTagType {
4
+ 'success' = "success",
5
+ 'info' = "info",
6
+ 'warning' = "warning",
7
+ 'danger' = "danger"
8
+ }
9
+ export declare enum CascaderPropsExpandTrigger {
10
+ 'click' = "click",
11
+ 'hover' = "hover"
12
+ }
13
+ export interface CascaderProps {
14
+ 'expandTrigger'?: CascaderPropsExpandTrigger;
15
+ 'multiple'?: boolean;
16
+ 'checkStrictly'?: boolean;
17
+ 'emitPath'?: boolean;
18
+ 'lazy'?: boolean;
19
+ 'lazyLoad'?: Function;
20
+ 'value'?: string;
21
+ 'label'?: string;
22
+ 'children'?: string;
23
+ 'disabled'?: string;
24
+ 'leaf'?: string;
25
+ }
26
+ export interface CascaderConfig {
27
+ 'model-value'?: any;
28
+ 'options'?: Array<any>;
29
+ 'props'?: CascaderProps;
30
+ 'size'?: ElementSize;
31
+ 'placeholder'?: string;
32
+ 'disabled'?: boolean;
33
+ 'clearable'?: boolean;
34
+ 'show-all-levels'?: boolean;
35
+ 'collapse-tags'?: boolean;
36
+ 'collapse-tags-tooltip'?: boolean;
37
+ 'separator'?: string;
38
+ 'filterable'?: boolean;
39
+ 'filter-method'?: Function;
40
+ 'debounce'?: number;
41
+ 'before-filter'?: Function;
42
+ 'popper-class'?: string;
43
+ 'teleported'?: boolean;
44
+ 'tag-type'?: CascaderTagType;
45
+ }
46
+ export interface CascaderDefaultEvent {
47
+ 'onChange': (value: CascaderConfig['model-value']) => void;
48
+ 'onExpandChange': (event: any) => void;
49
+ 'onBlur': (event: any) => void;
50
+ 'onFocus': (event: any) => void;
51
+ 'onVisibleChange': (event: boolean) => void;
52
+ 'onRemoveTag': (event: any) => void;
53
+ }
54
+ export declare const cascaderDefaultConfig: CascaderConfig;
@@ -0,0 +1,31 @@
1
+ import { ElementSize } from '../index';
2
+ /** @checkboxGroup 多选框 */
3
+ export interface CheckboxConfig {
4
+ 'model-value'?: string | number | boolean;
5
+ 'label'?: string | number | boolean | object;
6
+ 'true-label'?: string | number;
7
+ 'false-label'?: string | number;
8
+ 'disabled'?: boolean;
9
+ 'border'?: boolean;
10
+ 'size'?: ElementSize;
11
+ 'name'?: string;
12
+ 'checked'?: boolean;
13
+ 'indeterminate'?: boolean;
14
+ }
15
+ export interface CheckboxDefaultEvent {
16
+ 'onChange': (value: CheckboxConfig['model-value']) => void;
17
+ }
18
+ export declare const checkboxDefaultConfig: CheckboxConfig;
19
+ export interface CheckboxGroupConfig {
20
+ 'model-value'?: Array<CheckboxConfig['model-value']>;
21
+ 'size'?: ElementSize;
22
+ 'disabled'?: boolean;
23
+ 'min'?: number;
24
+ 'max'?: number;
25
+ 'text-color'?: string;
26
+ 'fill'?: string;
27
+ 'hasCheckAll'?: boolean;
28
+ 'checkAllConfig'?: CheckboxConfig;
29
+ 'items'?: Array<CheckboxConfig>;
30
+ }
31
+ export declare const checkboxGroupDefaultConfig: CheckboxGroupConfig;
@@ -0,0 +1,21 @@
1
+ import { ElementSize } from '../index';
2
+ /** @colorPicker 颜色选择器 */
3
+ export declare enum ColorFormat {
4
+ 'hsl' = "hsl",
5
+ 'hsv' = "hsv",
6
+ 'hex' = "hex",
7
+ 'rgb' = "rgb"
8
+ }
9
+ export interface ColorPickerConfig {
10
+ 'model-value'?: string;
11
+ 'disabled'?: boolean;
12
+ 'size'?: ElementSize;
13
+ 'show-alpha'?: boolean;
14
+ 'color-format'?: ColorFormat;
15
+ 'popper-class'?: string;
16
+ 'predefine'?: Array<string>;
17
+ }
18
+ export interface ColorPickerDefaultEvent {
19
+ onChange: (value: ColorPickerConfig['model-value']) => void;
20
+ }
21
+ export declare const colorPickerDefaultConfig: ColorPickerConfig;
@@ -0,0 +1,53 @@
1
+ import { ElementSize, ElementIcons } from '../index';
2
+ /** @datePicker 日期选择器 */
3
+ export declare enum DateType {
4
+ 'year' = "year",
5
+ 'month' = "month",
6
+ 'date' = "date",
7
+ 'dates' = "dates",
8
+ 'datetime' = "datetime",
9
+ 'week' = "week",
10
+ 'datetimerange' = "datetimerange",
11
+ 'daterange' = "daterange",
12
+ 'monthrange' = "monthrange"
13
+ }
14
+ export interface DatePickerConfig {
15
+ 'model-value'?: Date | Array<Date>;
16
+ 'readonly'?: boolean;
17
+ 'disabled'?: boolean;
18
+ 'size'?: ElementSize;
19
+ 'editable'?: boolean;
20
+ 'clearable'?: boolean;
21
+ 'placeholder'?: string;
22
+ 'start-placeholder'?: string;
23
+ 'end-placeholder'?: string;
24
+ 'type'?: DateType;
25
+ 'format'?: string;
26
+ 'popper-class'?: string;
27
+ 'range-separator'?: string;
28
+ 'default-value'?: Date;
29
+ 'default-time'?: Array<Date>;
30
+ 'value-format'?: string;
31
+ 'id'?: string | Array<string>;
32
+ 'name'?: string;
33
+ 'unlink-panels'?: boolean;
34
+ 'prefix-icon'?: string;
35
+ 'clear-icon'?: ElementIcons;
36
+ 'validate-event'?: boolean;
37
+ 'disabled-date'?: Function;
38
+ 'shortcuts'?: Array<{
39
+ text: string;
40
+ value: Date | Function;
41
+ }>;
42
+ 'cell-class-name'?: Function;
43
+ 'teleported'?: boolean;
44
+ }
45
+ export interface DatePickerDefaultEvent {
46
+ 'onUpdate:modelValue': (value: DatePickerConfig['model-value']) => void;
47
+ 'onBlur': (event: any) => void;
48
+ 'onFocus': (event: any) => void;
49
+ 'onCalendarChange': (event: Array<Date>) => void;
50
+ 'onPanelChange': (date: any, mode: any, view: any) => void;
51
+ 'onVisibleChange': (event: boolean) => void;
52
+ }
53
+ export declare const datePickerDefaultConfig: DatePickerConfig;
@@ -0,0 +1,30 @@
1
+ /** @dialog 弹窗 */
2
+ export interface DialogConfig {
3
+ 'model-value'?: boolean;
4
+ 'title'?: string;
5
+ 'width'?: string | number;
6
+ 'fullscreen'?: false;
7
+ 'top'?: string;
8
+ 'modal'?: boolean;
9
+ 'append-to-body'?: boolean;
10
+ 'lock-scroll'?: boolean;
11
+ 'custom-class'?: string;
12
+ 'open-delay'?: number;
13
+ 'close-delay'?: number;
14
+ 'close-on-click-modal'?: boolean;
15
+ 'close-on-press-escape'?: boolean;
16
+ 'show-close'?: boolean;
17
+ 'before-close'?: Function;
18
+ 'draggable'?: boolean;
19
+ 'center'?: boolean;
20
+ 'destroy-on-close'?: boolean;
21
+ }
22
+ export interface DialogDefaultEvent {
23
+ 'onOpen': () => void;
24
+ 'onOpened': () => void;
25
+ 'onClose': () => void;
26
+ 'onClosed': () => void;
27
+ 'onOpenAutoFocus': () => void;
28
+ 'onCloseAutoFocus': () => void;
29
+ }
30
+ export declare const dialogDefaultConfig: DialogConfig;
@@ -0,0 +1,42 @@
1
+ import { ElementSize } from '../index';
2
+ /** @input 输入框 */
3
+ export interface InputConfig {
4
+ 'type'?: 'text' | 'textarea';
5
+ 'modelValue'?: string | number;
6
+ 'maxlength'?: string | number;
7
+ 'minlength'?: string | number;
8
+ 'show-word-limit'?: boolean;
9
+ 'placeholder'?: string;
10
+ 'clearable'?: boolean;
11
+ 'show-password'?: boolean;
12
+ 'disabled'?: boolean;
13
+ 'size'?: ElementSize;
14
+ 'prefix-icon'?: string;
15
+ 'suffix-icon'?: string;
16
+ 'rows'?: number;
17
+ 'autosize'?: boolean | {
18
+ minRows: number;
19
+ maxRows: number;
20
+ };
21
+ 'autocomplete'?: string;
22
+ 'name'?: string;
23
+ 'readonly'?: boolean;
24
+ 'max'?: any;
25
+ 'min'?: any;
26
+ 'step'?: any;
27
+ 'resize'?: 'none' | 'both' | 'horizontal' | 'vertical';
28
+ 'autofocus'?: boolean;
29
+ 'form'?: string;
30
+ 'label'?: string;
31
+ 'tabindex'?: string | number;
32
+ 'validate-event'?: boolean;
33
+ 'input-style'?: object;
34
+ }
35
+ export interface InputDefaultEvent {
36
+ 'onBlur': () => void;
37
+ 'onFocus': () => void;
38
+ 'onChange': (value: InputConfig['modelValue']) => void;
39
+ 'onInput': (value: InputConfig['modelValue']) => void;
40
+ 'onClear': () => void;
41
+ }
42
+ export declare const inputDefaultConfig: InputConfig;
@@ -0,0 +1,24 @@
1
+ import { ElementSize } from '../index';
2
+ /** @inputNumber 数字输入框 */
3
+ export interface InputNumberConfig {
4
+ 'model-value'?: number | undefined;
5
+ 'min'?: number;
6
+ 'max'?: number;
7
+ 'step'?: number;
8
+ 'step-strictly'?: boolean;
9
+ 'precision'?: number;
10
+ 'size'?: ElementSize;
11
+ 'disabled'?: boolean;
12
+ 'controls'?: boolean;
13
+ 'controls-position'?: string;
14
+ 'name'?: string;
15
+ 'label'?: string;
16
+ 'placeholder'?: string;
17
+ 'value-on-clear'?: string | number | null;
18
+ }
19
+ export interface InputNumberDefaultEvent {
20
+ onChange: (value: InputNumberConfig['model-value']) => void;
21
+ onBlur: () => void;
22
+ onFocus: () => void;
23
+ }
24
+ export declare const inputNumberDefaultConfig: InputNumberConfig;
@@ -0,0 +1,26 @@
1
+ /** @pagination 分页 */
2
+ export interface PaginationConfig {
3
+ 'small'?: boolean;
4
+ 'background'?: boolean;
5
+ 'page-size'?: number;
6
+ 'default-page-size'?: number;
7
+ 'total'?: number;
8
+ 'page-count'?: number;
9
+ 'pager-count'?: number;
10
+ 'current-page'?: number;
11
+ 'default-current-page'?: number;
12
+ 'layout'?: string;
13
+ 'page-sizes'?: Array<number>;
14
+ 'popper-class'?: string;
15
+ 'prev-text'?: string;
16
+ 'next-text'?: string;
17
+ 'disabled'?: boolean;
18
+ 'hide-on-single-page'?: boolean;
19
+ }
20
+ export interface PaginationDefaultEvent {
21
+ 'onSizeChange': (pageSize: number) => void;
22
+ 'onCurrentChange': (current: number) => void;
23
+ 'onPrevClick': (current: number) => void;
24
+ 'onNextClick': (current: number) => void;
25
+ }
26
+ export declare const paginationDefaultConfig: PaginationConfig;
@@ -0,0 +1,24 @@
1
+ import { ElementSize } from '../index';
2
+ /** @radio 单选框 */
3
+ export interface RadioConfig {
4
+ 'model-value'?: string | number | boolean;
5
+ 'label'?: string | number | boolean;
6
+ 'disabled'?: boolean;
7
+ 'border'?: boolean;
8
+ 'size'?: ElementSize;
9
+ 'name'?: string;
10
+ }
11
+ export interface RadioGroupConfig {
12
+ 'model-value'?: string | number | boolean;
13
+ 'size'?: ElementSize;
14
+ 'disabled'?: boolean;
15
+ 'text-color'?: string;
16
+ 'fill'?: string;
17
+ 'useButton'?: boolean;
18
+ 'radios'?: Array<RadioConfig>;
19
+ }
20
+ export interface RadioGroupDefaultEvent {
21
+ onChange: (value: RadioConfig['model-value']) => void;
22
+ }
23
+ export declare const radioDefaultConfig: RadioConfig;
24
+ export declare const radioGroupDefaultConfig: RadioGroupConfig;
@@ -0,0 +1,26 @@
1
+ import { ElementSize, ElementIcons } from '../index';
2
+ /** @rate 评分 */
3
+ export interface RateConfig {
4
+ 'model-value'?: number;
5
+ 'max'?: number;
6
+ 'size'?: ElementSize;
7
+ 'disabled'?: boolean;
8
+ 'allow-half'?: boolean;
9
+ 'low-threshold'?: number;
10
+ 'high-threshold'?: number;
11
+ 'colors'?: Array<string> | object;
12
+ 'void-color'?: string;
13
+ 'disabled-void-color'?: string;
14
+ 'icons'?: Array<ElementIcons> | object;
15
+ 'void-icon'?: ElementIcons;
16
+ 'disabled-void-icon'?: ElementIcons;
17
+ 'show-text'?: boolean;
18
+ 'show-score'?: boolean;
19
+ 'text-color'?: string;
20
+ 'texts'?: Array<string>;
21
+ 'score-template'?: string;
22
+ }
23
+ export interface RateDefaultEvent {
24
+ onChange: (value: RateConfig['model-value']) => void;
25
+ }
26
+ export declare const rateDefaultConfig: RateConfig;
@@ -0,0 +1,6 @@
1
+ /** @read 查看 */
2
+ export interface ReadConfig {
3
+ 'model-value'?: string;
4
+ 'class'?: string;
5
+ 'style'?: string;
6
+ }
@@ -0,0 +1,65 @@
1
+ import { ElementSize } from '../index';
2
+ /** @select 选择器 */
3
+ export declare enum SelectTagType {
4
+ 'success' = "success",
5
+ 'info' = "info",
6
+ 'warning' = "warning",
7
+ 'danger' = "danger"
8
+ }
9
+ export interface SelectConfig {
10
+ 'model-value'?: string | number | boolean | object;
11
+ 'multiple'?: boolean;
12
+ 'disabled'?: boolean;
13
+ 'value-key'?: string;
14
+ 'size'?: ElementSize;
15
+ 'clearable'?: boolean;
16
+ 'collapse-tags'?: boolean;
17
+ 'collapse-tags-tooltip'?: boolean;
18
+ 'multiple-limit'?: number;
19
+ 'name'?: string;
20
+ 'effect'?: 'dark' | 'light';
21
+ 'autocomplete'?: string;
22
+ 'placeholder'?: string;
23
+ 'filterable'?: boolean;
24
+ 'allow-create'?: boolean;
25
+ 'filter-method'?: Function;
26
+ 'remote'?: boolean;
27
+ 'remote-method'?: Function;
28
+ 'loading'?: boolean;
29
+ 'loading-text'?: string;
30
+ 'no-match-text'?: string;
31
+ 'no-data-text'?: string;
32
+ 'popper-class'?: string;
33
+ 'reserve-keyword'?: boolean;
34
+ 'default-first-option'?: boolean;
35
+ 'popper-append-to-body'?: boolean;
36
+ 'teleported'?: boolean;
37
+ 'persistent'?: boolean;
38
+ 'automatic-dropdown'?: boolean;
39
+ 'clear-icon'?: string;
40
+ 'fit-input-width'?: boolean;
41
+ 'suffix-icon'?: string;
42
+ 'tag-type'?: SelectTagType;
43
+ 'hasGroup'?: boolean;
44
+ 'groups'?: Array<OptionGroupConfig>;
45
+ 'options'?: Array<OptionConfig>;
46
+ }
47
+ export interface SelectDefaultEvent {
48
+ onChange: (value: SelectConfig['model-value']) => void;
49
+ onVisibleChange: (showOption: boolean) => void;
50
+ onRemoveTag: (tagValue: SelectConfig['model-value']) => void;
51
+ onClear: () => void;
52
+ onBlur: () => void;
53
+ onFocus: () => void;
54
+ }
55
+ export interface OptionGroupConfig {
56
+ 'label'?: string;
57
+ 'disabled'?: boolean;
58
+ 'options'?: Array<OptionConfig>;
59
+ }
60
+ export interface OptionConfig {
61
+ 'value'?: string | number | boolean | object;
62
+ 'label'?: string | number;
63
+ 'disabled'?: boolean;
64
+ }
65
+ export declare const selectDefaultConfig: SelectConfig;
@@ -0,0 +1,31 @@
1
+ import { ElementSize } from '../index';
2
+ /** @slider 滑块 */
3
+ export interface SliderConfig {
4
+ 'model-value'?: number;
5
+ 'min'?: number;
6
+ 'max'?: number;
7
+ 'disabled'?: boolean;
8
+ 'step'?: number;
9
+ 'show-input'?: boolean;
10
+ 'show-input-controls'?: boolean;
11
+ 'size'?: ElementSize;
12
+ 'input-size'?: ElementSize;
13
+ 'show-stops'?: boolean;
14
+ 'show-tooltip'?: boolean;
15
+ 'format-tooltip'?: Function;
16
+ 'range'?: boolean;
17
+ 'vertical'?: boolean;
18
+ 'height'?: string;
19
+ 'label'?: string;
20
+ 'range-start-label'?: string;
21
+ 'range-end-label'?: string;
22
+ 'format-value-text'?: Function;
23
+ 'debounce'?: number;
24
+ 'tooltip-class'?: string;
25
+ 'marks'?: Record<number, any>;
26
+ }
27
+ export interface SliderDefaultEvent {
28
+ onChange: (value: SliderConfig['model-value']) => void;
29
+ onInput: (value: SliderConfig['model-value']) => void;
30
+ }
31
+ export declare const sliderDefaultConfig: SliderConfig;
@@ -0,0 +1,23 @@
1
+ import { ElementSize } from '../index';
2
+ /** @switch 开关 */
3
+ export interface SwitchConfig {
4
+ 'model-value'?: boolean | string | number;
5
+ 'disabled'?: boolean;
6
+ 'loading'?: boolean;
7
+ 'size'?: ElementSize;
8
+ 'width'?: number;
9
+ 'inline-prompt'?: boolean;
10
+ 'active-icon'?: string;
11
+ 'inactive-icon'?: string;
12
+ 'active-text'?: string;
13
+ 'inactive-text'?: string;
14
+ 'active-value'?: boolean | string | number;
15
+ 'inactive-value'?: boolean | string | number;
16
+ 'active-color'?: string;
17
+ 'inactive-color'?: string;
18
+ 'border-color'?: string;
19
+ 'name'?: string;
20
+ 'validate-event'?: boolean;
21
+ 'before-change'?: Function;
22
+ }
23
+ export declare const switchDefaultConfig: SwitchConfig;
@@ -0,0 +1,40 @@
1
+ import { ElementSize, ElementIcons } from '../index';
2
+ /** @timePicker 时间选择器 */
3
+ export declare enum TimePickerAlign {
4
+ 'left' = "left",
5
+ 'center' = "center",
6
+ 'right' = "right"
7
+ }
8
+ export interface TimePickerConfig {
9
+ 'model-value'?: Date;
10
+ 'readonly'?: boolean;
11
+ 'disabled'?: boolean;
12
+ 'editable'?: boolean;
13
+ 'clearable'?: boolean;
14
+ 'size'?: ElementSize;
15
+ 'placeholder'?: string;
16
+ 'start-placeholder'?: string;
17
+ 'end-placeholder'?: string;
18
+ 'is-range'?: boolean;
19
+ 'arrow-control'?: boolean;
20
+ 'align'?: TimePickerAlign;
21
+ 'popper-class'?: string;
22
+ 'range-separator'?: string;
23
+ 'format'?: string;
24
+ 'default-value'?: Date | string;
25
+ 'id'?: string | Array<string>;
26
+ 'name'?: string;
27
+ 'prefix-icon'?: ElementIcons;
28
+ 'clear-icon'?: ElementIcons;
29
+ 'disabled-hours'?: Function;
30
+ 'disabled-minutes'?: Function;
31
+ 'disabled-seconds'?: Function;
32
+ 'teleported'?: boolean;
33
+ }
34
+ export interface TimePickerDefaultEvent {
35
+ 'onUpdate:modelValue': (value: TimePickerConfig['model-value']) => void;
36
+ 'onBlur': (event: any) => void;
37
+ 'onFocus': (event: any) => void;
38
+ 'onVisibleChange': (event: boolean) => void;
39
+ }
40
+ export declare const timePickerDefaultConfig: TimePickerConfig;
@@ -0,0 +1,26 @@
1
+ import { ElementSize, ElementIcons } from '../index';
2
+ /** @timeSelect 时间选择 */
3
+ export interface TimeSelectConfig {
4
+ 'model-value'?: string;
5
+ 'disabled'?: boolean;
6
+ 'editable'?: boolean;
7
+ 'clearable'?: boolean;
8
+ 'size'?: ElementSize;
9
+ 'placeholder'?: string;
10
+ 'name'?: string;
11
+ 'effect'?: string;
12
+ 'prefix-icon'?: ElementIcons;
13
+ 'clear-icon'?: ElementIcons;
14
+ 'start'?: string;
15
+ 'end'?: string;
16
+ 'step'?: string;
17
+ 'min-time'?: string;
18
+ 'max-time'?: string;
19
+ 'format'?: string;
20
+ }
21
+ export interface TimeSelectDefaultEvent {
22
+ onChange: (value: TimeSelectConfig['model-value']) => void;
23
+ onBlur: () => void;
24
+ onFocus: () => void;
25
+ }
26
+ export declare const timeSelectDefaultConfig: TimeSelectConfig;
@@ -0,0 +1,35 @@
1
+ /** @transfer 穿梭框 */
2
+ export declare enum TargetSort {
3
+ 'original' = "original",
4
+ 'push' = "push",
5
+ 'unshift' = "unshift"
6
+ }
7
+ export interface TransferItem {
8
+ key?: any;
9
+ label?: any;
10
+ disabled?: any;
11
+ }
12
+ export interface TransferConfig {
13
+ 'model-value'?: Array<TransferItem>;
14
+ 'data'?: Array<TransferItem>;
15
+ 'filterable'?: boolean;
16
+ 'filter-placeholder'?: string;
17
+ 'filter-method'?: Function;
18
+ 'target-order'?: TargetSort;
19
+ 'titles'?: Array<string>;
20
+ 'button-texts'?: Array<string>;
21
+ 'render-content'?: Function;
22
+ 'format'?: {
23
+ 'noChecked'?: string;
24
+ 'hasChecked'?: string;
25
+ };
26
+ 'props'?: TransferItem;
27
+ 'left-default-checked'?: Array<any>;
28
+ 'right-default-checked'?: Array<any>;
29
+ }
30
+ export interface TransferDefaultEvent {
31
+ onChange: (value: TransferConfig['model-value']) => void;
32
+ onLeftCheckChange: (value: TransferConfig['model-value']) => void;
33
+ onRightCheckChange: (value: TransferConfig['model-value']) => void;
34
+ }
35
+ export declare const transferDefaultConfig: TransferConfig;
@@ -0,0 +1,76 @@
1
+ import { XOR } from 'ts-xor';
2
+ import { ElementSize, ButtonConfig, CascaderConfig, CheckboxConfig, ColorPickerConfig, DatePickerConfig, InputConfig, InputNumberConfig, RadioGroupConfig, RateConfig, ReadConfig, SelectConfig, SliderConfig, SwitchConfig, TimePickerConfig, TimeSelectConfig, TransferConfig } from '../index';
3
+ /** @form 表单 */
4
+ export declare enum ControlTypes {
5
+ 'flmCascader' = "flmCascader",
6
+ 'flmCheckbox' = "flmCheckbox",
7
+ 'flmColorPicker' = "flmColorPicker",
8
+ 'flmDatePicker' = "flmDatePicker",
9
+ 'flmInput' = "flmInput",
10
+ 'flmInputNumber' = "flmInputNumber",
11
+ 'flmRadio' = "flmRadio",
12
+ 'flmRate' = "flmRate",
13
+ 'flmRead' = "flmRead",
14
+ 'flmSelect' = "flmSelect",
15
+ 'flmSlider' = "flmSlider",
16
+ 'flmSwitch' = "flmSwitch",
17
+ 'flmTimePicker' = "flmTimePicker",
18
+ 'flmTimeSelect' = "flmTimeSelect",
19
+ 'flmTransfer' = "flmTransfer"
20
+ }
21
+ export declare type ControlConfig = CascaderConfig | CheckboxConfig | ColorPickerConfig | DatePickerConfig | InputConfig | InputNumberConfig | RadioGroupConfig | RateConfig | ReadConfig | SelectConfig | SliderConfig | SwitchConfig | TimePickerConfig | TimeSelectConfig | TransferConfig;
22
+ export declare type FormModel = Record<string, any>;
23
+ export interface FormConfig {
24
+ 'model'?: FormModel;
25
+ 'rules'?: Record<string, Array<FormRule>>;
26
+ 'inline'?: boolean;
27
+ 'label-position'?: 'left' | 'right' | 'top';
28
+ 'label-width'?: string | number;
29
+ 'label-suffix'?: string;
30
+ 'hide-required-asterisk'?: boolean;
31
+ 'show-message'?: boolean;
32
+ 'inline-message'?: boolean;
33
+ 'status-icon'?: boolean;
34
+ 'validate-on-rule-change'?: boolean;
35
+ 'size'?: ElementSize;
36
+ 'disabled'?: boolean;
37
+ 'items'?: Array<FormItemConfig>;
38
+ 'buttons'?: Array<FormButtonConfig>;
39
+ }
40
+ export declare type FormItemConfig = XOR<SlotItemConfig, ControlItemConfig>;
41
+ export interface FormItemDefaultConfig {
42
+ 'prop'?: string | Array<string>;
43
+ 'label'?: string;
44
+ 'label-width'?: string | number;
45
+ 'required'?: boolean;
46
+ 'rules'?: any;
47
+ 'error'?: string;
48
+ 'show-message'?: boolean;
49
+ 'inline-message'?: boolean;
50
+ 'size'?: ElementSize;
51
+ }
52
+ interface SlotItemConfig extends FormItemDefaultConfig {
53
+ 'isSlot': boolean;
54
+ }
55
+ interface ControlItemConfig extends FormItemDefaultConfig {
56
+ 'controlType': ControlTypes;
57
+ 'controlConfig': ControlConfig;
58
+ }
59
+ interface FormRule {
60
+ 'required'?: true;
61
+ 'min'?: number;
62
+ 'max'?: number;
63
+ 'message'?: string;
64
+ 'trigger'?: 'change' | 'blur';
65
+ 'validator'?: Function;
66
+ }
67
+ export declare enum FormEvent {
68
+ 'submit' = "submit",
69
+ 'cancel' = "cancel"
70
+ }
71
+ export interface FormButtonConfig extends ButtonConfig {
72
+ 'event': FormEvent | string;
73
+ }
74
+ export declare const formDefaultConfig: FormConfig;
75
+ export declare const isInputControl: (control: ControlItemConfig['controlConfig']) => control is InputConfig;
76
+ export {};
@@ -0,0 +1,4 @@
1
+ import { FormConfig } from '../index';
2
+ export interface SearchConfig extends FormConfig {
3
+ maxFormItem?: number;
4
+ }
@@ -0,0 +1,102 @@
1
+ import { ElementSize } from '../index';
2
+ /** @table 表格 */
3
+ export interface TableConfig {
4
+ 'data'?: Array<any>;
5
+ 'height'?: string | number;
6
+ 'max-height'?: string | number;
7
+ 'stripe'?: boolean;
8
+ 'border'?: boolean;
9
+ 'size'?: ElementSize;
10
+ 'fit'?: boolean;
11
+ 'show-header'?: boolean;
12
+ 'highlight-current-row'?: boolean;
13
+ 'current-row-key'?: string | number;
14
+ 'row-class-name'?: Function | string;
15
+ 'row-style'?: Function | object;
16
+ 'cell-class-name'?: Function | string;
17
+ 'cell-style'?: Function | object;
18
+ 'header-row-class-name'?: Function | string;
19
+ 'header-row-style'?: Function | object;
20
+ 'header-cell-class-name'?: Function | string;
21
+ 'header-cell-style'?: Function | object;
22
+ 'row-key'?: Function | string;
23
+ 'empty-text'?: string;
24
+ 'default-expand-all'?: boolean;
25
+ 'expand-row-keys'?: Array<any>;
26
+ 'default-sort'?: {
27
+ prop: any;
28
+ order: 'ascending' | 'descending';
29
+ };
30
+ 'tooltip-effect'?: 'dark' | 'light';
31
+ 'show-summary'?: boolean;
32
+ 'sum-text'?: string;
33
+ 'summary-method'?: Function;
34
+ 'span-method'?: Function;
35
+ 'select-on-indeterminate'?: boolean;
36
+ 'indent'?: number;
37
+ 'lazy'?: boolean;
38
+ 'load'?: Function;
39
+ 'tree-props'?: {
40
+ hasChildren: string;
41
+ children: string;
42
+ };
43
+ 'table-layout'?: 'fixed' | 'auto';
44
+ 'scrollbar-always-on'?: boolean;
45
+ 'columns'?: Array<TableColumnConfig>;
46
+ }
47
+ export interface TableColumnConfig {
48
+ 'type'?: 'selection' | 'index' | 'expand';
49
+ 'index'?: number | Function;
50
+ 'label'?: string;
51
+ 'column-key'?: string;
52
+ 'prop'?: string;
53
+ 'width'?: string | number;
54
+ 'min-width'?: string | number;
55
+ 'fixed'?: true | 'left' | 'right';
56
+ 'render-header'?: Function;
57
+ 'sortable'?: true | false | 'custom';
58
+ 'sort-method'?: Function;
59
+ 'sort-by'?: Function;
60
+ 'sort-orders'?: Array<'ascending' | 'descending' | null>;
61
+ 'resizable'?: boolean;
62
+ 'formatter'?: Function;
63
+ 'show-overflow-tooltip'?: boolean;
64
+ 'align'?: 'left' | 'center' | 'right';
65
+ 'header-align'?: 'left' | 'center' | 'right';
66
+ 'class-name'?: string;
67
+ 'label-class-name'?: string;
68
+ 'selectable'?: Function;
69
+ 'reserve-selection'?: boolean;
70
+ 'filters'?: Array<{
71
+ text: string;
72
+ value: string;
73
+ }>;
74
+ 'filter-placement'?: string;
75
+ 'filter-multiple'?: boolean;
76
+ 'filter-method'?: Function;
77
+ 'filtered-value'?: Array<any>;
78
+ 'isSlot'?: boolean;
79
+ 'columns'?: Array<TableColumnConfig>;
80
+ }
81
+ export interface TableDefaultEvent {
82
+ onSelect: (selection: any, row: any) => void;
83
+ onSelectAll: (selection: any) => void;
84
+ onSelectionChange: (row: any, column: any, cell: any, event: any) => void;
85
+ onCellMouseEnter: (row: any, column: any, cell: any, event: any) => void;
86
+ onCellMouseLeave: (row: any, column: any, cell: any, event: any) => void;
87
+ onCellClick: (row: any, column: any, cell: any, event: any) => void;
88
+ onCellDblclick: (row: any, column: any, cell: any, event: any) => void;
89
+ onCellContextmenu: (row: any, column: any, cell: any, event: any) => void;
90
+ onRowClick: (row: any, column: any, event: any) => void;
91
+ onRowContextmenu: (row: any, column: any, event: any) => void;
92
+ onRowDblclick: (row: any, column: any, event: any) => void;
93
+ onHeaderClick: (column: any, event: any) => void;
94
+ onHeaderContextmenu: (column: any, event: any) => void;
95
+ onSortChange: ({ column, prop, order }: any) => void;
96
+ onFilterChange: (filters: any) => void;
97
+ onCurrentChange: (currentRow: any, oldCurrentRow: any) => void;
98
+ onHeaderDragend: (newWidth: any, oldWidth: any, column: any, event: any) => void;
99
+ onExpandChange: (row: any, expanded: any) => void;
100
+ }
101
+ export declare const tableDefaultConfig: TableConfig;
102
+ export declare const tableColumnDefaultConfig: TableColumnConfig;
@@ -0,0 +1,9 @@
1
+ import { ButtonConfig } from '../index';
2
+ export interface ToolbarButtonConfig extends ButtonConfig {
3
+ 'event': string;
4
+ }
5
+ export interface ToolbarConfig {
6
+ 'publicConfig': ButtonConfig;
7
+ 'maxButton': number;
8
+ 'buttons': Array<ToolbarButtonConfig>;
9
+ }
@@ -0,0 +1,28 @@
1
+ /** @公共属性 */
2
+ export * from './public';
3
+ /** @基础控件 */
4
+ export * from './base/flmButton';
5
+ export * from './base/flmCascader';
6
+ export * from './base/flmCheckbox';
7
+ export * from './base/flmColorPicker';
8
+ export * from './base/flmDatePicker';
9
+ export * from './base/flmInput';
10
+ export * from './base/flmInputNumber';
11
+ export * from './base/flmPagination';
12
+ export * from './base/flmRadio';
13
+ export * from './base/flmRate';
14
+ export * from './base/flmRead';
15
+ export * from './base/flmSelect';
16
+ export * from './base/flmSlider';
17
+ export * from './base/flmSwitch';
18
+ export * from './base/flmTimePicker';
19
+ export * from './base/flmTimeSelect';
20
+ export * from './base/flmTransfer';
21
+ export * from './base/flmDialog';
22
+ /** @复合组件 */
23
+ export * from './complex/flmForm';
24
+ export * from './complex/flmSearch';
25
+ export * from './complex/flmTable';
26
+ export * from './complex/flmToolbar';
27
+ /** @页面组件 */
28
+ export * from './page/flmReportPage';
@@ -0,0 +1,14 @@
1
+ import { FormConfig, ToolbarConfig, TableConfig, PaginationConfig, DialogConfig } from '../index';
2
+ export interface ReportPageSetting {
3
+ 'search': FormConfig;
4
+ 'toolbar': ToolbarConfig;
5
+ 'table': TableConfig;
6
+ 'tableAction': ToolbarConfig;
7
+ 'pagination': PaginationConfig;
8
+ 'readDialog': DialogConfig;
9
+ 'readForm': FormConfig;
10
+ 'addDialog': DialogConfig;
11
+ 'addForm': FormConfig;
12
+ 'editDialog': DialogConfig;
13
+ 'editForm': FormConfig;
14
+ }
@@ -0,0 +1,290 @@
1
+ export declare enum ElementSize {
2
+ 'large' = "large",
3
+ 'default' = "default",
4
+ 'small' = "small"
5
+ }
6
+ export declare enum ElementIcons {
7
+ 'AddLocation' = "AddLocation",
8
+ 'Aim' = "Aim",
9
+ 'AlarmClock' = "AlarmClock",
10
+ 'Apple' = "Apple",
11
+ 'ArrowDownBold' = "ArrowDownBold",
12
+ 'ArrowDown' = "ArrowDown",
13
+ 'ArrowLeftBold' = "ArrowLeftBold",
14
+ 'ArrowLeft' = "ArrowLeft",
15
+ 'ArrowRightBold' = "ArrowRightBold",
16
+ 'ArrowRight' = "ArrowRight",
17
+ 'ArrowUpBold' = "ArrowUpBold",
18
+ 'ArrowUp' = "ArrowUp",
19
+ 'Avatar' = "Avatar",
20
+ 'Back' = "Back",
21
+ 'Baseball' = "Baseball",
22
+ 'Basketball' = "Basketball",
23
+ 'BellFilled' = "BellFilled",
24
+ 'Bell' = "Bell",
25
+ 'Bicycle' = "Bicycle",
26
+ 'BottomLeft' = "BottomLeft",
27
+ 'BottomRight' = "BottomRight",
28
+ 'Bottom' = "Bottom",
29
+ 'Bowl' = "Bowl",
30
+ 'Box' = "Box",
31
+ 'Briefcase' = "Briefcase",
32
+ 'BrushFilled' = "BrushFilled",
33
+ 'Brush' = "Brush",
34
+ 'Burger' = "Burger",
35
+ 'Calendar' = "Calendar",
36
+ 'CameraFilled' = "CameraFilled",
37
+ 'Camera' = "Camera",
38
+ 'CaretBottom' = "CaretBottom",
39
+ 'CaretLeft' = "CaretLeft",
40
+ 'CaretRight' = "CaretRight",
41
+ 'CaretTop' = "CaretTop",
42
+ 'Cellphone' = "Cellphone",
43
+ 'ChatDotRound' = "ChatDotRound",
44
+ 'ChatDotSquare' = "ChatDotSquare",
45
+ 'ChatLineRound' = "ChatLineRound",
46
+ 'ChatLineSquare' = "ChatLineSquare",
47
+ 'ChatRound' = "ChatRound",
48
+ 'ChatSquare' = "ChatSquare",
49
+ 'Check' = "Check",
50
+ 'Checked' = "Checked",
51
+ 'Cherry' = "Cherry",
52
+ 'Chicken' = "Chicken",
53
+ 'CircleCheckFilled' = "CircleCheckFilled",
54
+ 'CircleCheck' = "CircleCheck",
55
+ 'CircleCloseFilled' = "CircleCloseFilled",
56
+ 'CircleClose' = "CircleClose",
57
+ 'CirclePlusFilled' = "CirclePlusFilled",
58
+ 'CirclePlus' = "CirclePlus",
59
+ 'Clock' = "Clock",
60
+ 'CloseBold' = "CloseBold",
61
+ 'Close' = "Close",
62
+ 'Cloudy' = "Cloudy",
63
+ 'CoffeeCup' = "CoffeeCup",
64
+ 'Coffee' = "Coffee",
65
+ 'Coin' = "Coin",
66
+ 'ColdDrink' = "ColdDrink",
67
+ 'CollectionTag' = "CollectionTag",
68
+ 'Collection' = "Collection",
69
+ 'Comment' = "Comment",
70
+ 'Compass' = "Compass",
71
+ 'Connection' = "Connection",
72
+ 'Coordinate' = "Coordinate",
73
+ 'CopyDocument' = "CopyDocument",
74
+ 'Cpu' = "Cpu",
75
+ 'CreditCard' = "CreditCard",
76
+ 'Crop' = "Crop",
77
+ 'DArrowLeft' = "DArrowLeft",
78
+ 'DArrowRight' = "DArrowRight",
79
+ 'DCaret' = "DCaret",
80
+ 'DataAnalysis' = "DataAnalysis",
81
+ 'DataBoard' = "DataBoard",
82
+ 'DataLine' = "DataLine",
83
+ 'DeleteFilled' = "DeleteFilled",
84
+ 'DeleteLocation' = "DeleteLocation",
85
+ 'Delete' = "Delete",
86
+ 'Dessert' = "Dessert",
87
+ 'Discount' = "Discount",
88
+ 'DishDot' = "DishDot",
89
+ 'Dish' = "Dish",
90
+ 'DocumentAdd' = "DocumentAdd",
91
+ 'DocumentChecked' = "DocumentChecked",
92
+ 'DocumentCopy' = "DocumentCopy",
93
+ 'DocumentDelete' = "DocumentDelete",
94
+ 'DocumentRemove' = "DocumentRemove",
95
+ 'Document' = "Document",
96
+ 'Download' = "Download",
97
+ 'Drizzling' = "Drizzling",
98
+ 'EditPen' = "EditPen",
99
+ 'Edit' = "Edit",
100
+ 'ElemeFilled' = "ElemeFilled",
101
+ 'Eleme' = "Eleme",
102
+ 'ElementPlus' = "ElementPlus",
103
+ 'Expand' = "Expand",
104
+ 'Failed' = "Failed",
105
+ 'Female' = "Female",
106
+ 'Files' = "Files",
107
+ 'Film' = "Film",
108
+ 'Filter' = "Filter",
109
+ 'Finished' = "Finished",
110
+ 'FirstAidKit' = "FirstAidKit",
111
+ 'Flag' = "Flag",
112
+ 'Fold' = "Fold",
113
+ 'FolderAdd' = "FolderAdd",
114
+ 'FolderChecked' = "FolderChecked",
115
+ 'FolderDelete' = "FolderDelete",
116
+ 'FolderOpened' = "FolderOpened",
117
+ 'FolderRemove' = "FolderRemove",
118
+ 'Folder' = "Folder",
119
+ 'Food' = "Food",
120
+ 'Football' = "Football",
121
+ 'ForkSpoon' = "ForkSpoon",
122
+ 'Fries' = "Fries",
123
+ 'FullScreen' = "FullScreen",
124
+ 'GobletFull' = "GobletFull",
125
+ 'GobletSquareFull' = "GobletSquareFull",
126
+ 'GobletSquare' = "GobletSquare",
127
+ 'Goblet' = "Goblet",
128
+ 'GoodsFilled' = "GoodsFilled",
129
+ 'Goods' = "Goods",
130
+ 'Grape' = "Grape",
131
+ 'Grid' = "Grid",
132
+ 'Guide' = "Guide",
133
+ 'Headset' = "Headset",
134
+ 'HelpFilled' = "HelpFilled",
135
+ 'Help' = "Help",
136
+ 'Hide' = "Hide",
137
+ 'Histogram' = "Histogram",
138
+ 'HomeFilled' = "HomeFilled",
139
+ 'HotWater' = "HotWater",
140
+ 'House' = "House",
141
+ 'IceCreamRound' = "IceCreamRound",
142
+ 'IceCreamSquare' = "IceCreamSquare",
143
+ 'IceCream' = "IceCream",
144
+ 'IceDrink' = "IceDrink",
145
+ 'IceTea' = "IceTea",
146
+ 'InfoFilled' = "InfoFilled",
147
+ 'Iphone' = "Iphone",
148
+ 'Key' = "Key",
149
+ 'KnifeFork' = "KnifeFork",
150
+ 'Lightning' = "Lightning",
151
+ 'Link' = "Link",
152
+ 'List' = "List",
153
+ 'Loading' = "Loading",
154
+ 'LocationFilled' = "LocationFilled",
155
+ 'LocationInformation' = "LocationInformation",
156
+ 'Location' = "Location",
157
+ 'Lock' = "Lock",
158
+ 'Lollipop' = "Lollipop",
159
+ 'MagicStick' = "MagicStick",
160
+ 'Magnet' = "Magnet",
161
+ 'Male' = "Male",
162
+ 'Management' = "Management",
163
+ 'MapLocation' = "MapLocation",
164
+ 'Medal' = "Medal",
165
+ 'Menu' = "Menu",
166
+ 'MessageBox' = "MessageBox",
167
+ 'Message' = "Message",
168
+ 'Mic' = "Mic",
169
+ 'Microphone' = "Microphone",
170
+ 'MilkTea' = "MilkTea",
171
+ 'Minus' = "Minus",
172
+ 'Money' = "Money",
173
+ 'Monitor' = "Monitor",
174
+ 'MoonNight' = "MoonNight",
175
+ 'Moon' = "Moon",
176
+ 'MoreFilled' = "MoreFilled",
177
+ 'More' = "More",
178
+ 'MostlyCloudy' = "MostlyCloudy",
179
+ 'Mouse' = "Mouse",
180
+ 'Mug' = "Mug",
181
+ 'MuteNotification' = "MuteNotification",
182
+ 'Mute' = "Mute",
183
+ 'NoSmoking' = "NoSmoking",
184
+ 'Notebook' = "Notebook",
185
+ 'Notification' = "Notification",
186
+ 'Odometer' = "Odometer",
187
+ 'OfficeBuilding' = "OfficeBuilding",
188
+ 'Open' = "Open",
189
+ 'Operation' = "Operation",
190
+ 'Opportunity' = "Opportunity",
191
+ 'Orange' = "Orange",
192
+ 'Paperclip' = "Paperclip",
193
+ 'PartlyCloudy' = "PartlyCloudy",
194
+ 'Pear' = "Pear",
195
+ 'PhoneFilled' = "PhoneFilled",
196
+ 'Phone' = "Phone",
197
+ 'PictureFilled' = "PictureFilled",
198
+ 'PictureRounded' = "PictureRounded",
199
+ 'Picture' = "Picture",
200
+ 'PieChart' = "PieChart",
201
+ 'Place' = "Place",
202
+ 'Platform' = "Platform",
203
+ 'Plus' = "Plus",
204
+ 'Pointer' = "Pointer",
205
+ 'Position' = "Position",
206
+ 'Postcard' = "Postcard",
207
+ 'Pouring' = "Pouring",
208
+ 'Present' = "Present",
209
+ 'PriceTag' = "PriceTag",
210
+ 'Printer' = "Printer",
211
+ 'Promotion' = "Promotion",
212
+ 'QuestionFilled' = "QuestionFilled",
213
+ 'Rank' = "Rank",
214
+ 'ReadingLamp' = "ReadingLamp",
215
+ 'Reading' = "Reading",
216
+ 'RefreshLeft' = "RefreshLeft",
217
+ 'RefreshRight' = "RefreshRight",
218
+ 'Refresh' = "Refresh",
219
+ 'Refrigerator' = "Refrigerator",
220
+ 'RemoveFilled' = "RemoveFilled",
221
+ 'Remove' = "Remove",
222
+ 'Right' = "Right",
223
+ 'ScaleToOriginal' = "ScaleToOriginal",
224
+ 'School' = "School",
225
+ 'Scissor' = "Scissor",
226
+ 'Search' = "Search",
227
+ 'Select' = "Select",
228
+ 'Sell' = "Sell",
229
+ 'SemiSelect' = "SemiSelect",
230
+ 'Service' = "Service",
231
+ 'SetUp' = "SetUp",
232
+ 'Setting' = "Setting",
233
+ 'Share' = "Share",
234
+ 'Ship' = "Ship",
235
+ 'Shop' = "Shop",
236
+ 'ShoppingBag' = "ShoppingBag",
237
+ 'ShoppingCartFull' = "ShoppingCartFull",
238
+ 'ShoppingCart' = "ShoppingCart",
239
+ 'Smoking' = "Smoking",
240
+ 'Soccer' = "Soccer",
241
+ 'SoldOut' = "SoldOut",
242
+ 'SortDown' = "SortDown",
243
+ 'SortUp' = "SortUp",
244
+ 'Sort' = "Sort",
245
+ 'Stamp' = "Stamp",
246
+ 'StarFilled' = "StarFilled",
247
+ 'Star' = "Star",
248
+ 'Stopwatch' = "Stopwatch",
249
+ 'SuccessFilled' = "SuccessFilled",
250
+ 'Sugar' = "Sugar",
251
+ 'Suitcase' = "Suitcase",
252
+ 'Sunny' = "Sunny",
253
+ 'Sunrise' = "Sunrise",
254
+ 'Sunset' = "Sunset",
255
+ 'SwitchButton' = "SwitchButton",
256
+ 'Switch' = "Switch",
257
+ 'TakeawayBox' = "TakeawayBox",
258
+ 'Ticket' = "Ticket",
259
+ 'Tickets' = "Tickets",
260
+ 'Timer' = "Timer",
261
+ 'ToiletPaper' = "ToiletPaper",
262
+ 'Tools' = "Tools",
263
+ 'TopLeft' = "TopLeft",
264
+ 'TopRight' = "TopRight",
265
+ 'Top' = "Top",
266
+ 'TrendCharts' = "TrendCharts",
267
+ 'Trophy' = "Trophy",
268
+ 'TurnOff' = "TurnOff",
269
+ 'Umbrella' = "Umbrella",
270
+ 'Unlock' = "Unlock",
271
+ 'UploadFilled' = "UploadFilled",
272
+ 'Upload' = "Upload",
273
+ 'UserFilled' = "UserFilled",
274
+ 'User' = "User",
275
+ 'Van' = "Van",
276
+ 'VideoCameraFilled' = "VideoCameraFilled",
277
+ 'VideoCamera' = "VideoCamera",
278
+ 'VideoPause' = "VideoPause",
279
+ 'VideoPlay' = "VideoPlay",
280
+ 'View' = "View",
281
+ 'WalletFilled' = "WalletFilled",
282
+ 'Wallet' = "Wallet",
283
+ 'WarningFilled' = "WarningFilled",
284
+ 'Warning' = "Warning",
285
+ 'Watch' = "Watch",
286
+ 'Watermelon' = "Watermelon",
287
+ 'WindPower' = "WindPower",
288
+ 'ZoomIn' = "ZoomIn",
289
+ 'ZoomOut' = "ZoomOut"
290
+ }
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "flame-types",
3
+ "version": "1.0.0",
4
+ "main": "./dist/main.js",
5
+ "types": "./dist/types/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "repository": "https://gitee.com/silence_J/flame-model.git",
10
+ "author": "silence.j",
11
+ "license": "MIT",
12
+ "devDependencies": {
13
+ "@webpack-cli/generators": "^2.5.0",
14
+ "autoprefixer": "^10.4.12",
15
+ "css-loader": "^6.7.1",
16
+ "html-webpack-plugin": "^5.5.0",
17
+ "postcss": "^8.4.16",
18
+ "postcss-loader": "^7.0.1",
19
+ "sass": "^1.55.0",
20
+ "sass-loader": "^13.0.2",
21
+ "style-loader": "^3.3.1",
22
+ "ts-loader": "^9.4.1",
23
+ "typescript": "^4.8.4",
24
+ "webpack": "^5.74.0",
25
+ "webpack-cli": "^4.10.0",
26
+ "webpack-dev-server": "^4.11.1"
27
+ },
28
+ "description": "flame3.0框架类型库",
29
+ "scripts": {
30
+ "build": "webpack --mode=production --node-env=production",
31
+ "build:dev": "webpack --mode=development",
32
+ "build:prod": "webpack --mode=production --node-env=production",
33
+ "watch": "webpack --watch",
34
+ "serve": "webpack serve"
35
+ },
36
+ "dependencies": {
37
+ "element-plus": "2.2.17",
38
+ "ts-xor": "^1.1.0",
39
+ "vue": "^3.2.42"
40
+ }
41
+ }