mrxy-yk 1.0.16 → 1.0.18
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/dist/components/echarts-canvas/EChartsCanvas.d.ts +21 -1
- package/dist/components/echarts-canvas/EChartsCanvas.vue.js +1 -1
- package/dist/components/echarts-canvas/EChartsCanvas.vue2.js +7 -3
- package/dist/components/scroll-container/ScrollContainer.vue.js +1 -1
- package/dist/components/scroll-container/ScrollContainer.vue2.js +5 -6
- package/dist/styles/index.css +1 -1
- package/dist/styles/tools/index.css +24 -0
- package/package.json +3 -2
- package/web-types.json +6 -1
|
@@ -9,7 +9,21 @@ type __VLS_Props = {
|
|
|
9
9
|
option?: EChartsOption | EcBasicOption;
|
|
10
10
|
};
|
|
11
11
|
declare function setOption(option: EChartsOption): void;
|
|
12
|
-
declare
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
default?(_: {
|
|
16
|
+
style: {};
|
|
17
|
+
class: string;
|
|
18
|
+
}): any;
|
|
19
|
+
};
|
|
20
|
+
refs: {
|
|
21
|
+
chartRef: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
rootEl: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
13
27
|
setOption: typeof setOption;
|
|
14
28
|
ec: EChartsType;
|
|
15
29
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
@@ -18,4 +32,10 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
18
32
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
19
33
|
chartRef: HTMLDivElement;
|
|
20
34
|
}, HTMLDivElement>;
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
36
|
export default _default;
|
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./EChartsCanvas.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
var EChartsCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
var EChartsCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-96596bfc"]]);
|
|
5
5
|
export {
|
|
6
6
|
EChartsCanvas as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, shallowRef, onMounted, createElementBlock, openBlock, createBlock, createCommentVNode, createElementVNode, normalizeClass } from "vue";
|
|
1
|
+
import { defineComponent, shallowRef, onMounted, createElementBlock, openBlock, createBlock, createCommentVNode, createElementVNode, renderSlot, normalizeClass } from "vue";
|
|
2
2
|
import * as echarts from "echarts";
|
|
3
3
|
import { EChartsUtil } from "../../utils/echarts/utils/index.js";
|
|
4
4
|
import _sfc_main$1 from "../../element-plus/components/empty/Empty.vue.js";
|
|
@@ -56,14 +56,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
57
57
|
props.emptyHook ? (openBlock(), createBlock(_sfc_main$1, {
|
|
58
58
|
key: 0,
|
|
59
|
-
class: "position-absolute wh-100",
|
|
59
|
+
class: "position-absolute wh-100 container-size",
|
|
60
60
|
hook: props.emptyHook
|
|
61
61
|
}, null, 8, ["hook"])) : createCommentVNode("", true),
|
|
62
62
|
createElementVNode("div", {
|
|
63
63
|
ref_key: "chartRef",
|
|
64
64
|
ref: chartRef,
|
|
65
65
|
class: normalizeClass(["echarts-canvas__inner", { "is-empty": props.emptyHook && !props.emptyHook?.isSUCCESS }])
|
|
66
|
-
}, null, 2)
|
|
66
|
+
}, null, 2),
|
|
67
|
+
renderSlot(_ctx.$slots, "default", {
|
|
68
|
+
class: "position-absolute wh-100",
|
|
69
|
+
style: "top: 0;"
|
|
70
|
+
}, void 0, true)
|
|
67
71
|
]);
|
|
68
72
|
};
|
|
69
73
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ScrollContainer.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
var ScrollContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
var ScrollContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b353085e"]]);
|
|
5
5
|
export {
|
|
6
6
|
ScrollContainer as default
|
|
7
7
|
};
|
|
@@ -29,6 +29,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
onBeforeUnmount(() => {
|
|
32
|
+
isStop.value = true;
|
|
32
33
|
sizeObserver.unobserve(scrollRef.value);
|
|
33
34
|
sizeObserver.unobserve(slotRef.value);
|
|
34
35
|
});
|
|
@@ -38,12 +39,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
39
|
const start = Date.now();
|
|
39
40
|
requestAnimationFrame(() => {
|
|
40
41
|
if (isStop.value || currentRunId !== runId) return;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
scrollRef.value.scrollTo({ top: deviation });
|
|
46
|
-
}
|
|
42
|
+
const end = Date.now();
|
|
43
|
+
if (deviation > scrollRef.value.scrollHeight / 2) deviation = 0;
|
|
44
|
+
else deviation += (end - start) / 1e3 * Number(props.speed);
|
|
45
|
+
scrollRef.value.scrollTo({ top: deviation });
|
|
47
46
|
run(runId);
|
|
48
47
|
});
|
|
49
48
|
}
|
package/dist/styles/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.position-anchor[data-v-b1fd5468]{position:absolute;width:0;height:0;display:flex}.position-anchor.position-anchor--center[data-v-b1fd5468]{justify-content:center;align-items:center}.position-anchor.position-anchor--top-left[data-v-b1fd5468]{justify-content:left;align-items:flex-start}.position-anchor.position-anchor--top-right[data-v-b1fd5468]{justify-content:right;align-items:flex-start}.position-anchor.position-anchor--bottom-left[data-v-b1fd5468]{justify-content:left;align-items:flex-end}.position-anchor.position-anchor--bottom-right[data-v-b1fd5468]{justify-content:right;align-items:flex-end}.position-anchor.position-anchor--bottom[data-v-b1fd5468]{justify-content:center;align-items:flex-end}.position-anchor.position-anchor--top[data-v-b1fd5468]{justify-content:center;align-items:flex-start}.position-anchor.position-anchor--right[data-v-b1fd5468]{justify-content:flex-end;align-items:center}.position-anchor.position-anchor--left[data-v-b1fd5468]{justify-content:flex-start;align-items:center}.yk-progress-ring[data-v-dc804153]{display:block}.yk-progress-ring circle[data-v-dc804153]{transform-box:fill-box;transform-origin:center;transition:all var(--duration) ease-in-out}.yk-adaptive-box .adaptive-box__body[data-v-e8305a54]{overflow:hidden;margin-left:auto;margin-right:auto}.yk-adaptive-box .adaptive-box__content[data-v-e8305a54]{transform-origin:left top;width:fit-content;--adaptive-height: initial}.yk-coordinate-pickup-autocomplete li{margin-bottom:8px}.yk-coordinate-pickup-autocomplete .autocomplete-subtitle{font-size:12px;color:var(--el-text-color-secondary);line-height:12px}.amap-content-body,.amap-content-body .amap-lib-infowindow{background:inherit}.yk-coordinate-pickup-form[data-v-50d6439a] .el-form-item{margin-right:16px}.coordinate-pickup[data-v-50d6439a]{height:50vh;min-height:400px;max-height:920px}.yk-drag-drop-box[data-v-382a0b07]{position:absolute}.yk-drag-drop-container .drag-drop-content[data-v-3f6ac8f9]{width:fit-content;height:fit-content}.yk-progress-bar[data-v-20c5ac2c]{position:relative;display:flex;align-items:center}.icon[data-v-b3bb1cc0]{color:#fff}.icon.is-active[data-v-b3bb1cc0]{color:#157edf}.yk-ys-video[data-v-fcc7df5f] .header-controls div:nth-child(2) .theme-icon-item{width:32px!important;display:flex;justify-content:center;align-items:center;padding-top:6px}.yk-ys-video[data-v-fcc7df5f] .header-controls div:nth-child(2) .theme-icon-item svg{height:48px!important;width:48px!important}.yk-ys-video[data-v-fcc7df5f] .header-controls div:nth-child(2) .theme-icon-item:last-child{padding-left:16px}.play-mask[data-v-fcc7df5f]{background-color:#626365;background-repeat:no-repeat;background-size:100% 100%;top:0;left:0}.play-mask .header[data-v-fcc7df5f]{height:20%;inset:0 auto auto 0;min-height:48px;background:linear-gradient(to bottom,#0008 0,#0006 30%,#0003 50%,#0000);padding:10px 8px;width:100%}.play-mask .header .title-box[data-v-fcc7df5f]{max-width:50%;height:48px}.yk-show-log[data-v-c861503e]{background:#fff;border-radius:5px;padding:10px;-webkit-user-select:none;user-select:none;box-shadow:0 2px 4px #ccc;min-width:150px}.yk-show-log.is-min[data-v-c861503e]{overflow:hidden}.yk-empty{position:relative}.yk-empty .empty-box_content{width:100%;height:100%}.yk-empty .empty-box_content.is-hide{opacity:0}.yk-empty .empty-box_error{width:100%;height:100%;position:absolute;z-index:5;display:flex;justify-content:center;align-items:center}.yk-empty .empty-box_error .el-empty{--el-empty-padding: 0}.yk-empty .empty-box_error .empty-box__image{opacity:var(--opacity);filter:hue-rotate(var(--hue-rotate))}.yk-echarts-canvas[data-v-
|
|
1
|
+
.position-anchor[data-v-b1fd5468]{position:absolute;width:0;height:0;display:flex}.position-anchor.position-anchor--center[data-v-b1fd5468]{justify-content:center;align-items:center}.position-anchor.position-anchor--top-left[data-v-b1fd5468]{justify-content:left;align-items:flex-start}.position-anchor.position-anchor--top-right[data-v-b1fd5468]{justify-content:right;align-items:flex-start}.position-anchor.position-anchor--bottom-left[data-v-b1fd5468]{justify-content:left;align-items:flex-end}.position-anchor.position-anchor--bottom-right[data-v-b1fd5468]{justify-content:right;align-items:flex-end}.position-anchor.position-anchor--bottom[data-v-b1fd5468]{justify-content:center;align-items:flex-end}.position-anchor.position-anchor--top[data-v-b1fd5468]{justify-content:center;align-items:flex-start}.position-anchor.position-anchor--right[data-v-b1fd5468]{justify-content:flex-end;align-items:center}.position-anchor.position-anchor--left[data-v-b1fd5468]{justify-content:flex-start;align-items:center}.yk-progress-ring[data-v-dc804153]{display:block}.yk-progress-ring circle[data-v-dc804153]{transform-box:fill-box;transform-origin:center;transition:all var(--duration) ease-in-out}.yk-adaptive-box .adaptive-box__body[data-v-e8305a54]{overflow:hidden;margin-left:auto;margin-right:auto}.yk-adaptive-box .adaptive-box__content[data-v-e8305a54]{transform-origin:left top;width:fit-content;--adaptive-height: initial}.yk-coordinate-pickup-autocomplete li{margin-bottom:8px}.yk-coordinate-pickup-autocomplete .autocomplete-subtitle{font-size:12px;color:var(--el-text-color-secondary);line-height:12px}.amap-content-body,.amap-content-body .amap-lib-infowindow{background:inherit}.yk-coordinate-pickup-form[data-v-50d6439a] .el-form-item{margin-right:16px}.coordinate-pickup[data-v-50d6439a]{height:50vh;min-height:400px;max-height:920px}.yk-drag-drop-box[data-v-382a0b07]{position:absolute}.yk-drag-drop-container .drag-drop-content[data-v-3f6ac8f9]{width:fit-content;height:fit-content}.yk-progress-bar[data-v-20c5ac2c]{position:relative;display:flex;align-items:center}.icon[data-v-b3bb1cc0]{color:#fff}.icon.is-active[data-v-b3bb1cc0]{color:#157edf}.yk-ys-video[data-v-fcc7df5f] .header-controls div:nth-child(2) .theme-icon-item{width:32px!important;display:flex;justify-content:center;align-items:center;padding-top:6px}.yk-ys-video[data-v-fcc7df5f] .header-controls div:nth-child(2) .theme-icon-item svg{height:48px!important;width:48px!important}.yk-ys-video[data-v-fcc7df5f] .header-controls div:nth-child(2) .theme-icon-item:last-child{padding-left:16px}.play-mask[data-v-fcc7df5f]{background-color:#626365;background-repeat:no-repeat;background-size:100% 100%;top:0;left:0}.play-mask .header[data-v-fcc7df5f]{height:20%;inset:0 auto auto 0;min-height:48px;background:linear-gradient(to bottom,#0008 0,#0006 30%,#0003 50%,#0000);padding:10px 8px;width:100%}.play-mask .header .title-box[data-v-fcc7df5f]{max-width:50%;height:48px}.yk-show-log[data-v-c861503e]{background:#fff;border-radius:5px;padding:10px;-webkit-user-select:none;user-select:none;box-shadow:0 2px 4px #ccc;min-width:150px}.yk-show-log.is-min[data-v-c861503e]{overflow:hidden}.yk-empty{position:relative}.yk-empty .empty-box_content{width:100%;height:100%}.yk-empty .empty-box_content.is-hide{opacity:0}.yk-empty .empty-box_error{width:100%;height:100%;position:absolute;z-index:5;display:flex;justify-content:center;align-items:center}.yk-empty .empty-box_error .el-empty{--el-empty-padding: 0}.yk-empty .empty-box_error .empty-box__image{opacity:var(--opacity);filter:hue-rotate(var(--hue-rotate))}.yk-echarts-canvas[data-v-96596bfc]{position:relative}.yk-echarts-canvas .echarts-canvas__inner[data-v-96596bfc]{width:100%;height:100%;position:absolute;z-index:2}.yk-echarts-canvas .echarts-canvas__inner.is-empty[data-v-96596bfc]{opacity:0}.yk-scroll-container[data-v-b353085e]{overflow:auto}.yk-scroll-container[data-v-b353085e]::-webkit-scrollbar{width:0;height:0}.yk-scroll-container .scroll-inner[data-v-b353085e]{display:flex;width:100%;flex-direction:column}[data-v-ae5f15a6] .el-pagination{--el-pagination-bg-color: transparent;--el-pagination-button-disabled-bg-color: transparent}.yk-table-pagination[data-v-ae5f15a6]{padding:16px 0 8px}.yk-upload-image[data-v-ed9c611a]{margin-bottom:-8px}.yk-upload-image.limit_is-max[data-v-ed9c611a] .el-upload-list--picture-card .el-upload--picture-card{display:none}.yk-upload-image[data-v-ed9c611a] .el-upload-list--picture-card .el-upload-list__item{width:var(--upload-size-w);height:var(--upload-size-h)}.yk-upload-image[data-v-ed9c611a] .el-upload-list--picture-card .el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:none!important}.yk-upload-image[data-v-ed9c611a] .el-upload-list--picture-card .el-upload-list__item.is-success:focus .el-upload-list__item-status-label{display:inline-flex;opacity:1}.yk-upload-image[data-v-ed9c611a] .el-upload-list--picture-card .el-upload--picture-card{margin-bottom:8px;width:var(--upload-size-w);height:var(--upload-size-h)}.yk-upload-files[data-v-3fae856c] .el-upload.is-drag{width:var(--upload-size-w);height:var(--upload-size-h)}.yk-upload-files[data-v-3fae856c] .el-upload .el-upload-dragger{padding:unset;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.yk-upload-files[data-v-3fae856c] .el-upload-list,.yk-upload-file[data-v-d1245dee] .el-upload-list{margin:unset}.yk-images-box[data-v-68420d14]{display:flex;flex-wrap:wrap;gap:8px}.yk-images-box[data-v-68420d14] .el-image{width:var(--size-w);height:var(--size-h)}
|
|
@@ -2087,6 +2087,30 @@
|
|
|
2087
2087
|
resize: inherit !important;
|
|
2088
2088
|
}
|
|
2089
2089
|
|
|
2090
|
+
.container-normal {
|
|
2091
|
+
container-type: normal !important;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
.container-size {
|
|
2095
|
+
container-type: size !important;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
.container-inline-size {
|
|
2099
|
+
container-type: inline-size !important;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
.container-inherit {
|
|
2103
|
+
container-type: inherit !important;
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
.container-initial {
|
|
2107
|
+
container-type: initial !important;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
.container-unset {
|
|
2111
|
+
container-type: unset !important;
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2090
2114
|
.debugger-bor-1 {
|
|
2091
2115
|
outline: 2px dashed hsl(50, 100%, 50%);
|
|
2092
2116
|
box-shadow: inset 0 0 10px 0 hsla(50, 100%, 50%, 0.7);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mrxy-yk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A collection of Vue 3 components and utilities",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"./global": "./global.d.ts",
|
|
49
49
|
"./utils/amap/@type": "./dist/utils/amap/@type/index.d.ts",
|
|
50
|
+
"./styles/*": "./dist/styles/*",
|
|
50
51
|
"./*": {
|
|
51
52
|
"import": "./dist/*",
|
|
52
53
|
"types": "./dist/*.d.ts"
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"web-types.json",
|
|
64
65
|
"global.d.ts"
|
|
65
66
|
],
|
|
66
|
-
"style": "dist/styles/index.css",
|
|
67
|
+
"style": "dist/styles/tools/index.css",
|
|
67
68
|
"web-types": "web-types.json",
|
|
68
69
|
"repository": {
|
|
69
70
|
"type": "git",
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "mrxy-yk",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.18",
|
|
5
5
|
"js-types-syntax": "typescript",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -502,6 +502,11 @@
|
|
|
502
502
|
],
|
|
503
503
|
"description": "缺省组件Hook实例,可以直接拥有缺省功能"
|
|
504
504
|
}
|
|
505
|
+
],
|
|
506
|
+
"slots": [
|
|
507
|
+
{
|
|
508
|
+
"name": "default"
|
|
509
|
+
}
|
|
505
510
|
]
|
|
506
511
|
},
|
|
507
512
|
{
|