@ftlab/one-vue3 0.2.11 → 0.2.12

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.
@@ -1,176 +1,176 @@
1
- * {
2
- box-sizing: border-box;
3
- margin: 0;
4
- padding: 0;
5
- }
6
-
7
- @for $i from -20 through 20 {
8
- $num: 5 * $i;
9
- .p#{$num} {
10
- padding: 0px + $num;
11
- }
12
- .pt#{$num} {
13
- padding-top: 0px + $num;
14
- }
15
- .pr#{$num} {
16
- padding-right: 0px + $num;
17
- }
18
- .pb#{$num} {
19
- padding-bottom: 0px + $num;
20
- }
21
- .pl#{$num} {
22
- padding-left: 0px + $num;
23
- }
24
- .pv#{$num} {
25
- padding-top: 0px + $num;
26
- padding-bottom: 0px + $num;
27
- }
28
- .ph#{$num} {
29
- padding-left: 0px + $num;
30
- padding-right: 0px + $num;
31
- }
32
- .m#{$num} {
33
- margin: 0px + $num;
34
- }
35
- .mt#{$num} {
36
- margin-top: 0px + $num;
37
- }
38
- .mr#{$num} {
39
- margin-right: 0px + $num;
40
- }
41
- .mb#{$num} {
42
- margin-bottom: 0px + $num;
43
- }
44
- .ml#{$num} {
45
- margin-left: 0px + $num;
46
- }
47
- .mv#{$num} {
48
- margin-top: 0px + $num;
49
- margin-bottom: 0px + $num;
50
- }
51
- .mh#{$num} {
52
- margin-left: 0px + $num;
53
- margin-right: 0px + $num;
54
- }
55
- }
56
-
57
- @for $j from 12 through 40 {
58
- .fs#{$j} {
59
- font-size: 0px + $j !important;
60
- }
61
- .lh#{$j} {
62
- line-height: 0px + $j;
63
- }
64
- }
65
-
66
- .f {
67
- display: flex;
68
- }
69
-
70
- .f-s-c {
71
- display: flex;
72
- justify-content: space-between;
73
- align-items: center;
74
- }
75
-
76
- .f-s {
77
- display: flex;
78
- justify-content: space-between;
79
- }
80
-
81
- .f-c {
82
- display: flex;
83
- align-items: center;
84
- }
85
-
86
- .f-c-c {
87
- display: flex;
88
- justify-content: center;
89
- align-items: center;
90
- }
91
-
92
- .f-c-e {
93
- display: flex;
94
- justify-content: flex-end;
95
- align-items: center;
96
- }
97
-
98
- .f-c-c-c {
99
- display: flex;
100
- flex-direction: column;
101
- justify-content: center;
102
- align-items: center;
103
- }
104
-
105
- .f600 {
106
- font-weight: 600;
107
- }
108
-
109
- .tl {
110
- text-align: left;
111
- }
112
- .tc {
113
- text-align: center;
114
- }
115
- .tr {
116
- text-align: right;
117
- }
118
-
119
- .cp {
120
- cursor: pointer;
121
- }
122
-
123
- .breadcrumb-enter-active,
124
- .breadcrumb-leave-active {
125
- transition: all 0.5s;
126
- }
127
-
128
- .breadcrumb-enter,
129
- .breadcrumb-leave-active {
130
- opacity: 0;
131
- transform: translateX(20px);
132
- }
133
-
134
- .breadcrumb-move {
135
- transition: all 0.5s;
136
- }
137
-
138
- .breadcrumb-leave-active {
139
- position: absolute;
140
- }
141
-
142
- .fade-enter-from {
143
- opacity: 0;
144
- transform: translateX(-30px);
145
- }
146
-
147
- .fade-leave-to {
148
- opacity: 0;
149
- transform: translateX(30px);
150
- }
151
-
152
- .fade-enter-active {
153
- transition: all 0.5s;
154
- }
155
- .fade-leave-active {
156
- transition: all 0.5s;
157
- }
158
-
159
- ::-webkit-scrollbar {
160
- width: 8px;
161
- height: 8px;
162
- z-index: 9999;
163
- }
164
-
165
- ::-webkit-scrollbar-track {
166
- border-radius: 0;
167
- background-color: transparent;
168
- }
169
-
170
- input:-webkit-autofill,
171
- input:-webkit-autofill:hover,
172
- input:-webkit-autofill:focus,
173
- input:-webkit-autofill:active {
174
- transition-delay: 111111s;
175
- transition: color 11111s ease-out, background-color 111111s ease-out;
1
+ * {
2
+ box-sizing: border-box;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ @for $i from -20 through 20 {
8
+ $num: 5 * $i;
9
+ .p#{$num} {
10
+ padding: 0px + $num;
11
+ }
12
+ .pt#{$num} {
13
+ padding-top: 0px + $num;
14
+ }
15
+ .pr#{$num} {
16
+ padding-right: 0px + $num;
17
+ }
18
+ .pb#{$num} {
19
+ padding-bottom: 0px + $num;
20
+ }
21
+ .pl#{$num} {
22
+ padding-left: 0px + $num;
23
+ }
24
+ .pv#{$num} {
25
+ padding-top: 0px + $num;
26
+ padding-bottom: 0px + $num;
27
+ }
28
+ .ph#{$num} {
29
+ padding-left: 0px + $num;
30
+ padding-right: 0px + $num;
31
+ }
32
+ .m#{$num} {
33
+ margin: 0px + $num;
34
+ }
35
+ .mt#{$num} {
36
+ margin-top: 0px + $num;
37
+ }
38
+ .mr#{$num} {
39
+ margin-right: 0px + $num;
40
+ }
41
+ .mb#{$num} {
42
+ margin-bottom: 0px + $num;
43
+ }
44
+ .ml#{$num} {
45
+ margin-left: 0px + $num;
46
+ }
47
+ .mv#{$num} {
48
+ margin-top: 0px + $num;
49
+ margin-bottom: 0px + $num;
50
+ }
51
+ .mh#{$num} {
52
+ margin-left: 0px + $num;
53
+ margin-right: 0px + $num;
54
+ }
55
+ }
56
+
57
+ @for $j from 12 through 40 {
58
+ .fs#{$j} {
59
+ font-size: 0px + $j !important;
60
+ }
61
+ .lh#{$j} {
62
+ line-height: 0px + $j;
63
+ }
64
+ }
65
+
66
+ .f {
67
+ display: flex;
68
+ }
69
+
70
+ .f-s-c {
71
+ display: flex;
72
+ justify-content: space-between;
73
+ align-items: center;
74
+ }
75
+
76
+ .f-s {
77
+ display: flex;
78
+ justify-content: space-between;
79
+ }
80
+
81
+ .f-c {
82
+ display: flex;
83
+ align-items: center;
84
+ }
85
+
86
+ .f-c-c {
87
+ display: flex;
88
+ justify-content: center;
89
+ align-items: center;
90
+ }
91
+
92
+ .f-c-e {
93
+ display: flex;
94
+ justify-content: flex-end;
95
+ align-items: center;
96
+ }
97
+
98
+ .f-c-c-c {
99
+ display: flex;
100
+ flex-direction: column;
101
+ justify-content: center;
102
+ align-items: center;
103
+ }
104
+
105
+ .f600 {
106
+ font-weight: 600;
107
+ }
108
+
109
+ .tl {
110
+ text-align: left;
111
+ }
112
+ .tc {
113
+ text-align: center;
114
+ }
115
+ .tr {
116
+ text-align: right;
117
+ }
118
+
119
+ .cp {
120
+ cursor: pointer;
121
+ }
122
+
123
+ .breadcrumb-enter-active,
124
+ .breadcrumb-leave-active {
125
+ transition: all 0.5s;
126
+ }
127
+
128
+ .breadcrumb-enter,
129
+ .breadcrumb-leave-active {
130
+ opacity: 0;
131
+ transform: translateX(20px);
132
+ }
133
+
134
+ .breadcrumb-move {
135
+ transition: all 0.5s;
136
+ }
137
+
138
+ .breadcrumb-leave-active {
139
+ position: absolute;
140
+ }
141
+
142
+ .fade-enter-from {
143
+ opacity: 0;
144
+ transform: translateX(-30px);
145
+ }
146
+
147
+ .fade-leave-to {
148
+ opacity: 0;
149
+ transform: translateX(30px);
150
+ }
151
+
152
+ .fade-enter-active {
153
+ transition: all 0.5s;
154
+ }
155
+ .fade-leave-active {
156
+ transition: all 0.5s;
157
+ }
158
+
159
+ ::-webkit-scrollbar {
160
+ width: 8px;
161
+ height: 8px;
162
+ z-index: 9999;
163
+ }
164
+
165
+ ::-webkit-scrollbar-track {
166
+ border-radius: 0;
167
+ background-color: transparent;
168
+ }
169
+
170
+ input:-webkit-autofill,
171
+ input:-webkit-autofill:hover,
172
+ input:-webkit-autofill:focus,
173
+ input:-webkit-autofill:active {
174
+ transition-delay: 111111s;
175
+ transition: color 11111s ease-out, background-color 111111s ease-out;
176
176
  }
