epic-designer-cjh
Version:
基于vue3的设计器,可视化开发页面表单
226 lines (225 loc) • 5.34 kB
JavaScript
import { a6 as f, ao as x, br as y, a7 as b, aE as d, bY as u, bq as m, bZ as p, b_ as g, Z as C, aK as T } from "./index-97ce4605.js";
import { inject as h, ref as s, computed as n, unref as c, isRef as v } from "vue";
const P = f([
String,
Object,
Function
]), L = {
Close: d
}, K = {
Close: d,
SuccessFilled: u,
InfoFilled: g,
WarningFilled: m,
CircleCloseFilled: p
}, Z = {
success: u,
warning: m,
error: p,
info: g
}, j = {
validating: x,
success: y,
error: b
};
var w = {
name: "en",
el: {
colorpicker: {
confirm: "OK",
clear: "Clear",
defaultLabel: "color picker",
description: "current color is {color}. press enter to select a new color."
},
datepicker: {
now: "Now",
today: "Today",
cancel: "Cancel",
clear: "Clear",
confirm: "OK",
dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
monthTablePrompt: "Use the arrow keys and enter to select the month",
yearTablePrompt: "Use the arrow keys and enter to select the year",
selectedDate: "Selected date",
selectDate: "Select date",
selectTime: "Select time",
startDate: "Start Date",
startTime: "Start Time",
endDate: "End Date",
endTime: "End Time",
prevYear: "Previous Year",
nextYear: "Next Year",
prevMonth: "Previous Month",
nextMonth: "Next Month",
year: "",
month1: "January",
month2: "February",
month3: "March",
month4: "April",
month5: "May",
month6: "June",
month7: "July",
month8: "August",
month9: "September",
month10: "October",
month11: "November",
month12: "December",
week: "week",
weeks: {
sun: "Sun",
mon: "Mon",
tue: "Tue",
wed: "Wed",
thu: "Thu",
fri: "Fri",
sat: "Sat"
},
weeksFull: {
sun: "Sunday",
mon: "Monday",
tue: "Tuesday",
wed: "Wednesday",
thu: "Thursday",
fri: "Friday",
sat: "Saturday"
},
months: {
jan: "Jan",
feb: "Feb",
mar: "Mar",
apr: "Apr",
may: "May",
jun: "Jun",
jul: "Jul",
aug: "Aug",
sep: "Sep",
oct: "Oct",
nov: "Nov",
dec: "Dec"
}
},
inputNumber: {
decrease: "decrease number",
increase: "increase number"
},
select: {
loading: "Loading",
noMatch: "No matching data",
noData: "No data",
placeholder: "Select"
},
dropdown: {
toggleDropdown: "Toggle Dropdown"
},
cascader: {
noMatch: "No matching data",
loading: "Loading",
placeholder: "Select",
noData: "No data"
},
pagination: {
goto: "Go to",
pagesize: "/page",
total: "Total {total}",
pageClassifier: "",
page: "Page",
prev: "Go to previous page",
next: "Go to next page",
currentPage: "page {pager}",
prevPages: "Previous {pager} pages",
nextPages: "Next {pager} pages",
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
},
dialog: {
close: "Close this dialog"
},
drawer: {
close: "Close this dialog"
},
messagebox: {
title: "Message",
confirm: "OK",
cancel: "Cancel",
error: "Illegal input",
close: "Close this dialog"
},
upload: {
deleteTip: "press delete to remove",
delete: "Delete",
preview: "Preview",
continue: "Continue"
},
slider: {
defaultLabel: "slider between {min} and {max}",
defaultRangeStartLabel: "pick start value",
defaultRangeEndLabel: "pick end value"
},
table: {
emptyText: "No Data",
confirmFilter: "Confirm",
resetFilter: "Reset",
clearFilter: "All",
sumText: "Sum"
},
tree: {
emptyText: "No Data"
},
transfer: {
noMatch: "No matching data",
noData: "No data",
titles: ["List 1", "List 2"],
filterPlaceholder: "Enter keyword",
noCheckedFormat: "{total} items",
hasCheckedFormat: "{checked}/{total} checked"
},
image: {
error: "FAILED"
},
pageHeader: {
title: "Back"
},
popconfirm: {
confirmButtonText: "Yes",
cancelButtonText: "No"
}
}
};
const S = (e) => (t, a) => k(t, a, c(e)), k = (e, t, a) => C(a, e, e).replace(/\{(\w+)\}/g, (r, l) => {
var o;
return `${(o = t == null ? void 0 : t[l]) != null ? o : `{${l}}`}`;
}), D = (e) => {
const t = n(() => c(e).name), a = v(e) ? e : s(e);
return {
lang: t,
locale: a,
t: S(e)
};
}, _ = Symbol("localeContextKey"), z = (e) => {
const t = e || h(_, s());
return D(n(() => t.value || w));
}, i = s(0), F = 2e3, I = Symbol("zIndexContextKey"), E = (e) => {
const t = e || h(I, void 0), a = n(() => {
const o = c(t);
return T(o) ? o : F;
}), r = n(() => a.value + i.value);
return {
initialZIndex: a,
currentZIndex: r,
nextZIndex: () => (i.value++, r.value)
};
};
export {
L as C,
Z as T,
j as V,
S as a,
D as b,
E as c,
F as d,
K as e,
P as i,
_ as l,
k as t,
z as u,
I as z
};