flame-plus 0.1.32 → 0.1.35

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.
Files changed (80) hide show
  1. package/.browserslistrc +3 -0
  2. package/.env +0 -0
  3. package/.eslintrc.js +20 -0
  4. package/README.md +1 -7
  5. package/package.json +48 -23
  6. package/{src/packages → packages}/components/base/flmButton/flmButton.vue +1 -1
  7. package/{src/packages → packages}/components/base/flmCascader/flmCascader.vue +1 -1
  8. package/{src/packages → packages}/components/base/flmCheckbox/flmCheckbox.vue +1 -1
  9. package/{src/packages → packages}/components/base/flmCheckbox/flmCheckboxGroup.vue +1 -1
  10. package/{src/packages → packages}/components/base/flmColorPicker/flmColorPicker.vue +1 -1
  11. package/{src/packages → packages}/components/base/flmDatePicker/flmDatePicker.vue +1 -1
  12. package/{src/packages → packages}/components/base/flmDialog/flmDialog.vue +1 -1
  13. package/{src/packages → packages}/components/base/flmInput/flmInput.vue +1 -1
  14. package/{src/packages → packages}/components/base/flmInputNumber/flmInputNumber.vue +1 -1
  15. package/{src/packages → packages}/components/base/flmPagination/flmPagination.vue +1 -1
  16. package/{src/packages → packages}/components/base/flmRadio/flmRadio.vue +1 -1
  17. package/{src/packages → packages}/components/base/flmRate/flmRate.vue +1 -1
  18. package/{src/packages → packages}/components/base/flmRead/flmRead.vue +2 -2
  19. package/{src/packages → packages}/components/base/flmSelect/flmSelect.vue +1 -1
  20. package/{src/packages → packages}/components/base/flmSlider/flmSlider.vue +1 -1
  21. package/{src/packages → packages}/components/base/flmSwitch/flmSwitch.vue +1 -1
  22. package/{src/packages → packages}/components/base/flmTimePicker/flmTimePicker.vue +1 -1
  23. package/{src/packages → packages}/components/base/flmTimeSelect/flmTimeSelect.vue +1 -1
  24. package/{src/packages → packages}/components/base/flmTransfer/flmTransfer.vue +1 -1
  25. package/{src/packages → packages}/components/complex/flmForm/flmForm.vue +1 -2
  26. package/{src/packages → packages}/components/complex/flmSearch/flmSearch.vue +1 -1
  27. package/{src/packages → packages}/components/complex/flmTable/flmTable.vue +1 -1
  28. package/{src/packages → packages}/components/complex/flmToolbar/flmToolbar.vue +2 -2
  29. package/{src/packages → packages}/components/index.ts +1 -2
  30. package/{src/packages → packages}/components/page/flmReportPage/flmReportPage.vue +122 -79
  31. package/packages/index.ts +8 -0
  32. package/packages/model/flmComponentConfig/base/flmButton.ts +53 -0
  33. package/packages/model/flmComponentConfig/base/flmCascader.ts +77 -0
  34. package/packages/model/flmComponentConfig/base/flmCheckbox.ts +51 -0
  35. package/packages/model/flmComponentConfig/base/flmColorPicker.ts +30 -0
  36. package/packages/model/flmComponentConfig/base/flmDatePicker.ts +73 -0
  37. package/packages/model/flmComponentConfig/base/flmDialog.ts +49 -0
  38. package/packages/model/flmComponentConfig/base/flmInput.ts +57 -0
  39. package/packages/model/flmComponentConfig/base/flmInputNumber.ts +37 -0
  40. package/packages/model/flmComponentConfig/base/flmPagination.ts +37 -0
  41. package/packages/model/flmComponentConfig/base/flmRadio.ts +42 -0
  42. package/packages/model/flmComponentConfig/base/flmRate.ts +49 -0
  43. package/packages/model/flmComponentConfig/base/flmRead.ts +6 -0
  44. package/packages/model/flmComponentConfig/base/flmSelect.ts +104 -0
  45. package/packages/model/flmComponentConfig/base/flmSlider.ts +51 -0
  46. package/packages/model/flmComponentConfig/base/flmSwitch.ts +37 -0
  47. package/packages/model/flmComponentConfig/base/flmTimePicker.ts +61 -0
  48. package/packages/model/flmComponentConfig/base/flmTimeSelect.ts +44 -0
  49. package/packages/model/flmComponentConfig/base/flmTransfer.ts +51 -0
  50. package/packages/model/flmComponentConfig/complex/flmForm.ts +147 -0
  51. package/packages/model/flmComponentConfig/complex/flmSearch.ts +5 -0
  52. package/packages/model/flmComponentConfig/complex/flmTable.ts +132 -0
  53. package/packages/model/flmComponentConfig/complex/flmToolbar.ts +13 -0
  54. package/packages/model/flmComponentConfig/index.ts +31 -0
  55. package/packages/model/flmComponentConfig/page/flmReportPage.ts +31 -0
  56. package/packages/model/flmComponentConfig/public.ts +293 -0
  57. package/tsconfig.json +73 -20
  58. package/typings/lodash.d.ts +4 -0
  59. package/webpack.config.js +15 -0
  60. package/.vscode/extensions.json +0 -3
  61. package/flameDist/assets/index.4ebef79d.css +0 -1
  62. package/flameDist/flame-plus.es.js +0 -1524
  63. package/flameDist/flame-plus.es.js.map +0 -1
  64. package/flameDist/flame-plus.umd.js +0 -3
  65. package/flameDist/flame-plus.umd.js.map +0 -1
  66. package/flameDist/vite.svg +0 -1
  67. package/index.html +0 -13
  68. package/pnpm-lock.yaml +0 -2107
  69. package/public/vite.svg +0 -1
  70. package/src/App.vue +0 -10
  71. package/src/assets/vue.svg +0 -1
  72. package/src/components/HelloWorld.vue +0 -33
  73. package/src/main.ts +0 -19
  74. package/src/packages/components/page/flmExportPage/flmExportPage.vue +0 -219
  75. package/src/packages/index.ts +0 -96
  76. package/src/shims-vue.d.ts +0 -9
  77. package/vite.config.js +0 -37
  78. /package/{src/packages → packages}/utils/filterConfig.ts +0 -0
  79. /package/{src/packages → packages}/utils/index.ts +0 -0
  80. /package/{src/packages → packages}/utils/isValidKey.ts +0 -0