package/components.d.ts CHANGED
@@ -11,7 +11,6 @@ declare module 'vue' {
11
11
  ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
12
12
  ElButton: typeof import('element-plus/es')['ElButton']
13
13
  ElCard: typeof import('element-plus/es')['ElCard']
14
- ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
15
14
  ElDialog: typeof import('element-plus/es')['ElDialog']
16
15
  ElDivider: typeof import('element-plus/es')['ElDivider']
17
16
  ElDropdown: typeof import('element-plus/es')['ElDropdown']
@@ -1 +1 @@
1
- "use strict";var T=Object.defineProperty,M=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var h=(n,o,t)=>o in n?T(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,w=(n,o)=>{for(var t in o||(o={}))$.call(o,t)&&h(n,t,o[t]);if(v)for(var t of v(o))z.call(o,t)&&h(n,t,o[t]);return n},y=(n,o)=>M(n,U(o));var k=(n,o,t)=>new Promise((s,i)=>{var u=l=>{try{c(t.next(l))}catch(m){i(m)}},f=l=>{try{c(t.throw(l))}catch(m){i(m)}},c=l=>l.done?s(l.value):Promise.resolve(l.value).then(u,f);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-0a777adb.cjs"),e=require("vue");require("pinia");const P=r.buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:r.definePropType(String),default:"solid"}}),I=e.defineComponent({name:"ElDivider"}),A=e.defineComponent(y(w({},I),{props:P,setup(n){const o=n,t=r.useNamespace("divider"),s=e.computed(()=>t.cssVar({"border-style":o.borderStyle}));return(i,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(t).b(),e.unref(t).m(i.direction)]),style:e.normalizeStyle(e.unref(s)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(t).e("text"),e.unref(t).is(i.contentPosition)])},[e.renderSlot(i.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],6))}}));var H=r._export_sfc(A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const q=r.withInstall(H);const L={class:"dialog__title"},j=["innerHTML"],F=e.defineComponent({__name:"CheckMessageDialog",emits:["preventHiddenDropdown"],setup(n,{expose:o,emit:t}){const s=e.ref(!1),i=e.inject("authBaseUrl"),u=e.inject("dialogI18n"),f=localStorage.getItem("token")||"",c=e.ref(!1),l=e.ref({}),m={Authorization:`Bearer ${f}`},D=e.computed(()=>`${i||r.configProxy.authBaseUrl||"https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`),C=d=>k(this,null,function*(){try{c.value=!0;const a=yield r.axios.get(D.value,{headers:m,params:{msgId:d}});a&&a.data&&(l.value=a.data)}catch(a){console.log(a)}finally{c.value=!1}}),_=e.computed(()=>l.value.immAttachments&&l.value.immAttachments.length!==0),B=d=>{d&&window.open(d,"_blank")};return o({open:d=>{C(d),s.value=!0}}),(d,a)=>{const x=q,g=r.ElButton,V=r.ElDropdownItem,S=r.ElDropdownMenu,E=r.ElDropdown,N=r.ElDialog,b=r.vLoading;return e.openBlock(),e.createBlock(N,{center:"",title:e.unref(u).dialogTitleText,modelValue:e.unref(s),"onUpdate:modelValue":a[1]||(a[1]=p=>e.isRef(s)?s.value=p:null),"append-to-body":"",model:!1,onClosed:a[2]||(a[2]=()=>{d.$emit("preventHiddenDropdown")})},{default:e.withCtx(()=>[e.createElementVNode("header",L,e.toDisplayString(e.unref(l).title),1),e.createVNode(x),e.withDirectives(e.createElementVNode("div",{innerHTML:e.unref(l).content},null,8,j),[[b,e.unref(c)]]),e.createElementVNode("footer",{class:e.normalizeClass(["mt15",[e.unref(_)?"f-s-c":"f-c-e"]])},[e.unref(_)?(e.openBlock(),e.createBlock(E,{key:0},{dropdown:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).immAttachments,p=>(e.openBlock(),e.createBlock(V,{key:p.fileDownloadUrl,onClick:()=>B(p.fileDownloadUrl)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.fileName),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).downloadText),1)]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(g,{onClick:a[0]||(a[0]=p=>s.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).cancelButtonText),1)]),_:1})],2)]),_:1},8,["title","modelValue"])}}});const O=r._export_sfc$1(F,[["__scopeId","data-v-0003507a"]]);exports.default=O;
1
+ "use strict";var T=Object.defineProperty,M=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var h=(n,o,t)=>o in n?T(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,w=(n,o)=>{for(var t in o||(o={}))$.call(o,t)&&h(n,t,o[t]);if(v)for(var t of v(o))z.call(o,t)&&h(n,t,o[t]);return n},y=(n,o)=>M(n,U(o));var k=(n,o,t)=>new Promise((s,i)=>{var u=l=>{try{c(t.next(l))}catch(m){i(m)}},f=l=>{try{c(t.throw(l))}catch(m){i(m)}},c=l=>l.done?s(l.value):Promise.resolve(l.value).then(u,f);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-e5e2a9ce.cjs"),e=require("vue");require("pinia");const P=r.buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:r.definePropType(String),default:"solid"}}),I=e.defineComponent({name:"ElDivider"}),A=e.defineComponent(y(w({},I),{props:P,setup(n){const o=n,t=r.useNamespace("divider"),s=e.computed(()=>t.cssVar({"border-style":o.borderStyle}));return(i,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(t).b(),e.unref(t).m(i.direction)]),style:e.normalizeStyle(e.unref(s)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(t).e("text"),e.unref(t).is(i.contentPosition)])},[e.renderSlot(i.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],6))}}));var H=r._export_sfc(A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const q=r.withInstall(H);const L={class:"dialog__title"},j=["innerHTML"],F=e.defineComponent({__name:"CheckMessageDialog",emits:["preventHiddenDropdown"],setup(n,{expose:o,emit:t}){const s=e.ref(!1),i=e.inject("authBaseUrl"),u=e.inject("dialogI18n"),f=localStorage.getItem("token")||"",c=e.ref(!1),l=e.ref({}),m={Authorization:`Bearer ${f}`},D=e.computed(()=>`${i||r.configProxy.authBaseUrl||"https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`),C=d=>k(this,null,function*(){try{c.value=!0;const a=yield r.axios.get(D.value,{headers:m,params:{msgId:d}});a&&a.data&&(l.value=a.data)}catch(a){console.log(a)}finally{c.value=!1}}),_=e.computed(()=>l.value.immAttachments&&l.value.immAttachments.length!==0),B=d=>{d&&window.open(d,"_blank")};return o({open:d=>{C(d),s.value=!0}}),(d,a)=>{const x=q,g=r.ElButton,V=r.ElDropdownItem,S=r.ElDropdownMenu,E=r.ElDropdown,N=r.ElDialog,b=r.vLoading;return e.openBlock(),e.createBlock(N,{center:"",title:e.unref(u).dialogTitleText,modelValue:e.unref(s),"onUpdate:modelValue":a[1]||(a[1]=p=>e.isRef(s)?s.value=p:null),"append-to-body":"",model:!1,onClosed:a[2]||(a[2]=()=>{d.$emit("preventHiddenDropdown")})},{default:e.withCtx(()=>[e.createElementVNode("header",L,e.toDisplayString(e.unref(l).title),1),e.createVNode(x),e.withDirectives(e.createElementVNode("div",{innerHTML:e.unref(l).content},null,8,j),[[b,e.unref(c)]]),e.createElementVNode("footer",{class:e.normalizeClass(["mt15",[e.unref(_)?"f-s-c":"f-c-e"]])},[e.unref(_)?(e.openBlock(),e.createBlock(E,{key:0},{dropdown:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).immAttachments,p=>(e.openBlock(),e.createBlock(V,{key:p.fileDownloadUrl,onClick:()=>B(p.fileDownloadUrl)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.fileName),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).downloadText),1)]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(g,{onClick:a[0]||(a[0]=p=>s.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).cancelButtonText),1)]),_:1})],2)]),_:1},8,["title","modelValue"])}}});const O=r._export_sfc$1(F,[["__scopeId","data-v-b6d5935c"]]);exports.default=O;