vue-devui 1.5.7-hotfix.1 → 1.5.7-hotfix.2
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/code-editor/index.es.js +9 -7
- 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/code-editor/src/composables/use-code-editor.d.ts +2 -2
- package/vue-devui.es.js +23 -11
- package/vue-devui.umd.js +18 -8
package/vue-devui.es.js
CHANGED
|
@@ -1137,7 +1137,13 @@ const AlertCloseIcon = () => createVNode("svg", {
|
|
|
1137
1137
|
"transform": "translate(-3.000000, -3.000000)",
|
|
1138
1138
|
"fill-rule": "nonzero"
|
|
1139
1139
|
}, [createVNode("path", {
|
|
1140
|
-
"d":
|
|
1140
|
+
"d": `M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302
|
|
1141
|
+
13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909
|
|
1142
|
+
13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548
|
|
1143
|
+
11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003
|
|
1144
|
+
L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183
|
|
1145
|
+
L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057
|
|
1146
|
+
C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z`
|
|
1141
1147
|
}, null)])])]);
|
|
1142
1148
|
const ns$k = useNamespace("alert");
|
|
1143
1149
|
const AlertTypeIcon = (props) => createVNode("svg", {
|
|
@@ -1171,12 +1177,16 @@ const AlertTypeIcon = (props) => createVNode("svg", {
|
|
|
1171
1177
|
"fill-rule": "evenodd"
|
|
1172
1178
|
}, [createVNode("path", {
|
|
1173
1179
|
"class": "warning-outer",
|
|
1174
|
-
"d":
|
|
1180
|
+
"d": `M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158
|
|
1181
|
+
C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343
|
|
1182
|
+
C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838
|
|
1183
|
+
7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z`
|
|
1175
1184
|
}, null), createVNode("path", {
|
|
1176
1185
|
"class": "warning-inner",
|
|
1177
1186
|
"stroke-width": "0.3",
|
|
1178
1187
|
"fill-rule": "nonzero",
|
|
1179
|
-
"d":
|
|
1188
|
+
"d": `M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105
|
|
1189
|
+
L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z`
|
|
1180
1190
|
}, null)]);
|
|
1181
1191
|
case "info":
|
|
1182
1192
|
return createVNode("g", {
|
|
@@ -13759,8 +13769,8 @@ function useCodeEditor(props, ctx2) {
|
|
|
13759
13769
|
if (mode.value === "review") {
|
|
13760
13770
|
nextTick(() => {
|
|
13761
13771
|
refreshDecorations();
|
|
13762
|
-
refreshOverlayWidgets();
|
|
13763
13772
|
refreshViewZones();
|
|
13773
|
+
refreshOverlayWidgets();
|
|
13764
13774
|
});
|
|
13765
13775
|
}
|
|
13766
13776
|
}
|
|
@@ -13862,6 +13872,8 @@ function useCodeEditor(props, ctx2) {
|
|
|
13862
13872
|
const language = options.value.language;
|
|
13863
13873
|
if (editor) {
|
|
13864
13874
|
if (mode.value === "normal" || mode.value === "review") {
|
|
13875
|
+
monaco2.editor.setModelLanguage(editor.getModel(), language);
|
|
13876
|
+
} else if (mode.value === "diff") {
|
|
13865
13877
|
const model = diffEditor.getModel();
|
|
13866
13878
|
monaco2.editor.setModelLanguage(model.modified, language);
|
|
13867
13879
|
monaco2.editor.setModelLanguage(model.original, language);
|
|
@@ -13893,7 +13905,7 @@ function useCodeEditor(props, ctx2) {
|
|
|
13893
13905
|
const lineDecoration = [
|
|
13894
13906
|
{
|
|
13895
13907
|
range: new monaco2.Range(currentLineNumber, 0, currentLineNumber, 0),
|
|
13896
|
-
|
|
13908
|
+
options: {
|
|
13897
13909
|
isWholeLine: true,
|
|
13898
13910
|
glyphMarginClassName: `icon-pointer ${addCommentIcon.value}`
|
|
13899
13911
|
}
|
|
@@ -13919,7 +13931,7 @@ function useCodeEditor(props, ctx2) {
|
|
|
13919
13931
|
setTimeout(() => {
|
|
13920
13932
|
currentDecorations = editor.deltaDecorations(currentDecorations, tempDecorations);
|
|
13921
13933
|
});
|
|
13922
|
-
|
|
13934
|
+
currentLineDecoration = editor.deltaDecorations(currentLineDecoration, []);
|
|
13923
13935
|
}
|
|
13924
13936
|
}
|
|
13925
13937
|
function setDecorations(decoration) {
|
|
@@ -13964,7 +13976,7 @@ function useCodeEditor(props, ctx2) {
|
|
|
13964
13976
|
heightInPx: comment2.heightInPx ? comment2.heightInPx : 0,
|
|
13965
13977
|
afterColumn: 1,
|
|
13966
13978
|
domNode: document.createElement("div"),
|
|
13967
|
-
|
|
13979
|
+
onDomNodeTop: (top) => {
|
|
13968
13980
|
layoutOverlayWidget(comment2.lineNumber, { top });
|
|
13969
13981
|
},
|
|
13970
13982
|
onComputedHeight: (height) => {
|
|
@@ -13987,7 +13999,7 @@ function useCodeEditor(props, ctx2) {
|
|
|
13987
13999
|
}
|
|
13988
14000
|
function calculateLayoutInfo(positionInfos, editorLayoutInfo, index2) {
|
|
13989
14001
|
let _offsetLeft = 0;
|
|
13990
|
-
const indexOffsetLeft = comments.value[index2].
|
|
14002
|
+
const indexOffsetLeft = comments.value[index2].offsetLeft;
|
|
13991
14003
|
if (indexOffsetLeft) {
|
|
13992
14004
|
_offsetLeft = indexOffsetLeft;
|
|
13993
14005
|
} else {
|
|
@@ -14000,8 +14012,8 @@ function useCodeEditor(props, ctx2) {
|
|
|
14000
14012
|
offsetLeft: _offsetLeft
|
|
14001
14013
|
};
|
|
14002
14014
|
}
|
|
14003
|
-
function handleDomNodePosition(top,
|
|
14004
|
-
comments.value[index2].domNode.style.height = `${
|
|
14015
|
+
function handleDomNodePosition(top, height, index2) {
|
|
14016
|
+
comments.value[index2].domNode.style.height = `${height}px`;
|
|
14005
14017
|
if (heightMap.get(index2) === 0) {
|
|
14006
14018
|
comments.value[index2].domNode.style.top = `-${1e4 + top}px`;
|
|
14007
14019
|
} else {
|
|
@@ -42202,7 +42214,7 @@ const installs = [
|
|
|
42202
42214
|
VirtualListInstall
|
|
42203
42215
|
];
|
|
42204
42216
|
var vueDevui = {
|
|
42205
|
-
version: "1.5.7-hotfix.
|
|
42217
|
+
version: "1.5.7-hotfix.2",
|
|
42206
42218
|
install(app) {
|
|
42207
42219
|
installs.forEach((p) => app.use(p));
|
|
42208
42220
|
}
|