bootstrap-vue-top 1.0.13 → 1.0.15
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/package.json +2 -7
- package/.browserslistrc +0 -12
- package/postcss.config.js +0 -5
- package/src/components/accordion/accordion-item.vue +0 -27
- package/src/components/accordion/accordion-keys.js +0 -1
- package/src/components/accordion/accordion.vue +0 -84
- package/src/components/alert/alert.js +0 -10
- package/src/components/alert-box/alert-box.vue +0 -73
- package/src/components/alert-box/index.js +0 -25
- package/src/components/alert-confirm/alert-confirm.vue +0 -80
- package/src/components/alert-confirm/index.js +0 -26
- package/src/components/alert-message/alert-message.vue +0 -63
- package/src/components/alert-message/index.js +0 -27
- package/src/components/backtop/backtop.vue +0 -61
- package/src/components/carousel/carousel.vue +0 -107
- package/src/components/collapse/collapse.js +0 -8
- package/src/components/dropdown/dropdown.js +0 -11
- package/src/components/image-preview/image-preview.vue +0 -261
- package/src/components/image-preview/index.js +0 -26
- package/src/components/loading/index.js +0 -45
- package/src/components/loading/loading-fullscreen.vue +0 -47
- package/src/components/loading/loading.vue +0 -47
- package/src/components/modal/modal.vue +0 -83
- package/src/components/modal-2/counter.js +0 -25
- package/src/components/modal-2/modal-2.vue +0 -256
- package/src/components/offcanvas/offcanvas.vue +0 -71
- package/src/components/pagination/pagination.vue +0 -216
- package/src/components/popover/popover.js +0 -10
- package/src/components/scrollspy/scrollspy.js +0 -16
- package/src/components/table/table-col.vue +0 -61
- package/src/components/table/table-keys.js +0 -2
- package/src/components/table/table.vue +0 -320
- package/src/components/tabs/tab-pane.vue +0 -32
- package/src/components/tabs/tabs-keys.js +0 -1
- package/src/components/tabs/tabs.vue +0 -240
- package/src/components/toast/index.js +0 -29
- package/src/components/toast/toast.vue +0 -92
- package/src/components/tooltip/tooltip.js +0 -10
- package/src/components/tree/tree-keys.js +0 -7
- package/src/components/tree/tree-node.vue +0 -144
- package/src/components/tree/tree.vue +0 -92
- package/src/components/treetable/treetable-col.vue +0 -37
- package/src/components/treetable/treetable-keys.js +0 -3
- package/src/components/treetable/treetable-node.vue +0 -104
- package/src/components/treetable/treetable.vue +0 -114
- package/src/components/uploader/file-uploader.vue +0 -68
- package/src/components/uploader/image-many-uploader.vue +0 -173
- package/src/components/uploader/image-one-uploader.vue +0 -78
- package/src/index.js +0 -64
- package/src/styles/alert.scss +0 -33
- package/src/styles/backtop.scss +0 -7
- package/src/styles/image-preview.scss +0 -11
- package/src/styles/index.scss +0 -97
- package/src/styles/loading.scss +0 -12
- package/src/styles/modal-2.scss +0 -8
- package/src/styles/uploader.scss +0 -29
- package/vite.config.js +0 -58
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="image-uploader-many">
|
|
3
|
-
<div
|
|
4
|
-
v-for="(imgUrl, index) in imgUrls"
|
|
5
|
-
class="position-relative"
|
|
6
|
-
:style="{ width: width, height: height }"
|
|
7
|
-
:key="imgUrl"
|
|
8
|
-
draggable="false"
|
|
9
|
-
@dragstart="dragstart(imgUrl, $event)"
|
|
10
|
-
@dragenter="dragenter(imgUrl, $event)"
|
|
11
|
-
@dragend="dragend"
|
|
12
|
-
@dragover="dragover"
|
|
13
|
-
>
|
|
14
|
-
<a href="#" class="d-block w-100 h-100" draggable="false" @click.prevent="handlePreview(index)"
|
|
15
|
-
><img draggable="false" class="d-block border object-fit-cover rounded w-100 h-100" :src="imgUrl"
|
|
16
|
-
/></a>
|
|
17
|
-
<div class="position-absolute top-0 start-0 end-0 z-1 d-flex p-2">
|
|
18
|
-
<button
|
|
19
|
-
v-if="sortable"
|
|
20
|
-
type="button"
|
|
21
|
-
:disabled="disabled"
|
|
22
|
-
class="btn btn-secondary d-none d-lg-block"
|
|
23
|
-
style="
|
|
24
|
-
--bs-btn-padding-x: 0.5rem;
|
|
25
|
-
--bs-btn-padding-y: 0.5rem;
|
|
26
|
-
--bs-btn-line-height: 1;
|
|
27
|
-
--bs-btn-border-radius: 50%;
|
|
28
|
-
cursor: move;
|
|
29
|
-
"
|
|
30
|
-
@mousedown="handleStart"
|
|
31
|
-
@mouseup="handleEnd"
|
|
32
|
-
>
|
|
33
|
-
<bi-arrows-move />
|
|
34
|
-
</button>
|
|
35
|
-
<button
|
|
36
|
-
type="button"
|
|
37
|
-
:disabled="disabled"
|
|
38
|
-
class="btn btn-secondary ms-auto"
|
|
39
|
-
style="
|
|
40
|
-
--bs-btn-padding-x: 0.5rem;
|
|
41
|
-
--bs-btn-padding-y: 0.5rem;
|
|
42
|
-
--bs-btn-line-height: 1;
|
|
43
|
-
--bs-btn-border-radius: 50%;
|
|
44
|
-
"
|
|
45
|
-
@click.stop="handleRemove(index)"
|
|
46
|
-
>
|
|
47
|
-
<bi-trash />
|
|
48
|
-
</button>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
<button
|
|
52
|
-
type="button"
|
|
53
|
-
:disabled="disabled"
|
|
54
|
-
class="btn btn-image-uploader"
|
|
55
|
-
:style="{ width: width, height: height }"
|
|
56
|
-
@click="openImageDialog"
|
|
57
|
-
>
|
|
58
|
-
<bi-plus-lg class="fs-3" />
|
|
59
|
-
</button>
|
|
60
|
-
<input
|
|
61
|
-
ref="fileRef"
|
|
62
|
-
type="file"
|
|
63
|
-
multiple
|
|
64
|
-
name="file"
|
|
65
|
-
style="display: none"
|
|
66
|
-
accept="image/*"
|
|
67
|
-
@change="handleChange"
|
|
68
|
-
/>
|
|
69
|
-
</div>
|
|
70
|
-
<slot v-if="$slots.tip" name="tip"></slot>
|
|
71
|
-
</template>
|
|
72
|
-
|
|
73
|
-
<script setup>
|
|
74
|
-
import { shallowRef } from 'vue';
|
|
75
|
-
|
|
76
|
-
const emit = defineEmits(['file-change', 'file-remove', 'file-preview']);
|
|
77
|
-
|
|
78
|
-
const props = defineProps({
|
|
79
|
-
imgUrls: {
|
|
80
|
-
type: Array,
|
|
81
|
-
default: []
|
|
82
|
-
},
|
|
83
|
-
width: {
|
|
84
|
-
type: String,
|
|
85
|
-
default: '160px'
|
|
86
|
-
},
|
|
87
|
-
height: {
|
|
88
|
-
type: String,
|
|
89
|
-
default: '160px'
|
|
90
|
-
},
|
|
91
|
-
disabled: {
|
|
92
|
-
type: Boolean,
|
|
93
|
-
default: false
|
|
94
|
-
},
|
|
95
|
-
sortable: {
|
|
96
|
-
type: Boolean,
|
|
97
|
-
default: false
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
const fileRef = shallowRef(null);
|
|
102
|
-
function openImageDialog() {
|
|
103
|
-
fileRef.value.click();
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function handleChange(event) {
|
|
107
|
-
emit('file-change', event.target);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
function handleRemove(index) {
|
|
111
|
-
emit('file-remove', index);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function handlePreview(index) {
|
|
115
|
-
emit('file-preview', index);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
//拖动排序
|
|
119
|
-
let dragId = null;
|
|
120
|
-
function dragstart(imgUrl, event) {
|
|
121
|
-
//监听dragOption拖动开始
|
|
122
|
-
dragId = imgUrl;
|
|
123
|
-
|
|
124
|
-
let elem = event.currentTarget.querySelector('img');
|
|
125
|
-
elem.classList.add('border-primary');
|
|
126
|
-
|
|
127
|
-
event.dataTransfer.effectAllowd = 'move';
|
|
128
|
-
}
|
|
129
|
-
function dragenter(imgUrl, event) {
|
|
130
|
-
//监听dragId排序拖动的放置
|
|
131
|
-
event.preventDefault();
|
|
132
|
-
|
|
133
|
-
var sourceId = dragId;
|
|
134
|
-
var targetId = imgUrl;
|
|
135
|
-
|
|
136
|
-
if (!sourceId || !targetId) return;
|
|
137
|
-
if (sourceId === targetId) return;
|
|
138
|
-
|
|
139
|
-
var sourceIdIndex = props.imgUrls.findIndex((imgUrl) => imgUrl === sourceId);
|
|
140
|
-
var targetIdIndex = props.imgUrls.findIndex((imgUrl) => imgUrl === targetId);
|
|
141
|
-
var sourceItem = props.imgUrls[sourceIdIndex];
|
|
142
|
-
props.imgUrls.splice(sourceIdIndex, 1);
|
|
143
|
-
props.imgUrls.splice(targetIdIndex, 0, sourceItem);
|
|
144
|
-
}
|
|
145
|
-
function dragend(event) {
|
|
146
|
-
//监听dragId排序拖动的结束
|
|
147
|
-
event.preventDefault();
|
|
148
|
-
|
|
149
|
-
let elem = event.currentTarget.querySelector('img');
|
|
150
|
-
elem.classList.remove('border-primary');
|
|
151
|
-
|
|
152
|
-
dragId = null; //清除dragId
|
|
153
|
-
event.currentTarget.setAttribute('draggable', false);
|
|
154
|
-
}
|
|
155
|
-
function dragover(event) {
|
|
156
|
-
event.preventDefault();
|
|
157
|
-
//拖放视觉效果
|
|
158
|
-
event.dataTransfer.dropEffect = 'move';
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function handleStart(event) {
|
|
162
|
-
if (event.button !== 0) return;
|
|
163
|
-
const elem = event.currentTarget;
|
|
164
|
-
elem.parentNode.parentNode.setAttribute('draggable', true);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
function handleEnd(event) {
|
|
168
|
-
if (event.button !== 0) return;
|
|
169
|
-
|
|
170
|
-
const elem = event.currentTarget;
|
|
171
|
-
elem.parentNode.parentNode.setAttribute('draggable', false);
|
|
172
|
-
}
|
|
173
|
-
</script>
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="image-uploader-one">
|
|
3
|
-
<div v-if="imgUrl" class="position-relative" :style="{ width: width, height: height }">
|
|
4
|
-
<a href="#" class="d-block w-100 h-100" @click.prevent="handlePreview"
|
|
5
|
-
><img class="d-block border object-fit-cover rounded w-100 h-100" :src="imgUrl"
|
|
6
|
-
/></a>
|
|
7
|
-
<div class="position-absolute top-0 end-0 z-1 p-2">
|
|
8
|
-
<button
|
|
9
|
-
type="button"
|
|
10
|
-
:disabled="disabled"
|
|
11
|
-
class="btn btn-secondary"
|
|
12
|
-
style="
|
|
13
|
-
--bs-btn-padding-x: 0.5rem;
|
|
14
|
-
--bs-btn-padding-y: 0.5rem;
|
|
15
|
-
--bs-btn-line-height: 1;
|
|
16
|
-
--bs-btn-border-radius: 50%;
|
|
17
|
-
"
|
|
18
|
-
@click.stop="handleRemove"
|
|
19
|
-
>
|
|
20
|
-
<bi-trash />
|
|
21
|
-
</button>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
<button
|
|
25
|
-
v-else
|
|
26
|
-
type="button"
|
|
27
|
-
:disabled="disabled"
|
|
28
|
-
class="btn btn-image-uploader"
|
|
29
|
-
:style="{ width: width, height: height }"
|
|
30
|
-
@click="openImageDialog"
|
|
31
|
-
>
|
|
32
|
-
<bi-plus-lg class="fs-3" />
|
|
33
|
-
</button>
|
|
34
|
-
<input ref="fileRef" type="file" name="file" style="display: none" accept="image/*" @change="handleChange" />
|
|
35
|
-
</div>
|
|
36
|
-
<slot v-if="$slots.tip" name="tip"></slot>
|
|
37
|
-
</template>
|
|
38
|
-
|
|
39
|
-
<script setup>
|
|
40
|
-
import { shallowRef } from 'vue';
|
|
41
|
-
const emit = defineEmits(['file-change', 'file-remove', 'file-preview']);
|
|
42
|
-
|
|
43
|
-
const props = defineProps({
|
|
44
|
-
imgUrl: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: null
|
|
47
|
-
},
|
|
48
|
-
width: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: '160px'
|
|
51
|
-
},
|
|
52
|
-
height: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: '160px'
|
|
55
|
-
},
|
|
56
|
-
disabled: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: false
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
const fileRef = shallowRef(null);
|
|
63
|
-
function openImageDialog() {
|
|
64
|
-
fileRef.value.click();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function handleChange(event) {
|
|
68
|
-
emit('file-change', event.target);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function handleRemove() {
|
|
72
|
-
emit('file-remove');
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function handlePreview() {
|
|
76
|
-
emit('file-preview');
|
|
77
|
-
}
|
|
78
|
-
</script>
|
package/src/index.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import './styles/index.scss';
|
|
2
|
-
|
|
3
|
-
import vAlert from './components/alert/alert.js';
|
|
4
|
-
import vDropdown from './components/dropdown/dropdown.js';
|
|
5
|
-
import vTooltip from './components/tooltip/tooltip.js';
|
|
6
|
-
import vPopover from './components/popover/popover.js';
|
|
7
|
-
import vScrollspy from './components/scrollspy/scrollspy.js';
|
|
8
|
-
import vCollapse from './components/collapse/collapse.js';
|
|
9
|
-
|
|
10
|
-
import BvTable from './components/table/table.vue';
|
|
11
|
-
import BvTableCol from './components/table/table-col.vue';
|
|
12
|
-
import BvPagination from './components/pagination/pagination.vue';
|
|
13
|
-
import BvModal from './components/modal/modal.vue';
|
|
14
|
-
import BvModal2 from './components/modal-2/modal-2.vue';
|
|
15
|
-
import BvTree from './components/tree/tree.vue';
|
|
16
|
-
import BvTreetable from './components/treetable/treetable.vue';
|
|
17
|
-
import BvTreetableCol from './components/treetable/treetable-col.vue';
|
|
18
|
-
import BvTabs from './components/tabs/tabs.vue';
|
|
19
|
-
import BvTabPane from './components/tabs/tab-pane.vue';
|
|
20
|
-
import BvAccordion from './components/accordion/accordion.vue';
|
|
21
|
-
import BvAccordionItem from './components/accordion/accordion-item.vue';
|
|
22
|
-
import BvCarousel from './components/carousel/carousel.vue';
|
|
23
|
-
import BvOffcanvas from './components/offcanvas/offcanvas.vue';
|
|
24
|
-
import BvBacktop from './components/backtop/backtop.vue';
|
|
25
|
-
import BvImageOneUploader from './components/uploader/image-one-uploader.vue';
|
|
26
|
-
import BvImageManyUploader from './components/uploader/image-many-uploader.vue';
|
|
27
|
-
import BvFileUploader from './components/uploader/file-uploader.vue';
|
|
28
|
-
import BvLoading from './components/loading/loading.vue';
|
|
29
|
-
|
|
30
|
-
export default {
|
|
31
|
-
install: (app, options) => {
|
|
32
|
-
app.directive('alert', vAlert);
|
|
33
|
-
app.directive('dropdown', vDropdown);
|
|
34
|
-
app.directive('tooltip', vTooltip);
|
|
35
|
-
app.directive('popover', vPopover);
|
|
36
|
-
app.directive('scrollspy', vScrollspy);
|
|
37
|
-
app.directive('collapse', vCollapse);
|
|
38
|
-
|
|
39
|
-
app.component('BvTable', BvTable).component('BvTableCol', BvTableCol);
|
|
40
|
-
app.component('BvPagination', BvPagination);
|
|
41
|
-
app.component('BvModal', BvModal);
|
|
42
|
-
app.component('BvModal2', BvModal2);
|
|
43
|
-
app.component('BvTree', BvTree);
|
|
44
|
-
app.component('BvTreetable', BvTreetable).component('BvTreetableCol', BvTreetableCol);
|
|
45
|
-
app.component('BvTabs', BvTabs).component('BvTabPane', BvTabPane);
|
|
46
|
-
app.component('BvAccordion', BvAccordion).component('BvAccordionItem', BvAccordionItem);
|
|
47
|
-
app.component('BvCarousel', BvCarousel);
|
|
48
|
-
app.component('BvOffcanvas', BvOffcanvas);
|
|
49
|
-
app.component('BvBacktop', BvBacktop);
|
|
50
|
-
app.component('BvImageOneUploader', BvImageOneUploader);
|
|
51
|
-
app.component('BvImageManyUploader', BvImageManyUploader);
|
|
52
|
-
app.component('BvFileUploader', BvFileUploader);
|
|
53
|
-
app.component('BvLoading', BvLoading);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
import alertBox from './components/alert-box/index.js';
|
|
58
|
-
import alertConfirm from './components/alert-confirm/index.js';
|
|
59
|
-
import alertMessage from './components/alert-message/index.js';
|
|
60
|
-
import imagePreview from './components/image-preview/index.js';
|
|
61
|
-
import LoadingFullscreen from './components/loading/index.js';
|
|
62
|
-
import toast from './components/toast/index.js';
|
|
63
|
-
|
|
64
|
-
export { alertBox, alertConfirm, alertMessage, imagePreview, LoadingFullscreen, toast };
|
package/src/styles/alert.scss
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.alert-message {
|
|
3
|
-
z-index: $zindex-alert;
|
|
4
|
-
position: fixed;
|
|
5
|
-
width: fit-content;
|
|
6
|
-
max-width: 75%;
|
|
7
|
-
top: 0.5rem;
|
|
8
|
-
left: 0;
|
|
9
|
-
right: 0;
|
|
10
|
-
margin: 0 auto;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.alert-box {
|
|
14
|
-
z-index: $zindex-alert;
|
|
15
|
-
position: fixed;
|
|
16
|
-
top: 0;
|
|
17
|
-
left: 0;
|
|
18
|
-
width: 100vw;
|
|
19
|
-
height: 100%;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
background-color: rgba(0, 0, 0, .5);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.alert-confirm {
|
|
25
|
-
z-index: $zindex-alert;
|
|
26
|
-
position: fixed;
|
|
27
|
-
top: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
width: 100vw;
|
|
30
|
-
height: 100%;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
background-color: rgba(0, 0, 0, .5);
|
|
33
|
-
}
|
package/src/styles/backtop.scss
DELETED
package/src/styles/index.scss
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
@import 'bootstrap/scss/mixins/banner';
|
|
2
|
-
@include bsBanner('');
|
|
3
|
-
|
|
4
|
-
// 覆盖变量
|
|
5
|
-
$enable-validation-icons: false;
|
|
6
|
-
$pagination-padding-y-lg: 0.5rem;
|
|
7
|
-
$modal-footer-margin-between: 1rem;
|
|
8
|
-
|
|
9
|
-
// 自定义变量
|
|
10
|
-
$zindex-backtop: 990;
|
|
11
|
-
$zindex-image-preview: 1082;
|
|
12
|
-
$zindex-loading-fullscreen: 1083;
|
|
13
|
-
$zindex-alert: 1085;
|
|
14
|
-
|
|
15
|
-
// Configuration
|
|
16
|
-
@import 'bootstrap/scss/functions';
|
|
17
|
-
@import 'bootstrap/scss/variables';
|
|
18
|
-
@import 'bootstrap/scss/variables-dark';
|
|
19
|
-
@import 'bootstrap/scss/maps';
|
|
20
|
-
@import 'bootstrap/scss/mixins';
|
|
21
|
-
@import 'bootstrap/scss/utilities';
|
|
22
|
-
|
|
23
|
-
// Layout & components
|
|
24
|
-
@import 'bootstrap/scss/root';
|
|
25
|
-
@import 'bootstrap/scss/reboot';
|
|
26
|
-
@import 'bootstrap/scss/type';
|
|
27
|
-
@import 'bootstrap/scss/images';
|
|
28
|
-
@import 'bootstrap/scss/containers';
|
|
29
|
-
@import 'bootstrap/scss/grid';
|
|
30
|
-
@import 'bootstrap/scss/tables';
|
|
31
|
-
@import 'bootstrap/scss/forms';
|
|
32
|
-
@import 'bootstrap/scss/buttons';
|
|
33
|
-
@import 'bootstrap/scss/transitions';
|
|
34
|
-
@import 'bootstrap/scss/dropdown';
|
|
35
|
-
@import 'bootstrap/scss/button-group';
|
|
36
|
-
@import 'bootstrap/scss/nav';
|
|
37
|
-
@import 'bootstrap/scss/navbar';
|
|
38
|
-
@import 'bootstrap/scss/card';
|
|
39
|
-
@import 'bootstrap/scss/accordion';
|
|
40
|
-
@import 'bootstrap/scss/breadcrumb';
|
|
41
|
-
@import 'bootstrap/scss/pagination';
|
|
42
|
-
@import 'bootstrap/scss/badge';
|
|
43
|
-
@import 'bootstrap/scss/alert';
|
|
44
|
-
@import 'bootstrap/scss/progress';
|
|
45
|
-
@import 'bootstrap/scss/list-group';
|
|
46
|
-
@import 'bootstrap/scss/close';
|
|
47
|
-
@import 'bootstrap/scss/toasts';
|
|
48
|
-
@import 'bootstrap/scss/modal';
|
|
49
|
-
@import 'bootstrap/scss/tooltip';
|
|
50
|
-
@import 'bootstrap/scss/popover';
|
|
51
|
-
@import 'bootstrap/scss/carousel';
|
|
52
|
-
@import 'bootstrap/scss/spinners';
|
|
53
|
-
@import 'bootstrap/scss/offcanvas';
|
|
54
|
-
@import 'bootstrap/scss/placeholders';
|
|
55
|
-
|
|
56
|
-
@import 'modal-2.scss';
|
|
57
|
-
@import 'alert.scss';
|
|
58
|
-
@import 'loading.scss';
|
|
59
|
-
@import 'backtop.scss';
|
|
60
|
-
@import 'uploader.scss';
|
|
61
|
-
@import 'image-preview.scss';
|
|
62
|
-
|
|
63
|
-
// Helpers
|
|
64
|
-
@import 'bootstrap/scss/helpers';
|
|
65
|
-
|
|
66
|
-
// Utilities
|
|
67
|
-
@import 'bootstrap/scss/utilities/api';
|
|
68
|
-
|
|
69
|
-
.bi {
|
|
70
|
-
width: 1em;
|
|
71
|
-
height: 1em;
|
|
72
|
-
line-height: 1;
|
|
73
|
-
display: inline-block;
|
|
74
|
-
vertical-align: -0.125em;
|
|
75
|
-
fill: currentColor;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.fadeIn-enter-active,
|
|
79
|
-
.fadeIn-leave-active {
|
|
80
|
-
transition: opacity 0.3s ease;
|
|
81
|
-
}
|
|
82
|
-
.fadeIn-enter-from,
|
|
83
|
-
.fadeIn-leave-to {
|
|
84
|
-
opacity: 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.fadeInDown-enter-active,
|
|
88
|
-
.fadeInDown-leave-active {
|
|
89
|
-
transition:
|
|
90
|
-
opacity 0.3s,
|
|
91
|
-
transform 0.3s;
|
|
92
|
-
}
|
|
93
|
-
.fadeInDown-enter-from,
|
|
94
|
-
.fadeInDown-leave-to {
|
|
95
|
-
opacity: 0;
|
|
96
|
-
transform: translateY(-60px);
|
|
97
|
-
}
|
package/src/styles/loading.scss
DELETED
package/src/styles/modal-2.scss
DELETED
package/src/styles/uploader.scss
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
.image-uploader-one img:hover {
|
|
4
|
-
opacity: .75;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.image-uploader-many {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-wrap: wrap;
|
|
10
|
-
gap: .5rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.image-uploader-many img:hover {
|
|
14
|
-
opacity: .75;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.btn-image-uploader {
|
|
18
|
-
--bs-btn-padding-x: 0;
|
|
19
|
-
--bs-btn-padding-y: 0;
|
|
20
|
-
--bs-btn-border-radius:var(--bs-border-radius);
|
|
21
|
-
--bs-btn-border-color:var(--bs-border-color);
|
|
22
|
-
--bs-btn-line-height:1;
|
|
23
|
-
display: block;
|
|
24
|
-
border-style: dashed;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.btn-image-uploader:hover {
|
|
28
|
-
border-color:var(--bs-primary);
|
|
29
|
-
}
|
package/vite.config.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath, URL } from 'node:url'
|
|
2
|
-
import { resolve } from 'node:path'
|
|
3
|
-
import { defineConfig } from 'vite'
|
|
4
|
-
import vue from '@vitejs/plugin-vue'
|
|
5
|
-
import Icons from 'unplugin-icons/vite'
|
|
6
|
-
import IconsResolver from 'unplugin-icons/resolver'
|
|
7
|
-
import Components from 'unplugin-vue-components/vite'
|
|
8
|
-
|
|
9
|
-
export default defineConfig({
|
|
10
|
-
plugins: [
|
|
11
|
-
vue(),
|
|
12
|
-
Icons({
|
|
13
|
-
compiler: 'vue3',
|
|
14
|
-
scale: 1, // SVG缩放比例
|
|
15
|
-
defaultClass: 'bi' // 默认 class
|
|
16
|
-
}),
|
|
17
|
-
Components({
|
|
18
|
-
resolvers: [IconsResolver({ prefix: false, enabledCollections: ['bi'] })]
|
|
19
|
-
})
|
|
20
|
-
],
|
|
21
|
-
resolve: {
|
|
22
|
-
alias: {
|
|
23
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
css: {
|
|
27
|
-
preprocessorOptions: {
|
|
28
|
-
scss: {
|
|
29
|
-
silenceDeprecations: [
|
|
30
|
-
'import',
|
|
31
|
-
'mixed-decls',
|
|
32
|
-
'color-functions',
|
|
33
|
-
'global-builtin',
|
|
34
|
-
'if-function'
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
build: {
|
|
40
|
-
target: 'es2015',
|
|
41
|
-
lib: {
|
|
42
|
-
entry: {
|
|
43
|
-
'bootstrap-vue': resolve(import.meta.dirname, 'src/index.js')
|
|
44
|
-
},
|
|
45
|
-
name: 'BootstrapVue',
|
|
46
|
-
fileName: 'bootstrap-vue',
|
|
47
|
-
},
|
|
48
|
-
rolldownOptions: {
|
|
49
|
-
external: ['vue'],
|
|
50
|
-
output: {
|
|
51
|
-
globals: {
|
|
52
|
-
vue: 'Vue'
|
|
53
|
-
},
|
|
54
|
-
exports: 'named'
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
})
|