qy-vue-plugins 1.0.1 → 1.0.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/dist/apply-element-plus-theme.cjs +1 -0
- package/dist/apply-element-plus-theme.mjs +22 -0
- package/dist/chunks/apply-element-plus-theme-DdN9KOhk.js +1 -0
- package/dist/chunks/apply-element-plus-theme-UHVxP4VN.js +22 -0
- package/dist/element-plus-style.cjs +1 -0
- package/dist/element-plus-style.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +13 -10
- package/dist/manageTable/index.cjs +1 -1
- package/dist/manageTable/index.mjs +10 -8
- package/dist/mapbox.cjs +1 -1
- package/dist/mapbox.mjs +22 -20
- package/dist/mapboxV2.cjs +2 -2
- package/dist/mapboxV2.mjs +179 -177
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/apply-element-plus-theme.d.ts +1 -0
- package/dist/types/element-plus-style.d.ts +0 -0
- package/dist/types/manageTable/manageTable.vue.d.ts +2 -2
- package/package/apply-element-plus-theme.ts +23 -0
- package/package/css/common.scss +33 -0
- package/package/css/element-plus-theme.scss +30 -0
- package/package/css/map.scss +42 -0
- package/package/element-plus-style.ts +48 -0
- package/package/manageTable/index.ts +5 -0
- package/package/mapbox/index.ts +5 -0
- package/package/mapboxV2/index.ts +5 -0
- package/package.json +27 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function applyElementPlusTheme(): void;
|
|
File without changes
|
|
@@ -1819,12 +1819,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1819
1819
|
propertyGroup?: string[] | undefined;
|
|
1820
1820
|
layoutType?: "text" | "input" | "textArea" | "singleSelect" | "multipleSelect" | "number" | "selectGroup" | "selectSecond" | "cascader" | "imageList" | "voiceList" | "divider" | "datePicker" | "dateTimePicker" | "location" | "inputGroup" | "container" | "switch" | "quadratChart" | "select" | "previewImage" | undefined;
|
|
1821
1821
|
name?: string | undefined;
|
|
1822
|
+
value?: any;
|
|
1822
1823
|
type: "custom" | "system";
|
|
1823
1824
|
title: string;
|
|
1824
1825
|
layout?: string | undefined;
|
|
1825
1826
|
property: string;
|
|
1826
1827
|
unit?: string | null | undefined;
|
|
1827
|
-
value?: any;
|
|
1828
1828
|
required: boolean;
|
|
1829
1829
|
disabled?: boolean | undefined;
|
|
1830
1830
|
placeholder?: string | undefined;
|
|
@@ -1867,12 +1867,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1867
1867
|
propertyGroup?: string[] | undefined;
|
|
1868
1868
|
layoutType?: "text" | "input" | "textArea" | "singleSelect" | "multipleSelect" | "number" | "selectGroup" | "selectSecond" | "cascader" | "imageList" | "voiceList" | "divider" | "datePicker" | "dateTimePicker" | "location" | "inputGroup" | "container" | "switch" | "quadratChart" | "select" | "previewImage" | undefined;
|
|
1869
1869
|
name?: string | undefined;
|
|
1870
|
+
value?: any;
|
|
1870
1871
|
type: "custom" | "system";
|
|
1871
1872
|
title: string;
|
|
1872
1873
|
layout?: string | undefined;
|
|
1873
1874
|
property: string;
|
|
1874
1875
|
unit?: string | null | undefined;
|
|
1875
|
-
value?: any;
|
|
1876
1876
|
required: boolean;
|
|
1877
1877
|
disabled?: boolean | undefined;
|
|
1878
1878
|
placeholder?: string | undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const elementPlusThemeVars = {
|
|
2
|
+
"--el-color-primary": "#34c28a",
|
|
3
|
+
"--el-color-primary-rgb": "52, 194, 138",
|
|
4
|
+
"--el-color-primary-light-3": "#71d4ad",
|
|
5
|
+
"--el-color-primary-light-5": "#9ae1c5",
|
|
6
|
+
"--el-color-primary-light-7": "#c2eddc",
|
|
7
|
+
"--el-color-primary-light-8": "#d6f3e8",
|
|
8
|
+
"--el-color-primary-light-9": "#ebf9f3",
|
|
9
|
+
"--el-color-primary-dark-2": "#2a9b6e",
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export function applyElementPlusTheme() {
|
|
13
|
+
if (typeof document === "undefined") {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const rootStyle = document.documentElement.style;
|
|
18
|
+
Object.entries(elementPlusThemeVars).forEach(([name, value]) => {
|
|
19
|
+
rootStyle.setProperty(name, value);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
applyElementPlusTheme();
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.qy-flex-col {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
}
|
|
5
|
+
.qy-flex-row {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
}
|
|
9
|
+
.qy-flex-center {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.qy-flex-justify {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
.qy-flex-align {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.qy-flex-between {
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.qy-flex-align-end {
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: flex-end;
|
|
33
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--el-color-primary: #34c28a;
|
|
3
|
+
--el-color-primary-rgb: 52, 194, 138;
|
|
4
|
+
--el-color-primary-light-3: #71d4ad;
|
|
5
|
+
--el-color-primary-light-5: #9ae1c5;
|
|
6
|
+
--el-color-primary-light-7: #c2eddc;
|
|
7
|
+
--el-color-primary-light-8: #d6f3e8;
|
|
8
|
+
--el-color-primary-light-9: #ebf9f3;
|
|
9
|
+
--el-color-primary-dark-2: #2a9b6e;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.el-button--primary {
|
|
13
|
+
--el-button-bg-color: var(--el-color-primary);
|
|
14
|
+
--el-button-border-color: var(--el-color-primary);
|
|
15
|
+
--el-button-hover-bg-color: var(--el-color-primary-light-3);
|
|
16
|
+
--el-button-hover-border-color: var(--el-color-primary-light-3);
|
|
17
|
+
--el-button-active-bg-color: var(--el-color-primary-dark-2);
|
|
18
|
+
--el-button-active-border-color: var(--el-color-primary-dark-2);
|
|
19
|
+
--el-button-outline-color: var(--el-color-primary-light-5);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.el-button--primary.is-plain {
|
|
23
|
+
--el-button-bg-color: var(--el-color-primary-light-9);
|
|
24
|
+
--el-button-border-color: var(--el-color-primary-light-5);
|
|
25
|
+
--el-button-text-color: var(--el-color-primary);
|
|
26
|
+
--el-button-hover-bg-color: var(--el-color-primary);
|
|
27
|
+
--el-button-hover-border-color: var(--el-color-primary);
|
|
28
|
+
--el-button-active-bg-color: var(--el-color-primary-dark-2);
|
|
29
|
+
--el-button-active-border-color: var(--el-color-primary-dark-2);
|
|
30
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.research-location-icon-el {
|
|
2
|
+
width: 32px;
|
|
3
|
+
height: 32px;
|
|
4
|
+
.research-location-img-el {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: auto;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.research-location-point {
|
|
11
|
+
width: 28px;
|
|
12
|
+
height: 44px;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
align-items: center;
|
|
17
|
+
|
|
18
|
+
.research-location-point-content {
|
|
19
|
+
width: 28px;
|
|
20
|
+
height: 28px;
|
|
21
|
+
border-radius: 50%;
|
|
22
|
+
background-color: #fff;
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
|
|
27
|
+
.research-location-point-content-inner {
|
|
28
|
+
width: 22px;
|
|
29
|
+
height: 22px;
|
|
30
|
+
background-color: red;
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.research-location-point-line {
|
|
36
|
+
width: 6px;
|
|
37
|
+
height: 16px;
|
|
38
|
+
background-color: #fff;
|
|
39
|
+
border-bottom-left-radius: 3px;
|
|
40
|
+
border-bottom-right-radius: 3px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import "element-plus/es/components/alert/style/css";
|
|
2
|
+
import "element-plus/es/components/autocomplete/style/css";
|
|
3
|
+
import "element-plus/es/components/button/style/css";
|
|
4
|
+
import "element-plus/es/components/carousel/style/css";
|
|
5
|
+
import "element-plus/es/components/carousel-item/style/css";
|
|
6
|
+
import "element-plus/es/components/cascader/style/css";
|
|
7
|
+
import "element-plus/es/components/checkbox/style/css";
|
|
8
|
+
import "element-plus/es/components/checkbox-group/style/css";
|
|
9
|
+
import "element-plus/es/components/col/style/css";
|
|
10
|
+
import "element-plus/es/components/collapse/style/css";
|
|
11
|
+
import "element-plus/es/components/collapse-item/style/css";
|
|
12
|
+
import "element-plus/es/components/color-picker/style/css";
|
|
13
|
+
import "element-plus/es/components/date-picker/style/css";
|
|
14
|
+
import "element-plus/es/components/dialog/style/css";
|
|
15
|
+
import "element-plus/es/components/divider/style/css";
|
|
16
|
+
import "element-plus/es/components/dropdown/style/css";
|
|
17
|
+
import "element-plus/es/components/dropdown-item/style/css";
|
|
18
|
+
import "element-plus/es/components/dropdown-menu/style/css";
|
|
19
|
+
import "element-plus/es/components/empty/style/css";
|
|
20
|
+
import "element-plus/es/components/form/style/css";
|
|
21
|
+
import "element-plus/es/components/form-item/style/css";
|
|
22
|
+
import "element-plus/es/components/icon/style/css";
|
|
23
|
+
import "element-plus/es/components/image/style/css";
|
|
24
|
+
import "element-plus/es/components/input/style/css";
|
|
25
|
+
import "element-plus/es/components/input-number/style/css";
|
|
26
|
+
import "element-plus/es/components/loading/style/css";
|
|
27
|
+
import "element-plus/es/components/message/style/css";
|
|
28
|
+
import "element-plus/es/components/message-box/style/css";
|
|
29
|
+
import "element-plus/es/components/notification/style/css";
|
|
30
|
+
import "element-plus/es/components/option/style/css";
|
|
31
|
+
import "element-plus/es/components/option-group/style/css";
|
|
32
|
+
import "element-plus/es/components/pagination/style/css";
|
|
33
|
+
import "element-plus/es/components/popover/style/css";
|
|
34
|
+
import "element-plus/es/components/radio/style/css";
|
|
35
|
+
import "element-plus/es/components/radio-group/style/css";
|
|
36
|
+
import "element-plus/es/components/scrollbar/style/css";
|
|
37
|
+
import "element-plus/es/components/select/style/css";
|
|
38
|
+
import "element-plus/es/components/slider/style/css";
|
|
39
|
+
import "element-plus/es/components/switch/style/css";
|
|
40
|
+
import "element-plus/es/components/tab-pane/style/css";
|
|
41
|
+
import "element-plus/es/components/table/style/css";
|
|
42
|
+
import "element-plus/es/components/table-column/style/css";
|
|
43
|
+
import "element-plus/es/components/tabs/style/css";
|
|
44
|
+
import "element-plus/es/components/tooltip/style/css";
|
|
45
|
+
import "element-plus/es/components/tree-select/style/css";
|
|
46
|
+
import "element-plus/es/components/upload/style/css";
|
|
47
|
+
import "./css/element-plus-theme.scss";
|
|
48
|
+
import "./apply-element-plus-theme";
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import "../element-plus-style";
|
|
2
|
+
import { applyElementPlusTheme } from "../apply-element-plus-theme";
|
|
3
|
+
|
|
1
4
|
import MangerTable from "./manageTable.vue";
|
|
2
5
|
import imageReview from "./components/imageReview.vue";
|
|
3
6
|
import { speciesNameQueryKey } from "./ProvideKeys";
|
|
4
7
|
import { filterEventBus, sortEventBus } from "./EventKeys";
|
|
8
|
+
|
|
9
|
+
applyElementPlusTheme();
|
|
5
10
|
// 命名导出
|
|
6
11
|
export { MangerTable, imageReview, speciesNameQueryKey, filterEventBus, sortEventBus };
|
|
7
12
|
|
package/package/mapbox/index.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import "../element-plus-style";
|
|
2
|
+
import { applyElementPlusTheme } from "../apply-element-plus-theme";
|
|
3
|
+
|
|
1
4
|
import MapView from "./MapView.vue";
|
|
2
5
|
import MapLayer from "./components/mapLayer.vue";
|
|
3
6
|
import MapTopic from "./components/mapTopic.vue";
|
|
@@ -8,6 +11,8 @@ import MapCompass from "./components/mapCompass.vue";
|
|
|
8
11
|
import MapTools from "./components/MapTools.vue";
|
|
9
12
|
import MapLegend from "./components/MapLegend.vue";
|
|
10
13
|
import { mapStyleChangedBus, locateToLayerCenterKeyBus } from "./EventKeys";
|
|
14
|
+
|
|
15
|
+
applyElementPlusTheme();
|
|
11
16
|
// Exporting all components and the mapStyleChangedBus for use in other parts of the application
|
|
12
17
|
// This allows for easy import of all map-related components and functionality
|
|
13
18
|
// in other modules or components within the application.
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import "../element-plus-style";
|
|
2
|
+
import { applyElementPlusTheme } from "../apply-element-plus-theme";
|
|
3
|
+
|
|
1
4
|
import MapView from "./MapView.vue";
|
|
2
5
|
import MapLayer from "./pages/MapLayer.vue";
|
|
3
6
|
import MapTopic from "./components/mapTopic.vue";
|
|
@@ -8,6 +11,8 @@ import MapCompass from "./components/mapCompass.vue";
|
|
|
8
11
|
import MapTools from "./components/MapTools.vue";
|
|
9
12
|
import MapLegend from "./components/MapLegend.vue";
|
|
10
13
|
import { mapStyleChangedBus, locateToLayerCenterKeyBus } from "./EventKeys";
|
|
14
|
+
|
|
15
|
+
applyElementPlusTheme();
|
|
11
16
|
// Exporting all components and the mapStyleChangedBus for use in other parts of the application
|
|
12
17
|
// This allows for easy import of all map-related components and functionality
|
|
13
18
|
// in other modules or components within the application.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qy-vue-plugins",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -51,7 +51,12 @@
|
|
|
51
51
|
"package/manageTable/*.js",
|
|
52
52
|
"package/manageTable/*.ts",
|
|
53
53
|
"package/manageTable/components/*.js",
|
|
54
|
-
"package/manageTable/components/*.ts"
|
|
54
|
+
"package/manageTable/components/*.ts",
|
|
55
|
+
"package/apply-element-plus-theme.js",
|
|
56
|
+
"package/apply-element-plus-theme.ts",
|
|
57
|
+
"package/element-plus-style.js",
|
|
58
|
+
"package/element-plus-style.ts",
|
|
59
|
+
"package/css/*.scss"
|
|
55
60
|
],
|
|
56
61
|
"devDependencies": {
|
|
57
62
|
"@types/mapbox__mapbox-gl-draw": "^1.4.9",
|
|
@@ -72,7 +77,14 @@
|
|
|
72
77
|
"main": "./dist/index.cjs",
|
|
73
78
|
"module": "./dist/index.mjs",
|
|
74
79
|
"style": "./dist/qy-vue-plugins.css",
|
|
75
|
-
"sideEffects":
|
|
80
|
+
"sideEffects": [
|
|
81
|
+
"**/*.css",
|
|
82
|
+
"**/*.scss",
|
|
83
|
+
"./dist/apply-element-plus-theme.mjs",
|
|
84
|
+
"./dist/apply-element-plus-theme.cjs",
|
|
85
|
+
"./dist/element-plus-style.mjs",
|
|
86
|
+
"./dist/element-plus-style.cjs"
|
|
87
|
+
],
|
|
76
88
|
"exports": {
|
|
77
89
|
".": {
|
|
78
90
|
"types": "./dist/types/index.d.ts",
|
|
@@ -320,6 +332,18 @@
|
|
|
320
332
|
"require": "./dist/types/manageTable.cjs"
|
|
321
333
|
},
|
|
322
334
|
"./qy-vue-plugins.css": "./dist/qy-vue-plugins.css",
|
|
335
|
+
"./element-plus-style": {
|
|
336
|
+
"types": "./dist/types/element-plus-style.d.ts",
|
|
337
|
+
"import": "./dist/element-plus-style.mjs",
|
|
338
|
+
"require": "./dist/element-plus-style.cjs",
|
|
339
|
+
"default": "./dist/element-plus-style.mjs"
|
|
340
|
+
},
|
|
341
|
+
"./apply-element-plus-theme": {
|
|
342
|
+
"types": "./dist/types/apply-element-plus-theme.d.ts",
|
|
343
|
+
"import": "./dist/apply-element-plus-theme.mjs",
|
|
344
|
+
"require": "./dist/apply-element-plus-theme.cjs",
|
|
345
|
+
"default": "./dist/apply-element-plus-theme.mjs"
|
|
346
|
+
},
|
|
323
347
|
"./dist/types/*": {
|
|
324
348
|
"types": "./dist/types/*"
|
|
325
349
|
},
|