@@ -1,1524 +0,0 @@
1
- import { defineComponent as B, computed as v, createVNode as g, resolveComponent as D, mergeProps as R, reactive as O, isVNode as re, openBlock as q, createElementBlock as W, normalizeClass as Ge, normalizeStyle as Ve, toDisplayString as Se, getCurrentInstance as Ue, watch as pe, onMounted as ue, useCssVars as We, h as Ye, Fragment as le, renderList as V, unref as m, createBlock as oe, withCtx as $, createTextVNode as Ze, createCommentVNode as ce, ref as L, createSlots as K, renderSlot as U, isRef as Ke, createElementVNode as Je } from "vue";
2
- import { ElMessage as G, ElMessageBox as he } from "element-plus";
3
- var x = { exports: {} };
4
- (function(a, t) {
5
- (function(l, i) {
6
- a.exports = i();
7
- })(self, () => (() => {
8
- var l, i, o, r, S = { d: (e, X) => {
9
- for (var te in X)
10
- S.o(X, te) && !S.o(e, te) && Object.defineProperty(e, te, { enumerable: !0, get: X[te] });
11
- }, o: (e, X) => Object.prototype.hasOwnProperty.call(e, X), r: (e) => {
12
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 });
13
- } }, n = {};
14
- S.r(n), S.d(n, { ButtonNativeType: () => r, ButtonType: () => o, CascaderPropsExpandTrigger: () => f, CascaderTagType: () => c, ColorFormat: () => b, ControlTypes: () => Z, DateType: () => N, ElementIcons: () => i, ElementSize: () => l, FormEvent: () => se, SelectTagType: () => C, TargetSort: () => P, TimePickerAlign: () => j, buttonDefaultConfig: () => p, cascaderDefaultConfig: () => k, checkboxDefaultConfig: () => A, checkboxGroupDefaultConfig: () => z, colorPickerDefaultConfig: () => H, datePickerDefaultConfig: () => F, dialogDefaultConfig: () => je, formDefaultConfig: () => Ie, inputDefaultConfig: () => s, inputNumberDefaultConfig: () => u, isInputControl: () => qe, paginationDefaultConfig: () => h, radioDefaultConfig: () => _, radioGroupDefaultConfig: () => y, rateDefaultConfig: () => I, selectDefaultConfig: () => d, sliderDefaultConfig: () => E, switchDefaultConfig: () => w, tableColumnDefaultConfig: () => He, tableDefaultConfig: () => ze, timePickerDefaultConfig: () => M, timeSelectDefaultConfig: () => J, transferDefaultConfig: () => Ne }), function(e) {
15
- e.large = "large", e.default = "default", e.small = "small";
16
- }(l || (l = {})), function(e) {
17
- 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";
18
- }(i || (i = {})), function(e) {
19
- e.primary = "primary", e.success = "success", e.warning = "warning", e.danger = "danger", e.info = "info", e.text = "text";
20
- }(o || (o = {})), function(e) {
21
- e.button = "button", e.submit = "submit", e.reset = "reset";
22
- }(r || (r = {}));
23
- var c, f, p = { plain: !1, round: !1, circle: !1, loading: !1, "loading-icon": "Loading", disabled: !1, autofocus: !1, "native-type": r.button };
24
- (function(e) {
25
- e.success = "success", e.info = "info", e.warning = "warning", e.danger = "danger";
26
- })(c || (c = {})), function(e) {
27
- e.click = "click", e.hover = "hover";
28
- }(f || (f = {}));
29
- var b, k = { placeholder: "\u8BF7\u9009\u62E9", disabled: !1, clearable: !1, "show-all-levels": !0, "collapse-tags": !1, "collapse-tags-tooltip": !1, separator: "/", debounce: 300, teleported: !0, "tag-type": c.info }, A = { disabled: !1, border: !1, checked: !1, indeterminate: !1 }, z = { "model-value": [], disabled: !1, "text-color": "#FFFFFF", fill: "#409EFF" };
30
- (function(e) {
31
- e.hsl = "hsl", e.hsv = "hsv", e.hex = "hex", e.rgb = "rgb";
32
- })(b || (b = {}));
33
- var N, H = { disabled: !1, "show-alpha": !1 };
34
- (function(e) {
35
- 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";
36
- })(N || (N = {}));
37
- var C, F = { readonly: !1, disabled: !1, size: l.default, editable: !0, clearable: !0, type: N.date, format: "YYYY-MM-DD", "range-separator": "-", "unlink-panels": !1, "prefix-icon": "Date", "clear-icon": i.CircleClose, "validate-event": !0, teleported: !0 }, s = { 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": {} }, u = { min: -1 / 0, max: 1 / 0, step: 1, "step-strictly": !1, size: l.default, disabled: !1, controls: !0 }, h = { 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 }, _ = { disabled: !1, border: !1 }, y = { size: l.default, disabled: !1, "text-color": "#FFF", fill: "#409EFF" }, I = { "model-value": 0, max: 5, size: l.default, disabled: !1, "allow-half": !1, "low-threshold": 2, "high-threshold": 4, colors: ["#F7BA2A", "#F7BA2A", "#F7BA2A"], "void-color": "#C6D1DE", "disabled-void-color": "#EFF2F7", icons: [i.StarFilled, i.StarFilled, i.StarFilled], "void-icon": i.Star, "disabled-void-icon": i.StarFilled, "show-text": !1, "show-score": !1, "text-color": "#1F2D3D", texts: ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"] };
38
- (function(e) {
39
- e.success = "success", e.info = "info", e.warning = "warning", e.danger = "danger";
40
- })(C || (C = {}));
41
- var j, d = { multiple: !1, disabled: !1, "value-key": "value", size: l.default, clearable: !1, "collapse-tags": !1, "collapse-tags-tooltip": !1, "multiple-limit": 0, effect: "light", autocomplete: "off", placeholder: "\u8BF7\u9009\u62E9", filterable: !1, "allow-create": !1, remote: !1, loading: !1, "loading-text": "\u52A0\u8F7D\u4E2D", "no-match-text": "\u6CA1\u6709\u5339\u914D\u7684\u6570\u636E", "no-data-text": "\u65E0\u6570\u636E", "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": C.info }, E = { "model-value": 0, min: 0, max: 100, disabled: !1, step: 1, "show-input": !1, "show-input-controls": !0, size: l.default, "input-size": l.default, "show-stops": !1, "show-tooltip": !0, range: !1, vertical: !1, debounce: 300 }, w = { disabled: !1, loading: !1, size: l.default, width: 40, "inline-prompt": !1, "active-value": !0, "inactive-value": !1, "active-color": "#409EFF", "inactive-color": "#C0CCDA", "validate-event": !0 };
42
- (function(e) {
43
- e.left = "left", e.center = "center", e.right = "right";
44
- })(j || (j = {}));
45
- var P, M = { readonly: !1, disabled: !1, editable: !0, clearable: !0, "is-range": !1, "arrow-control": !1, align: j.left, format: "HH:mm:ss", "prefix-icon": i.Clock, "clear-icon": i.CircleClose, teleported: !0 }, J = { disabled: !1, editable: !0, clearable: !0, size: l.default, effect: "light", "prefix-icon": i.Clock, "clear-icon": i.CircleClose, start: "09:00", end: "18:00", step: "00:30", "min-time": "00:00", format: "HH:mm" };
46
- (function(e) {
47
- e.original = "original", e.push = "push", e.unshift = "unshift";
48
- })(P || (P = {}));
49
- var Z, se, Ne = { data: [], filterable: !1, "filter-placeholder": "Enter keyword", "target-order": P.original, titles: ["List 1", "List 2"], "button-texts": [], format: { noChecked: "${checked}/${total}", hasChecked: "${checked}/${total}" }, "left-default-checked": [], "right-default-checked": [] }, je = { 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 };
50
- (function(e) {
51
- 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";
52
- })(Z || (Z = {})), function(e) {
53
- e.submit = "submit", e.cancel = "cancel";
54
- }(se || (se = {}));
55
- var Ie = { 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 }, qe = function(e) {
56
- return e.modelValue !== void 0;
57
- }, ze = { stripe: !1, border: !1, fit: !0, "show-header": !0, "highlight-current-row": !1, "empty-text": "\u6682\u65E0\u6570\u636E", "default-expand-all": !1, "tooltip-effect": "dark", "show-summary": !1, "sum-text": "\u5408\u8BA1", "select-on-indeterminate": !0, indent: 16, "tree-props": { hasChildren: "hasChildren", children: "children" }, "table-layout": "fixed", "scrollbar-always-on": !1 }, He = { sortable: !1, "sort-orders": ["ascending", "descending", null], resizable: !1, "show-overflow-tooltip": !1, align: "left", "reserve-selection": !1, "filter-multiple": !0 };
58
- return n;
59
- })());
60
- })(x);
61
- const T = (a, t) => {
62
- let l = {};
63
- return Object.keys({ ...a, ...t }).forEach((i) => {
64
- const o = i in t;
65
- Qe(a[i], t[i]) && o && (l[i] = t[i]);
66
- }), l;
67
- }, Qe = (a, t) => {
68
- const l = typeof t;
69
- return ["boolean", "number", "string"].includes(l) ? t !== a : ["function"].includes(l) ? !0 : JSON.stringify(t) !== JSON.stringify(a);
70
- };
71
- function Y(a, t) {
72
- return a in t;
73
- }
74
- const ae = /* @__PURE__ */ B({
75
- emits: ["buttonClick"],
76
- props: {
77
- config: {
78
- type: Object,
79
- default: {}
80
- }
81
- },
82
- setup(a, t) {
83
- const l = v(() => T(x.exports.buttonDefaultConfig, a.config));
84
- return () => g(D("el-button"), R(l.value, {
85
- onClick: () => t.emit("buttonClick")
86
- }), {
87
- default: () => [l.value.buttonText || "\u70B9\u51FB"]
88
- });
89
- }
90
- }), ke = /* @__PURE__ */ B({
91
- emits: ["change", "expand-change", "blur", "focus", "visible-change", "remove-tag"],
92
- props: {
93
- config: {
94
- type: Object,
95
- default: {}
96
- }
97
- },
98
- setup(a, t) {
99
- const l = v(() => T(x.exports.cascaderDefaultConfig, a.config)), i = O({
100
- onChange: (o) => t.emit("change", o),
101
- onExpandChange: (o) => t.emit("expand-change", o),
102
- onBlur: (o) => t.emit("blur", o),
103
- onFocus: (o) => t.emit("focus", o),
104
- onVisibleChange: (o) => t.emit("visible-change", o),
105
- onRemoveTag: (o) => t.emit("remove-tag", o)
106
- });
107
- return () => g(D("el-cascader"), R(l.value, i), null);
108
- }
109
- }), ee = /* @__PURE__ */ B({
110
- emits: ["change"],
111
- props: {
112
- config: {
113
- type: Object,
114
- default: {}
115
- }
116
- },
117
- setup(a, t) {
118
- const l = v(() => T(x.exports.checkboxDefaultConfig, a.config)), i = O({
119
- onChange: (o) => t.emit("change", o)
120
- });
121
- return () => g(D("el-checkbox"), R(l.value, i), null);
122
- }
123
- }), Fe = /* @__PURE__ */ B({
124
- emits: ["change"],
125
- props: {
126
- config: {
127
- type: Object,
128
- default: {}
129
- }
130
- },
131
- setup(a, t) {
132
- const l = v(() => T(x.exports.colorPickerDefaultConfig, a.config)), i = O({
133
- onChange: (o) => t.emit("change", o)
134
- });
135
- return () => g(D("el-colorPicker"), R(l.value, i), null);
136
- }
137
- }), _e = /* @__PURE__ */ B({
138
- emits: ["change", "blur", "focus", "calendar-change", "panel-change", "visible-change"],
139
- props: {
140
- config: {
141
- type: Object,
142
- default: {}
143
- }
144
- },
145
- setup(a, t) {
146
- const l = v(() => T(x.exports.datePickerDefaultConfig, a.config)), i = O({
147
- "onUpdate:modelValue": (o) => t.emit("change", o),
148
- onBlur: (o) => t.emit("blur", o),
149
- onFocus: (o) => t.emit("focus", o),
150
- onCalendarChange: (o) => t.emit("calendar-change", o),
151
- onPanelChange: (o, r, S) => t.emit("panel-change", {
152
- date: o,
153
- mode: r,
154
- view: S
155
- }),
156
- onVisibleChange: (o) => t.emit("visible-change", o)
157
- });
158
- return () => g(D("el-date-picker"), R(l.value, i), null);
159
- }
160
- }), ye = /* @__PURE__ */ B({
161
- emits: ["blur", "focus", "change", "input", "clear"],
162
- props: {
163
- config: {
164
- type: Object,
165
- default: {}
166
- }
167
- },
168
- setup(a, t) {
169
- const l = v(() => T(x.exports.inputDefaultConfig, a.config)), i = O({
170
- onBlur: () => t.emit("blur"),
171
- onFocus: () => t.emit("focus"),
172
- onChange: (o) => t.emit("change", o),
173
- onInput: (o) => t.emit("input", o),
174
- onClear: () => t.emit("clear")
175
- });
176
- return () => g(D("el-input"), R(l.value, i), null);
177
- }
178
- }), we = /* @__PURE__ */ B({
179
- emits: ["change", "blur", "focus"],
180
- props: {
181
- config: {
182
- type: Object,
183
- default: {}
184
- }
185
- },
186
- setup(a, t) {
187
- const l = v(() => T(x.exports.inputNumberDefaultConfig, a.config)), i = O({
188
- onChange: (o) => t.emit("change", o),
189
- onBlur: () => t.emit("blur"),
190
- onFocus: () => t.emit("focus")
191
- });
192
- return () => g(D("el-input-number"), R(l.value, i), null);
193
- }
194
- }), fe = /* @__PURE__ */ B({
195
- emits: ["size-change", "current-change", "prev-click", "next-click"],
196
- props: {
197
- config: {
198
- type: Object,
199
- default: {}
200
- }
201
- },
202
- setup(a, t) {
203
- const l = v(() => T(x.exports.paginationDefaultConfig, a.config)), i = O({
204
- onSizeChange: (o) => t.emit("size-change", o),
205
- onCurrentChange: (o) => t.emit("current-change", o),
206
- onPrevClick: (o) => t.emit("prev-click", o),
207
- onNextClick: (o) => t.emit("next-click", o)
208
- });
209
- return () => g(D("el-pagination"), R(l.value, i), null);
210
- }
211
- });
212
- function Xe(a) {
213
- return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !re(a);
214
- }
215
- const xe = /* @__PURE__ */ B({
216
- emits: ["change"],
217
- props: {
218
- config: {
219
- type: Object,
220
- default: {}
221
- }
222
- },
223
- setup(a, t) {
224
- const l = v(() => T(x.exports.radioGroupDefaultConfig, a.config)), i = O({
225
- onChange: (r) => t.emit("change", r)
226
- }), o = () => {
227
- let r;
228
- const {
229
- useButton: S = !1,
230
- radios: n = [],
231
- ...c
232
- } = l.value, f = (p) => p == null ? void 0 : p.map((b) => S ? g(D("el-radio-button"), T(x.exports.radioDefaultConfig, b), null) : g(D("el-radio"), T(x.exports.radioDefaultConfig, b), null));
233
- return g(D("el-radio-group"), R(c, i), Xe(r = f(n)) ? r : {
234
- default: () => [r]
235
- });
236
- };
237
- return () => o();
238
- }
239
- }), Pe = /* @__PURE__ */ B({
240
- emits: ["change"],
241
- props: {
242
- config: {
243
- type: Object,
244
- default: {}
245
- }
246
- },
247
- setup(a, t) {
248
- const l = v(() => T(x.exports.rateDefaultConfig, a.config)), i = O({
249
- onChange: (o) => t.emit("change", o)
250
- });
251
- return () => g(D("el-rate"), R(l.value, i), null);
252
- }
253
- }), Ee = /* @__PURE__ */ B({
254
- __name: "flmRead",
255
- props: {
256
- config: {
257
- type: Object,
258
- default: {}
259
- }
260
- },
261
- setup(a) {
262
- return (t, l) => (q(), W("div", {
263
- class: Ge(a.config.class),
264
- style: Ve(a.config.style)
265
- }, Se(a.config["model-value"]), 7));
266
- }
267
- });
268
- function et(a) {
269
- return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !re(a);
270
- }
271
- const Be = /* @__PURE__ */ B({
272
- emits: ["change", "visible-change", "remove-tag", "clear", "blur", "focus"],
273
- props: {
274
- config: {
275
- type: Object,
276
- default: {}
277
- }
278
- },
279
- setup(a, t) {
280
- const l = v(() => T(x.exports.selectDefaultConfig, a.config)), i = O({
281
- onChange: (r) => t.emit("change", r),
282
- onVisibleChange: (r) => t.emit("visible-change", r),
283
- onRemoveTag: (r) => t.emit("remove-tag", r),
284
- onClear: () => t.emit("clear"),
285
- onBlur: () => t.emit("blur"),
286
- onFocus: () => t.emit("focus")
287
- }), o = ({
288
- hasGroup: r,
289
- groups: S = [],
290
- options: n = []
291
- }) => {
292
- const c = (p) => p.map(({
293
- options: b,
294
- ...k
295
- }) => g(D("el-option-group"), R({
296
- key: k.label
297
- }, k), {
298
- default: () => [b && f(b)]
299
- })), f = (p) => p.map((b) => g(D("el-option"), R({
300
- key: b.value
301
- }, b), null));
302
- return r ? c(S) : f(n);
303
- };
304
- return () => {
305
- let r;
306
- return g(D("el-select"), R(l.value, i), et(r = o(l.value)) ? r : {
307
- default: () => [r]
308
- });
309
- };
310
- }
311
- }), Re = /* @__PURE__ */ B({
312
- emits: ["change", "input"],
313
- props: {
314
- config: {
315
- type: Object,
316
- default: {}
317
- }
318
- },
319
- setup(a, t) {
320
- const l = v(() => T(x.exports.sliderDefaultConfig, a.config)), i = O({
321
- onChange: (o) => t.emit("change", o),
322
- onInput: (o) => t.emit("input", o)
323
- });
324
- return () => g(D("el-slider"), R(l.value, i), null);
325
- }
326
- }), Te = /* @__PURE__ */ B({
327
- emits: ["change"],
328
- props: {
329
- config: {
330
- type: Object,
331
- default: {}
332
- }
333
- },
334
- setup(a, t) {
335
- const l = v(() => T(x.exports.switchDefaultConfig, a.config));
336
- return () => g(D("el-switch"), R(l.value, {
337
- onChange: (i) => t.emit("change", i)
338
- }), null);
339
- }
340
- }), Ae = /* @__PURE__ */ B({
341
- emits: ["change", "blur", "focus", "visible-change"],
342
- props: {
343
- config: {
344
- type: Object,
345
- default: {}
346
- }
347
- },
348
- setup(a, t) {
349
- const l = v(() => T(x.exports.timePickerDefaultConfig, a.config)), i = O({
350
- "onUpdate:modelValue": (o) => t.emit("change", o),
351
- onBlur: (o) => t.emit("blur", o),
352
- onFocus: (o) => t.emit("focus", o),
353
- onVisibleChange: (o) => t.emit("visible-change", o)
354
- });
355
- return () => g(D("el-time-picker"), R(l.value, i), null);
356
- }
357
- }), Oe = /* @__PURE__ */ B({
358
- emits: ["change", "blur", "focus"],
359
- props: {
360
- config: {
361
- type: Object,
362
- default: {}
363
- }
364
- },
365
- setup(a, t) {
366
- const l = v(() => T(x.exports.timeSelectDefaultConfig, a.config)), i = O({
367
- onChange: (o) => t.emit("change", o),
368
- onBlur: () => t.emit("blur"),
369
- onFocus: () => t.emit("focus")
370
- });
371
- return () => g(D("el-timeSelect"), R(l.value, i), null);
372
- }
373
- }), $e = /* @__PURE__ */ B({
374
- emits: ["change", "left-check-change", "right-check-change"],
375
- props: {
376
- config: {
377
- type: Object,
378
- default: {}
379
- }
380
- },
381
- setup(a, t) {
382
- const l = v(() => T(x.exports.transferDefaultConfig, a.config)), i = O({
383
- onChange: (o) => t.emit("change", o),
384
- onLeftCheckChange: (o) => t.emit("left-check-change", o),
385
- onRightCheckChange: (o) => t.emit("right-check-change", o)
386
- });
387
- return () => g(D("el-transfer"), R(l.value, i), {
388
- default: ({
389
- option: o
390
- }) => {
391
- var r, S;
392
- return (S = (r = t.slots).default) == null ? void 0 : S.call(r, {
393
- option: o
394
- });
395
- },
396
- "left-footer": () => {
397
- var o, r;
398
- return (r = (o = t.slots)["left-footer"]) == null ? void 0 : r.call(o);
399
- },
400
- "right-footer": () => {
401
- var o, r;
402
- return (r = (o = t.slots)["right-footer"]) == null ? void 0 : r.call(o);
403
- }
404
- });
405
- }
406
- }), ne = /* @__PURE__ */ B({
407
- emits: ["open", "opened", "close", "closed", "open-auto-focus", "close-auto-focus"],
408
- props: {
409
- config: {
410
- type: Object,
411
- default: {}
412
- }
413
- },
414
- setup(a, t) {
415
- const l = v(() => T(x.exports.dialogDefaultConfig, a.config)), i = O({
416
- onOpen: () => t.emit("open"),
417
- onOpened: () => t.emit("opened"),
418
- onClose: () => t.emit("close"),
419
- onClosed: () => t.emit("closed"),
420
- onOpenAutoFocus: () => t.emit("open-auto-focus"),
421
- onCloseAutoFocus: () => t.emit("close-auto-focus")
422
- });
423
- return () => g(D("el-dialog"), R(l.value, i), {
424
- default: () => {
425
- var o, r;
426
- return (r = (o = t.slots).default) == null ? void 0 : r.call(o);
427
- }
428
- });
429
- }
430
- }), de = /* @__PURE__ */ B({
431
- components: {
432
- flmButton: ae,
433
- flmCascader: ke,
434
- flmCheckbox: ee,
435
- flmColorPicker: Fe,
436
- flmDatePicker: _e,
437
- flmInput: ye,
438
- flmInputNumber: we,
439
- flmRadio: xe,
440
- flmRate: Pe,
441
- flmRead: Ee,
442
- flmSelect: Be,
443
- flmSlider: Re,
444
- flmSwitch: Te,
445
- flmTimePicker: Ae,
446
- flmTimeSelect: Oe,
447
- flmTransfer: $e
448
- },
449
- emits: ["submit", "cancel", "reset", "customEvent"],
450
- props: {
451
- config: {
452
- type: Object,
453
- default: {}
454
- }
455
- },
456
- computed: {
457
- columnNumber() {
458
- const {
459
- inline: a = !1,
460
- columnNumber: t = 0
461
- } = this.config;
462
- return a && t > 1 ? t : !1;
463
- }
464
- },
465
- setup(a, {
466
- slots: t,
467
- emit: l,
468
- expose: i
469
- }) {
470
- const o = Ue();
471
- let r = O({});
472
- pe(() => a.config.model, (C) => n(C)), pe(r, (C) => S(C)), ue(() => {
473
- var C, F;
474
- ((C = a.config) == null ? void 0 : C.model) && Object.keys((F = a.config) == null ? void 0 : F.model).length && (S(a.config.model), n(a.config.model));
475
- });
476
- const S = (C) => {
477
- var F;
478
- (F = a.config.items) == null || F.forEach((s) => {
479
- if (!Y("isSlot", s) && typeof s.prop == "string") {
480
- const {
481
- controlConfig: u
482
- } = s;
483
- u && (x.exports.isInputControl(u) ? u.modelValue = C[s.prop] : u["model-value"] = C[s.prop]);
484
- }
485
- });
486
- }, n = (C) => {
487
- Object.entries(C).forEach(([F, s]) => r[F] = s);
488
- }, c = (C, F) => r[F] = C, f = (C) => {
489
- const F = {
490
- submit: p,
491
- cancel: b,
492
- reset: k
493
- };
494
- Y(C, F) ? F[C]() : l("customEvent", {
495
- event: C,
496
- formModel: r
497
- });
498
- }, p = () => {
499
- const C = o == null ? void 0 : o.refs.formRef;
500
- !C || C.validate((F) => {
501
- F && l("submit", r);
502
- });
503
- }, b = () => {
504
- l("cancel", r);
505
- }, k = () => {
506
- const C = o == null ? void 0 : o.refs.formRef;
507
- !C || (C.resetFields(), l("reset", r));
508
- }, A = (C = []) => {
509
- const F = (s, u, h) => {
510
- const _ = {
511
- ...h
512
- }, y = u === x.exports.ControlTypes.flmInput ? "onInput" : "onChange";
513
- return _[y] = (I) => c(I, s), Ye(D(u), {
514
- config: _
515
- });
516
- };
517
- return C.map((s) => {
518
- if (typeof s.prop == "string")
519
- if (Y("isSlot", s)) {
520
- const {
521
- isSlot: u,
522
- ...h
523
- } = s;
524
- return g(D("el-form-item"), R({
525
- class: `form-${s.prop}`
526
- }, h), {
527
- default: () => {
528
- var _;
529
- return [(_ = t[s.prop]) == null ? void 0 : _.call(t, {
530
- prop: s.prop,
531
- formModel: r
532
- })];
533
- }
534
- });
535
- } else {
536
- const {
537
- controlType: u,
538
- controlConfig: h,
539
- ..._
540
- } = s;
541
- if (u && h) {
542
- let y;
543
- return g(D("el-form-item"), R({
544
- class: `form-${s.prop}`
545
- }, _), Ce(y = F(s.prop, u, h)) ? y : {
546
- default: () => [y]
547
- });
548
- }
549
- }
550
- });
551
- }, z = (C = []) => {
552
- if (C.length) {
553
- let F;
554
- return g(D("el-form-item"), {
555
- class: "form-buttons"
556
- }, Ce(F = C.map(({
557
- event: s,
558
- ...u
559
- }) => g(D("flm-button"), {
560
- config: u,
561
- onButtonClick: () => f(s)
562
- }, null))) ? F : {
563
- default: () => [F]
564
- });
565
- }
566
- };
567
- i({
568
- formModel: r,
569
- reset: k
570
- });
571
- const N = v(() => T(x.exports.formDefaultConfig, a.config)), H = () => {
572
- const {
573
- items: C = [],
574
- buttons: F = [],
575
- model: s,
576
- ...u
577
- } = N.value;
578
- return g(D("el-form"), R({
579
- ref: "formRef"
580
- }, u, {
581
- model: r
582
- }), {
583
- default: () => [A(C), z(F)]
584
- });
585
- };
586
- return () => H();
587
- }
588
- });
589
- function Ce(a) {
590
- return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !re(a);
591
- }
592
- const be = () => {
593
- We((a) => ({
594
- "13be024c": a.columnNumber
595
- }));
596
- }, ve = de.setup;
597
- de.setup = ve ? (a, t) => (be(), ve(a, t)) : be;
598
- const ge = (a, t) => {
599
- const l = a.__vccOpts || a;
600
- for (const [i, o] of t)
601
- l[i] = o;
602
- return l;
603
- }, Q = /* @__PURE__ */ ge(de, [["__scopeId", "data-v-65b3dfb5"]]);
604
- function De(a) {
605
- return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !re(a);
606
- }
607
- const me = /* @__PURE__ */ B({
608
- emits: ["select", "select-all", "selection-change", "cell-mouse-enter", "cell-mouse-leave", "cell-click", "cell-dblclick", "cell-contextmenu", "row-click", "row-contextmenu", "row-dblclick", "header-click", "header-contextmenu", "sort-change", "filter-change", "current-change", "header-dragend", "expand-change"],
609
- props: {
610
- config: {
611
- type: Object,
612
- default: {}
613
- }
614
- },
615
- setup(a, {
616
- slots: t,
617
- emit: l
618
- }) {
619
- const i = O({
620
- onSelect: (n, c) => l("select", {
621
- selection: n,
622
- row: c
623
- }),
624
- onSelectAll: (n) => l("select-all", n),
625
- onSelectionChange: (n, c, f, p) => l("selection-change", {
626
- row: n,
627
- column: c,
628
- cell: f,
629
- event: p
630
- }),
631
- onCellMouseEnter: (n, c, f, p) => l("cell-mouse-enter", {
632
- row: n,
633
- column: c,
634
- cell: f,
635
- event: p
636
- }),
637
- onCellMouseLeave: (n, c, f, p) => l("cell-mouse-leave", {
638
- row: n,
639
- column: c,
640
- cell: f,
641
- event: p
642
- }),
643
- onCellClick: (n, c, f, p) => l("cell-click", {
644
- row: n,
645
- column: c,
646
- cell: f,
647
- event: p
648
- }),
649
- onCellDblclick: (n, c, f, p) => l("cell-dblclick", {
650
- row: n,
651
- column: c,
652
- cell: f,
653
- event: p
654
- }),
655
- onCellContextmenu: (n, c, f, p) => l("cell-contextmenu", {
656
- row: n,
657
- column: c,
658
- cell: f,
659
- event: p
660
- }),
661
- onRowClick: (n, c, f) => l("row-click", {
662
- row: n,
663
- column: c,
664
- event: f
665
- }),
666
- onRowContextmenu: (n, c, f) => l("row-contextmenu", {
667
- row: n,
668
- column: c,
669
- event: f
670
- }),
671
- onRowDblclick: (n, c, f) => l("row-dblclick", {
672
- row: n,
673
- column: c,
674
- event: f
675
- }),
676
- onHeaderClick: (n, c) => l("header-click", {
677
- column: n,
678
- event: c
679
- }),
680
- onHeaderContextmenu: (n, c) => l("header-contextmenu", {
681
- column: n,
682
- event: c
683
- }),
684
- onSortChange: ({
685
- column: n,
686
- prop: c,
687
- order: f
688
- }) => l("sort-change", {
689
- column: n,
690
- prop: c,
691
- order: f
692
- }),
693
- onFilterChange: (n) => l("filter-change", n),
694
- onCurrentChange: (n, c) => l("current-change", {
695
- currentRow: n,
696
- oldCurrentRow: c
697
- }),
698
- onHeaderDragend: (n, c, f, p) => l("header-dragend", {
699
- newWidth: n,
700
- oldWidth: c,
701
- column: f,
702
- event: p
703
- }),
704
- onExpandChange: (n, c) => l("expand-change", {
705
- row: n,
706
- expanded: c
707
- })
708
- }), o = (n) => {
709
- let c;
710
- const {
711
- columns: f = [],
712
- ...p
713
- } = n;
714
- return g(D("el-table"), R(p, i), De(c = r(f)) ? c : {
715
- default: () => [c]
716
- });
717
- }, r = (n = []) => n.map(({
718
- isSlot: c,
719
- columns: f = [],
720
- ...p
721
- }) => {
722
- let b;
723
- return f.length ? b = r(f) : c && (b = {
724
- default: ({
725
- $index: k,
726
- row: A,
727
- column: z
728
- }) => {
729
- var N;
730
- return p.prop && ((N = t[p.prop]) == null ? void 0 : N.call(t, {
731
- index: k,
732
- row: A,
733
- column: z
734
- }));
735
- }
736
- }), g(D("el-table-column"), T(x.exports.tableColumnDefaultConfig, p), De(b) ? b : {
737
- default: () => [b]
738
- });
739
- }), S = v(() => T(x.exports.tableDefaultConfig, a.config));
740
- return () => o(S.value);
741
- }
742
- }), tt = { class: "flm-toolbar" }, ie = /* @__PURE__ */ B({
743
- __name: "flmToolbar",
744
- props: {
745
- config: {
746
- type: Object,
747
- default() {
748
- return {
749
- publicConfig: {},
750
- maxButton: 3,
751
- buttons: []
752
- };
753
- }
754
- }
755
- },
756
- emits: ["toolbarClick"],
757
- setup(a, { emit: t }) {
758
- const l = a, i = l.config.maxButton, o = v(() => l.config.buttons.slice(0, i)), r = v(() => l.config.buttons.slice(i)), S = (n) => t("toolbarClick", n);
759
- return (n, c) => {
760
- const f = D("el-dropdown-item"), p = D("el-dropdown-menu"), b = D("el-dropdown");
761
- return q(), W("div", tt, [
762
- (q(!0), W(le, null, V(m(o), (k) => (q(), oe(m(ae), {
763
- config: { ...a.config.publicConfig, ...k },
764
- key: k.event,
765
- onClick: (A) => S(k.event)
766
- }, null, 8, ["config", "onClick"]))), 128)),
767
- l.config.buttons.length > m(i) ? (q(), oe(b, {
768
- key: 0,
769
- style: { "margin-left": "12px" },
770
- trigger: "click",
771
- onCommand: S
772
- }, {
773
- dropdown: $(() => [
774
- g(p, null, {
775
- default: $(() => [
776
- (q(!0), W(le, null, V(m(r), (k) => (q(), oe(f, {
777
- config: k,
778
- key: k.event,
779
- command: k.event
780
- }, {
781
- default: $(() => [
782
- Ze(Se(k.buttonText), 1)
783
- ]),
784
- _: 2
785
- }, 1032, ["config", "command"]))), 128))
786
- ]),
787
- _: 1
788
- })
789
- ]),
790
- default: $(() => [
791
- g(m(ae), {
792
- config: { ...a.config.publicConfig, buttonText: "\u66F4\u591A" }
793
- }, null, 8, ["config"])
794
- ]),
795
- _: 1
796
- })) : ce("", !0)
797
- ]);
798
- };
799
- }
800
- }), Me = /* @__PURE__ */ B({
801
- __name: "flmSearch",
802
- props: {
803
- config: {
804
- type: Object,
805
- default() {
806
- return {};
807
- }
808
- }
809
- },
810
- emits: ["searchSubmit", "searchReset", "searchCustomEvent"],
811
- setup(a, { emit: t }) {
812
- const l = a, i = L(), o = L();
813
- let r = L(!1), S = L(!1), n = L({});
814
- const c = v(() => l.config.maxFormItem || 3), f = v(() => {
815
- const { items: u = [], buttons: h, ..._ } = l.config;
816
- return S.value = u.length > c.value, S.value && (h == null || h.unshift({ buttonText: "\u66F4\u591A", event: "openDrawer" })), {
817
- ..._,
818
- inline: !0,
819
- items: u.slice(0, c.value),
820
- buttons: h
821
- };
822
- }), p = v(() => {
823
- const { items: u, buttons: h, ..._ } = l.config;
824
- return {
825
- ..._,
826
- inline: !1,
827
- items: u == null ? void 0 : u.slice(c.value),
828
- buttons: [
829
- {
830
- buttonText: "\u53D6\u6D88",
831
- event: "cancel"
832
- },
833
- {
834
- type: x.exports.ButtonType.primary,
835
- buttonText: "\u641C\u7D22",
836
- event: "submit"
837
- }
838
- ]
839
- };
840
- }), b = (u = []) => {
841
- let h = [];
842
- return u.forEach((_) => {
843
- if (Y("isSlot", _)) {
844
- const { prop: y } = _;
845
- y && typeof y == "string" && h.push(y);
846
- }
847
- }), h;
848
- }, k = v(() => {
849
- var u, h;
850
- return (h = b((u = l.config.items) == null ? void 0 : u.slice(0, c.value))) != null ? h : [];
851
- }), A = v(() => {
852
- var u, h;
853
- return (h = b((u = l.config.items) == null ? void 0 : u.slice(c.value))) != null ? h : [];
854
- }), z = (u) => {
855
- t("searchSubmit", { ...u, ...n.value });
856
- }, N = () => {
857
- var h, _, y;
858
- (h = o.value) == null || h.reset();
859
- const u = (y = (_ = o.value) == null ? void 0 : _.formModel) != null ? y : {};
860
- t("searchReset", { ...u, ...i.value.formModel });
861
- }, H = ({ event: u, formModel: h }) => {
862
- const _ = { openDrawer: C };
863
- Y(u, _) ? _[u](h) : t("searchCustomEvent", u);
864
- }, C = () => r.value = !0, F = () => r.value = !1, s = (u) => {
865
- u && (n.value = u), t("searchSubmit", { ...i.value.formModel, ...u }), F();
866
- };
867
- return (u, h) => {
868
- const _ = D("el-drawer");
869
- return q(), W("div", null, [
870
- g(m(Q), {
871
- class: "search-default",
872
- ref_key: "searchDefaultRef",
873
- ref: i,
874
- config: m(f),
875
- onSubmit: z,
876
- onReset: N,
877
- onCustomEvent: H
878
- }, K({ _: 2 }, [
879
- V(m(k), (y) => ({
880
- name: y,
881
- fn: $(({ prop: I, formModel: j }) => [
882
- U(u.$slots, y, {
883
- prop: I,
884
- formModel: j
885
- })
886
- ])
887
- }))
888
- ]), 1032, ["config"]),
889
- m(S) ? (q(), oe(_, {
890
- key: 0,
891
- modelValue: m(r),
892
- "onUpdate:modelValue": h[0] || (h[0] = (y) => Ke(r) ? r.value = y : r = y),
893
- title: "\u641C\u7D22",
894
- "before-close": F,
895
- "close-on-click-modal": !1,
896
- "close-on-press-escape": !1,
897
- "show-close": !1,
898
- direction: "ltr"
899
- }, {
900
- default: $(() => [
901
- g(m(Q), {
902
- ref_key: "searchExtraRef",
903
- ref: o,
904
- config: m(p),
905
- onSubmit: s,
906
- onCancel: F
907
- }, K({ _: 2 }, [
908
- V(m(A), (y) => ({
909
- name: y,
910
- fn: $(({ prop: I, formModel: j }) => [
911
- U(u.$slots, y, {
912
- prop: I,
913
- formModel: j
914
- })
915
- ])
916
- }))
917
- ]), 1032, ["config"])
918
- ]),
919
- _: 3
920
- }, 8, ["modelValue"])) : ce("", !0)
921
- ]);
922
- };
923
- }
924
- });
925
- const ot = /* @__PURE__ */ B({
926
- __name: "flmReportPage",
927
- props: {
928
- tableName: {
929
- type: String,
930
- required: !0
931
- },
932
- request: {
933
- type: Object,
934
- required: !0
935
- }
936
- },
937
- emits: ["customEvent"],
938
- setup(a, { expose: t, emit: l }) {
939
- const i = a, o = L(), r = v(() => i.tableName.replace(/_/g, ""));
940
- let S = L(!1), n = L({
941
- search: {},
942
- toolbar: {
943
- publicConfig: {},
944
- maxButton: 3,
945
- buttons: []
946
- },
947
- table: {},
948
- tableAction: {
949
- publicConfig: {},
950
- maxButton: 3,
951
- buttons: []
952
- },
953
- pagination: {},
954
- readDialog: {
955
- "model-value": !1
956
- },
957
- readForm: {},
958
- addDialog: {
959
- "model-value": !1
960
- },
961
- addForm: {},
962
- editDialog: {
963
- "model-value": !1
964
- },
965
- editForm: {}
966
- });
967
- const c = L({});
968
- let f = L([]);
969
- ue(() => {
970
- b();
971
- });
972
- const p = () => "calc(100vh - 50px - 30px - 50px - 50px - 40px)", b = () => {
973
- i.request.flameprops.request({
974
- tableName: "flametableinfo",
975
- flameMethod: "webgetpagesetting",
976
- data: { table_name: i.tableName, menu_id: null }
977
- }).then(({ items: d }) => {
978
- var w;
979
- const E = d;
980
- E.table.height = p(), E.table["max-height"] = p(), E.tableAction.buttons.length && ((w = E.table.columns) == null || w.push({
981
- prop: "tableAction",
982
- label: "\u64CD\u4F5C",
983
- isSlot: !0,
984
- fixed: "right",
985
- "min-width": "200px"
986
- })), n.value = E, k();
987
- });
988
- }, k = () => {
989
- const {
990
- ["current-page"]: d = 1,
991
- ["page-size"]: E = 20
992
- } = n.value.pagination;
993
- i.request.flameApi.pageSearch({
994
- tableName: r.value,
995
- data: {
996
- page_no: d,
997
- page_size: E,
998
- conditions: c.value,
999
- ref_level: 1,
1000
- order_by: "flame_id DESC"
1001
- }
1002
- }).then(({ items: w, total: P }) => {
1003
- n.value.table.data = w, n.value.pagination.total = P, S.value = !0;
1004
- });
1005
- }, A = () => {
1006
- n.value.pagination["current-page"] = 1, k();
1007
- }, z = (d) => {
1008
- c.value = d, A();
1009
- }, N = (d) => {
1010
- Y(d, s) ? s[d]() : l("customEvent", d);
1011
- }, H = (d, E) => {
1012
- Y(d, s) ? s[d](E) : l("customEvent", { event: d, scope: E });
1013
- }, C = {
1014
- selectionChange: ({ row: d }) => {
1015
- f.value = d;
1016
- }
1017
- }, F = {
1018
- sizeChange: (d) => {
1019
- n.value.pagination["current-page"] = 1, n.value.pagination["page-size"] = d, k();
1020
- },
1021
- currentChange: (d) => {
1022
- n.value.pagination["current-page"] = d, k();
1023
- }
1024
- }, s = {
1025
- openReadDialog: (d) => {
1026
- i.request.flameApi.singleSearch({
1027
- tableName: r.value,
1028
- data: { key: d.row.flame_id }
1029
- }).then(({ items: E }) => {
1030
- n.value.readForm.model = E, n.value.readDialog["model-value"] = !0;
1031
- });
1032
- },
1033
- closeReadDialog: () => {
1034
- n.value.readDialog["model-value"] = !1;
1035
- },
1036
- pageRead: (d) => {
1037
- i.request.flameApi.singleSearch({
1038
- tableName: r.value,
1039
- data: { key: d.row.flame_id }
1040
- }).then(({ items: E }) => {
1041
- n.value.readForm.model = E, n.value.readDialog["model-value"] = !0;
1042
- });
1043
- },
1044
- openAddDialog: () => {
1045
- n.value.addDialog["model-value"] = !0;
1046
- },
1047
- closeAddDialog: () => {
1048
- n.value.addDialog["model-value"] = !1;
1049
- },
1050
- pageAdd: (d) => {
1051
- i.request.flameApi.singleAdd({
1052
- tableName: r.value,
1053
- data: { data: d }
1054
- }).then(() => {
1055
- A(), G.success("\u65B0\u589E\u6210\u529F"), s.closeAddDialog();
1056
- });
1057
- },
1058
- pageDelete: (d) => {
1059
- he.confirm(
1060
- "\u786E\u8BA4\u8981\u5220\u9664\u672C\u6761\u6570\u636E\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006",
1061
- "\u63D0\u793A",
1062
- {
1063
- confirmButtonText: "\u786E\u5B9A",
1064
- cancelButtonText: "\u53D6\u6D88",
1065
- type: "warning"
1066
- }
1067
- ).then(() => {
1068
- i.request.flameApi.singleDelete({
1069
- tableName: r.value,
1070
- data: { key: d.row.flame_id }
1071
- }).then(() => {
1072
- A(), G.success("\u5220\u9664\u6210\u529F");
1073
- });
1074
- }).catch(() => {
1075
- G.info("\u53D6\u6D88\u5220\u9664");
1076
- });
1077
- },
1078
- openEditDialog: (d) => {
1079
- i.request.flameApi.singleSearch({
1080
- tableName: r.value,
1081
- data: { key: d.row.flame_id }
1082
- }).then(({ result: E, message: w, items: P }) => {
1083
- E ? (n.value.editForm.model = P, n.value.editDialog["model-value"] = !0) : G.warning(w);
1084
- });
1085
- },
1086
- closeEditDialog: () => {
1087
- n.value.editDialog["model-value"] = !1;
1088
- },
1089
- pageEdit: (d) => {
1090
- i.request.flameApi.singleUpdate({
1091
- tableName: r.value,
1092
- data: {
1093
- key: d == null ? void 0 : d.flame_id,
1094
- data: d
1095
- }
1096
- }).then(() => {
1097
- A(), G.success("\u4FEE\u6539\u6210\u529F"), s.closeEditDialog();
1098
- });
1099
- },
1100
- pageExport: () => {
1101
- i.request.flameApi.exportFile({
1102
- tableName: r.value,
1103
- data: {
1104
- conditions: c.value,
1105
- ref_level: 1,
1106
- order_by: "flame_id DESC"
1107
- }
1108
- }).then(({ items: d }) => {
1109
- window.open(d.download_url), G.success("\u5BFC\u51FA\u6210\u529F");
1110
- });
1111
- },
1112
- pageBatchDelete: () => {
1113
- f.value.length ? he.confirm(
1114
- "\u786E\u8BA4\u8981\u5220\u9664\u52FE\u9009\u6570\u636E\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006",
1115
- "\u63D0\u793A",
1116
- {
1117
- confirmButtonText: "\u786E\u5B9A",
1118
- cancelButtonText: "\u53D6\u6D88",
1119
- type: "warning"
1120
- }
1121
- ).then(() => {
1122
- i.request.flameApi.batchDelete({
1123
- tableName: r.value,
1124
- data: {
1125
- conditions: {
1126
- flame_id: f.value.map(({ flame_id: d }) => d)
1127
- }
1128
- }
1129
- }).then(() => {
1130
- A(), G.success("\u5220\u9664\u6210\u529F");
1131
- });
1132
- }).catch(() => {
1133
- G.info("\u53D6\u6D88\u5220\u9664");
1134
- }) : G.warning("\u672A\u52FE\u9009\u5220\u9664\u9879\uFF01");
1135
- }
1136
- };
1137
- t({ tableSelection: f, pageRefresh: A });
1138
- const u = v(() => {
1139
- const d = n.value.table.columns || [], E = [], w = (P) => {
1140
- P.forEach(({ prop: M, isSlot: J, columns: Z }) => {
1141
- J && M && M !== "tableAction" && E.push(M), Z != null && Z.length && w(Z);
1142
- });
1143
- };
1144
- return w(d), E;
1145
- }), h = (d = []) => {
1146
- let E = [];
1147
- return d.forEach((w) => {
1148
- if (Y("isSlot", w)) {
1149
- const { prop: P } = w;
1150
- P && typeof P == "string" && E.push(P);
1151
- }
1152
- }), E;
1153
- }, _ = v(() => h(n.value.search.items)), y = v(() => h(n.value.readForm.items)), I = v(() => h(n.value.addForm.items)), j = v(() => h(n.value.editForm.items));
1154
- return (d, E) => (q(), W("div", {
1155
- class: "report-page",
1156
- ref_key: "reportPageRef",
1157
- ref: o
1158
- }, [
1159
- m(S) ? (q(), W(le, { key: 0 }, [
1160
- g(m(Me), {
1161
- class: "page-search",
1162
- config: m(n).search,
1163
- onSearchSubmit: z
1164
- }, K({ _: 2 }, [
1165
- V(m(_), (w) => ({
1166
- name: w,
1167
- fn: $(({ prop: P, formModel: M }) => [
1168
- U(d.$slots, `search-${w}`, {
1169
- prop: P,
1170
- formModel: M
1171
- }, void 0, !0)
1172
- ])
1173
- }))
1174
- ]), 1032, ["config"]),
1175
- g(m(ie), {
1176
- class: "page-toolbar",
1177
- config: m(n).toolbar,
1178
- onToolbarClick: N
1179
- }, null, 8, ["config"]),
1180
- g(m(me), {
1181
- class: "page-table",
1182
- config: m(n).table,
1183
- onSelectionChange: C.selectionChange
1184
- }, K({ _: 2 }, [
1185
- V(m(u), (w) => ({
1186
- name: w,
1187
- fn: $(({ index: P, row: M, column: J }) => [
1188
- U(d.$slots, `table-${w}`, {
1189
- index: P,
1190
- row: M,
1191
- column: J
1192
- }, void 0, !0)
1193
- ])
1194
- })),
1195
- m(n).tableAction.buttons.length ? {
1196
- name: "tableAction",
1197
- fn: $((w) => [
1198
- g(m(ie), {
1199
- config: m(n).tableAction,
1200
- onToolbarClick: (P) => H(P, w)
1201
- }, null, 8, ["config", "onToolbarClick"])
1202
- ]),
1203
- key: "0"
1204
- } : void 0
1205
- ]), 1032, ["config", "onSelectionChange"]),
1206
- g(m(fe), {
1207
- class: "page-pagination",
1208
- config: m(n).pagination,
1209
- onSizeChange: F.sizeChange,
1210
- onCurrentChange: F.currentChange
1211
- }, null, 8, ["config", "onSizeChange", "onCurrentChange"])
1212
- ], 64)) : ce("", !0),
1213
- g(m(ne), {
1214
- config: m(n).readDialog,
1215
- onClose: s.closeReadDialog
1216
- }, {
1217
- default: $(() => [
1218
- g(m(Q), {
1219
- class: "form-read",
1220
- config: m(n).readForm,
1221
- onCancel: s.closeReadDialog
1222
- }, K({ _: 2 }, [
1223
- V(m(y), (w) => ({
1224
- name: w,
1225
- fn: $(({ prop: P, formModel: M }) => [
1226
- U(d.$slots, `read-${w}`, {
1227
- prop: P,
1228
- formModel: M
1229
- }, void 0, !0)
1230
- ])
1231
- }))
1232
- ]), 1032, ["config", "onCancel"])
1233
- ]),
1234
- _: 3
1235
- }, 8, ["config", "onClose"]),
1236
- g(m(ne), {
1237
- config: m(n).addDialog,
1238
- onClose: s.closeAddDialog
1239
- }, {
1240
- default: $(() => [
1241
- g(m(Q), {
1242
- class: "form-add",
1243
- config: m(n).addForm,
1244
- onSubmit: s.pageAdd,
1245
- onCancel: s.closeAddDialog
1246
- }, K({ _: 2 }, [
1247
- V(m(I), (w) => ({
1248
- name: w,
1249
- fn: $(({ prop: P, formModel: M }) => [
1250
- U(d.$slots, `add-${w}`, {
1251
- prop: P,
1252
- formModel: M
1253
- }, void 0, !0)
1254
- ])
1255
- }))
1256
- ]), 1032, ["config", "onSubmit", "onCancel"])
1257
- ]),
1258
- _: 3
1259
- }, 8, ["config", "onClose"]),
1260
- g(m(ne), {
1261
- config: m(n).editDialog,
1262
- onClose: s.closeEditDialog
1263
- }, {
1264
- default: $(() => [
1265
- g(m(Q), {
1266
- class: "form-edit",
1267
- config: m(n).editForm,
1268
- onSubmit: s.pageEdit,
1269
- onCancel: s.closeEditDialog
1270
- }, K({ _: 2 }, [
1271
- V(m(j), (w) => ({
1272
- name: w,
1273
- fn: $(({ prop: P, formModel: M }) => [
1274
- U(d.$slots, `edit-${w}`, {
1275
- prop: P,
1276
- formModel: M
1277
- }, void 0, !0)
1278
- ])
1279
- }))
1280
- ]), 1032, ["config", "onSubmit", "onCancel"])
1281
- ]),
1282
- _: 3
1283
- }, 8, ["config", "onClose"])
1284
- ], 512));
1285
- }
1286
- }), nt = /* @__PURE__ */ ge(ot, [["__scopeId", "data-v-bf41064a"]]);
1287
- const lt = { class: "page-search" }, at = B({
1288
- __name: "flmExportPage",
1289
- props: {
1290
- tableName: {
1291
- type: String,
1292
- required: !0
1293
- },
1294
- request: {
1295
- type: Object,
1296
- required: !0
1297
- }
1298
- },
1299
- emits: ["customEvent"],
1300
- setup(a, { expose: t, emit: l }) {
1301
- const i = a, o = L(), r = v(() => i.tableName.replace(/_/g, ""));
1302
- let S = L(!1), n = L({
1303
- table: {},
1304
- pagination: {}
1305
- });
1306
- const c = L({});
1307
- ue(() => {
1308
- p();
1309
- });
1310
- const f = () => "calc(100vh - 50px - 30px - 50px - 50px - 40px)", p = () => {
1311
- i.request.flameprops.request({
1312
- tableName: "flametableinfo",
1313
- flameMethod: "webgetpagesetting",
1314
- data: { table_name: i.tableName, menu_id: null }
1315
- }).then(({ items: s }) => {
1316
- const u = s;
1317
- u.table.height = f(), u.table["max-height"] = f(), n.value = u, b();
1318
- });
1319
- }, b = () => {
1320
- const {
1321
- ["current-page"]: s = 1,
1322
- ["page-size"]: u = 20
1323
- } = n.value.pagination;
1324
- i.request.flameApi.pageSearch({
1325
- tableName: r.value,
1326
- data: {
1327
- page_no: s,
1328
- page_size: u,
1329
- conditions: c.value,
1330
- ref_level: 1,
1331
- order_by: "flame_id DESC"
1332
- }
1333
- }).then(({ items: h, total: _ }) => {
1334
- n.value.table.data = h, n.value.pagination.total = _, S.value = !0;
1335
- });
1336
- }, k = () => {
1337
- n.value.pagination["current-page"] = 1, b();
1338
- }, A = (s) => {
1339
- c.value = s, k();
1340
- }, z = O({
1341
- buttons: [{
1342
- type: x.exports.ButtonType.success,
1343
- plain: !0,
1344
- buttonText: "\u5BFC\u51FA",
1345
- event: "pageExport"
1346
- }],
1347
- maxButton: 3,
1348
- publicConfig: {}
1349
- }), N = (s) => {
1350
- Y(s, C) ? C[s]() : l("customEvent", s);
1351
- }, H = {
1352
- sizeChange: (s) => {
1353
- n.value.pagination["current-page"] = 1, n.value.pagination["page-size"] = s, b();
1354
- },
1355
- currentChange: (s) => {
1356
- n.value.pagination["current-page"] = s, b();
1357
- }
1358
- }, C = {
1359
- pageExport: () => {
1360
- i.request.flameApi.exportFile({
1361
- tableName: r.value,
1362
- data: {
1363
- conditions: c.value,
1364
- ref_level: 1,
1365
- order_by: "flame_id DESC"
1366
- }
1367
- }).then(({ items: s }) => {
1368
- window.open(s.download_url), G.success("\u5BFC\u51FA\u6210\u529F");
1369
- });
1370
- }
1371
- };
1372
- t({ searchSubmit: A, pageRefresh: k });
1373
- const F = v(() => {
1374
- const s = n.value.table.columns || [], u = [], h = (_) => {
1375
- _.forEach(({ prop: y, isSlot: I, columns: j }) => {
1376
- I && y && y !== "tableAction" && u.push(y), j != null && j.length && h(j);
1377
- });
1378
- };
1379
- return h(s), u;
1380
- });
1381
- return (s, u) => (q(), W("div", {
1382
- class: "export-page",
1383
- ref_key: "exportPageRef",
1384
- ref: o
1385
- }, [
1386
- m(S) ? (q(), W(le, { key: 0 }, [
1387
- Je("div", lt, [
1388
- U(s.$slots, "default", {}, void 0, !0)
1389
- ]),
1390
- g(m(ie), {
1391
- class: "page-toolbar",
1392
- config: z,
1393
- onToolbarClick: N
1394
- }, null, 8, ["config"]),
1395
- g(m(me), {
1396
- class: "page-table",
1397
- config: m(n).table
1398
- }, K({ _: 2 }, [
1399
- V(m(F), (h) => ({
1400
- name: h,
1401
- fn: $(({ index: _, row: y, column: I }) => [
1402
- U(s.$slots, `table-${h}`, {
1403
- index: _,
1404
- row: y,
1405
- column: I
1406
- }, void 0, !0)
1407
- ])
1408
- }))
1409
- ]), 1032, ["config"]),
1410
- g(m(fe), {
1411
- class: "page-pagination",
1412
- config: m(n).pagination,
1413
- onSizeChange: H.sizeChange,
1414
- onCurrentChange: H.currentChange
1415
- }, null, 8, ["config", "onSizeChange", "onCurrentChange"])
1416
- ], 64)) : ce("", !0)
1417
- ], 512));
1418
- }
1419
- }), it = /* @__PURE__ */ ge(at, [["__scopeId", "data-v-2825e068"]]), rt = /* @__PURE__ */ B({
1420
- components: {
1421
- flmCheckbox: ee
1422
- },
1423
- emits: ["change"],
1424
- props: {
1425
- config: {
1426
- type: Object,
1427
- default: {}
1428
- }
1429
- },
1430
- setup(a, t) {
1431
- const l = v(() => T(x.exports.checkboxGroupDefaultConfig, a.config)), i = L(!1), o = L(!1), r = (c) => {
1432
- var f;
1433
- i.value = c, o.value = !1, t.emit("change", c ? (f = l.value.items) == null ? void 0 : f.map(({
1434
- label: p
1435
- }) => p) : []);
1436
- }, S = (c) => {
1437
- var b, k, A;
1438
- const f = (b = c == null ? void 0 : c.length) != null ? b : 0, p = (A = (k = l.value.items) == null ? void 0 : k.length) != null ? A : 0;
1439
- i.value = f === p, o.value = f > 0 && f < p, t.emit("change", c);
1440
- }, n = ({
1441
- hasCheckAll: c,
1442
- checkAllConfig: f,
1443
- ...p
1444
- }) => g("div", null, [c && g(ee, {
1445
- config: {
1446
- label: "\u5168\u9009",
1447
- ...f,
1448
- "model-value": i.value,
1449
- indeterminate: o.value
1450
- },
1451
- onChange: r
1452
- }, null), g(D("el-checkbox-group"), R(p, {
1453
- onChange: S
1454
- }), {
1455
- default: () => {
1456
- var b;
1457
- return [(b = p.items) == null ? void 0 : b.map((k) => g(ee, {
1458
- config: k
1459
- }, null))];
1460
- }
1461
- })]);
1462
- return () => n(l.value);
1463
- }
1464
- }), Le = {
1465
- flmButton: ae,
1466
- flmCascader: ke,
1467
- flmCheckbox: ee,
1468
- flmCheckboxGroup: rt,
1469
- flmColorPicker: Fe,
1470
- flmDatePicker: _e,
1471
- flmInput: ye,
1472
- flmInputNumber: we,
1473
- flmPagination: fe,
1474
- flmRadio: xe,
1475
- flmRate: Pe,
1476
- flmRead: Ee,
1477
- flmSelect: Be,
1478
- flmSlider: Re,
1479
- flmSwitch: Te,
1480
- flmTimePicker: Ae,
1481
- flmTimeSelect: Oe,
1482
- flmTransfer: $e,
1483
- flmDialog: ne,
1484
- flmForm: Q,
1485
- flmTable: me,
1486
- flmToolbar: ie,
1487
- flmSearch: Me,
1488
- flmReportPage: nt,
1489
- flmExportPage: it
1490
- }, ct = (a) => {
1491
- Object.entries(Le).forEach(([t, l]) => a.component(t, l));
1492
- }, ft = {
1493
- install: ct,
1494
- ...Le
1495
- };
1496
- export {
1497
- ft as default,
1498
- ae as flmButton,
1499
- ke as flmCascader,
1500
- ee as flmCheckbox,
1501
- rt as flmCheckboxGroup,
1502
- Fe as flmColorPicker,
1503
- _e as flmDatePicker,
1504
- ne as flmDialog,
1505
- it as flmExportPage,
1506
- Q as flmForm,
1507
- ye as flmInput,
1508
- we as flmInputNumber,
1509
- fe as flmPagination,
1510
- xe as flmRadio,
1511
- Pe as flmRate,
1512
- Ee as flmRead,
1513
- nt as flmReportPage,
1514
- Me as flmSearch,
1515
- Be as flmSelect,
1516
- Re as flmSlider,
1517
- Te as flmSwitch,
1518
- me as flmTable,
1519
- Ae as flmTimePicker,
1520
- Oe as flmTimeSelect,
1521
- ie as flmToolbar,
1522
- $e as flmTransfer
1523
- };
1524
- //# sourceMappingURL=flame-plus.es.js.map