qtsk-vue3 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/package/component.js +28 -125
- package/package/components/{QTButton → Button}/index.vue +1 -1
- package/package/components/{QTContainer → Container}/index.vue +1 -1
- package/package/components/{QTDatePicker → DatePicker}/index.vue +1 -1
- package/package/components/{QTDialog → Dialog}/index.vue +1 -1
- package/package/components/{QTForm → Form}/index.vue +1 -1
- package/package/components/{QTFormItem → FormItem}/index.vue +1 -1
- package/package/components/{QTIcons → Icons}/index.vue +1 -1
- package/package/components/{QTInput → Input}/index.vue +1 -1
- package/package/components/{QTMenu → Menu}/index.vue +7 -7
- package/package/components/{QTMessage → Message}/index.js +3 -3
- package/package/components/{QTPagination → Pagination}/index.vue +1 -1
- package/package/components/{QTSelect → Select}/index.vue +1 -1
- package/package/components/{QTSwitch → Switch}/index.vue +1 -1
- package/package/components/{QTTable → Table}/index.vue +1 -1
- package/package/components/{QTTree → Tree}/index.vue +1 -1
- package/package/index.backup.js +4 -2
- package/package/index.js +5 -2
- package/package/style/root.css +2 -2
- package/package.json +1 -1
package/package/component.js
CHANGED
@@ -1,130 +1,33 @@
|
|
1
|
-
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import McCity from './components/city'
|
16
|
-
import McCityPicker from './components/city-picker'
|
17
|
-
import McAddress from './components/address'
|
18
|
-
import McFuzzySearch from './components/fuzzy-search'
|
19
|
-
import McTip from './components/tip'
|
20
|
-
import McPopup from './components/popup'
|
21
|
-
import McTable from './components/table'
|
22
|
-
import McTableColumn from './components/table-column'
|
23
|
-
import McPagination from './components/pagination'
|
24
|
-
import McForm from './components/form'
|
25
|
-
import McFormItem from './components/form-item'
|
26
|
-
import McSelect from './components/select'
|
27
|
-
import McSelectOption from './components/select-option'
|
28
|
-
import McDatePicker from './components/date-picker'
|
29
|
-
import McMonthPicker from './components/month-picker'
|
30
|
-
import McDropdown from './components/dropdown'
|
31
|
-
import McImport from './components/import'
|
32
|
-
// import McNotification from './components/notification'
|
33
|
-
import McCollapse from './components/collapse'
|
34
|
-
import McCollapseItem from './components/collapse-item'
|
35
|
-
import McCollapseTransition from './components/collapse-transition'
|
36
|
-
import McUpload from './components/upload'
|
37
|
-
import McDepartmentTree from './components/department-tree'
|
38
|
-
import McDepartmentPicker from './components/department-picker'
|
39
|
-
import McPermissionTree from './components/permission-tree'
|
40
|
-
import McLabel from './components/label'
|
41
|
-
import McJobFuncPicker from './components/job-func'
|
42
|
-
import McAmountRange from './components/amount-range'
|
43
|
-
|
44
|
-
// 新版table控件 支持除jsx外的调用方式
|
45
|
-
import {McTableV2,McTableV2Column} from './components/tableV2'
|
46
|
-
|
47
|
-
export default [
|
48
|
-
McLink,
|
49
|
-
McBreadcrumb,
|
50
|
-
McButton,
|
51
|
-
McCheckbox,
|
52
|
-
McCheckboxGroup,
|
53
|
-
McRadio,
|
54
|
-
McRadioGroup,
|
55
|
-
McProgress,
|
56
|
-
McInput,
|
57
|
-
McSlide,
|
58
|
-
McSwitch,
|
59
|
-
McTab,
|
60
|
-
McTextarea,
|
61
|
-
McTree,
|
62
|
-
McCity,
|
63
|
-
McCityPicker,
|
64
|
-
McAddress,
|
65
|
-
McFuzzySearch,
|
66
|
-
McTip,
|
67
|
-
McPopup,
|
68
|
-
McTable,
|
69
|
-
McTableColumn,
|
70
|
-
McPagination,
|
71
|
-
McForm,
|
72
|
-
McFormItem,
|
73
|
-
McSelect,
|
74
|
-
McSelectOption,
|
75
|
-
McDatePicker,
|
76
|
-
McMonthPicker,
|
77
|
-
McDropdown,
|
78
|
-
McImport,
|
79
|
-
// McNotification,
|
80
|
-
McCollapse,
|
81
|
-
McCollapseItem,
|
82
|
-
McCollapseTransition,
|
83
|
-
McUpload,
|
84
|
-
McDepartmentTree,
|
85
|
-
McDepartmentPicker,
|
86
|
-
McPermissionTree,
|
87
|
-
McLabel,
|
88
|
-
McJobFuncPicker,
|
89
|
-
|
90
|
-
// new version table package
|
91
|
-
McTableV2,
|
92
|
-
McTableV2Column,
|
93
|
-
|
94
|
-
McAmountRange,
|
95
|
-
]
|
96
|
-
*/
|
97
|
-
|
98
|
-
import QTButton from './components/QTButton/index.vue'
|
99
|
-
import QTContainer from './components/QTContainer/index.vue'
|
100
|
-
import QTMenu from './components/QTMenu/index.vue'
|
101
|
-
import QTIcons from './components/QTIcons/index.vue'
|
102
|
-
import QTInput from './components/QTInput/index.vue'
|
103
|
-
import QTSelect from './components/QTSelect/index.vue'
|
104
|
-
import QTTable from './components/QTTable/index.vue'
|
105
|
-
import QTSwitch from './components/QTSwitch/index.vue'
|
106
|
-
import QTPagination from './components/QTPagination/index.vue'
|
107
|
-
import QTDatePicker from './components/QTDatePicker/index.vue'
|
108
|
-
import QTTree from './components/QTTree/index.vue'
|
109
|
-
import QTDialog from './components/QTDialog/index.vue'
|
110
|
-
import QTForm from './components/QTForm/index.vue'
|
111
|
-
import QTFormItem from './components/QTFormItem/index.vue'
|
1
|
+
import Button from './components/Button/index.vue'
|
2
|
+
import Container from './components/Container/index.vue'
|
3
|
+
import Menu from './components/Menu/index.vue'
|
4
|
+
import Icons from './components/Icons/index.vue'
|
5
|
+
import Input from './components/Input/index.vue'
|
6
|
+
import Select from './components/Select/index.vue'
|
7
|
+
import Table from './components/Table/index.vue'
|
8
|
+
import Switch from './components/Switch/index.vue'
|
9
|
+
import Pagination from './components/Pagination/index.vue'
|
10
|
+
import DatePicker from './components/DatePicker/index.vue'
|
11
|
+
import Tree from './components/Tree/index.vue'
|
12
|
+
import Dialog from './components/Dialog/index.vue'
|
13
|
+
import Form from './components/Form/index.vue'
|
14
|
+
import FormItem from './components/FormItem/index.vue'
|
112
15
|
|
113
16
|
const components =
|
114
17
|
[
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
18
|
+
Button,
|
19
|
+
Container,
|
20
|
+
Menu,
|
21
|
+
Icons,
|
22
|
+
Input,
|
23
|
+
Select,
|
24
|
+
Table,
|
25
|
+
Switch,
|
26
|
+
Pagination,
|
27
|
+
DatePicker,
|
28
|
+
Tree,
|
29
|
+
Dialog,
|
30
|
+
Form,
|
31
|
+
FormItem
|
129
32
|
]
|
130
33
|
export default components
|
@@ -3,15 +3,15 @@
|
|
3
3
|
<el-menu class="el-menu-vertical-demo" router :collapse="isCollapse" :default-active="activeMenu"
|
4
4
|
@open="handleOpen" @close="handleClose">
|
5
5
|
<el-menu-item :index="menu.path" v-for="(menu, index) in menus" :key="index">
|
6
|
-
<
|
6
|
+
<Icons :type="menu.icon"></Icons>
|
7
7
|
<template #title>
|
8
8
|
<span>{{ menu.name }}</span>
|
9
9
|
</template>
|
10
10
|
</el-menu-item>
|
11
11
|
</el-menu>
|
12
12
|
<div class="menu_btn">
|
13
|
-
<
|
14
|
-
<
|
13
|
+
<Icons v-if="isCollapse" @click="isCollapse = false" :type="'DArrowRight'"></Icons>
|
14
|
+
<Icons v-else @click="isCollapse = true" :type="'DArrowLeft'"></Icons>
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
</template>
|
@@ -19,10 +19,10 @@
|
|
19
19
|
<script setup>
|
20
20
|
import { ref } from 'vue'
|
21
21
|
import { ElMenu, ElMenuItem } from 'element-plus'
|
22
|
-
import
|
22
|
+
import Icons from '../Icons/index.vue'
|
23
23
|
|
24
24
|
defineOptions({
|
25
|
-
name: '
|
25
|
+
name: 'Menu'
|
26
26
|
})
|
27
27
|
defineProps({
|
28
28
|
menus: {
|
@@ -59,8 +59,8 @@ const handleClose = (key, keyPath) => {
|
|
59
59
|
}
|
60
60
|
|
61
61
|
.is-active {
|
62
|
-
color: var(--
|
63
|
-
background-color: var(--
|
62
|
+
color: var(--main-color);
|
63
|
+
background-color: var(--main-background-color);
|
64
64
|
}
|
65
65
|
}
|
66
66
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* Message 消息提示包含四种类型: error(错误), success(成功), warning(警告), info(信息)
|
3
3
|
*/
|
4
4
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
5
5
|
|
6
|
-
export const
|
6
|
+
export const Message = {
|
7
7
|
error: (message) => {
|
8
8
|
ElMessage.error(message)
|
9
9
|
},
|
@@ -24,4 +24,4 @@ export const QTMessage = {
|
|
24
24
|
}
|
25
25
|
}
|
26
26
|
|
27
|
-
export const
|
27
|
+
export const MessageBox = ElMessageBox
|
package/package/index.backup.js
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
import Components from './component'
|
2
|
+
import { QTMessage, QTMessageBox } from './components/Message'
|
3
|
+
|
2
4
|
const makeInstaller = (components = [], directives = []) => {
|
3
5
|
const apps = []
|
4
6
|
const install = (app, opts) => {
|
@@ -15,6 +17,6 @@ const makeInstaller = (components = [], directives = []) => {
|
|
15
17
|
|
16
18
|
const install = makeInstaller(Components)
|
17
19
|
|
18
|
-
export { install, install as default }
|
20
|
+
export { QTMessage, QTMessageBox, install, install as default }
|
19
21
|
|
20
|
-
console.info('%c====== Editing in local package ======', 'font-size:16px;color:green;')
|
22
|
+
console.info('%c====== Editing in local package ======', 'font-size:16px;color:green;')
|
package/package/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import Components from './component'
|
2
|
-
import {
|
2
|
+
import { Message, MessageBox } from './components/Message'
|
3
3
|
|
4
4
|
const makeInstaller = (components = [], directives = []) => {
|
5
5
|
const apps = []
|
@@ -17,6 +17,9 @@ const makeInstaller = (components = [], directives = []) => {
|
|
17
17
|
|
18
18
|
const install = makeInstaller(Components)
|
19
19
|
|
20
|
-
export {
|
20
|
+
export { Message, MessageBox, install, install as default }
|
21
21
|
|
22
22
|
console.info('%c====== Editing in local package ======', 'font-size:16px;color:green;')
|
23
|
+
|
24
|
+
|
25
|
+
console.info('%c====== Editing in local package ======', 'font-size:16px;color:yellow;')
|
package/package/style/root.css
CHANGED