vue-devui 1.5.7-hotfix.1 → 1.5.7-hotfix.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/index.es.js +13 -3
- package/alert/index.umd.js +11 -1
- package/avatar/index.es.js +10 -2
- package/avatar/index.umd.js +9 -1
- package/code-editor/index.es.js +12 -10
- package/code-editor/index.umd.js +5 -5
- package/package.json +1 -1
- package/pagination/index.es.js +7 -1
- package/pagination/index.umd.js +7 -1
- package/select/index.es.js +7 -1
- package/select/index.umd.js +7 -1
- package/time-select/index.es.js +7 -1
- package/time-select/index.umd.js +7 -1
- package/types/avatar/src/components/icon-body.d.ts +1 -1
- package/types/code-editor/src/code-editor-types.d.ts +1 -1
- package/types/code-editor/src/code-editor.d.ts +1 -1
- package/types/code-editor/src/composables/use-code-editor.d.ts +2 -2
- package/vue-devui.es.js +36 -16
- package/vue-devui.umd.js +26 -8
package/alert/index.es.js
CHANGED
|
@@ -14,7 +14,13 @@ const AlertCloseIcon = () => createVNode("svg", {
|
|
|
14
14
|
"transform": "translate(-3.000000, -3.000000)",
|
|
15
15
|
"fill-rule": "nonzero"
|
|
16
16
|
}, [createVNode("path", {
|
|
17
|
-
"d":
|
|
17
|
+
"d": `M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302
|
|
18
|
+
13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909
|
|
19
|
+
13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548
|
|
20
|
+
11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003
|
|
21
|
+
L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183
|
|
22
|
+
L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057
|
|
23
|
+
C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z`
|
|
18
24
|
}, null)])])]);
|
|
19
25
|
function createBem(namespace, element, modifier) {
|
|
20
26
|
let cls = namespace;
|
|
@@ -71,12 +77,16 @@ const AlertTypeIcon = (props) => createVNode("svg", {
|
|
|
71
77
|
"fill-rule": "evenodd"
|
|
72
78
|
}, [createVNode("path", {
|
|
73
79
|
"class": "warning-outer",
|
|
74
|
-
"d":
|
|
80
|
+
"d": `M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158
|
|
81
|
+
C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343
|
|
82
|
+
C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838
|
|
83
|
+
7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z`
|
|
75
84
|
}, null), createVNode("path", {
|
|
76
85
|
"class": "warning-inner",
|
|
77
86
|
"stroke-width": "0.3",
|
|
78
87
|
"fill-rule": "nonzero",
|
|
79
|
-
"d":
|
|
88
|
+
"d": `M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105
|
|
89
|
+
L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z`
|
|
80
90
|
}, null)]);
|
|
81
91
|
case "info":
|
|
82
92
|
return createVNode("g", {
|
package/alert/index.umd.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.index={},o.Vue))})(this,function(o,e){"use strict";const N=()=>e.createVNode("svg",{width:"10px",height:"10px",viewBox:"0 0 10 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(-3.000000, -3.000000)","fill-rule":"nonzero"},[e.createVNode("path",{d
|
|
1
|
+
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.index={},o.Vue))})(this,function(o,e){"use strict";const N=()=>e.createVNode("svg",{width:"10px",height:"10px",viewBox:"0 0 10 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(-3.000000, -3.000000)","fill-rule":"nonzero"},[e.createVNode("path",{d:`M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302
|
|
2
|
+
13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909
|
|
3
|
+
13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548
|
|
4
|
+
11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003
|
|
5
|
+
L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183
|
|
6
|
+
L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057
|
|
7
|
+
C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z`},null)])])]);function c(t,r,n){let s=t;return r&&(s+=`__${r}`),n&&(s+=`--${n}`),s}function h(t,r=!1){const n=r?`.devui-${t}`:`devui-${t}`;return{b:()=>c(n),e:l=>l?c(n,l):"",m:l=>l?c(n,"",l):"",em:(l,d)=>l&&d?c(n,l,d):""}}const u=h("alert"),p=t=>e.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:[u.e("icon"),t.type==="danger"?u.em("icon","error"):u.em("icon",t.type)]},[(()=>{switch(t.type){case"success":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{"fill-rule":"nonzero",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("polygon",{"stroke-width":"0.3","fill-rule":"nonzero",points:"6.82767602 11.5282799 3 7.24668779 3.89864233 6.37912367 6.82767602 9.04910002 12.2964408 4 13 4.64144383"},null)]);case"warning":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{class:"warning-outer",d:`M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158
|
|
8
|
+
C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343
|
|
9
|
+
C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838
|
|
10
|
+
7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z`},null),e.createVNode("path",{class:"warning-inner","stroke-width":"0.3","fill-rule":"nonzero",d:`M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105
|
|
11
|
+
L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z`},null)]);case"info":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"info-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"info-inner",d:"M9.19008504,7 L8.79402696,13 L7.15622605,13 L6.73158434,7 L9.19008504,7 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z","stroke-width":"0.2"},null)])]);case"danger":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"error-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"error-inner",d:"M9,10.6 L9,12.6 L7,12.6 L7,10.6 L9,10.6 Z M9.1,3.1 L8.65924344,9.1 L7.28422786,9.1 L6.9,3.1 L9.1,3.1 Z","stroke-width":"0.2"},null)])]);default:return null}})()]),w={type:{type:String,default:"info"},cssClass:{type:String,default:""},closeable:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},dismissTime:{type:Number,default:0},center:{type:Boolean,default:!1}};var g="",L=e.defineComponent({name:"DAlert",props:w,emits:["close"],setup(t,r){const n=h("alert"),s=e.ref(!1),a=e.ref(!1),C=e.ref();let i;const l=f=>{i&&clearTimeout(i),a.value=!0,r.emit("close",f)},d=()=>{i=void 0,s.value=!0,a.value=!1};return e.onMounted(()=>{t.dismissTime&&(i=window.setTimeout(()=>{l()},t.dismissTime))}),()=>s.value?null:e.createVNode(e.Transition,{name:n.b(),onAfterLeave:d},{default:()=>{var f,m;return[e.withDirectives(e.createVNode("div",{ref:C,class:[n.b(),n.m(t.type),t.cssClass,a.value&&n.m("close"),t.center&&n.m("center")]},[t.showIcon!==!1&&t.type!=="simple"?e.createVNode("span",{class:n.e("icon-wrap")},[e.createVNode(p,{type:t.type},null)]):null,e.createVNode("div",{class:n.e("content")},[e.createVNode("span",null,[(m=(f=r.slots).default)==null?void 0:m.call(f)]),t.closeable?e.createVNode("div",{class:n.e("close-icon"),onClick:l},[e.createVNode(N,null,null)]):null])]),[[e.vShow,!a.value]])]}})}}),V={title:"Alert \u8B66\u544A",category:"\u53CD\u9988",status:"100%",install(t){t.component(L.name,L)}};o.Alert=L,o.alertProps=w,o.default=V,Object.defineProperty(o,"__esModule",{value:!0}),o[Symbol.toStringTag]="Module"});
|
package/avatar/index.es.js
CHANGED
|
@@ -26,7 +26,9 @@ const IconBody = (props) => {
|
|
|
26
26
|
"cy": "15",
|
|
27
27
|
"r": "15"
|
|
28
28
|
}, null), createVNode("path", {
|
|
29
|
-
"d":
|
|
29
|
+
"d": `M14.9997866,16 C12.5145053,16 10.4997866,13.9852814 10.4997866, 11.5 C10.4997866,9.01471863 12.5145053,7 14.9997866,7
|
|
30
|
+
C17.485068, 7 19.4997866,9.01471863 19.4997866,11.5 C19.4997866,13.9852814 17.485068, 16 14.9997866,16 Z M23,23 L7,22.998553
|
|
31
|
+
C7,19.0122153 10.8892296, 16.5 14.9997866,16.5 C19.1103437,16.5 23,20 23,23 Z`,
|
|
30
32
|
"id": "\u5F62\u72B6\u7ED3\u5408",
|
|
31
33
|
"fill": "#FFFFFF"
|
|
32
34
|
}, null)])]);
|
|
@@ -74,7 +76,13 @@ const IconNobody = (props) => {
|
|
|
74
76
|
"fill": "none",
|
|
75
77
|
"fill-rule": "evenodd"
|
|
76
78
|
}, [createVNode("path", {
|
|
77
|
-
"d":
|
|
79
|
+
"d": `M22.31,19.2474562 L22.31,21.9974562 L20.81,21.9974562 L20.81, 19.2474562 L18.06,19.2474562 L18.06,17.7474562
|
|
80
|
+
L20.81,17.7474562 L20.81, 14.9974562 L22.31,14.9974562 L22.31,17.7474562 L25.06,17.7474562 L25.06, 19.2474562
|
|
81
|
+
L22.31,19.2474562 Z M14.9297866,14.9974562 C12.4445053, 14.9974562 10.4297866,12.9827376 10.4297866,10.4974562
|
|
82
|
+
C10.4297866, 8.01217483 12.4445053,5.9974562 14.9297866,5.9974562 C17.415068, 5.9974562 19.4297866,8.01217483
|
|
83
|
+
19.4297866,10.4974562 C19.4297866, 12.9827376 17.415068,14.9974562 14.9297866,14.9974562 Z M19.6797866, 20.2474562
|
|
84
|
+
L19.6797866,21.9971623 L6.93,21.9960092 C6.93,18.0096715 10.8192296, 15.4974562 14.9297866,15.4974562 C16.4608397,15.4974562
|
|
85
|
+
17.9612467,15.983021 19.2414296, 16.7474562 L17.06,16.7474562 L17.06,20.2474562 L19.6797866,20.2474562 Z`,
|
|
78
86
|
"id": "\u5F62\u72B6\u7ED3\u5408",
|
|
79
87
|
"fill": "#959EB2"
|
|
80
88
|
}, null), createVNode("path", {
|
package/avatar/index.umd.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
(function(u,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(u=typeof globalThis!="undefined"?globalThis:u||self,e(u.index={},u.Vue))})(this,function(u,e){"use strict";const $=a=>{const{width:s,height:l}=a;return e.createVNode("svg",{style:{width:`${s}px`,height:`${l}px`,verticalAlign:"middle"},viewBox:"0 0 30 30",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{id:"\u672A\u547D\u540D",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("circle",{id:"Oval",fill:"#CACFD8",cx:"15",cy:"15",r:"15"},null),e.createVNode("path",{d
|
|
1
|
+
(function(u,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(u=typeof globalThis!="undefined"?globalThis:u||self,e(u.index={},u.Vue))})(this,function(u,e){"use strict";const $=a=>{const{width:s,height:l}=a;return e.createVNode("svg",{style:{width:`${s}px`,height:`${l}px`,verticalAlign:"middle"},viewBox:"0 0 30 30",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{id:"\u672A\u547D\u540D",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("circle",{id:"Oval",fill:"#CACFD8",cx:"15",cy:"15",r:"15"},null),e.createVNode("path",{d:`M14.9997866,16 C12.5145053,16 10.4997866,13.9852814 10.4997866, 11.5 C10.4997866,9.01471863 12.5145053,7 14.9997866,7
|
|
2
|
+
C17.485068, 7 19.4997866,9.01471863 19.4997866,11.5 C19.4997866,13.9852814 17.485068, 16 14.9997866,16 Z M23,23 L7,22.998553
|
|
3
|
+
C7,19.0122153 10.8892296, 16.5 14.9997866,16.5 C19.1103437,16.5 23,20 23,23 Z`,id:"\u5F62\u72B6\u7ED3\u5408",fill:"#FFFFFF"},null)])])};var S=e.defineComponent({name:"AvatarBodyIcon",props:{width:{type:Number,default:16},height:{type:Number,default:16}},render(){const{width:a,height:s}=this;return e.createVNode($,{width:a,height:s},null)}});const B=a=>{const{width:s,height:l}=a;return e.createVNode("svg",{style:{width:`${s}px`,height:`${l}px`,verticalAlign:"middle"},viewBox:"0 0 30 30",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{d:`M22.31,19.2474562 L22.31,21.9974562 L20.81,21.9974562 L20.81, 19.2474562 L18.06,19.2474562 L18.06,17.7474562
|
|
4
|
+
L20.81,17.7474562 L20.81, 14.9974562 L22.31,14.9974562 L22.31,17.7474562 L25.06,17.7474562 L25.06, 19.2474562
|
|
5
|
+
L22.31,19.2474562 Z M14.9297866,14.9974562 C12.4445053, 14.9974562 10.4297866,12.9827376 10.4297866,10.4974562
|
|
6
|
+
C10.4297866, 8.01217483 12.4445053,5.9974562 14.9297866,5.9974562 C17.415068, 5.9974562 19.4297866,8.01217483
|
|
7
|
+
19.4297866,10.4974562 C19.4297866, 12.9827376 17.415068,14.9974562 14.9297866,14.9974562 Z M19.6797866, 20.2474562
|
|
8
|
+
L19.6797866,21.9971623 L6.93,21.9960092 C6.93,18.0096715 10.8192296, 15.4974562 14.9297866,15.4974562 C16.4608397,15.4974562
|
|
9
|
+
17.9612467,15.983021 19.2414296, 16.7474562 L17.06,16.7474562 L17.06,20.2474562 L19.6797866,20.2474562 Z`,id:"\u5F62\u72B6\u7ED3\u5408",fill:"#959EB2"},null),e.createVNode("path",{d:`M0,15 L1,15 C1,15.6118966 1.03919561,16.2186526 1.11683409,
|
|
2
10
|
16.8178549 L0.125124012,16.9463505 C0.0425740367,16.309242 0,
|
|
3
11
|
15.6595925 0,15 Z M0.503241262,18.867175 L1.46961749,18.6100428 C1.62594651,
|
|
4
12
|
19.1975718 1.8203704,19.7729973 2.05141295,20.3332823 L1.12693074,
|
package/code-editor/index.es.js
CHANGED
|
@@ -5543,8 +5543,8 @@ function useCodeEditor(props, ctx) {
|
|
|
5543
5543
|
if (mode.value === "review") {
|
|
5544
5544
|
nextTick(() => {
|
|
5545
5545
|
refreshDecorations();
|
|
5546
|
-
refreshOverlayWidgets();
|
|
5547
5546
|
refreshViewZones();
|
|
5547
|
+
refreshOverlayWidgets();
|
|
5548
5548
|
});
|
|
5549
5549
|
}
|
|
5550
5550
|
}
|
|
@@ -5630,9 +5630,9 @@ function useCodeEditor(props, ctx) {
|
|
|
5630
5630
|
} else if (diffEditor) {
|
|
5631
5631
|
model = diffEditor.getModel().modified;
|
|
5632
5632
|
}
|
|
5633
|
-
model.onDidChangeContent(lodash.exports.throttle(() => {
|
|
5633
|
+
model == null ? void 0 : model.onDidChangeContent(lodash.exports.throttle(() => {
|
|
5634
5634
|
modifyValueFromInner = true;
|
|
5635
|
-
ctx.emit("update:
|
|
5635
|
+
ctx.emit("update:modelValue", model.getValue());
|
|
5636
5636
|
}, 100));
|
|
5637
5637
|
}
|
|
5638
5638
|
function setDiffEditorOriginValue() {
|
|
@@ -5646,6 +5646,8 @@ function useCodeEditor(props, ctx) {
|
|
|
5646
5646
|
const language = options.value.language;
|
|
5647
5647
|
if (editor) {
|
|
5648
5648
|
if (mode.value === "normal" || mode.value === "review") {
|
|
5649
|
+
monaco2.editor.setModelLanguage(editor.getModel(), language);
|
|
5650
|
+
} else if (mode.value === "diff") {
|
|
5649
5651
|
const model = diffEditor.getModel();
|
|
5650
5652
|
monaco2.editor.setModelLanguage(model.modified, language);
|
|
5651
5653
|
monaco2.editor.setModelLanguage(model.original, language);
|
|
@@ -5677,7 +5679,7 @@ function useCodeEditor(props, ctx) {
|
|
|
5677
5679
|
const lineDecoration = [
|
|
5678
5680
|
{
|
|
5679
5681
|
range: new monaco2.Range(currentLineNumber, 0, currentLineNumber, 0),
|
|
5680
|
-
|
|
5682
|
+
options: {
|
|
5681
5683
|
isWholeLine: true,
|
|
5682
5684
|
glyphMarginClassName: `icon-pointer ${addCommentIcon.value}`
|
|
5683
5685
|
}
|
|
@@ -5703,7 +5705,7 @@ function useCodeEditor(props, ctx) {
|
|
|
5703
5705
|
setTimeout(() => {
|
|
5704
5706
|
currentDecorations = editor.deltaDecorations(currentDecorations, tempDecorations);
|
|
5705
5707
|
});
|
|
5706
|
-
|
|
5708
|
+
currentLineDecoration = editor.deltaDecorations(currentLineDecoration, []);
|
|
5707
5709
|
}
|
|
5708
5710
|
}
|
|
5709
5711
|
function setDecorations(decoration) {
|
|
@@ -5748,7 +5750,7 @@ function useCodeEditor(props, ctx) {
|
|
|
5748
5750
|
heightInPx: comment.heightInPx ? comment.heightInPx : 0,
|
|
5749
5751
|
afterColumn: 1,
|
|
5750
5752
|
domNode: document.createElement("div"),
|
|
5751
|
-
|
|
5753
|
+
onDomNodeTop: (top) => {
|
|
5752
5754
|
layoutOverlayWidget(comment.lineNumber, { top });
|
|
5753
5755
|
},
|
|
5754
5756
|
onComputedHeight: (height) => {
|
|
@@ -5771,7 +5773,7 @@ function useCodeEditor(props, ctx) {
|
|
|
5771
5773
|
}
|
|
5772
5774
|
function calculateLayoutInfo(positionInfos, editorLayoutInfo, index2) {
|
|
5773
5775
|
let _offsetLeft = 0;
|
|
5774
|
-
const indexOffsetLeft = comments.value[index2].
|
|
5776
|
+
const indexOffsetLeft = comments.value[index2].offsetLeft;
|
|
5775
5777
|
if (indexOffsetLeft) {
|
|
5776
5778
|
_offsetLeft = indexOffsetLeft;
|
|
5777
5779
|
} else {
|
|
@@ -5784,8 +5786,8 @@ function useCodeEditor(props, ctx) {
|
|
|
5784
5786
|
offsetLeft: _offsetLeft
|
|
5785
5787
|
};
|
|
5786
5788
|
}
|
|
5787
|
-
function handleDomNodePosition(top,
|
|
5788
|
-
comments.value[index2].domNode.style.height = `${
|
|
5789
|
+
function handleDomNodePosition(top, height, index2) {
|
|
5790
|
+
comments.value[index2].domNode.style.height = `${height}px`;
|
|
5789
5791
|
if (heightMap.get(index2) === 0) {
|
|
5790
5792
|
comments.value[index2].domNode.style.top = `-${1e4 + top}px`;
|
|
5791
5793
|
} else {
|
|
@@ -5851,7 +5853,7 @@ var codeEditor = "";
|
|
|
5851
5853
|
var CodeEditor = defineComponent({
|
|
5852
5854
|
name: "DCodeEditor",
|
|
5853
5855
|
props: codeEditorProps,
|
|
5854
|
-
emits: ["update:
|
|
5856
|
+
emits: ["update:modelValue", "afterEditorInit", "click"],
|
|
5855
5857
|
setup(props, ctx) {
|
|
5856
5858
|
const {
|
|
5857
5859
|
editorEl
|