oga-ui 0.1.13 → 0.1.14

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.

Potentially problematic release.


This version of oga-ui might be problematic. Click here for more details.

package/input/index.css CHANGED
@@ -1,2 +1,2 @@
1
- .el-input-material[data-v-8d32a589]{clear:both;padding:.375rem 0;position:relative}.el-input-material .el-input.is-disabled .el-input__inner[data-v-8d32a589]{background:0 0}.el-input-material .el-input-group__prepend[data-v-8d32a589],.el-input-material .el-input-group__append[data-v-8d32a589]{padding:0 15px!important}.el-input-material .el-select[data-v-8d32a589],.el-input-material .el-cascader[data-v-8d32a589]{width:100%}.el-input-material.borderless .el-input-number .el-input__inner[data-v-8d32a589]{text-align:center}.el-input-material.borderless .el-input__inner[data-v-8d32a589]{border-top:0;border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.el-input-material.borderless [class*=el-][data-v-8d32a589]{background-color:#0000;border-top:0;border-left:0;border-right:0;border-radius:0}.el-input-material.borderless .el-date-editor--date.el-input--prefix .el-input__inner[data-v-8d32a589]{padding-left:1.875rem}.el-input-material-label[data-v-8d32a589]{color:#c0c4cc;z-index:2;background-color:#fff;border-radius:5px;padding-left:2px;padding-right:2px;font-size:.75rem;line-height:.75rem;transition:all .2s;position:absolute;top:0;left:1rem;opacity:1!important}.el-input-material-label[data-v-8d32a589]:not(.active){opacity:0}.el-input-material+.el-form-item__error[data-v-8d32a589]{padding-top:0}.el-form-item:focus .el-input-material-label.active[data-v-8d32a589]{color:#f56c6c}.oga-form.gutter-less .el-form-item[data-v-8d32a589]:not(:last-child){margin-bottom:.625rem}.oga-form.gutter-less .el-form-item[data-v-8d32a589]:last-child,.oga-form.borderless .el-form-item[data-v-8d32a589]{margin-bottom:0}.oga-form .el-form-item__content[data-v-8d32a589]{line-height:normal;display:block}.oga-form .el-input-material+.el-form-item__error[data-v-8d32a589]{margin-top:-.25rem}
1
+ [data-v-5df2784c]:root{--inner-color:#3779eb4d;--inner-shadow:0 0 10px 0 var(--inner-color) inset}.m-0[data-v-5df2784c]{margin:0!important}.mt-0[data-v-5df2784c]{margin-top:0!important}.mr-0[data-v-5df2784c]{margin-right:0!important}.mb-0[data-v-5df2784c]{margin-bottom:0!important}.ml-0[data-v-5df2784c]{margin-left:0!important}.m-1[data-v-5df2784c]{margin:.183024rem!important}.mt-1[data-v-5df2784c]{margin-top:.183024rem!important}.mr-1[data-v-5df2784c]{margin-right:.183024rem!important}.mb-1[data-v-5df2784c]{margin-bottom:.183024rem!important}.ml-1[data-v-5df2784c]{margin-left:.183024rem!important}.m-2[data-v-5df2784c]{margin:.366047rem!important}.mt-2[data-v-5df2784c]{margin-top:.366047rem!important}.mr-2[data-v-5df2784c]{margin-right:.366047rem!important}.mb-2[data-v-5df2784c]{margin-bottom:.366047rem!important}.ml-2[data-v-5df2784c]{margin-left:.366047rem!important}.m-3[data-v-5df2784c]{margin:.732094rem!important}.mt-3[data-v-5df2784c]{margin-top:.732094rem!important}.mr-3[data-v-5df2784c]{margin-right:.732094rem!important}.mb-3[data-v-5df2784c]{margin-bottom:.732094rem!important}.ml-3[data-v-5df2784c]{margin-left:.732094rem!important}.m-4[data-v-5df2784c]{margin:1.09814rem!important}.mt-4[data-v-5df2784c]{margin-top:1.09814rem!important}.mr-4[data-v-5df2784c]{margin-right:1.09814rem!important}.mb-4[data-v-5df2784c]{margin-bottom:1.09814rem!important}.ml-4[data-v-5df2784c]{margin-left:1.09814rem!important}.m-5[data-v-5df2784c]{margin:1.46419rem!important}.mt-5[data-v-5df2784c]{margin-top:1.46419rem!important}.mr-5[data-v-5df2784c]{margin-right:1.46419rem!important}.mb-5[data-v-5df2784c]{margin-bottom:1.46419rem!important}.ml-5[data-v-5df2784c]{margin-left:1.46419rem!important}.m-6[data-v-5df2784c]{margin:1.83024rem!important}.mt-6[data-v-5df2784c]{margin-top:1.83024rem!important}.mr-6[data-v-5df2784c]{margin-right:1.83024rem!important}.mb-6[data-v-5df2784c]{margin-bottom:1.83024rem!important}.ml-6[data-v-5df2784c]{margin-left:1.83024rem!important}.m-7[data-v-5df2784c]{margin:2.19628rem!important}.mt-7[data-v-5df2784c]{margin-top:2.19628rem!important}.mr-7[data-v-5df2784c]{margin-right:2.19628rem!important}.mb-7[data-v-5df2784c]{margin-bottom:2.19628rem!important}.ml-7[data-v-5df2784c]{margin-left:2.19628rem!important}.p-0[data-v-5df2784c]{padding:0!important}.pt-0[data-v-5df2784c]{padding-top:0!important}.pr-0[data-v-5df2784c]{padding-right:0!important}.pb-0[data-v-5df2784c]{padding-bottom:0!important}.pl-0[data-v-5df2784c]{padding-left:0!important}.p-1[data-v-5df2784c]{padding:.183024rem!important}.pt-1[data-v-5df2784c]{padding-top:.183024rem!important}.pr-1[data-v-5df2784c]{padding-right:.183024rem!important}.pb-1[data-v-5df2784c]{padding-bottom:.183024rem!important}.pl-1[data-v-5df2784c]{padding-left:.183024rem!important}.p-2[data-v-5df2784c]{padding:.366047rem!important}.pt-2[data-v-5df2784c]{padding-top:.366047rem!important}.pr-2[data-v-5df2784c]{padding-right:.366047rem!important}.pb-2[data-v-5df2784c]{padding-bottom:.366047rem!important}.pl-2[data-v-5df2784c]{padding-left:.366047rem!important}.p-3[data-v-5df2784c]{padding:.732094rem!important}.pt-3[data-v-5df2784c]{padding-top:.732094rem!important}.pr-3[data-v-5df2784c]{padding-right:.732094rem!important}.pb-3[data-v-5df2784c]{padding-bottom:.732094rem!important}.pl-3[data-v-5df2784c]{padding-left:.732094rem!important}.p-4[data-v-5df2784c]{padding:1.09814rem!important}.pt-4[data-v-5df2784c]{padding-top:1.09814rem!important}.pr-4[data-v-5df2784c]{padding-right:1.09814rem!important}.pb-4[data-v-5df2784c]{padding-bottom:1.09814rem!important}.pl-4[data-v-5df2784c]{padding-left:1.09814rem!important}.p-5[data-v-5df2784c]{padding:1.46419rem!important}.pt-5[data-v-5df2784c]{padding-top:1.46419rem!important}.pr-5[data-v-5df2784c]{padding-right:1.46419rem!important}.pb-5[data-v-5df2784c]{padding-bottom:1.46419rem!important}.pl-5[data-v-5df2784c]{padding-left:1.46419rem!important}.p-6[data-v-5df2784c]{padding:1.83024rem!important}.pt-6[data-v-5df2784c]{padding-top:1.83024rem!important}.pr-6[data-v-5df2784c]{padding-right:1.83024rem!important}.pb-6[data-v-5df2784c]{padding-bottom:1.83024rem!important}.pl-6[data-v-5df2784c]{padding-left:1.83024rem!important}.p-7[data-v-5df2784c]{padding:2.19628rem!important}.pt-7[data-v-5df2784c]{padding-top:2.19628rem!important}.pr-7[data-v-5df2784c]{padding-right:2.19628rem!important}.pb-7[data-v-5df2784c]{padding-bottom:2.19628rem!important}.pl-7[data-v-5df2784c]{padding-left:2.19628rem!important}.el-input-material[data-v-5df2784c]{clear:both;padding:.375rem 0;position:relative}.el-input-material .el-input.is-disabled .el-input__inner[data-v-5df2784c]{background:0 0}.el-input-material .el-input.is-round .el-input__wrapper[data-v-5df2784c],.el-input-material .el-input-tag.is-round[data-v-5df2784c]{border-radius:var(--el-border-radius-round)}.el-input-material .el-input-group__prepend[data-v-5df2784c],.el-input-material .el-input-group__append[data-v-5df2784c]{padding:0 15px!important}.el-input-material .el-select[data-v-5df2784c],.el-input-material .el-cascader[data-v-5df2784c]{width:100%}.el-input-material.borderless .el-input-number .el-input__inner[data-v-5df2784c]{text-align:center}.el-input-material.borderless .el-input__inner[data-v-5df2784c]{border-top:0;border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.el-input-material.borderless [class*=el-][data-v-5df2784c]{background-color:#0000;border-top:0;border-left:0;border-right:0;border-radius:0}.el-input-material.borderless .el-date-editor--date.el-input--prefix .el-input__inner[data-v-5df2784c]{padding-left:1.875rem}.el-input-material-label[data-v-5df2784c]{color:#c0c4cc;z-index:2;background-color:#fff;border-radius:5px;padding-left:2px;padding-right:2px;font-size:.75rem;line-height:.75rem;transition:all .2s;position:absolute;top:0;left:1rem;opacity:1!important}.el-input-material-label[data-v-5df2784c]:not(.active){opacity:0}.el-input-material+.el-form-item__error[data-v-5df2784c]{padding-top:0}.el-form-item:focus .el-input-material-label.active[data-v-5df2784c]{color:#f56c6c}.oga-form.gutter-less .el-form-item[data-v-5df2784c]:not(:last-child){margin-bottom:.625rem}.oga-form.gutter-less .el-form-item[data-v-5df2784c]:last-child,.oga-form.borderless .el-form-item[data-v-5df2784c]{margin-bottom:0}.oga-form .el-form-item__content[data-v-5df2784c]{line-height:normal;display:block}.oga-form .el-input-material+.el-form-item__error[data-v-5df2784c]{margin-top:-.25rem}.text-truncate[data-v-5df2784c]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.btn-block[data-v-5df2784c]{width:100%;display:block}.oga-table[data-v-5df2784c]{flex-direction:column;height:100%;display:flex}.oga-table-content[data-v-5df2784c]{border:1px solid var(--el-table-border);flex:1;position:relative;overflow:auto}.oga-table .el-pagination[data-v-5df2784c]{justify-content:flex-end;padding-top:1rem;display:flex;margin:0 -11px!important}.oga-table .el-card[data-v-5df2784c],.oga-table .el-table[data-v-5df2784c]{height:100%}.oga-table .el-table__layers .cell[data-v-5df2784c]{line-height:1.3}.oga-table-batch-operation[data-v-5df2784c]{z-index:5;text-indent:.5rem;background-color:#ffffffb3;align-items:center;width:calc(100% - 55px);height:46px;transition:all .3s;display:flex;position:absolute;top:1px;left:55px}.oga-table-batch-operation .el-dropdown[data-v-5df2784c]{height:100%}.oga-table-batch-operation .el-dropdown .el-dropdown-link div[data-v-5df2784c]{cursor:pointer;background-color:#fff;align-items:center;height:100%;padding:5px 10px 5px 5px;display:flex}.oga-table-batch-operation .el-dropdown .el-dropdown-link b[data-v-5df2784c]{color:#409eff}.oga-table .el-checkbox__input[data-v-5df2784c]{line-height:0}.oga-table .el-table-column--selection[data-v-5df2784c]{position:relative}.oga-table .el-table-column--selection .cell[data-v-5df2784c]{width:100%;height:100%;position:absolute;top:0;left:0;padding:0!important}.oga-table .el-table-column--selection .cell .el-checkbox[data-v-5df2784c]{cursor:pointer;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.oga-table .fox-svg-img[data-v-5df2784c]{width:50px}.oga-table .fox-svg-icon[data-v-5df2784c]{width:50px;height:50px}.oga-table .cell[data-v-5df2784c]{white-space:nowrap;font-weight:400}.oga-table th.el-table__cell.is-sortable>.cell[data-v-5df2784c]{justify-content:space-between;align-items:center;display:flex}.oga-table .el-image[data-v-5df2784c]{width:100%;margin:0;padding:0;display:block;position:relative;overflow:hidden}.oga-table .el-image[data-v-5df2784c]:before{content:"";padding-top:100%;display:block}.oga-table .el-image .el-image__inner[data-v-5df2784c]{object-fit:cover;object-position:center;width:100%;height:100%;position:absolute;top:0;left:0}
2
2
  /*$vite$:1*/
package/input/index.es.ts CHANGED
@@ -1,38 +1,6 @@
1
1
  import { createCommentVNode, createElementBlock, createSlots, createVNode, defineComponent, isRef, mergeProps, normalizeClass, onMounted, openBlock, ref, renderSlot, resolveComponent, toDisplayString, unref, useAttrs, useSlots, watch, withCtx } from "vue";
2
- var utility_default = {
3
- expression: {
4
- Required: /[\S]/,
5
- Email: /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,
6
- Int: /(-)?(\d+)$/,
7
- IntPositive: /^\+?[0-9]\d*$/,
8
- IntZeroPositive: /^\+?[1-9]\d*$/,
9
- Float: /(-)?(\d+)(((\.)(\d)+))?/,
10
- FloatPositive: /^([0-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,
11
- FloatZeroPositive: /^([1-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,
12
- Chinese: /[\u4e00-\u9fa5]/,
13
- English: /[a-zA-Z]/,
14
- Mobile: /^[1]([3-9])[0-9]{9}$/,
15
- Password: /^[A-Za-z][A-Za-z0-9~!@#$%^&*]{5,19}$/,
16
- IdentityCard: /[\d]{6}(19|20)*[\d]{2}((0[1-9])|(11|12))([012][\d]|(30|31))[\d]{3}[xX\d]*/,
17
- EngAndNum: /[a-zA-Z0-9]*/,
18
- EngNumUnderline: /[a-zA-Z0-9_]*/,
19
- PhoneNumber: /(86)?(-)?(0\d{2,3})?(-)?(\d{7,8})(-)?(\d{1,5})?/,
20
- PostalCode: /\d{6}/,
21
- Account: /^[A-Za-z0-9@.]{8,19}$/,
22
- URL: /^[0-9a-zA-Z_]{1,}$/,
23
- Domain: /^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/
24
- },
25
- getLanguage() {
26
- let e = localStorage.getItem("foUILanguage");
27
- return e ||= navigator.language, e != null && (e = "en|zh-CN".indexOf(e) > -1 ? e : "en"), localStorage.setItem("foUILanguage", e), e;
28
- },
29
- isEmpty(e) {
30
- return !(e != null && /[\S]/.test(e));
31
- },
32
- isNotEmpty(e) {
33
- return !this.isEmpty(e);
34
- }
35
- }, src_default = /* @__PURE__ */ ((e, p) => {
2
+ const isEmpty = (e) => e == null || e.trim().length === 0;
3
+ var src_default = /* @__PURE__ */ ((e, p) => {
36
4
  let m = e.__vccOpts || e;
37
5
  for (let [e, h] of p) m[e] = h;
38
6
  return m;
@@ -66,17 +34,21 @@ var utility_default = {
66
34
  errorTips: {
67
35
  type: Boolean,
68
36
  default: !0
37
+ },
38
+ round: {
39
+ type: Boolean,
40
+ default: !1
69
41
  }
70
42
  },
71
43
  setup(g) {
72
- let b = "", x = ref(!1), S = g, C = useAttrs();
44
+ let b = ref(""), x = ref(!1), S = g, C = useAttrs();
73
45
  return C = {
74
46
  ...C,
75
47
  ...S
76
- }, b = S.modelValue, x.value = utility_default.isEmpty(b), onMounted(() => {
77
- x.value = utility_default.isEmpty(S.modelValue);
48
+ }, b.value = S.modelValue, x.value = isEmpty(b.value), onMounted(() => {
49
+ x.value = isEmpty(S.modelValue);
78
50
  }), watch(() => S.modelValue, (e, p) => {
79
- x.value = utility_default.isEmpty(e), e !== p && (b = S.modelValue);
51
+ x.value = isEmpty(e), e !== p && (b.value = S.modelValue);
80
52
  }), (_, v) => {
81
53
  let y = resolveComponent("el-input");
82
54
  return openBlock(), createElementBlock("div", { class: normalizeClass(["el-input-material", `${g.borderless ? "borderless" : ""}${g.errorTips ? "" : " no-tips"}`]) }, [g.borderless ? createCommentVNode("v-if", !0) : (openBlock(), createElementBlock("label", {
@@ -85,6 +57,7 @@ var utility_default = {
85
57
  }, toDisplayString(g.label), 3)), createVNode(y, mergeProps(unref(C), {
86
58
  modelValue: unref(b),
87
59
  "onUpdate:modelValue": v[0] ||= (e) => isRef(b) ? b.value = e : b = e,
60
+ class: g.round ? "is-round" : "",
88
61
  placeholder: g.shrink ? g.placeholder || "" : g.label
89
62
  }), createSlots({ _: 2 }, [
90
63
  useSlots().append ? {
@@ -98,7 +71,7 @@ var utility_default = {
98
71
  key: "1"
99
72
  } : void 0,
100
73
  useSlots().default ? {
101
- name: "prepend",
74
+ name: "default",
102
75
  fn: withCtx(() => [renderSlot(_.$slots, "default", {}, void 0, !0)]),
103
76
  key: "2"
104
77
  } : void 0,
@@ -112,10 +85,14 @@ var utility_default = {
112
85
  fn: withCtx(() => [renderSlot(_.$slots, "suffix", {}, void 0, !0)]),
113
86
  key: "4"
114
87
  } : void 0
115
- ]), 1040, ["modelValue", "placeholder"])], 2);
88
+ ]), 1040, [
89
+ "modelValue",
90
+ "class",
91
+ "placeholder"
92
+ ])], 2);
116
93
  };
117
94
  }
118
- }), [["__scopeId", "data-v-8d32a589"]]), input_default = { install(e) {
95
+ }), [["__scopeId", "data-v-5df2784c"]]), input_default = { install(e) {
119
96
  e.component("OgaInput", src_default);
120
97
  } };
121
98
  export { input_default as default };
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){var t={expression:{Required:/[\S]/,Email:/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,Int:/(-)?(\d+)$/,IntPositive:/^\+?[0-9]\d*$/,IntZeroPositive:/^\+?[1-9]\d*$/,Float:/(-)?(\d+)(((\.)(\d)+))?/,FloatPositive:/^([0-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,FloatZeroPositive:/^([1-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,Chinese:/[\u4e00-\u9fa5]/,English:/[a-zA-Z]/,Mobile:/^[1]([3-9])[0-9]{9}$/,Password:/^[A-Za-z][A-Za-z0-9~!@#$%^&*]{5,19}$/,IdentityCard:/[\d]{6}(19|20)*[\d]{2}((0[1-9])|(11|12))([012][\d]|(30|31))[\d]{3}[xX\d]*/,EngAndNum:/[a-zA-Z0-9]*/,EngNumUnderline:/[a-zA-Z0-9_]*/,PhoneNumber:/(86)?(-)?(0\d{2,3})?(-)?(\d{7,8})(-)?(\d{1,5})?/,PostalCode:/\d{6}/,Account:/^[A-Za-z0-9@.]{8,19}$/,URL:/^[0-9a-zA-Z_]{1,}$/,Domain:/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/},getLanguage(){let e=localStorage.getItem(`foUILanguage`);return e||=navigator.language,e!=null&&(e=`en|zh-CN`.indexOf(e)>-1?e:`en`),localStorage.setItem(`foUILanguage`,e),e},isEmpty(e){return!(e!=null&&/[\S]/.test(e))},isNotEmpty(e){return!this.isEmpty(e)}},n=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,e.defineComponent)({__name:`index`,props:{modelValue:{type:String,default:``},placeholder:{type:String,default:``},size:{type:String,default:``},label:{type:String,default:``},borderless:{type:Boolean,default:!1},shrink:{type:Boolean,default:!0},errorTips:{type:Boolean,default:!0}},setup(n){let r=``,i=(0,e.ref)(!1),a=n,o=(0,e.useAttrs)();return o={...o,...a},r=a.modelValue,i.value=t.isEmpty(r),(0,e.onMounted)(()=>{i.value=t.isEmpty(a.modelValue)}),(0,e.watch)(()=>a.modelValue,(e,n)=>{i.value=t.isEmpty(e),e!==n&&(r=a.modelValue)}),(t,a)=>{let s=(0,e.resolveComponent)(`el-input`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`el-input-material`,`${n.borderless?`borderless`:``}${n.errorTips?``:` no-tips`}`])},[n.borderless?(0,e.createCommentVNode)(`v-if`,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`label`,{key:0,class:(0,e.normalizeClass)([`el-input-material-label`,n.shrink||i.value?`active`:``])},(0,e.toDisplayString)(n.label),3)),(0,e.createVNode)(s,(0,e.mergeProps)((0,e.unref)(o),{modelValue:(0,e.unref)(r),"onUpdate:modelValue":a[0]||=t=>(0,e.isRef)(r)?r.value=t:r=t,placeholder:n.shrink?n.placeholder||``:n.label}),(0,e.createSlots)({_:2},[(0,e.useSlots)().append?{name:`append`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`append`,{},void 0,!0)]),key:`0`}:void 0,(0,e.useSlots)().prepend?{name:`prepend`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`prepend`,{},void 0,!0)]),key:`1`}:void 0,(0,e.useSlots)().default?{name:`prepend`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`default`,{},void 0,!0)]),key:`2`}:void 0,(0,e.useSlots)().suffix?{name:`suffix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`suffix`,{},void 0,!0)]),key:`3`}:void 0,(0,e.useSlots)().suffix?{name:`suffix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`suffix`,{},void 0,!0)]),key:`4`}:void 0]),1040,[`modelValue`,`placeholder`])],2)}}}),[[`__scopeId`,`data-v-8d32a589`]]);return{install(e){e.component(`OgaInput`,n)}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){let t=e=>e==null||e.trim().length===0;var n=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,e.defineComponent)({__name:`index`,props:{modelValue:{type:String,default:``},placeholder:{type:String,default:``},size:{type:String,default:``},label:{type:String,default:``},borderless:{type:Boolean,default:!1},shrink:{type:Boolean,default:!0},errorTips:{type:Boolean,default:!0},round:{type:Boolean,default:!1}},setup(n){let r=(0,e.ref)(``),i=(0,e.ref)(!1),a=n,o=(0,e.useAttrs)();return o={...o,...a},r.value=a.modelValue,i.value=t(r.value),(0,e.onMounted)(()=>{i.value=t(a.modelValue)}),(0,e.watch)(()=>a.modelValue,(e,n)=>{i.value=t(e),e!==n&&(r.value=a.modelValue)}),(t,a)=>{let s=(0,e.resolveComponent)(`el-input`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`el-input-material`,`${n.borderless?`borderless`:``}${n.errorTips?``:` no-tips`}`])},[n.borderless?(0,e.createCommentVNode)(`v-if`,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`label`,{key:0,class:(0,e.normalizeClass)([`el-input-material-label`,n.shrink||i.value?`active`:``])},(0,e.toDisplayString)(n.label),3)),(0,e.createVNode)(s,(0,e.mergeProps)((0,e.unref)(o),{modelValue:(0,e.unref)(r),"onUpdate:modelValue":a[0]||=t=>(0,e.isRef)(r)?r.value=t:r=t,class:n.round?`is-round`:``,placeholder:n.shrink?n.placeholder||``:n.label}),(0,e.createSlots)({_:2},[(0,e.useSlots)().append?{name:`append`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`append`,{},void 0,!0)]),key:`0`}:void 0,(0,e.useSlots)().prepend?{name:`prepend`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`prepend`,{},void 0,!0)]),key:`1`}:void 0,(0,e.useSlots)().default?{name:`default`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`default`,{},void 0,!0)]),key:`2`}:void 0,(0,e.useSlots)().suffix?{name:`suffix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`suffix`,{},void 0,!0)]),key:`3`}:void 0,(0,e.useSlots)().suffix?{name:`suffix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`suffix`,{},void 0,!0)]),key:`4`}:void 0]),1040,[`modelValue`,`class`,`placeholder`])],2)}}}),[[`__scopeId`,`data-v-5df2784c`]]);return{install(e){e.component(`OgaInput`,n)}}});
package/layout/index.css CHANGED
@@ -1,2 +1,2 @@
1
- .el-input-material{clear:both;padding:.375rem 0;position:relative}.el-input-material .el-input.is-disabled .el-input__inner{background:0 0}.el-input-material .el-input-group__prepend,.el-input-material .el-input-group__append{padding:0 15px!important}.el-input-material .el-select,.el-input-material .el-cascader{width:100%}.el-input-material.borderless .el-input-number .el-input__inner{text-align:center}.el-input-material.borderless .el-input__inner{border-top:0;border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.el-input-material.borderless [class*=el-]{background-color:#0000;border-top:0;border-left:0;border-right:0;border-radius:0}.el-input-material.borderless .el-date-editor--date.el-input--prefix .el-input__inner{padding-left:1.875rem}.el-input-material-label{color:#c0c4cc;z-index:2;background-color:#fff;border-radius:5px;padding-left:2px;padding-right:2px;font-size:.75rem;line-height:.75rem;transition:all .2s;position:absolute;top:0;left:1rem;opacity:1!important}.el-input-material-label:not(.active){opacity:0}.el-input-material+.el-form-item__error{padding-top:0}.el-form-item:focus .el-input-material-label.active{color:#f56c6c}.oga-form.gutter-less .el-form-item:not(:last-child){margin-bottom:.625rem}.oga-form.gutter-less .el-form-item:last-child,.oga-form.borderless .el-form-item{margin-bottom:0}.oga-form .el-form-item__content{line-height:normal;display:block}.oga-form .el-input-material+.el-form-item__error{margin-top:-.25rem}.oga-header{z-index:2;color:#46a0fc;box-shadow:none;background:0 0;justify-content:space-between;align-items:center;transition:all .3s;display:flex;position:relative}.oga-header:after{content:"";width:100%;height:1px;left:calc(var(--asideWidth) * 1px);border-bottom:1px solid #dee1e5;position:absolute;bottom:0}.oga-header-logo{height:60px;width:calc(var(--asideWidth) * 1px);align-items:center;padding:8px 15px;display:flex}.oga-header .logo{max-width:120px;max-height:40px}.oga-header-left{flex:1;align-items:center;height:60px;padding:8px 15px;display:flex}.oga-header-right{align-items:center;height:60px;padding:8px 15px;display:flex}@media (max-width:768px){.oga-header{margin-left:0;padding-left:60px}}.oga-header .global-header-info{align-items:center;display:flex}.oga-header .user-avatar{color:#909399;cursor:pointer;align-items:center;margin-left:6px;display:flex}.oga-header .user-avatar .el-avatar{margin-right:5px}.oga-header .user-avatar{text-transform:uppercase}.oga-header .ship-calculator{width:32px;height:32px;padding:7px!important}.oga-header .ship-calculator i{color:#7f7f7f;font-size:18px}.oga-header .el-breadcrumb__inner a,.oga-header .el-breadcrumb__inner.is-link{font-weight:400}.oga-layout{flex-direction:column;height:100%;margin-left:0;transition:all .3s;display:flex;position:relative;overflow:hidden}.oga-layout-footer{text-align:center;color:#909399;text-indent:200px;flex-shrink:0;padding-top:6px;font-size:10px}.oga-layout-mask{content:"";z-index:4;background-color:#000c;width:calc(100% - 200px);height:100%;position:absolute;top:0;left:200px}.oga-layout-mask:not(.active){display:none}@media (min-width:768px){.oga-layout-mask{display:none}}.oga-layout-fold{cursor:pointer;z-index:11;justify-content:center;align-items:center;width:60px;height:60px;font-size:24px;display:flex;position:absolute;top:0;right:-60px}.oga-layout-fold img{width:24px;height:24px}@media (min-width:768px){.oga-layout-fold{display:none}}.oga-layout-aside{z-index:1;height:100vh;width:calc(var(--asideWidth) * 1px);background-color:#fafafa;border-right:1px dotted #dee1e5;transition:all .3s;position:absolute;top:0;left:0}.oga-layout-aside-content{z-index:5;height:calc(100% - 60px);position:relative;top:60px}@media (max-width:768px){.oga-layout-aside{left:calc(var(--asideWidth) * -1px)}.oga-layout-aside .global-aside-mask{display:block}.oga-layout-aside.active{left:0}}
1
+ :root{--inner-color:#3779eb4d;--inner-shadow:0 0 10px 0 var(--inner-color) inset}.m-0{margin:0!important}.mt-0{margin-top:0!important}.mr-0{margin-right:0!important}.mb-0{margin-bottom:0!important}.ml-0{margin-left:0!important}.m-1{margin:.183024rem!important}.mt-1{margin-top:.183024rem!important}.mr-1{margin-right:.183024rem!important}.mb-1{margin-bottom:.183024rem!important}.ml-1{margin-left:.183024rem!important}.m-2{margin:.366047rem!important}.mt-2{margin-top:.366047rem!important}.mr-2{margin-right:.366047rem!important}.mb-2{margin-bottom:.366047rem!important}.ml-2{margin-left:.366047rem!important}.m-3{margin:.732094rem!important}.mt-3{margin-top:.732094rem!important}.mr-3{margin-right:.732094rem!important}.mb-3{margin-bottom:.732094rem!important}.ml-3{margin-left:.732094rem!important}.m-4{margin:1.09814rem!important}.mt-4{margin-top:1.09814rem!important}.mr-4{margin-right:1.09814rem!important}.mb-4{margin-bottom:1.09814rem!important}.ml-4{margin-left:1.09814rem!important}.m-5{margin:1.46419rem!important}.mt-5{margin-top:1.46419rem!important}.mr-5{margin-right:1.46419rem!important}.mb-5{margin-bottom:1.46419rem!important}.ml-5{margin-left:1.46419rem!important}.m-6{margin:1.83024rem!important}.mt-6{margin-top:1.83024rem!important}.mr-6{margin-right:1.83024rem!important}.mb-6{margin-bottom:1.83024rem!important}.ml-6{margin-left:1.83024rem!important}.m-7{margin:2.19628rem!important}.mt-7{margin-top:2.19628rem!important}.mr-7{margin-right:2.19628rem!important}.mb-7{margin-bottom:2.19628rem!important}.ml-7{margin-left:2.19628rem!important}.p-0{padding:0!important}.pt-0{padding-top:0!important}.pr-0{padding-right:0!important}.pb-0{padding-bottom:0!important}.pl-0{padding-left:0!important}.p-1{padding:.183024rem!important}.pt-1{padding-top:.183024rem!important}.pr-1{padding-right:.183024rem!important}.pb-1{padding-bottom:.183024rem!important}.pl-1{padding-left:.183024rem!important}.p-2{padding:.366047rem!important}.pt-2{padding-top:.366047rem!important}.pr-2{padding-right:.366047rem!important}.pb-2{padding-bottom:.366047rem!important}.pl-2{padding-left:.366047rem!important}.p-3{padding:.732094rem!important}.pt-3{padding-top:.732094rem!important}.pr-3{padding-right:.732094rem!important}.pb-3{padding-bottom:.732094rem!important}.pl-3{padding-left:.732094rem!important}.p-4{padding:1.09814rem!important}.pt-4{padding-top:1.09814rem!important}.pr-4{padding-right:1.09814rem!important}.pb-4{padding-bottom:1.09814rem!important}.pl-4{padding-left:1.09814rem!important}.p-5{padding:1.46419rem!important}.pt-5{padding-top:1.46419rem!important}.pr-5{padding-right:1.46419rem!important}.pb-5{padding-bottom:1.46419rem!important}.pl-5{padding-left:1.46419rem!important}.p-6{padding:1.83024rem!important}.pt-6{padding-top:1.83024rem!important}.pr-6{padding-right:1.83024rem!important}.pb-6{padding-bottom:1.83024rem!important}.pl-6{padding-left:1.83024rem!important}.p-7{padding:2.19628rem!important}.pt-7{padding-top:2.19628rem!important}.pr-7{padding-right:2.19628rem!important}.pb-7{padding-bottom:2.19628rem!important}.pl-7{padding-left:2.19628rem!important}.el-input-material{clear:both;padding:.375rem 0;position:relative}.el-input-material .el-input.is-disabled .el-input__inner{background:0 0}.el-input-material .el-input.is-round .el-input__wrapper,.el-input-material .el-input-tag.is-round{border-radius:var(--el-border-radius-round)}.el-input-material .el-input-group__prepend,.el-input-material .el-input-group__append{padding:0 15px!important}.el-input-material .el-select,.el-input-material .el-cascader{width:100%}.el-input-material.borderless .el-input-number .el-input__inner{text-align:center}.el-input-material.borderless .el-input__inner{border-top:0;border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.el-input-material.borderless [class*=el-]{background-color:#0000;border-top:0;border-left:0;border-right:0;border-radius:0}.el-input-material.borderless .el-date-editor--date.el-input--prefix .el-input__inner{padding-left:1.875rem}.el-input-material-label{color:#c0c4cc;z-index:2;background-color:#fff;border-radius:5px;padding-left:2px;padding-right:2px;font-size:.75rem;line-height:.75rem;transition:all .2s;position:absolute;top:0;left:1rem;opacity:1!important}.el-input-material-label:not(.active){opacity:0}.el-input-material+.el-form-item__error{padding-top:0}.el-form-item:focus .el-input-material-label.active{color:#f56c6c}.oga-form.gutter-less .el-form-item:not(:last-child){margin-bottom:.625rem}.oga-form.gutter-less .el-form-item:last-child,.oga-form.borderless .el-form-item{margin-bottom:0}.oga-form .el-form-item__content{line-height:normal;display:block}.oga-form .el-input-material+.el-form-item__error{margin-top:-.25rem}.text-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.btn-block{width:100%;display:block}.oga-table{flex-direction:column;height:100%;display:flex}.oga-table-content{border:1px solid var(--el-table-border);flex:1;position:relative;overflow:auto}.oga-table .el-pagination{justify-content:flex-end;padding-top:1rem;display:flex;margin:0 -11px!important}.oga-table .el-card,.oga-table .el-table{height:100%}.oga-table .el-table__layers .cell{line-height:1.3}.oga-table-batch-operation{z-index:5;text-indent:.5rem;background-color:#ffffffb3;align-items:center;width:calc(100% - 55px);height:46px;transition:all .3s;display:flex;position:absolute;top:1px;left:55px}.oga-table-batch-operation .el-dropdown{height:100%}.oga-table-batch-operation .el-dropdown .el-dropdown-link div{cursor:pointer;background-color:#fff;align-items:center;height:100%;padding:5px 10px 5px 5px;display:flex}.oga-table-batch-operation .el-dropdown .el-dropdown-link b{color:#409eff}.oga-table .el-checkbox__input{line-height:0}.oga-table .el-table-column--selection{position:relative}.oga-table .el-table-column--selection .cell{width:100%;height:100%;position:absolute;top:0;left:0;padding:0!important}.oga-table .el-table-column--selection .cell .el-checkbox{cursor:pointer;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.oga-table .fox-svg-img{width:50px}.oga-table .fox-svg-icon{width:50px;height:50px}.oga-table .cell{white-space:nowrap;font-weight:400}.oga-table th.el-table__cell.is-sortable>.cell{justify-content:space-between;align-items:center;display:flex}.oga-table .el-image{width:100%;margin:0;padding:0;display:block;position:relative;overflow:hidden}.oga-table .el-image:before{content:"";padding-top:100%;display:block}.oga-table .el-image .el-image__inner{object-fit:cover;object-position:center;width:100%;height:100%;position:absolute;top:0;left:0}.oga-header{z-index:2;color:#46a0fc;margin-left:calc(var(--asideWidth) * 1px);box-shadow:none;background-color:#030b2c;justify-content:space-between;align-items:center;transition:all .3s;display:flex;position:relative}.oga-header .el-breadcrumb__inner,.oga-header .el-breadcrumb__item:last-child .el-breadcrumb__inner,.oga-header .el-breadcrumb__item:last-child .el-breadcrumb__inner a,.oga-header .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.oga-header .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{color:#fffc}.oga-header .el-breadcrumb__separator{color:#fff9}.oga-header-left{flex:1;align-items:center;height:3.75rem;padding:.5rem 1.875rem;display:flex}.oga-header-right{align-items:center;height:3.75rem;padding:.5rem 1.875rem;display:flex}@media (max-width:768px){.oga-header{margin-left:0}}.oga-header .global-header-info{align-items:center;display:flex}.oga-header .user-avatar{color:#909399;cursor:pointer;align-items:center;margin-left:6px;display:flex}.oga-header .user-avatar .el-avatar{margin-right:5px}.oga-header .user-avatar{text-transform:uppercase}.oga-header .ship-calculator{width:32px;height:32px;padding:7px!important}.oga-header .ship-calculator i{color:#7f7f7f;font-size:18px}.oga-header .el-breadcrumb__inner a,.oga-header .el-breadcrumb__inner.is-link{font-weight:400}.oga-layout{flex-direction:column;height:100%;margin-left:0;transition:all .3s;display:flex;position:relative;overflow:hidden}.oga-layout-footer{text-align:center;color:#909399;text-indent:200px;flex-shrink:0;padding-top:6px;font-size:10px}.oga-layout-mask{content:"";z-index:4;background-color:#000c;width:calc(100% - 200px);height:100%;position:absolute;top:0;left:200px}.oga-layout-mask:not(.active){display:none}@media (min-width:768px){.oga-layout-mask{display:none}}.oga-layout-fold{cursor:pointer;z-index:11;justify-content:center;align-items:center;width:60px;height:60px;font-size:24px;display:flex;position:absolute;top:0;right:-60px}.oga-layout-fold img{width:24px;height:24px}@media (min-width:768px){.oga-layout-fold{display:none}}.oga-layout-aside{z-index:1;height:100vh;width:calc(var(--asideWidth) * 1px);background-color:#fafafa;border-right:1px dotted #dee1e5;flex-direction:column;transition:all .3s;display:flex;position:absolute;top:0;left:0}.oga-layout-aside-logo{height:3.75rem;width:calc(var(--asideWidth) * 1px);background-color:#030b2c;align-items:center;padding:.5rem 1rem;display:flex}.oga-layout-aside-logo img{max-width:7.5rem;max-height:2.5rem}.oga-layout-aside-menu{background:0 0;border:0;padding-top:1rem}.oga-layout-aside-menu .oga-icon{margin-right:3px;font-size:20px}.oga-layout-aside-menu .el-menu{background:0 0}.oga-layout-aside-menu .el-menu-item.is-active{font-weight:700}.oga-layout-aside-menu .el-sub-menu .el-sub-menu__title{position:relative}.oga-layout-aside-menu .el-sub-menu .el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.oga-layout-aside-menu .el-sub-menu .el-menu-item{background:url(data:image/svg+xml,%3Csvg%20width%3D%2221%22%20height%3D%2228%22%20viewBox%3D%220%200%2021%2028%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%229%22%20width%3D%221.5%22%20height%3D%2228%22%20fill%3D%22%23CECECE%22%2F%3E%3C%2Fsvg%3E) 20px 0 repeat-y;height:1.875rem;line-height:1.875rem;position:relative;padding-left:3rem!important}.oga-layout-aside-menu .el-sub-menu .el-menu-item.is-active{background:url("data:image/svg+xml,%3Csvg%20width%3D'21'%20height%3D'28'%20viewBox%3D'0%200%2021%2028'%20fill%3D'none'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M19%2014.25H19.75V15.75H19V14.25ZM10.077%2013.362L10.7452%2013.0215V13.0215L10.077%2013.362ZM11.388%2014.673L11.7285%2014.0048H11.7285L11.388%2014.673ZM10.5%200V10.2H9V0H10.5ZM14.55%2014.25H19V15.75H14.55V14.25ZM10.5%2010.2C10.5%2011.0525%2010.5006%2011.6467%2010.5384%2012.1093C10.5755%2012.5632%2010.6446%2012.824%2010.7452%2013.0215L9.40873%2013.7025C9.18239%2013.2582%209.08803%2012.7781%209.04336%2012.2315C8.99942%2011.6936%209%2011.0277%209%2010.2H10.5ZM14.55%2015.75C13.7223%2015.75%2013.0564%2015.7506%2012.5185%2015.7066C11.9719%2015.662%2011.4918%2015.5676%2011.0475%2015.3413L11.7285%2014.0048C11.926%2014.1054%2012.1868%2014.1745%2012.6407%2014.2116C13.1033%2014.2494%2013.6975%2014.25%2014.55%2014.25V15.75ZM10.7452%2013.0215C10.9609%2013.4448%2011.3052%2013.7891%2011.7285%2014.0048L11.0475%2015.3413C10.3419%2014.9817%209.76825%2014.4081%209.40873%2013.7025L10.7452%2013.0215Z'%20fill%3D'%23CECECE'/%3E%3Cpath%20d%3D'M17%2012L20%2015L17%2018'%20stroke%3D'%23CECECE'%20stroke-width%3D'1.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'/%3E%3C/svg%3E%0A") 20px 0 no-repeat}.oga-layout-aside-menu .el-sub-menu .el-menu-item.is-active~.el-menu-item,.oga-layout-aside-menu .el-sub-menu:not(.is-active) .el-menu-item{background:0 0!important}.oga-layout-aside-menu .el-sub-menu__title,.oga-layout-aside-menu .el-menu-item{height:1.5rem;line-height:1.5rem}.oga-layout-aside-content{flex:1;position:relative;overflow-y:auto}.oga-layout-aside-footer{cursor:pointer;flex-shrink:0;align-items:center;padding:.5rem 1.25rem;font-size:.8125rem;display:flex}.oga-layout-aside-footer .oga-icon{vertical-align:center;margin-right:.25rem;font-size:1.25rem}@media (max-width:768px){.oga-layout-aside{left:calc(var(--asideWidth) * -1px)}.oga-layout-aside .global-aside-mask{display:block}.oga-layout-aside.active{left:0}}
2
2
  /*$vite$:1*/
@@ -1,38 +1,12 @@
1
1
  import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, resolveComponent, toDisplayString, unref, useSlots } from "vue";
2
- var utility_default = {
3
- expression: {
4
- Required: /[\S]/,
5
- Email: /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,
6
- Int: /(-)?(\d+)$/,
7
- IntPositive: /^\+?[0-9]\d*$/,
8
- IntZeroPositive: /^\+?[1-9]\d*$/,
9
- Float: /(-)?(\d+)(((\.)(\d)+))?/,
10
- FloatPositive: /^([0-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,
11
- FloatZeroPositive: /^([1-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,
12
- Chinese: /[\u4e00-\u9fa5]/,
13
- English: /[a-zA-Z]/,
14
- Mobile: /^[1]([3-9])[0-9]{9}$/,
15
- Password: /^[A-Za-z][A-Za-z0-9~!@#$%^&*]{5,19}$/,
16
- IdentityCard: /[\d]{6}(19|20)*[\d]{2}((0[1-9])|(11|12))([012][\d]|(30|31))[\d]{3}[xX\d]*/,
17
- EngAndNum: /[a-zA-Z0-9]*/,
18
- EngNumUnderline: /[a-zA-Z0-9_]*/,
19
- PhoneNumber: /(86)?(-)?(0\d{2,3})?(-)?(\d{7,8})(-)?(\d{1,5})?/,
20
- PostalCode: /\d{6}/,
21
- Account: /^[A-Za-z0-9@.]{8,19}$/,
22
- URL: /^[0-9a-zA-Z_]{1,}$/,
23
- Domain: /^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/
24
- },
25
- getLanguage() {
26
- let e = localStorage.getItem("foUILanguage");
27
- return e ||= navigator.language, e != null && (e = "en|zh-CN".indexOf(e) > -1 ? e : "en"), localStorage.setItem("foUILanguage", e), e;
28
- },
29
- isEmpty(e) {
30
- return !(e != null && /[\S]/.test(e));
31
- },
32
- isNotEmpty(e) {
33
- return !this.isEmpty(e);
34
- }
35
- }, _hoisted_1 = { class: "oga-layout" }, _hoisted_2 = { class: "oga-layout-aside-content" }, src_default = /* @__PURE__ */ defineComponent({
2
+ const isEmpty = (e) => e == null || e.trim().length === 0;
3
+ var _hoisted_1 = { class: "oga-layout" }, _hoisted_2 = {
4
+ key: 0,
5
+ class: "oga-layout-aside-header"
6
+ }, _hoisted_3 = { class: "oga-layout-aside-content" }, _hoisted_4 = {
7
+ key: 1,
8
+ class: "oga-layout-aside-footer"
9
+ }, src_default = /* @__PURE__ */ defineComponent({
36
10
  __name: "index",
37
11
  props: {
38
12
  isRouterView: {
@@ -71,41 +45,55 @@ var utility_default = {
71
45
  type: String,
72
46
  default: () => ""
73
47
  },
48
+ headerColor: {
49
+ type: String,
50
+ default: () => "#030b2c"
51
+ },
74
52
  footerIndent: {
75
53
  type: Number,
76
54
  default: () => 200
77
55
  }
78
56
  },
79
- setup(p) {
80
- let _ = ref((/* @__PURE__ */ new Date()).getFullYear()), v = ref({}), y = ref(""), b = ref(""), x = ref(""), S = ref(""), C = ref({}), w = useSlots(), T = ref(!1), E = p, D = {};
81
- return E.asideTop > 0 && (D.top = `${E.asideTop}px`), (E.asideBottom > 0 || E.asideTop > 0) && (D.height = `calc(100% - ${E.asideTop + E.asideBottom}px)`), v.value = {
82
- "--asideWidth": E.asideWidth,
83
- ...D
84
- }, C.value = { "--asideWidth": E.asideWidth }, y.value = utility_default.isEmpty(E.maskBackground) ? "" : `background-color: ${E.maskBackground}`, b.value = E.foldIconHeight !== 60 && E.foldIconHeight > 0 ? `width: ${E.foldIconHeight}px;height:${E.foldIconHeight}px` : "", x.value = E.foldIconHeight !== 60 && E.foldIconHeight > 0 ? `font-size: ${E.foldIconHeight / 2}px` : "", S.value = E.footerIndent > 0 && E.footerIndent !== 200 ? `text-indent:${E.footerIndent}px` : "", (m, h) => {
85
- let g = resolveComponent("router-view");
57
+ emits: ["aside"],
58
+ setup(h, { emit: y }) {
59
+ let b = ref((/* @__PURE__ */ new Date()).getFullYear()), x = ref({}), S = ref(""), C = ref(""), w = ref(""), T = ref(""), E = ref({}), D = useSlots(), O = ref(!1), k = h, A = {};
60
+ k.asideTop > 0 && (A.top = `${k.asideTop}px`), (k.asideBottom > 0 || k.asideTop > 0) && (A.height = `calc(100% - ${k.asideTop + k.asideBottom}px)`), x.value = {
61
+ "--asideWidth": k.asideWidth,
62
+ ...A
63
+ }, E.value = { "--asideWidth": k.asideWidth }, S.value = isEmpty(k.maskBackground) ? "" : `background-color: ${k.maskBackground}`, C.value = k.foldIconHeight !== 60 && k.foldIconHeight > 0 ? `width: ${k.foldIconHeight}px;height:${k.foldIconHeight}px` : "", w.value = k.foldIconHeight !== 60 && k.foldIconHeight > 0 ? `font-size: ${k.foldIconHeight / 2}px` : "", T.value = k.footerIndent > 0 && k.footerIndent !== 200 ? `text-indent:${k.footerIndent}px` : "";
64
+ let j = y, M = () => {
65
+ j("aside");
66
+ };
67
+ return (g, _) => {
68
+ let v = resolveComponent("router-view");
86
69
  return openBlock(), createElementBlock("section", _hoisted_1, [
87
- unref(w).aside ? (openBlock(), createElementBlock("div", {
70
+ unref(D).aside ? (openBlock(), createElementBlock("div", {
88
71
  key: 0,
89
- style: normalizeStyle(unref(v)),
90
- class: normalizeClass(["oga-layout-aside", `${T.value ? "active " : ""}${p.asideCss}`])
91
- }, [createElementVNode("div", _hoisted_2, [renderSlot(m.$slots, "aside")])], 6)) : createCommentVNode("v-if", !0),
92
- m.$slots.header ? (openBlock(), createElementBlock("div", {
72
+ style: normalizeStyle(unref(x)),
73
+ class: normalizeClass(["oga-layout-aside", `${O.value ? "active " : ""}${h.asideCss}${g.$slots.asideFooter ? " has-footer" : ""}`]),
74
+ onClick: M
75
+ }, [
76
+ g.$slots.asideHeader ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(g.$slots, "asideHeader")])) : createCommentVNode("v-if", !0),
77
+ createElementVNode("div", _hoisted_3, [renderSlot(g.$slots, "aside")]),
78
+ g.$slots.asideFooter ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(g.$slots, "asideFooter")])) : createCommentVNode("v-if", !0)
79
+ ], 6)) : createCommentVNode("v-if", !0),
80
+ g.$slots.header ? (openBlock(), createElementBlock("div", {
93
81
  key: 1,
94
82
  class: "oga-header",
95
- style: normalizeStyle(unref(C))
96
- }, [renderSlot(m.$slots, "header")], 4)) : createCommentVNode("v-if", !0),
97
- p.isRouterView ? (openBlock(), createBlock(g, { key: 2 })) : createCommentVNode("v-if", !0),
98
- renderSlot(m.$slots, "default"),
99
- m.$slots.footer ? renderSlot(m.$slots, "footer", { key: 3 }) : createCommentVNode("v-if", !0),
100
- p.copyright ? (openBlock(), createElementBlock("footer", {
83
+ style: normalizeStyle(unref(E))
84
+ }, [renderSlot(g.$slots, "header")], 4)) : createCommentVNode("v-if", !0),
85
+ h.isRouterView ? (openBlock(), createBlock(v, { key: 2 })) : createCommentVNode("v-if", !0),
86
+ renderSlot(g.$slots, "default"),
87
+ g.$slots.footer ? renderSlot(g.$slots, "footer", { key: 3 }) : createCommentVNode("v-if", !0),
88
+ h.copyright ? (openBlock(), createElementBlock("footer", {
101
89
  key: 4,
102
90
  class: "oga-layout-footer",
103
- style: normalizeStyle(unref(S))
104
- }, "© " + toDisplayString(_.value) + " " + toDisplayString(p.copyright), 5)) : createCommentVNode("v-if", !0),
91
+ style: normalizeStyle(unref(T))
92
+ }, "© " + toDisplayString(b.value) + " " + toDisplayString(h.copyright), 5)) : createCommentVNode("v-if", !0),
105
93
  createElementVNode("div", {
106
- class: normalizeClass(["oga-layout-mask", T.value ? "active" : ""]),
107
- style: normalizeStyle(`width: calc(100% - ${unref(C)}px);${unref(y)}`),
108
- onClick: h[0] ||= (e) => T.value = !1
94
+ class: normalizeClass(["oga-layout-mask", O.value ? "active" : ""]),
95
+ style: normalizeStyle(`width: calc(100% - ${unref(E)}px);${unref(S)}`),
96
+ onClick: _[0] ||= (e) => O.value = !1
109
97
  }, null, 6)
110
98
  ]);
111
99
  };
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){var t={expression:{Required:/[\S]/,Email:/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,Int:/(-)?(\d+)$/,IntPositive:/^\+?[0-9]\d*$/,IntZeroPositive:/^\+?[1-9]\d*$/,Float:/(-)?(\d+)(((\.)(\d)+))?/,FloatPositive:/^([0-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,FloatZeroPositive:/^([1-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,Chinese:/[\u4e00-\u9fa5]/,English:/[a-zA-Z]/,Mobile:/^[1]([3-9])[0-9]{9}$/,Password:/^[A-Za-z][A-Za-z0-9~!@#$%^&*]{5,19}$/,IdentityCard:/[\d]{6}(19|20)*[\d]{2}((0[1-9])|(11|12))([012][\d]|(30|31))[\d]{3}[xX\d]*/,EngAndNum:/[a-zA-Z0-9]*/,EngNumUnderline:/[a-zA-Z0-9_]*/,PhoneNumber:/(86)?(-)?(0\d{2,3})?(-)?(\d{7,8})(-)?(\d{1,5})?/,PostalCode:/\d{6}/,Account:/^[A-Za-z0-9@.]{8,19}$/,URL:/^[0-9a-zA-Z_]{1,}$/,Domain:/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/},getLanguage(){let e=localStorage.getItem(`foUILanguage`);return e||=navigator.language,e!=null&&(e=`en|zh-CN`.indexOf(e)>-1?e:`en`),localStorage.setItem(`foUILanguage`,e),e},isEmpty(e){return!(e!=null&&/[\S]/.test(e))},isNotEmpty(e){return!this.isEmpty(e)}},n={class:`oga-layout`},r={class:`oga-layout-aside-content`},i=(0,e.defineComponent)({__name:`index`,props:{isRouterView:{type:Boolean,default:()=>!0},copyright:{type:String,default:()=>``},asideCss:{type:String,default:()=>``},asideTop:{type:Number,default:()=>0},asideBottom:{type:Number,default:()=>0},asideWidth:{type:Number,default:()=>200},foldIcon:{type:String,default:()=>`el-icon-s-fold`},foldIconHeight:{type:Number,default:()=>60},maskBackground:{type:String,default:()=>``},footerIndent:{type:Number,default:()=>200}},setup(i){let a=(0,e.ref)(new Date().getFullYear()),o=(0,e.ref)({}),s=(0,e.ref)(``),c=(0,e.ref)(``),l=(0,e.ref)(``),u=(0,e.ref)(``),d=(0,e.ref)({}),f=(0,e.useSlots)(),p=(0,e.ref)(!1),m=i,h={};return m.asideTop>0&&(h.top=`${m.asideTop}px`),(m.asideBottom>0||m.asideTop>0)&&(h.height=`calc(100% - ${m.asideTop+m.asideBottom}px)`),o.value={"--asideWidth":m.asideWidth,...h},d.value={"--asideWidth":m.asideWidth},s.value=t.isEmpty(m.maskBackground)?``:`background-color: ${m.maskBackground}`,c.value=m.foldIconHeight!==60&&m.foldIconHeight>0?`width: ${m.foldIconHeight}px;height:${m.foldIconHeight}px`:``,l.value=m.foldIconHeight!==60&&m.foldIconHeight>0?`font-size: ${m.foldIconHeight/2}px`:``,u.value=m.footerIndent>0&&m.footerIndent!==200?`text-indent:${m.footerIndent}px`:``,(t,c)=>{let l=(0,e.resolveComponent)(`router-view`);return(0,e.openBlock)(),(0,e.createElementBlock)(`section`,n,[(0,e.unref)(f).aside?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,style:(0,e.normalizeStyle)((0,e.unref)(o)),class:(0,e.normalizeClass)([`oga-layout-aside`,`${p.value?`active `:``}${i.asideCss}`])},[(0,e.createElementVNode)(`div`,r,[(0,e.renderSlot)(t.$slots,`aside`)])],6)):(0,e.createCommentVNode)(`v-if`,!0),t.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:`oga-header`,style:(0,e.normalizeStyle)((0,e.unref)(d))},[(0,e.renderSlot)(t.$slots,`header`)],4)):(0,e.createCommentVNode)(`v-if`,!0),i.isRouterView?((0,e.openBlock)(),(0,e.createBlock)(l,{key:2})):(0,e.createCommentVNode)(`v-if`,!0),(0,e.renderSlot)(t.$slots,`default`),t.$slots.footer?(0,e.renderSlot)(t.$slots,`footer`,{key:3}):(0,e.createCommentVNode)(`v-if`,!0),i.copyright?((0,e.openBlock)(),(0,e.createElementBlock)(`footer`,{key:4,class:`oga-layout-footer`,style:(0,e.normalizeStyle)((0,e.unref)(u))},`© `+(0,e.toDisplayString)(a.value)+` `+(0,e.toDisplayString)(i.copyright),5)):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([`oga-layout-mask`,p.value?`active`:``]),style:(0,e.normalizeStyle)(`width: calc(100% - ${(0,e.unref)(d)}px);${(0,e.unref)(s)}`),onClick:c[0]||=e=>p.value=!1},null,6)])}}});return{install(e){e.component(`OgaLayout`,i)}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){let t=e=>e==null||e.trim().length===0;var n={class:`oga-layout`},r={key:0,class:`oga-layout-aside-header`},i={class:`oga-layout-aside-content`},a={key:1,class:`oga-layout-aside-footer`},o=(0,e.defineComponent)({__name:`index`,props:{isRouterView:{type:Boolean,default:()=>!0},copyright:{type:String,default:()=>``},asideCss:{type:String,default:()=>``},asideTop:{type:Number,default:()=>0},asideBottom:{type:Number,default:()=>0},asideWidth:{type:Number,default:()=>200},foldIcon:{type:String,default:()=>`el-icon-s-fold`},foldIconHeight:{type:Number,default:()=>60},maskBackground:{type:String,default:()=>``},headerColor:{type:String,default:()=>`#030b2c`},footerIndent:{type:Number,default:()=>200}},emits:[`aside`],setup(o,{emit:s}){let c=(0,e.ref)(new Date().getFullYear()),l=(0,e.ref)({}),u=(0,e.ref)(``),d=(0,e.ref)(``),f=(0,e.ref)(``),p=(0,e.ref)(``),m=(0,e.ref)({}),h=(0,e.useSlots)(),g=(0,e.ref)(!1),_=o,v={};_.asideTop>0&&(v.top=`${_.asideTop}px`),(_.asideBottom>0||_.asideTop>0)&&(v.height=`calc(100% - ${_.asideTop+_.asideBottom}px)`),l.value={"--asideWidth":_.asideWidth,...v},m.value={"--asideWidth":_.asideWidth},u.value=t(_.maskBackground)?``:`background-color: ${_.maskBackground}`,d.value=_.foldIconHeight!==60&&_.foldIconHeight>0?`width: ${_.foldIconHeight}px;height:${_.foldIconHeight}px`:``,f.value=_.foldIconHeight!==60&&_.foldIconHeight>0?`font-size: ${_.foldIconHeight/2}px`:``,p.value=_.footerIndent>0&&_.footerIndent!==200?`text-indent:${_.footerIndent}px`:``;let y=s,b=()=>{y(`aside`)};return(t,s)=>{let d=(0,e.resolveComponent)(`router-view`);return(0,e.openBlock)(),(0,e.createElementBlock)(`section`,n,[(0,e.unref)(h).aside?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,style:(0,e.normalizeStyle)((0,e.unref)(l)),class:(0,e.normalizeClass)([`oga-layout-aside`,`${g.value?`active `:``}${o.asideCss}${t.$slots.asideFooter?` has-footer`:``}`]),onClick:b},[t.$slots.asideHeader?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,r,[(0,e.renderSlot)(t.$slots,`asideHeader`)])):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createElementVNode)(`div`,i,[(0,e.renderSlot)(t.$slots,`aside`)]),t.$slots.asideFooter?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,a,[(0,e.renderSlot)(t.$slots,`asideFooter`)])):(0,e.createCommentVNode)(`v-if`,!0)],6)):(0,e.createCommentVNode)(`v-if`,!0),t.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:`oga-header`,style:(0,e.normalizeStyle)((0,e.unref)(m))},[(0,e.renderSlot)(t.$slots,`header`)],4)):(0,e.createCommentVNode)(`v-if`,!0),o.isRouterView?((0,e.openBlock)(),(0,e.createBlock)(d,{key:2})):(0,e.createCommentVNode)(`v-if`,!0),(0,e.renderSlot)(t.$slots,`default`),t.$slots.footer?(0,e.renderSlot)(t.$slots,`footer`,{key:3}):(0,e.createCommentVNode)(`v-if`,!0),o.copyright?((0,e.openBlock)(),(0,e.createElementBlock)(`footer`,{key:4,class:`oga-layout-footer`,style:(0,e.normalizeStyle)((0,e.unref)(p))},`© `+(0,e.toDisplayString)(c.value)+` `+(0,e.toDisplayString)(o.copyright),5)):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([`oga-layout-mask`,g.value?`active`:``]),style:(0,e.normalizeStyle)(`width: calc(100% - ${(0,e.unref)(m)}px);${(0,e.unref)(u)}`),onClick:s[0]||=e=>g.value=!1},null,6)])}}});return{install(e){e.component(`OgaLayout`,o)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oga-ui",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "A Component Library for Vue3",
5
5
  "author": {
6
6
  "name": "Joe",
package/page/index.css CHANGED
@@ -1,2 +1,2 @@
1
- .el-input-material{clear:both;padding:.375rem 0;position:relative}.el-input-material .el-input.is-disabled .el-input__inner{background:0 0}.el-input-material .el-input-group__prepend,.el-input-material .el-input-group__append{padding:0 15px!important}.el-input-material .el-select,.el-input-material .el-cascader{width:100%}.el-input-material.borderless .el-input-number .el-input__inner{text-align:center}.el-input-material.borderless .el-input__inner{border-top:0;border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.el-input-material.borderless [class*=el-]{background-color:#0000;border-top:0;border-left:0;border-right:0;border-radius:0}.el-input-material.borderless .el-date-editor--date.el-input--prefix .el-input__inner{padding-left:1.875rem}.el-input-material-label{color:#c0c4cc;z-index:2;background-color:#fff;border-radius:5px;padding-left:2px;padding-right:2px;font-size:.75rem;line-height:.75rem;transition:all .2s;position:absolute;top:0;left:1rem;opacity:1!important}.el-input-material-label:not(.active){opacity:0}.el-input-material+.el-form-item__error{padding-top:0}.el-form-item:focus .el-input-material-label.active{color:#f56c6c}.oga-form.gutter-less .el-form-item:not(:last-child){margin-bottom:.625rem}.oga-form.gutter-less .el-form-item:last-child,.oga-form.borderless .el-form-item{margin-bottom:0}.oga-form .el-form-item__content{line-height:normal;display:block}.oga-form .el-input-material+.el-form-item__error{margin-top:-.25rem}.oga-layout-main{flex-direction:column;flex:1;width:100%;height:100%;margin:0;display:flex;overflow:hidden}@media (min-width:1024px){.oga-layout-main{margin-left:calc(var(--offset) * 1px);width:calc(100% - var(--offset) * 1px)}}.oga-page{flex-direction:column;flex:1;width:100%;height:100%;margin:0;display:flex;overflow:hidden}.oga-page-header{padding-bottom:1rem}.oga-page-footer{padding-top:1rem}.oga-page-content{flex:1;overflow:hidden auto}.oga-page-content.has-padding{padding:1.875rem}
1
+ :root{--inner-color:#3779eb4d;--inner-shadow:0 0 10px 0 var(--inner-color) inset}.m-0{margin:0!important}.mt-0{margin-top:0!important}.mr-0{margin-right:0!important}.mb-0{margin-bottom:0!important}.ml-0{margin-left:0!important}.m-1{margin:.183024rem!important}.mt-1{margin-top:.183024rem!important}.mr-1{margin-right:.183024rem!important}.mb-1{margin-bottom:.183024rem!important}.ml-1{margin-left:.183024rem!important}.m-2{margin:.366047rem!important}.mt-2{margin-top:.366047rem!important}.mr-2{margin-right:.366047rem!important}.mb-2{margin-bottom:.366047rem!important}.ml-2{margin-left:.366047rem!important}.m-3{margin:.732094rem!important}.mt-3{margin-top:.732094rem!important}.mr-3{margin-right:.732094rem!important}.mb-3{margin-bottom:.732094rem!important}.ml-3{margin-left:.732094rem!important}.m-4{margin:1.09814rem!important}.mt-4{margin-top:1.09814rem!important}.mr-4{margin-right:1.09814rem!important}.mb-4{margin-bottom:1.09814rem!important}.ml-4{margin-left:1.09814rem!important}.m-5{margin:1.46419rem!important}.mt-5{margin-top:1.46419rem!important}.mr-5{margin-right:1.46419rem!important}.mb-5{margin-bottom:1.46419rem!important}.ml-5{margin-left:1.46419rem!important}.m-6{margin:1.83024rem!important}.mt-6{margin-top:1.83024rem!important}.mr-6{margin-right:1.83024rem!important}.mb-6{margin-bottom:1.83024rem!important}.ml-6{margin-left:1.83024rem!important}.m-7{margin:2.19628rem!important}.mt-7{margin-top:2.19628rem!important}.mr-7{margin-right:2.19628rem!important}.mb-7{margin-bottom:2.19628rem!important}.ml-7{margin-left:2.19628rem!important}.p-0{padding:0!important}.pt-0{padding-top:0!important}.pr-0{padding-right:0!important}.pb-0{padding-bottom:0!important}.pl-0{padding-left:0!important}.p-1{padding:.183024rem!important}.pt-1{padding-top:.183024rem!important}.pr-1{padding-right:.183024rem!important}.pb-1{padding-bottom:.183024rem!important}.pl-1{padding-left:.183024rem!important}.p-2{padding:.366047rem!important}.pt-2{padding-top:.366047rem!important}.pr-2{padding-right:.366047rem!important}.pb-2{padding-bottom:.366047rem!important}.pl-2{padding-left:.366047rem!important}.p-3{padding:.732094rem!important}.pt-3{padding-top:.732094rem!important}.pr-3{padding-right:.732094rem!important}.pb-3{padding-bottom:.732094rem!important}.pl-3{padding-left:.732094rem!important}.p-4{padding:1.09814rem!important}.pt-4{padding-top:1.09814rem!important}.pr-4{padding-right:1.09814rem!important}.pb-4{padding-bottom:1.09814rem!important}.pl-4{padding-left:1.09814rem!important}.p-5{padding:1.46419rem!important}.pt-5{padding-top:1.46419rem!important}.pr-5{padding-right:1.46419rem!important}.pb-5{padding-bottom:1.46419rem!important}.pl-5{padding-left:1.46419rem!important}.p-6{padding:1.83024rem!important}.pt-6{padding-top:1.83024rem!important}.pr-6{padding-right:1.83024rem!important}.pb-6{padding-bottom:1.83024rem!important}.pl-6{padding-left:1.83024rem!important}.p-7{padding:2.19628rem!important}.pt-7{padding-top:2.19628rem!important}.pr-7{padding-right:2.19628rem!important}.pb-7{padding-bottom:2.19628rem!important}.pl-7{padding-left:2.19628rem!important}.el-input-material{clear:both;padding:.375rem 0;position:relative}.el-input-material .el-input.is-disabled .el-input__inner{background:0 0}.el-input-material .el-input.is-round .el-input__wrapper,.el-input-material .el-input-tag.is-round{border-radius:var(--el-border-radius-round)}.el-input-material .el-input-group__prepend,.el-input-material .el-input-group__append{padding:0 15px!important}.el-input-material .el-select,.el-input-material .el-cascader{width:100%}.el-input-material.borderless .el-input-number .el-input__inner{text-align:center}.el-input-material.borderless .el-input__inner{border-top:0;border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.el-input-material.borderless [class*=el-]{background-color:#0000;border-top:0;border-left:0;border-right:0;border-radius:0}.el-input-material.borderless .el-date-editor--date.el-input--prefix .el-input__inner{padding-left:1.875rem}.el-input-material-label{color:#c0c4cc;z-index:2;background-color:#fff;border-radius:5px;padding-left:2px;padding-right:2px;font-size:.75rem;line-height:.75rem;transition:all .2s;position:absolute;top:0;left:1rem;opacity:1!important}.el-input-material-label:not(.active){opacity:0}.el-input-material+.el-form-item__error{padding-top:0}.el-form-item:focus .el-input-material-label.active{color:#f56c6c}.oga-form.gutter-less .el-form-item:not(:last-child){margin-bottom:.625rem}.oga-form.gutter-less .el-form-item:last-child,.oga-form.borderless .el-form-item{margin-bottom:0}.oga-form .el-form-item__content{line-height:normal;display:block}.oga-form .el-input-material+.el-form-item__error{margin-top:-.25rem}.text-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.btn-block{width:100%;display:block}.oga-table{flex-direction:column;height:100%;display:flex}.oga-table-content{border:1px solid var(--el-table-border);flex:1;position:relative;overflow:auto}.oga-table .el-pagination{justify-content:flex-end;padding-top:1rem;display:flex;margin:0 -11px!important}.oga-table .el-card,.oga-table .el-table{height:100%}.oga-table .el-table__layers .cell{line-height:1.3}.oga-table-batch-operation{z-index:5;text-indent:.5rem;background-color:#ffffffb3;align-items:center;width:calc(100% - 55px);height:46px;transition:all .3s;display:flex;position:absolute;top:1px;left:55px}.oga-table-batch-operation .el-dropdown{height:100%}.oga-table-batch-operation .el-dropdown .el-dropdown-link div{cursor:pointer;background-color:#fff;align-items:center;height:100%;padding:5px 10px 5px 5px;display:flex}.oga-table-batch-operation .el-dropdown .el-dropdown-link b{color:#409eff}.oga-table .el-checkbox__input{line-height:0}.oga-table .el-table-column--selection{position:relative}.oga-table .el-table-column--selection .cell{width:100%;height:100%;position:absolute;top:0;left:0;padding:0!important}.oga-table .el-table-column--selection .cell .el-checkbox{cursor:pointer;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.oga-table .fox-svg-img{width:50px}.oga-table .fox-svg-icon{width:50px;height:50px}.oga-table .cell{white-space:nowrap;font-weight:400}.oga-table th.el-table__cell.is-sortable>.cell{justify-content:space-between;align-items:center;display:flex}.oga-table .el-image{width:100%;margin:0;padding:0;display:block;position:relative;overflow:hidden}.oga-table .el-image:before{content:"";padding-top:100%;display:block}.oga-table .el-image .el-image__inner{object-fit:cover;object-position:center;width:100%;height:100%;position:absolute;top:0;left:0}.oga-layout-main{flex-direction:column;flex:1;width:100%;height:100%;margin:0;display:flex;overflow:hidden}@media (min-width:1024px){.oga-layout-main{margin-left:calc(var(--offset) * 1px);width:calc(100% - var(--offset) * 1px)}}.oga-page{flex-direction:column;flex:1;width:100%;height:100%;margin:0;display:flex;overflow:hidden}.oga-page-header{padding-top:1.5rem;padding-bottom:.875rem}.oga-page-header.has-padding{padding-left:1.875rem;padding-right:1.875rem}.oga-page-header+.oga-page .oga-page-content.has-padding{padding-top:0}.oga-page-footer{padding-top:.75rem;padding-bottom:.75rem}.oga-page-footer.has-padding{padding-left:1.875rem;padding-right:1.875rem}.oga-page-content{flex:1;overflow:hidden auto}.oga-page-content.has-padding{padding:1.875rem}.oga-filter{justify-items:center;display:flex}.oga-filter .time-select{width:150px}.oga-filter .text-count{text-indent:15px;line-height:40px}.oga-filter-item .label{word-break:keep-all;margin-right:8px;font-size:14px;line-height:40px}.oga-filter-item .search-input{width:280px}.oga-filter-item+.oga-filter-item{margin-left:10px}.oga-filter-item .el-material-button{margin-top:.375rem}
2
2
  /*$vite$:1*/
package/page/index.es.ts CHANGED
@@ -1,20 +1,13 @@
1
1
  import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, unref } from "vue";
2
2
  var _hoisted_1 = {
3
- key: 0,
4
- class: "oga-page-header"
5
- }, _hoisted_2 = {
6
- key: 2,
7
3
  ref: "refLayoutPage",
8
4
  class: "oga-page"
9
- }, _hoisted_3 = {
10
- key: 3,
11
- class: "oga-page-footer"
12
5
  }, src_default = /* @__PURE__ */ defineComponent({
13
6
  __name: "index",
14
7
  props: {
15
8
  offset: {
16
9
  type: Number,
17
- default: () => 220
10
+ default: () => 240
18
11
  },
19
12
  contentWidth: {
20
13
  type: Number,
@@ -46,20 +39,21 @@ var _hoisted_1 = {
46
39
  default: () => 0
47
40
  }
48
41
  },
49
- setup(d) {
50
- let p = ref({}), m = d;
51
- return p.value = { "--offset": m.offset }, (f, h) => (openBlock(), createElementBlock("section", {
42
+ setup(l) {
43
+ let d = ref({}), f = l;
44
+ return d.value = { "--offset": f.offset }, (u, f) => (openBlock(), createElementBlock("main", {
52
45
  class: "oga-layout-main",
53
- style: normalizeStyle(unref(p))
46
+ style: normalizeStyle(unref(d))
54
47
  }, [
55
- f.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(f.$slots, "header")])) : createCommentVNode("v-if", !0),
56
- d.googleStyle ? (openBlock(), createElementBlock("section", {
48
+ u.$slots.header ? (openBlock(), createElementBlock("div", {
49
+ key: 0,
50
+ class: normalizeClass(["oga-page-header", l.padding ? "has-padding" : ""])
51
+ }, [renderSlot(u.$slots, "header")], 2)) : createCommentVNode("v-if", !0),
52
+ createElementVNode("section", _hoisted_1, [createElementVNode("section", { class: normalizeClass(["oga-page-content", l.padding ? "has-padding" : ""]) }, [renderSlot(u.$slots, "default")], 2)], 512),
53
+ u.$slots.footer ? (openBlock(), createElementBlock("div", {
57
54
  key: 1,
58
- ref: "refLayoutPage",
59
- class: normalizeClass(["oga-page oga-google-style", m.percentage > 0 ? `percent-${d.percentage}` : ""]),
60
- style: normalizeStyle(unref(p))
61
- }, [createElementVNode("section", { class: normalizeClass(["oga-page-content", d.padding ? "has-padding" : ""]) }, [renderSlot(f.$slots, "default")], 2)], 6)) : (openBlock(), createElementBlock("section", _hoisted_2, [createElementVNode("section", { class: normalizeClass(["oga-page-content", d.padding ? "has-padding" : ""]) }, [renderSlot(f.$slots, "default")], 2)], 512)),
62
- f.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(f.$slots, "footer")])) : createCommentVNode("v-if", !0)
55
+ class: normalizeClass(["oga-page-footer", l.padding ? "has-padding" : ""])
56
+ }, [renderSlot(u.$slots, "footer")], 2)) : createCommentVNode("v-if", !0)
63
57
  ], 4));
64
58
  }
65
59
  }), page_default = { install(e) {
package/page/index.umd.ts CHANGED
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){var t={key:0,class:`oga-page-header`},n={key:2,ref:`refLayoutPage`,class:`oga-page`},r={key:3,class:`oga-page-footer`},i=(0,e.defineComponent)({__name:`index`,props:{offset:{type:Number,default:()=>220},contentWidth:{type:Number,default:()=>90},fullscreen:{type:Boolean,default:()=>!1},loading:{type:Boolean,default:()=>!1},padding:{type:Boolean,default:()=>!0},loadingText:{type:String,default:()=>`i18n.t('pageAborted.loading')`},loadingBackgroundColor:String,googleStyle:{type:Boolean,default:()=>!1},percentage:{type:Number,default:()=>0}},setup(i){let a=(0,e.ref)({}),o=i;return a.value={"--offset":o.offset},(s,c)=>((0,e.openBlock)(),(0,e.createElementBlock)(`section`,{class:`oga-layout-main`,style:(0,e.normalizeStyle)((0,e.unref)(a))},[s.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,t,[(0,e.renderSlot)(s.$slots,`header`)])):(0,e.createCommentVNode)(`v-if`,!0),i.googleStyle?((0,e.openBlock)(),(0,e.createElementBlock)(`section`,{key:1,ref:`refLayoutPage`,class:(0,e.normalizeClass)([`oga-page oga-google-style`,o.percentage>0?`percent-${i.percentage}`:``]),style:(0,e.normalizeStyle)((0,e.unref)(a))},[(0,e.createElementVNode)(`section`,{class:(0,e.normalizeClass)([`oga-page-content`,i.padding?`has-padding`:``])},[(0,e.renderSlot)(s.$slots,`default`)],2)],6)):((0,e.openBlock)(),(0,e.createElementBlock)(`section`,n,[(0,e.createElementVNode)(`section`,{class:(0,e.normalizeClass)([`oga-page-content`,i.padding?`has-padding`:``])},[(0,e.renderSlot)(s.$slots,`default`)],2)],512)),s.$slots.footer?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,r,[(0,e.renderSlot)(s.$slots,`footer`)])):(0,e.createCommentVNode)(`v-if`,!0)],4))}});return{install(e){e.component(`OgaPage`,i)}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){var t={ref:`refLayoutPage`,class:`oga-page`},n=(0,e.defineComponent)({__name:`index`,props:{offset:{type:Number,default:()=>240},contentWidth:{type:Number,default:()=>90},fullscreen:{type:Boolean,default:()=>!1},loading:{type:Boolean,default:()=>!1},padding:{type:Boolean,default:()=>!0},loadingText:{type:String,default:()=>`i18n.t('pageAborted.loading')`},loadingBackgroundColor:String,googleStyle:{type:Boolean,default:()=>!1},percentage:{type:Number,default:()=>0}},setup(n){let r=(0,e.ref)({}),i=n;return r.value={"--offset":i.offset},(i,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`main`,{class:`oga-layout-main`,style:(0,e.normalizeStyle)((0,e.unref)(r))},[i.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)([`oga-page-header`,n.padding?`has-padding`:``])},[(0,e.renderSlot)(i.$slots,`header`)],2)):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createElementVNode)(`section`,t,[(0,e.createElementVNode)(`section`,{class:(0,e.normalizeClass)([`oga-page-content`,n.padding?`has-padding`:``])},[(0,e.renderSlot)(i.$slots,`default`)],2)],512),i.$slots.footer?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([`oga-page-footer`,n.padding?`has-padding`:``])},[(0,e.renderSlot)(i.$slots,`footer`)],2)):(0,e.createCommentVNode)(`v-if`,!0)],4))}});return{install(e){e.component(`OgaPage`,n)}}});
package/section/index.css CHANGED
@@ -1,2 +1,2 @@
1
- .el-input-material{clear:both;padding:.375rem 0;position:relative}.el-input-material .el-input.is-disabled .el-input__inner{background:0 0}.el-input-material .el-input-group__prepend,.el-input-material .el-input-group__append{padding:0 15px!important}.el-input-material .el-select,.el-input-material .el-cascader{width:100%}.el-input-material.borderless .el-input-number .el-input__inner{text-align:center}.el-input-material.borderless .el-input__inner{border-top:0;border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.el-input-material.borderless [class*=el-]{background-color:#0000;border-top:0;border-left:0;border-right:0;border-radius:0}.el-input-material.borderless .el-date-editor--date.el-input--prefix .el-input__inner{padding-left:1.875rem}.el-input-material-label{color:#c0c4cc;z-index:2;background-color:#fff;border-radius:5px;padding-left:2px;padding-right:2px;font-size:.75rem;line-height:.75rem;transition:all .2s;position:absolute;top:0;left:1rem;opacity:1!important}.el-input-material-label:not(.active){opacity:0}.el-input-material+.el-form-item__error{padding-top:0}.el-form-item:focus .el-input-material-label.active{color:#f56c6c}.oga-form.gutter-less .el-form-item:not(:last-child){margin-bottom:.625rem}.oga-form.gutter-less .el-form-item:last-child,.oga-form.borderless .el-form-item{margin-bottom:0}.oga-form .el-form-item__content{line-height:normal;display:block}.oga-form .el-input-material+.el-form-item__error{margin-top:-.25rem}.oga-section{border:1px solid #ebeef5;border-radius:7px;min-width:5rem;padding:1.25rem;transition:all .3s;position:relative}.oga-section:hover{box-shadow:0 2px 12px #0000001a}.oga-section.has-description{padding-top:6px}.oga-section-action{background:#fff;position:absolute;top:-.625rem;right:1.25rem;transform:translateY(-50%)}.oga-section-action .el-button--mini.el-button--text{margin-top:-6px}.oga-section:not(:last-child){margin-bottom:1.5rem}.oga-section legend{margin:0;font-size:1rem}.oga-section legend+.oga-section-description{margin-top:0}.oga-section-description{color:#909399;font-size:13px}.oga-section-description+div{margin-top:1rem}
1
+ :root{--inner-color:#3779eb4d;--inner-shadow:0 0 10px 0 var(--inner-color) inset}.m-0{margin:0!important}.mt-0{margin-top:0!important}.mr-0{margin-right:0!important}.mb-0{margin-bottom:0!important}.ml-0{margin-left:0!important}.m-1{margin:.183024rem!important}.mt-1{margin-top:.183024rem!important}.mr-1{margin-right:.183024rem!important}.mb-1{margin-bottom:.183024rem!important}.ml-1{margin-left:.183024rem!important}.m-2{margin:.366047rem!important}.mt-2{margin-top:.366047rem!important}.mr-2{margin-right:.366047rem!important}.mb-2{margin-bottom:.366047rem!important}.ml-2{margin-left:.366047rem!important}.m-3{margin:.732094rem!important}.mt-3{margin-top:.732094rem!important}.mr-3{margin-right:.732094rem!important}.mb-3{margin-bottom:.732094rem!important}.ml-3{margin-left:.732094rem!important}.m-4{margin:1.09814rem!important}.mt-4{margin-top:1.09814rem!important}.mr-4{margin-right:1.09814rem!important}.mb-4{margin-bottom:1.09814rem!important}.ml-4{margin-left:1.09814rem!important}.m-5{margin:1.46419rem!important}.mt-5{margin-top:1.46419rem!important}.mr-5{margin-right:1.46419rem!important}.mb-5{margin-bottom:1.46419rem!important}.ml-5{margin-left:1.46419rem!important}.m-6{margin:1.83024rem!important}.mt-6{margin-top:1.83024rem!important}.mr-6{margin-right:1.83024rem!important}.mb-6{margin-bottom:1.83024rem!important}.ml-6{margin-left:1.83024rem!important}.m-7{margin:2.19628rem!important}.mt-7{margin-top:2.19628rem!important}.mr-7{margin-right:2.19628rem!important}.mb-7{margin-bottom:2.19628rem!important}.ml-7{margin-left:2.19628rem!important}.p-0{padding:0!important}.pt-0{padding-top:0!important}.pr-0{padding-right:0!important}.pb-0{padding-bottom:0!important}.pl-0{padding-left:0!important}.p-1{padding:.183024rem!important}.pt-1{padding-top:.183024rem!important}.pr-1{padding-right:.183024rem!important}.pb-1{padding-bottom:.183024rem!important}.pl-1{padding-left:.183024rem!important}.p-2{padding:.366047rem!important}.pt-2{padding-top:.366047rem!important}.pr-2{padding-right:.366047rem!important}.pb-2{padding-bottom:.366047rem!important}.pl-2{padding-left:.366047rem!important}.p-3{padding:.732094rem!important}.pt-3{padding-top:.732094rem!important}.pr-3{padding-right:.732094rem!important}.pb-3{padding-bottom:.732094rem!important}.pl-3{padding-left:.732094rem!important}.p-4{padding:1.09814rem!important}.pt-4{padding-top:1.09814rem!important}.pr-4{padding-right:1.09814rem!important}.pb-4{padding-bottom:1.09814rem!important}.pl-4{padding-left:1.09814rem!important}.p-5{padding:1.46419rem!important}.pt-5{padding-top:1.46419rem!important}.pr-5{padding-right:1.46419rem!important}.pb-5{padding-bottom:1.46419rem!important}.pl-5{padding-left:1.46419rem!important}.p-6{padding:1.83024rem!important}.pt-6{padding-top:1.83024rem!important}.pr-6{padding-right:1.83024rem!important}.pb-6{padding-bottom:1.83024rem!important}.pl-6{padding-left:1.83024rem!important}.p-7{padding:2.19628rem!important}.pt-7{padding-top:2.19628rem!important}.pr-7{padding-right:2.19628rem!important}.pb-7{padding-bottom:2.19628rem!important}.pl-7{padding-left:2.19628rem!important}.el-input-material{clear:both;padding:.375rem 0;position:relative}.el-input-material .el-input.is-disabled .el-input__inner{background:0 0}.el-input-material .el-input.is-round .el-input__wrapper,.el-input-material .el-input-tag.is-round{border-radius:var(--el-border-radius-round)}.el-input-material .el-input-group__prepend,.el-input-material .el-input-group__append{padding:0 15px!important}.el-input-material .el-select,.el-input-material .el-cascader{width:100%}.el-input-material.borderless .el-input-number .el-input__inner{text-align:center}.el-input-material.borderless .el-input__inner{border-top:0;border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.el-input-material.borderless [class*=el-]{background-color:#0000;border-top:0;border-left:0;border-right:0;border-radius:0}.el-input-material.borderless .el-date-editor--date.el-input--prefix .el-input__inner{padding-left:1.875rem}.el-input-material-label{color:#c0c4cc;z-index:2;background-color:#fff;border-radius:5px;padding-left:2px;padding-right:2px;font-size:.75rem;line-height:.75rem;transition:all .2s;position:absolute;top:0;left:1rem;opacity:1!important}.el-input-material-label:not(.active){opacity:0}.el-input-material+.el-form-item__error{padding-top:0}.el-form-item:focus .el-input-material-label.active{color:#f56c6c}.oga-form.gutter-less .el-form-item:not(:last-child){margin-bottom:.625rem}.oga-form.gutter-less .el-form-item:last-child,.oga-form.borderless .el-form-item{margin-bottom:0}.oga-form .el-form-item__content{line-height:normal;display:block}.oga-form .el-input-material+.el-form-item__error{margin-top:-.25rem}.text-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.btn-block{width:100%;display:block}.oga-table{flex-direction:column;height:100%;display:flex}.oga-table-content{border:1px solid var(--el-table-border);flex:1;position:relative;overflow:auto}.oga-table .el-pagination{justify-content:flex-end;padding-top:1rem;display:flex;margin:0 -11px!important}.oga-table .el-card,.oga-table .el-table{height:100%}.oga-table .el-table__layers .cell{line-height:1.3}.oga-table-batch-operation{z-index:5;text-indent:.5rem;background-color:#ffffffb3;align-items:center;width:calc(100% - 55px);height:46px;transition:all .3s;display:flex;position:absolute;top:1px;left:55px}.oga-table-batch-operation .el-dropdown{height:100%}.oga-table-batch-operation .el-dropdown .el-dropdown-link div{cursor:pointer;background-color:#fff;align-items:center;height:100%;padding:5px 10px 5px 5px;display:flex}.oga-table-batch-operation .el-dropdown .el-dropdown-link b{color:#409eff}.oga-table .el-checkbox__input{line-height:0}.oga-table .el-table-column--selection{position:relative}.oga-table .el-table-column--selection .cell{width:100%;height:100%;position:absolute;top:0;left:0;padding:0!important}.oga-table .el-table-column--selection .cell .el-checkbox{cursor:pointer;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.oga-table .fox-svg-img{width:50px}.oga-table .fox-svg-icon{width:50px;height:50px}.oga-table .cell{white-space:nowrap;font-weight:400}.oga-table th.el-table__cell.is-sortable>.cell{justify-content:space-between;align-items:center;display:flex}.oga-table .el-image{width:100%;margin:0;padding:0;display:block;position:relative;overflow:hidden}.oga-table .el-image:before{content:"";padding-top:100%;display:block}.oga-table .el-image .el-image__inner{object-fit:cover;object-position:center;width:100%;height:100%;position:absolute;top:0;left:0}.oga-section{border:1px solid #ebeef5;border-radius:7px;min-width:5rem;padding:1.25rem;transition:all .3s;position:relative}.oga-section:hover{box-shadow:0 2px 12px #0000001a}.oga-section.has-description{padding-top:6px}.oga-section-action{background:#fff;position:absolute;top:-.625rem;right:1.25rem;transform:translateY(-50%)}.oga-section-action .el-button--mini.el-button--text{margin-top:-6px}.oga-section:not(:last-child){margin-bottom:1.5rem}.oga-section legend{margin:0;font-size:1rem}.oga-section legend+.oga-section-description{margin-top:0}.oga-section-description{color:#909399;font-size:13px}.oga-section-description+div{margin-top:1rem}
2
2
  /*$vite$:1*/
@@ -0,0 +1,2 @@
1
+ .oga-icon[data-v-4b378c8c]{vertical-align:-.15em;fill:currentColor;width:1em;height:1em;overflow:hidden}[data-v-3eeadc5f]:root{--inner-color:#3779eb4d;--inner-shadow:0 0 10px 0 var(--inner-color) inset}.m-0[data-v-3eeadc5f]{margin:0!important}.mt-0[data-v-3eeadc5f]{margin-top:0!important}.mr-0[data-v-3eeadc5f]{margin-right:0!important}.mb-0[data-v-3eeadc5f]{margin-bottom:0!important}.ml-0[data-v-3eeadc5f]{margin-left:0!important}.m-1[data-v-3eeadc5f]{margin:.183024rem!important}.mt-1[data-v-3eeadc5f]{margin-top:.183024rem!important}.mr-1[data-v-3eeadc5f]{margin-right:.183024rem!important}.mb-1[data-v-3eeadc5f]{margin-bottom:.183024rem!important}.ml-1[data-v-3eeadc5f]{margin-left:.183024rem!important}.m-2[data-v-3eeadc5f]{margin:.366047rem!important}.mt-2[data-v-3eeadc5f]{margin-top:.366047rem!important}.mr-2[data-v-3eeadc5f]{margin-right:.366047rem!important}.mb-2[data-v-3eeadc5f]{margin-bottom:.366047rem!important}.ml-2[data-v-3eeadc5f]{margin-left:.366047rem!important}.m-3[data-v-3eeadc5f]{margin:.732094rem!important}.mt-3[data-v-3eeadc5f]{margin-top:.732094rem!important}.mr-3[data-v-3eeadc5f]{margin-right:.732094rem!important}.mb-3[data-v-3eeadc5f]{margin-bottom:.732094rem!important}.ml-3[data-v-3eeadc5f]{margin-left:.732094rem!important}.m-4[data-v-3eeadc5f]{margin:1.09814rem!important}.mt-4[data-v-3eeadc5f]{margin-top:1.09814rem!important}.mr-4[data-v-3eeadc5f]{margin-right:1.09814rem!important}.mb-4[data-v-3eeadc5f]{margin-bottom:1.09814rem!important}.ml-4[data-v-3eeadc5f]{margin-left:1.09814rem!important}.m-5[data-v-3eeadc5f]{margin:1.46419rem!important}.mt-5[data-v-3eeadc5f]{margin-top:1.46419rem!important}.mr-5[data-v-3eeadc5f]{margin-right:1.46419rem!important}.mb-5[data-v-3eeadc5f]{margin-bottom:1.46419rem!important}.ml-5[data-v-3eeadc5f]{margin-left:1.46419rem!important}.m-6[data-v-3eeadc5f]{margin:1.83024rem!important}.mt-6[data-v-3eeadc5f]{margin-top:1.83024rem!important}.mr-6[data-v-3eeadc5f]{margin-right:1.83024rem!important}.mb-6[data-v-3eeadc5f]{margin-bottom:1.83024rem!important}.ml-6[data-v-3eeadc5f]{margin-left:1.83024rem!important}.m-7[data-v-3eeadc5f]{margin:2.19628rem!important}.mt-7[data-v-3eeadc5f]{margin-top:2.19628rem!important}.mr-7[data-v-3eeadc5f]{margin-right:2.19628rem!important}.mb-7[data-v-3eeadc5f]{margin-bottom:2.19628rem!important}.ml-7[data-v-3eeadc5f]{margin-left:2.19628rem!important}.p-0[data-v-3eeadc5f]{padding:0!important}.pt-0[data-v-3eeadc5f]{padding-top:0!important}.pr-0[data-v-3eeadc5f]{padding-right:0!important}.pb-0[data-v-3eeadc5f]{padding-bottom:0!important}.pl-0[data-v-3eeadc5f]{padding-left:0!important}.p-1[data-v-3eeadc5f]{padding:.183024rem!important}.pt-1[data-v-3eeadc5f]{padding-top:.183024rem!important}.pr-1[data-v-3eeadc5f]{padding-right:.183024rem!important}.pb-1[data-v-3eeadc5f]{padding-bottom:.183024rem!important}.pl-1[data-v-3eeadc5f]{padding-left:.183024rem!important}.p-2[data-v-3eeadc5f]{padding:.366047rem!important}.pt-2[data-v-3eeadc5f]{padding-top:.366047rem!important}.pr-2[data-v-3eeadc5f]{padding-right:.366047rem!important}.pb-2[data-v-3eeadc5f]{padding-bottom:.366047rem!important}.pl-2[data-v-3eeadc5f]{padding-left:.366047rem!important}.p-3[data-v-3eeadc5f]{padding:.732094rem!important}.pt-3[data-v-3eeadc5f]{padding-top:.732094rem!important}.pr-3[data-v-3eeadc5f]{padding-right:.732094rem!important}.pb-3[data-v-3eeadc5f]{padding-bottom:.732094rem!important}.pl-3[data-v-3eeadc5f]{padding-left:.732094rem!important}.p-4[data-v-3eeadc5f]{padding:1.09814rem!important}.pt-4[data-v-3eeadc5f]{padding-top:1.09814rem!important}.pr-4[data-v-3eeadc5f]{padding-right:1.09814rem!important}.pb-4[data-v-3eeadc5f]{padding-bottom:1.09814rem!important}.pl-4[data-v-3eeadc5f]{padding-left:1.09814rem!important}.p-5[data-v-3eeadc5f]{padding:1.46419rem!important}.pt-5[data-v-3eeadc5f]{padding-top:1.46419rem!important}.pr-5[data-v-3eeadc5f]{padding-right:1.46419rem!important}.pb-5[data-v-3eeadc5f]{padding-bottom:1.46419rem!important}.pl-5[data-v-3eeadc5f]{padding-left:1.46419rem!important}.p-6[data-v-3eeadc5f]{padding:1.83024rem!important}.pt-6[data-v-3eeadc5f]{padding-top:1.83024rem!important}.pr-6[data-v-3eeadc5f]{padding-right:1.83024rem!important}.pb-6[data-v-3eeadc5f]{padding-bottom:1.83024rem!important}.pl-6[data-v-3eeadc5f]{padding-left:1.83024rem!important}.p-7[data-v-3eeadc5f]{padding:2.19628rem!important}.pt-7[data-v-3eeadc5f]{padding-top:2.19628rem!important}.pr-7[data-v-3eeadc5f]{padding-right:2.19628rem!important}.pb-7[data-v-3eeadc5f]{padding-bottom:2.19628rem!important}.pl-7[data-v-3eeadc5f]{padding-left:2.19628rem!important}.el-input-material[data-v-3eeadc5f]{clear:both;padding:.375rem 0;position:relative}.el-input-material .el-input.is-disabled .el-input__inner[data-v-3eeadc5f]{background:0 0}.el-input-material .el-input.is-round .el-input__wrapper[data-v-3eeadc5f],.el-input-material .el-input-tag.is-round[data-v-3eeadc5f]{border-radius:var(--el-border-radius-round)}.el-input-material .el-input-group__prepend[data-v-3eeadc5f],.el-input-material .el-input-group__append[data-v-3eeadc5f]{padding:0 15px!important}.el-input-material .el-select[data-v-3eeadc5f],.el-input-material .el-cascader[data-v-3eeadc5f]{width:100%}.el-input-material.borderless .el-input-number .el-input__inner[data-v-3eeadc5f]{text-align:center}.el-input-material.borderless .el-input__inner[data-v-3eeadc5f]{border-top:0;border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.el-input-material.borderless [class*=el-][data-v-3eeadc5f]{background-color:#0000;border-top:0;border-left:0;border-right:0;border-radius:0}.el-input-material.borderless .el-date-editor--date.el-input--prefix .el-input__inner[data-v-3eeadc5f]{padding-left:1.875rem}.el-input-material-label[data-v-3eeadc5f]{color:#c0c4cc;z-index:2;background-color:#fff;border-radius:5px;padding-left:2px;padding-right:2px;font-size:.75rem;line-height:.75rem;transition:all .2s;position:absolute;top:0;left:1rem;opacity:1!important}.el-input-material-label[data-v-3eeadc5f]:not(.active){opacity:0}.el-input-material+.el-form-item__error[data-v-3eeadc5f]{padding-top:0}.el-form-item:focus .el-input-material-label.active[data-v-3eeadc5f]{color:#f56c6c}.oga-form.gutter-less .el-form-item[data-v-3eeadc5f]:not(:last-child){margin-bottom:.625rem}.oga-form.gutter-less .el-form-item[data-v-3eeadc5f]:last-child,.oga-form.borderless .el-form-item[data-v-3eeadc5f]{margin-bottom:0}.oga-form .el-form-item__content[data-v-3eeadc5f]{line-height:normal;display:block}.oga-form .el-input-material+.el-form-item__error[data-v-3eeadc5f]{margin-top:-.25rem}.text-truncate[data-v-3eeadc5f]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.btn-block[data-v-3eeadc5f]{width:100%;display:block}.oga-table[data-v-3eeadc5f]{flex-direction:column;height:100%;display:flex}.oga-table-content[data-v-3eeadc5f]{border:1px solid var(--el-table-border);flex:1;position:relative;overflow:auto}.oga-table .el-pagination[data-v-3eeadc5f]{justify-content:flex-end;padding-top:1rem;display:flex;margin:0 -11px!important}.oga-table .el-card[data-v-3eeadc5f],.oga-table .el-table[data-v-3eeadc5f]{height:100%}.oga-table .el-table__layers .cell[data-v-3eeadc5f]{line-height:1.3}.oga-table-batch-operation[data-v-3eeadc5f]{z-index:5;text-indent:.5rem;background-color:#ffffffb3;align-items:center;width:calc(100% - 55px);height:46px;transition:all .3s;display:flex;position:absolute;top:1px;left:55px}.oga-table-batch-operation .el-dropdown[data-v-3eeadc5f]{height:100%}.oga-table-batch-operation .el-dropdown .el-dropdown-link div[data-v-3eeadc5f]{cursor:pointer;background-color:#fff;align-items:center;height:100%;padding:5px 10px 5px 5px;display:flex}.oga-table-batch-operation .el-dropdown .el-dropdown-link b[data-v-3eeadc5f]{color:#409eff}.oga-table .el-checkbox__input[data-v-3eeadc5f]{line-height:0}.oga-table .el-table-column--selection[data-v-3eeadc5f]{position:relative}.oga-table .el-table-column--selection .cell[data-v-3eeadc5f]{width:100%;height:100%;position:absolute;top:0;left:0;padding:0!important}.oga-table .el-table-column--selection .cell .el-checkbox[data-v-3eeadc5f]{cursor:pointer;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.oga-table .fox-svg-img[data-v-3eeadc5f]{width:50px}.oga-table .fox-svg-icon[data-v-3eeadc5f]{width:50px;height:50px}.oga-table .cell[data-v-3eeadc5f]{white-space:nowrap;font-weight:400}.oga-table th.el-table__cell.is-sortable>.cell[data-v-3eeadc5f]{justify-content:space-between;align-items:center;display:flex}.oga-table .el-image[data-v-3eeadc5f]{width:100%;margin:0;padding:0;display:block;position:relative;overflow:hidden}.oga-table .el-image[data-v-3eeadc5f]:before{content:"";padding-top:100%;display:block}.oga-table .el-image .el-image__inner[data-v-3eeadc5f]{object-fit:cover;object-position:center;width:100%;height:100%;position:absolute;top:0;left:0}
2
+ /*$vite$:1*/