y-admin-ui 0.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/LICENSE +21 -0
- package/README.md +50 -0
- package/global.d.ts +138 -0
- package/lib/favicon.ico +0 -0
- package/lib/index.2c61de1f.js +6 -0
- package/lib/index.d23b5852.js +24736 -0
- package/lib/index.d23b5852.js.gz +0 -0
- package/lib/index.fcb0faf9.js +182 -0
- package/lib/style.css +1 -0
- package/lib/style.css.gz +0 -0
- package/lib/y-admin-ui.js +13 -0
- package/lib/y-admin-ui.umd.cjs +32 -0
- package/package.json +94 -0
- package/typings/index.d.ts +163 -0
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 wocwin
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
## 介绍
|
2
|
+
|
3
|
+
> 基于 vue3+ ts+ Element-plus 二次封装组件
|
4
|
+
|
5
|
+
## npm 方式安装使用
|
6
|
+
|
7
|
+
```bash
|
8
|
+
npm i y-admin-ui
|
9
|
+
```
|
10
|
+
|
11
|
+
## 全局注册使用
|
12
|
+
|
13
|
+
> ### 前提条件:使用项目必须全局注册 Element-plus组件库
|
14
|
+
|
15
|
+
```javascript
|
16
|
+
import { createApp } from 'vue';
|
17
|
+
|
18
|
+
// 在main.js中按下引入
|
19
|
+
import YAdminUi from 'y-admin-ui';
|
20
|
+
import 'y-admin-ui/lib/style.css';
|
21
|
+
|
22
|
+
const app = createApp(App);
|
23
|
+
|
24
|
+
app.use(YAdminUi);
|
25
|
+
```
|
26
|
+
|
27
|
+
```bash
|
28
|
+
npm install -g npm
|
29
|
+
|
30
|
+
# 安装依赖
|
31
|
+
npm install --registry=https://registry.npmjs.org/
|
32
|
+
> npm config get registry 查看当前指向源
|
33
|
+
|
34
|
+
# 如果安装依赖失败,可以尝试使用淘宝镜像 --registry=https://registry.npmmirror.com/
|
35
|
+
> npm config set registry https://registry.npmmirror.com/ 切换淘宝镜像源
|
36
|
+
> npm install
|
37
|
+
```
|
38
|
+
|
39
|
+
### 发包到npm
|
40
|
+
|
41
|
+
```bash
|
42
|
+
npm login
|
43
|
+
|
44
|
+
# 修改 package.json 版本号,允许打包命令
|
45
|
+
npm run lib
|
46
|
+
|
47
|
+
# 执行发布命令
|
48
|
+
npm publish
|
49
|
+
```
|
50
|
+
|
package/global.d.ts
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
|
2
|
+
import TLayoutPage from './lib/layout-page/src/index.vue'
|
3
|
+
import TLayoutPageItem from './lib/layout-page-item/src/index.vue'
|
4
|
+
import TQueryCondition from './lib/query-condition/src/index.vue'
|
5
|
+
import TTable from './lib/table/src/index.vue'
|
6
|
+
import TForm from './lib/form/src/index.vue'
|
7
|
+
import TSelect from './lib/select/src/index.vue'
|
8
|
+
import TSelectTable from './lib/select-table/src/index.vue'
|
9
|
+
import TDetail from './lib/detail/src/index.vue'
|
10
|
+
import TButton from './lib/button/src/index.vue'
|
11
|
+
import TStepWizard from './lib/step-wizard/src/index.vue'
|
12
|
+
import TTimerBtn from './lib/timer-btn/src/index.vue'
|
13
|
+
import TModuleForm from './lib/module-form/src/index.vue'
|
14
|
+
import TAdaptivePage from './lib/adaptive-page/src/index.vue'
|
15
|
+
import TDatePicker from './lib/date-picker/src/index.vue'
|
16
|
+
// GlobalComponents for Volar
|
17
|
+
declare module '@vue/runtime-core' {
|
18
|
+
export interface GlobalComponents {
|
19
|
+
ElAffix: typeof import('element-plus')['ElAffix']
|
20
|
+
ElAlert: typeof import('element-plus')['ElAlert']
|
21
|
+
ElAside: typeof import('element-plus')['ElAside']
|
22
|
+
ElAutocomplete: typeof import('element-plus')['ElAutocomplete']
|
23
|
+
ElAvatar: typeof import('element-plus')['ElAvatar']
|
24
|
+
ElBacktop: typeof import('element-plus')['ElBacktop']
|
25
|
+
ElBadge: typeof import('element-plus')['ElBadge']
|
26
|
+
ElBreadcrumb: typeof import('element-plus')['ElBreadcrumb']
|
27
|
+
ElBreadcrumbItem: typeof import('element-plus')['ElBreadcrumbItem']
|
28
|
+
ElButton: typeof import('element-plus')['ElButton']
|
29
|
+
ElButtonGroup: typeof import('element-plus')['ElButtonGroup']
|
30
|
+
ElCalendar: typeof import('element-plus')['ElCalendar']
|
31
|
+
ElCard: typeof import('element-plus')['ElCard']
|
32
|
+
ElCarousel: typeof import('element-plus')['ElCarousel']
|
33
|
+
ElCarouselItem: typeof import('element-plus')['ElCarouselItem']
|
34
|
+
ElCascader: typeof import('element-plus')['ElCascader']
|
35
|
+
ElCascaderPanel: typeof import('element-plus')['ElCascaderPanel']
|
36
|
+
ElCheckbox: typeof import('element-plus')['ElCheckbox']
|
37
|
+
ElCheckboxButton: typeof import('element-plus')['ElCheckboxButton']
|
38
|
+
ElCheckboxGroup: typeof import('element-plus')['ElCheckboxGroup']
|
39
|
+
ElCol: typeof import('element-plus')['ElCol']
|
40
|
+
ElCollapse: typeof import('element-plus')['ElCollapse']
|
41
|
+
ElCollapseItem: typeof import('element-plus')['ElCollapseItem']
|
42
|
+
ElCollapseTransition: typeof import('element-plus')['ElCollapseTransition']
|
43
|
+
ElColorPicker: typeof import('element-plus')['ElColorPicker']
|
44
|
+
ElContainer: typeof import('element-plus')['ElContainer']
|
45
|
+
ElConfigProvider: typeof import('element-plus')['ElConfigProvider']
|
46
|
+
ElDatePicker: typeof import('element-plus')['ElDatePicker']
|
47
|
+
ElDialog: typeof import('element-plus')['ElDialog']
|
48
|
+
ElDivider: typeof import('element-plus')['ElDivider']
|
49
|
+
ElDrawer: typeof import('element-plus')['ElDrawer']
|
50
|
+
ElDropdown: typeof import('element-plus')['ElDropdown']
|
51
|
+
ElDropdownItem: typeof import('element-plus')['ElDropdownItem']
|
52
|
+
ElDropdownMenu: typeof import('element-plus')['ElDropdownMenu']
|
53
|
+
ElEmpty: typeof import('element-plus')['ElEmpty']
|
54
|
+
ElFooter: typeof import('element-plus')['ElFooter']
|
55
|
+
ElForm: typeof import('element-plus')['ElForm']
|
56
|
+
ElFormItem: typeof import('element-plus')['ElFormItem']
|
57
|
+
ElHeader: typeof import('element-plus')['ElHeader']
|
58
|
+
ElIcon: typeof import('element-plus')['ElIcon']
|
59
|
+
ElImage: typeof import('element-plus')['ElImage']
|
60
|
+
ElImageViewer: typeof import('element-plus')['ElImageViewer']
|
61
|
+
ElInput: typeof import('element-plus')['ElInput']
|
62
|
+
ElInputNumber: typeof import('element-plus')['ElInputNumber']
|
63
|
+
ElLink: typeof import('element-plus')['ElLink']
|
64
|
+
ElMain: typeof import('element-plus')['ElMain']
|
65
|
+
ElMenu: typeof import('element-plus')['ElMenu']
|
66
|
+
ElMenuItem: typeof import('element-plus')['ElMenuItem']
|
67
|
+
ElMenuItemGroup: typeof import('element-plus')['ElMenuItemGroup']
|
68
|
+
ElOption: typeof import('element-plus')['ElOption']
|
69
|
+
ElOptionGroup: typeof import('element-plus')['ElOptionGroup']
|
70
|
+
ElPageHeader: typeof import('element-plus')['ElPageHeader']
|
71
|
+
ElPagination: typeof import('element-plus')['ElPagination']
|
72
|
+
ElPopconfirm: typeof import('element-plus')['ElPopconfirm']
|
73
|
+
ElPopper: typeof import('element-plus')['ElPopper']
|
74
|
+
ElPopover: typeof import('element-plus')['ElPopover']
|
75
|
+
ElProgress: typeof import('element-plus')['ElProgress']
|
76
|
+
ElRadio: typeof import('element-plus')['ElRadio']
|
77
|
+
ElRadioButton: typeof import('element-plus')['ElRadioButton']
|
78
|
+
ElRadioGroup: typeof import('element-plus')['ElRadioGroup']
|
79
|
+
ElRate: typeof import('element-plus')['ElRate']
|
80
|
+
ElRow: typeof import('element-plus')['ElRow']
|
81
|
+
ElScrollbar: typeof import('element-plus')['ElScrollbar']
|
82
|
+
ElSelect: typeof import('element-plus')['ElSelect']
|
83
|
+
ElSlider: typeof import('element-plus')['ElSlider']
|
84
|
+
ElStep: typeof import('element-plus')['ElStep']
|
85
|
+
ElSteps: typeof import('element-plus')['ElSteps']
|
86
|
+
ElSubMenu: typeof import('element-plus')['ElSubMenu']
|
87
|
+
ElSwitch: typeof import('element-plus')['ElSwitch']
|
88
|
+
ElTabPane: typeof import('element-plus')['ElTabPane']
|
89
|
+
ElTable: typeof import('element-plus')['ElTable']
|
90
|
+
ElTableColumn: typeof import('element-plus')['ElTableColumn']
|
91
|
+
ElTabs: typeof import('element-plus')['ElTabs']
|
92
|
+
ElTag: typeof import('element-plus')['ElTag']
|
93
|
+
ElTimePicker: typeof import('element-plus')['ElTimePicker']
|
94
|
+
ElTimeSelect: typeof import('element-plus')['ElTimeSelect']
|
95
|
+
ElTimeline: typeof import('element-plus')['ElTimeline']
|
96
|
+
ElTimelineItem: typeof import('element-plus')['ElTimelineItem']
|
97
|
+
ElTooltip: typeof import('element-plus')['ElTooltip']
|
98
|
+
ElTransfer: typeof import('element-plus')['ElTransfer']
|
99
|
+
ElTree: typeof import('element-plus')['ElTree']
|
100
|
+
ElTreeV2: typeof import('element-plus')['ElTreeV2']
|
101
|
+
ElUpload: typeof import('element-plus')['ElUpload']
|
102
|
+
ElSpace: typeof import('element-plus')['ElSpace']
|
103
|
+
ElSkeleton: typeof import('element-plus')['ElSkeleton']
|
104
|
+
ElSkeletonItem: typeof import('element-plus')['ElSkeletonItem']
|
105
|
+
ElCheckTag: typeof import('element-plus')['ElCheckTag']
|
106
|
+
ElDescriptions: typeof import('element-plus')['ElDescriptions']
|
107
|
+
ElDescriptionsItem: typeof import('element-plus')['ElDescriptionsItem']
|
108
|
+
ElResult: typeof import('element-plus')['ElResult']
|
109
|
+
ElSelectV2: typeof import('element-plus')['ElSelectV2']
|
110
|
+
TLayoutPage: typeof TLayoutPage
|
111
|
+
TLayoutPageItem: typeof TLayoutPageItem
|
112
|
+
TQueryCondition: typeof TQueryCondition
|
113
|
+
TTable: typeof TTable
|
114
|
+
TForm: typeof TForm
|
115
|
+
TSelect: typeof TSelect
|
116
|
+
TSelectTable: typeof TSelectTable
|
117
|
+
TDetail: typeof TDetail
|
118
|
+
TButton: typeof TButton
|
119
|
+
TStepWizard: typeof TStepWizard
|
120
|
+
TTimerBtn: typeof TTimerBtn
|
121
|
+
TModuleForm: typeof TModuleForm
|
122
|
+
TAdaptivePage: typeof TAdaptivePage
|
123
|
+
TDatePicker: typeof TDatePicker
|
124
|
+
}
|
125
|
+
|
126
|
+
interface ComponentCustomProperties {
|
127
|
+
$message: typeof import('element-plus')['ElMessage']
|
128
|
+
$notify: typeof import('element-plus')['ElNotification']
|
129
|
+
$msgbox: typeof import('element-plus')['ElMessageBox']
|
130
|
+
$messageBox: typeof import('element-plus')['ElMessageBox']
|
131
|
+
$alert: typeof import('element-plus')['ElMessageBox']['alert']
|
132
|
+
$confirm: typeof import('element-plus')['ElMessageBox']['confirm']
|
133
|
+
$prompt: typeof import('element-plus')['ElMessageBox']['prompt']
|
134
|
+
$loading: typeof import('element-plus')['ElLoadingService']
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
export {}
|
package/lib/favicon.ico
ADDED
Binary file
|