base6-ui 1.1.1 → 1.1.3
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/index.css +1 -0
- package/dist/index.umd.js +1 -0
- package/es/components/BaseDataTable/index.vue.mjs +2 -2
- package/es/components/BaseDataTable/index.vue2.mjs +18 -15
- package/es/components/BaseDialog/options.mjs +2 -2
- package/es/components/BaseSwitch/index.vue.mjs +2 -2
- package/es/components/BaseSwitch/index.vue2.mjs +15 -15
- package/es/index.css +1 -1
- package/lib/components/BaseDataTable/index.vue.js +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/options.js +1 -1
- package/lib/components/BaseSwitch/index.vue.js +1 -1
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/index.css +1 -1
- package/package.json +16 -4
- package/CHANGELOG.md +0 -13
- package/build/plugins.ts +0 -31
- package/build/unPlugin.ts +0 -37
- package/eslint.config.js +0 -114
- package/src/components/AppProvider/index.ts +0 -1
- package/src/components/AppProvider/index.vue +0 -38
- package/src/components/BaseButton/index.ts +0 -1
- package/src/components/BaseButton/index.vue +0 -21
- package/src/components/BaseDataTable/index.ts +0 -1
- package/src/components/BaseDataTable/index.vue +0 -120
- package/src/components/BaseDialog/index.ts +0 -2
- package/src/components/BaseDialog/index.vue +0 -104
- package/src/components/BaseDialog/options.ts +0 -25
- package/src/components/BaseDialog/type.ts +0 -30
- package/src/components/BaseInputNumber/index.ts +0 -1
- package/src/components/BaseInputNumber/index.vue +0 -188
- package/src/components/BaseLayout/ASide/index.vue +0 -104
- package/src/components/BaseLayout/ASide/type.ts +0 -11
- package/src/components/BaseLayout/index.ts +0 -1
- package/src/components/BaseProgress/index.ts +0 -99
- package/src/components/BaseRadio/index.ts +0 -1
- package/src/components/BaseRadio/index.vue +0 -45
- package/src/components/BaseSelect/index.ts +0 -1
- package/src/components/BaseSelect/index.vue +0 -59
- package/src/components/BaseSlider/index.ts +0 -1
- package/src/components/BaseSlider/index.vue +0 -114
- package/src/components/BaseSwitch/index.ts +0 -1
- package/src/components/BaseSwitch/index.vue +0 -69
- package/src/components/index.ts +0 -11
- package/src/components/types/themes/extendThemes.ts +0 -50
- package/src/config/index.ts +0 -1
- package/src/config/themes/color/dark.ts +0 -60
- package/src/config/themes/color/index.ts +0 -2
- package/src/config/themes/color/light.ts +0 -59
- package/src/config/themes/common.ts +0 -50
- package/src/config/themes/components/alert/common.ts +0 -13
- package/src/config/themes/components/alert/dark.ts +0 -23
- package/src/config/themes/components/alert/light.ts +0 -18
- package/src/config/themes/components/baseComponent/dark.ts +0 -189
- package/src/config/themes/components/baseComponent/light.ts +0 -297
- package/src/config/themes/components/button/common.ts +0 -20
- package/src/config/themes/components/button/dark.ts +0 -127
- package/src/config/themes/components/button/light.ts +0 -102
- package/src/config/themes/components/card/dark.ts +0 -13
- package/src/config/themes/components/card/light.ts +0 -13
- package/src/config/themes/components/charts/dark.ts +0 -425
- package/src/config/themes/components/charts/light.ts +0 -424
- package/src/config/themes/components/checkbox/common.ts +0 -7
- package/src/config/themes/components/checkbox/dark.ts +0 -23
- package/src/config/themes/components/checkbox/light.ts +0 -22
- package/src/config/themes/components/dataTable/dark.ts +0 -14
- package/src/config/themes/components/dataTable/light.ts +0 -14
- package/src/config/themes/components/datePicker/dark.ts +0 -10
- package/src/config/themes/components/datePicker/light.ts +0 -10
- package/src/config/themes/components/dialog/common.ts +0 -8
- package/src/config/themes/components/dialog/dark.ts +0 -14
- package/src/config/themes/components/dialog/light.ts +0 -13
- package/src/config/themes/components/dropdown/dark.ts +0 -7
- package/src/config/themes/components/dropdown/light.ts +0 -7
- package/src/config/themes/components/form/dark.ts +0 -7
- package/src/config/themes/components/form/light.ts +0 -7
- package/src/config/themes/components/input/common.ts +0 -13
- package/src/config/themes/components/input/dark.ts +0 -25
- package/src/config/themes/components/input/light.ts +0 -24
- package/src/config/themes/components/inputNumber/common.ts +0 -14
- package/src/config/themes/components/inputNumber/dark.ts +0 -24
- package/src/config/themes/components/inputNumber/light.ts +0 -20
- package/src/config/themes/components/layout/dark.ts +0 -8
- package/src/config/themes/components/layout/light.ts +0 -9
- package/src/config/themes/components/menu/dark.ts +0 -18
- package/src/config/themes/components/menu/light.ts +0 -17
- package/src/config/themes/components/progress/dark.ts +0 -25
- package/src/config/themes/components/progress/light.ts +0 -25
- package/src/config/themes/components/radio/dark.ts +0 -20
- package/src/config/themes/components/radio/light.ts +0 -21
- package/src/config/themes/components/select/dark.ts +0 -42
- package/src/config/themes/components/select/light.ts +0 -38
- package/src/config/themes/components/slider/dark.ts +0 -16
- package/src/config/themes/components/slider/light.ts +0 -16
- package/src/config/themes/components/switch/common.ts +0 -17
- package/src/config/themes/components/switch/dark.ts +0 -17
- package/src/config/themes/components/switch/light.ts +0 -17
- package/src/config/themes/components/tag/dark.ts +0 -40
- package/src/config/themes/components/tag/light.ts +0 -39
- package/src/config/themes/components/transfer/dark.ts +0 -8
- package/src/config/themes/components/transfer/light.ts +0 -8
- package/src/config/themes/dark.ts +0 -61
- package/src/config/themes/index.ts +0 -12
- package/src/config/themes/light.ts +0 -61
- package/src/config/themes/token/dark.ts +0 -32
- package/src/config/themes/token/index.ts +0 -2
- package/src/config/themes/token/light.ts +0 -11
- package/src/globalMethods/index.ts +0 -8
- package/src/globalMethods/modules/confirmTip.ts +0 -49
- package/src/globalMethods/modules/message.ts +0 -20
- package/src/hooks/useNaiveConfigProvideContext.ts +0 -10
- package/src/index.ts +0 -8
- package/src/style/index.scss +0 -63
- package/src/svg-icons/add.svg +0 -1
- package/src/svg-icons/arrow/down.svg +0 -1
- package/src/svg-icons/arrow/top.svg +0 -1
- package/src/svg-icons/logo.svg +0 -4
- package/src/svg-icons/operate/add.svg +0 -1
- package/src/svg-icons/operate/close.svg +0 -1
- package/src/svg-icons/operate/minus.svg +0 -1
- package/src/svg-icons/progress-default.svg +0 -3
- package/src/types/themes/extendThemes.ts +0 -50
- package/tsconfig.json +0 -38
- package/typing/components.d.ts +0 -38
- package/typing/global.d.ts +0 -19
- package/vite.config.ts +0 -61
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import message from './modules/message'
|
|
3
|
-
import confirmTip from './modules/confirmTip'
|
|
4
|
-
|
|
5
|
-
export default function registerGlobalMethods(app: App) {
|
|
6
|
-
app.config.globalProperties.$message = message
|
|
7
|
-
app.config.globalProperties.$confirmTip = confirmTip
|
|
8
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { h } from 'vue'
|
|
2
|
-
import { DialogOptions, DialogReactive } from 'naive-ui'
|
|
3
|
-
|
|
4
|
-
function renderHeader(title?: string) {
|
|
5
|
-
return h('span', {}, title ? title : 'Tip')
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const defaultOptions: DialogOptions = {
|
|
9
|
-
closeOnEsc: false,
|
|
10
|
-
closable: true,
|
|
11
|
-
maskClosable: false,
|
|
12
|
-
positiveText: 'Confirm',
|
|
13
|
-
negativeText: 'Cancel',
|
|
14
|
-
negativeButtonProps: {
|
|
15
|
-
round: true,
|
|
16
|
-
ghost: false
|
|
17
|
-
},
|
|
18
|
-
positiveButtonProps: {
|
|
19
|
-
round: true,
|
|
20
|
-
type: 'primary'
|
|
21
|
-
},
|
|
22
|
-
titleStyle: {
|
|
23
|
-
justifyContent: 'center',
|
|
24
|
-
lineHeight: '32px'
|
|
25
|
-
},
|
|
26
|
-
actionStyle: {
|
|
27
|
-
justifyContent: 'center'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export default function confirmTip(content: string, title?: string, options?: DialogOptions): Promise<DialogReactive> {
|
|
32
|
-
return new Promise((resolve, reject) => {
|
|
33
|
-
if (!window.$dialog) return
|
|
34
|
-
const tempOptions = Object.assign(defaultOptions, options)
|
|
35
|
-
const popConfirm = window.$dialog.warning({
|
|
36
|
-
...tempOptions,
|
|
37
|
-
content,
|
|
38
|
-
title: () => {
|
|
39
|
-
return renderHeader(title)
|
|
40
|
-
},
|
|
41
|
-
onPositiveClick: () => {
|
|
42
|
-
resolve(popConfirm)
|
|
43
|
-
},
|
|
44
|
-
onNegativeClick: () => {
|
|
45
|
-
reject(new Error())
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
})
|
|
49
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MessageOptions } from 'naive-ui'
|
|
2
|
-
|
|
3
|
-
type MessageThemeList = 'info' | 'success' | 'warning' | 'error' | 'loading';
|
|
4
|
-
|
|
5
|
-
const defaultMessageOptions: MessageOptions = {
|
|
6
|
-
closable: false,
|
|
7
|
-
duration: 2000,
|
|
8
|
-
keepAliveOnHover: false,
|
|
9
|
-
showIcon: true,
|
|
10
|
-
type: 'warning'
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const message = (message: string, theme: MessageThemeList = 'info', MessageOptions?: MessageOptions) => {
|
|
14
|
-
if (!window.$message) return
|
|
15
|
-
window.$message.destroyAll()
|
|
16
|
-
const currentMessageOption = Object.assign(defaultMessageOptions, MessageOptions)
|
|
17
|
-
window.$message[theme](message, currentMessageOption)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default message
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { inject } from 'vue'
|
|
3
|
-
import { configProviderInjectionKey } from '../config'
|
|
4
|
-
|
|
5
|
-
function useNaiveConfigProvideContext () {
|
|
6
|
-
const NConfigProvider = inject(configProviderInjectionKey)
|
|
7
|
-
return NConfigProvider as any
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export default useNaiveConfigProvideContext
|
package/src/index.ts
DELETED
package/src/style/index.scss
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* 自定义 Steps 组件指示器边框粗细 */
|
|
3
|
-
.n-steps.n-steps--vertical > .n-step > .n-step-indicator > .n-step-splitor {
|
|
4
|
-
width: 2px;
|
|
5
|
-
}
|
|
6
|
-
.n-steps .n-step-splitor {
|
|
7
|
-
height: 2px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**tab圆形样式*/
|
|
11
|
-
/* .n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab {
|
|
12
|
-
border-radius: var(--n-tab-border-radius);
|
|
13
|
-
margin-bottom: 12px;
|
|
14
|
-
} */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.n-popconfirm .n-popconfirm__action {
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.base-progress.n-progress {
|
|
23
|
-
&.n-progress--dashboard {
|
|
24
|
-
width: var(--n-circle-width);
|
|
25
|
-
.base-progress-dashboard-content {
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
align-items: center;
|
|
29
|
-
&-logo {
|
|
30
|
-
display: flex;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
align-items: center;
|
|
33
|
-
border-radius: 100%;
|
|
34
|
-
background-color: var(--n-icon-color);
|
|
35
|
-
}
|
|
36
|
-
&-title {
|
|
37
|
-
font-size: var(--n-content-font-size);
|
|
38
|
-
color: var(--n-text-color-circle);
|
|
39
|
-
}
|
|
40
|
-
&-tip {
|
|
41
|
-
text-align: center;
|
|
42
|
-
font-size: var(--n-tip-font-size-circle);
|
|
43
|
-
color: var(--n-tip-color-circle);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
.n-base-select-menu .n-base-select-option--pending {
|
|
51
|
-
color: var(--n-option-text-color-pressed)
|
|
52
|
-
}
|
|
53
|
-
.n-base-select-menu.n-base-select-menu--multiple {
|
|
54
|
-
.n-base-select-option {
|
|
55
|
-
&.n-base-select-option--selected::before {
|
|
56
|
-
background-color: #0000;
|
|
57
|
-
}
|
|
58
|
-
&.n-base-select-option--pending::before {
|
|
59
|
-
background-color: var(--n-option-color-active);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
package/src/svg-icons/add.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg t="1732096078095" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17236" width="200" height="200"><path d="M480 544V832h64V544H832v-64H544V192h-64v288H192v64h288z" p-id="17237"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg t="1759047364277" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10761" width="200" height="200"><path d="M512 594.752l233.344-233.408 45.312 45.312L512 685.248 233.344 406.656l45.312-45.312L512 594.752z" p-id="10762"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg t="1759047354259" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10616" width="200" height="200"><path d="M512 429.248l233.344 233.408 45.248-45.312L512 338.752 233.344 617.344l45.312 45.312L512 429.248z" p-id="10617"></path></svg>
|
package/src/svg-icons/logo.svg
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect width="48" height="48" rx="13.3333" fill="currentColor"/>
|
|
3
|
-
<path d="M33.5995 35.2276C33.4878 35.392 33.3019 35.4904 33.1031 35.4904H29.1322C28.6507 35.4904 28.3653 34.9518 28.6357 34.5534L33.5458 27.3207C33.8163 26.9223 33.5309 26.3837 33.0494 26.3837H10.6C10.2686 26.3837 10 26.1151 10 25.7837V22.4366C10 22.1053 10.2686 21.8366 10.6 21.8366H33.2002C33.6817 21.8366 33.9671 21.2979 33.6966 20.8996L28.6359 13.4468C28.3654 13.0484 28.6508 12.5098 29.1323 12.5098H33.1031C33.3019 12.5098 33.4878 12.6082 33.5995 12.7726L40.9968 23.663C41.135 23.8665 41.135 24.1337 40.9968 24.3372L33.5995 35.2276ZM23.7583 19.0128C23.5627 19.0128 23.3794 18.9174 23.2671 18.7573L22.267 17.3312C22.1547 17.1711 21.9714 17.0757 21.7758 17.0757H10.6C10.2686 17.0757 10 16.8071 10 16.4757V13.1098C10 12.7784 10.2686 12.5098 10.6 12.5098H24.0018C24.1976 12.5098 24.3811 12.6053 24.4933 12.7656L28.2065 18.0686C28.4849 18.4663 28.2004 19.0128 27.715 19.0128H23.7583ZM23.2671 29.2429C23.3794 29.0828 23.5627 28.9874 23.7583 28.9874H27.715C28.2004 28.9874 28.4849 29.5339 28.2065 29.9316L24.4933 35.2346C24.3811 35.3949 24.1976 35.4904 24.0018 35.4904H10.6C10.2686 35.4904 10 35.2218 10 34.8904V31.5245C10 31.1931 10.2686 30.9245 10.6 30.9245H21.7758C21.9714 30.9245 22.1547 30.8291 22.267 30.669L23.2671 29.2429Z" fill="white"/>
|
|
4
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg t="1759047336067" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10326" width="200" height="200"><path d="M480 544V832h64V544H832v-64H544V192h-64v288H192v64h288z" p-id="10327"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1748849223015" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2329" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M300.8 240.448l211.2 211.2 211.2-211.2 60.352 60.352-211.2 211.2 211.2 211.2-60.352 60.352-211.2-211.2-211.2 211.2-60.288-60.352 211.2-211.2-211.2-211.2 60.352-60.352z" p-id="2330"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg t="1759047347164" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10471" width="200" height="200"><path d="M832 544H192v-64h640v64z" p-id="10472"></path></svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M4.68977 21.1089V15.2641C4.69008 14.8125 5.05706 14.4465 5.50873 14.4465C5.96023 14.4467 6.32604 14.8126 6.32635 15.2641V21.1089C6.32635 21.5607 5.96042 21.9264 5.50873 21.9266C5.05687 21.9266 4.68977 21.5608 4.68977 21.1089ZM9.36515 21.1089V11.7578C9.36536 11.3061 9.73238 10.9401 10.1841 10.9401C10.6356 10.9404 11.0015 11.3063 11.0017 11.7578V21.1089C11.0017 21.5606 10.6357 21.9263 10.1841 21.9266C9.73225 21.9266 9.36515 21.5608 9.36515 21.1089ZM14.0405 21.1089V15.2641C14.0408 14.8127 14.4067 14.4468 14.8581 14.4465C15.3098 14.4465 15.6768 14.8125 15.6771 15.2641V21.1089C15.6771 21.5608 15.31 21.9266 14.8581 21.9266C14.4065 21.9263 14.0405 21.5606 14.0405 21.1089ZM18.7159 21.1089V11.7578C18.7161 11.3062 19.082 10.9403 19.5335 10.9401C19.9853 10.9401 20.3523 11.3061 20.3525 11.7578V21.1089C20.3525 21.5608 19.9854 21.9266 19.5335 21.9266C19.0819 21.9264 18.7159 21.5607 18.7159 21.1089ZM20.1914 4.10587C20.5442 3.82359 21.0596 3.88086 21.3419 4.23371C21.6242 4.58657 21.5669 5.10201 21.2141 5.3843L15.3695 10.0599C15.0782 10.2926 14.6664 10.2983 14.3681 10.0745L10.1335 6.89843L4.76035 10.1225C4.37292 10.3547 3.8702 10.2289 3.63778 9.84147C3.40535 9.454 3.53131 8.95133 3.91875 8.71885L9.76198 5.21251L9.8725 5.15658C10.1361 5.04822 10.4413 5.08465 10.6741 5.25912L14.8422 8.3846L20.1914 4.10587Z" fill="white"/>
|
|
3
|
-
</svg>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export type ExtendThemeRadio = {
|
|
2
|
-
colorActiveDisabled?: string
|
|
3
|
-
boxShadowActiveDisabled?: string
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export type ExtendThemeSwitch = {
|
|
7
|
-
railColorActiveDisabled?: string
|
|
8
|
-
railColorDisabled?: string
|
|
9
|
-
buttonColorActiveDisabled?: string
|
|
10
|
-
buttonColorDisabled?: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type ExtendThemeSlider = {
|
|
14
|
-
handleBorderStyle?: string
|
|
15
|
-
inputWidth?: string
|
|
16
|
-
rangeInputLineColor?: string
|
|
17
|
-
extremeValueTextColor?: string
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type ExtendInputNumber = {
|
|
21
|
-
controlsFontColor?: string
|
|
22
|
-
controlFontColorDisabled?: string
|
|
23
|
-
|
|
24
|
-
innerControlsLargeWidth?: string
|
|
25
|
-
innerControlsMediumWidth?: string
|
|
26
|
-
innerControlsSmallWidth?: string
|
|
27
|
-
innerControlsLargeHeight?: string
|
|
28
|
-
innerControlsMediumHeight?: string
|
|
29
|
-
innerControlsSmallHeight?: string
|
|
30
|
-
innerControlsBackground?: string
|
|
31
|
-
innerControlsDisabledBackground?: string
|
|
32
|
-
innerControlsLargeBorderRadius?: string
|
|
33
|
-
innerControlsMediumBorderRadius?: string
|
|
34
|
-
innerControlsSmallBorderRadius?: string
|
|
35
|
-
|
|
36
|
-
outerControlsBorderStyle?: string
|
|
37
|
-
outerControlsBackground?: string
|
|
38
|
-
outerControlsBorderStyleDisabled?: string
|
|
39
|
-
outerControlsBackgroundDisabled?: string
|
|
40
|
-
outerControlsOpacityDisabled?: number
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type ExtendProgress = {
|
|
44
|
-
circleWidthMedium?: string;
|
|
45
|
-
circleWidthLarge?: string;
|
|
46
|
-
fontSizeCircleMedium?: string;
|
|
47
|
-
fontSizeCircleLarge?: string;
|
|
48
|
-
tipColorCircle?: string;
|
|
49
|
-
tipFontSizeCircle?: string;
|
|
50
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"jsx": "preserve",
|
|
7
|
-
"jsxImportSource": "vue",
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"resolveJsonModule": true,
|
|
10
|
-
"esModuleInterop": true,
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"strictNullChecks": true,
|
|
14
|
-
"lib": ["esnext", "dom"],
|
|
15
|
-
"types": ["vite/client"],
|
|
16
|
-
"noEmit": true,
|
|
17
|
-
"baseUrl": "./",
|
|
18
|
-
"paths": {
|
|
19
|
-
"@/*": ["src/*"]
|
|
20
|
-
},
|
|
21
|
-
"noImplicitAny": true,
|
|
22
|
-
"strictFunctionTypes": true,
|
|
23
|
-
"strictBindCallApply": true,
|
|
24
|
-
"noImplicitThis": true,
|
|
25
|
-
"alwaysStrict": true
|
|
26
|
-
},
|
|
27
|
-
"include": [
|
|
28
|
-
"**/*.ts",
|
|
29
|
-
"src/**/*.d.ts",
|
|
30
|
-
"src/types/**/*.d.ts",
|
|
31
|
-
"src/**/*.ts",
|
|
32
|
-
"src/**/*.tsx",
|
|
33
|
-
"src/**/*.vue",
|
|
34
|
-
"node_modules/tdesign-vue-next/global.d.ts"
|
|
35
|
-
],
|
|
36
|
-
"exclude": ["node_modules"],
|
|
37
|
-
"compileOnSave": false
|
|
38
|
-
}
|
package/typing/components.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// Generated by unplugin-vue-components
|
|
4
|
-
// Read more: https://github.com/vuejs/core/pull/3399
|
|
5
|
-
// biome-ignore lint: disable
|
|
6
|
-
export {}
|
|
7
|
-
|
|
8
|
-
/* prettier-ignore */
|
|
9
|
-
declare module 'vue' {
|
|
10
|
-
export interface GlobalComponents {
|
|
11
|
-
AppProvider: typeof import('./../src/components/AppProvider/index.vue')['default']
|
|
12
|
-
ASide: typeof import('./../src/components/BaseLayout/ASide/index.vue')['default']
|
|
13
|
-
BaseButton: typeof import('./../src/components/BaseButton/index.vue')['default']
|
|
14
|
-
BaseDataTable: typeof import('./../src/components/BaseDataTable/index.vue')['default']
|
|
15
|
-
BaseDialog: typeof import('./../src/components/BaseDialog/index.vue')['default']
|
|
16
|
-
BaseInputNumber: typeof import('./../src/components/BaseInputNumber/index.vue')['default']
|
|
17
|
-
BaseRadio: typeof import('./../src/components/BaseRadio/index.vue')['default']
|
|
18
|
-
BaseSelect: typeof import('./../src/components/BaseSelect/index.vue')['default']
|
|
19
|
-
BaseSlider: typeof import('./../src/components/BaseSlider/index.vue')['default']
|
|
20
|
-
BaseSwitch: typeof import('./../src/components/BaseSwitch/index.vue')['default']
|
|
21
|
-
LayoutMaterial: typeof import('lib-materials')['LayoutMaterial']
|
|
22
|
-
NButton: typeof import('naive-ui')['NButton']
|
|
23
|
-
NCard: typeof import('naive-ui')['NCard']
|
|
24
|
-
NDataTable: typeof import('naive-ui')['NDataTable']
|
|
25
|
-
NDialogProvider: typeof import('naive-ui')['NDialogProvider']
|
|
26
|
-
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
|
27
|
-
NLoadingBarProvider: typeof import('naive-ui')['NLoadingBarProvider']
|
|
28
|
-
NMessageProvider: typeof import('naive-ui')['NMessageProvider']
|
|
29
|
-
NModal: typeof import('naive-ui')['NModal']
|
|
30
|
-
NNotificationProvider: typeof import('naive-ui')['NNotificationProvider']
|
|
31
|
-
NRadio: typeof import('naive-ui')['NRadio']
|
|
32
|
-
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
|
33
|
-
NSelect: typeof import('naive-ui')['NSelect']
|
|
34
|
-
NSlider: typeof import('naive-ui')['NSlider']
|
|
35
|
-
NSwitch: typeof import('naive-ui')['NSwitch']
|
|
36
|
-
SvgIcon: typeof import('lib-materials')['SvgIcon']
|
|
37
|
-
}
|
|
38
|
-
}
|
package/typing/global.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export {}
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
export interface Window {
|
|
5
|
-
/** NProgress instance */
|
|
6
|
-
NProgress?: import('nprogress').NProgress;
|
|
7
|
-
/** Loading bar instance */
|
|
8
|
-
$loadingBar?: import('naive-ui').LoadingBarProviderInst;
|
|
9
|
-
/** Dialog instance */
|
|
10
|
-
$dialog?: import('naive-ui').DialogProviderInst;
|
|
11
|
-
/** Message instance */
|
|
12
|
-
$message?: import('naive-ui').MessageProviderInst;
|
|
13
|
-
/** Notification instance */
|
|
14
|
-
$notification?: import('naive-ui').NotificationProviderInst;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/** Build time of the project */
|
|
18
|
-
export const BUILD_TIME: string
|
|
19
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { defineConfig } from 'vite'
|
|
3
|
-
import { URL, fileURLToPath } from 'node:url'
|
|
4
|
-
import { setupVitePlugins } from './build/plugins'
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: setupVitePlugins(),
|
|
8
|
-
build: {
|
|
9
|
-
target: 'esnext', // 确保目标环境支持 ES Modules
|
|
10
|
-
lib: {
|
|
11
|
-
entry: 'src/index.ts',
|
|
12
|
-
name: 'Base6UI', // UMD 构建的全局变量名
|
|
13
|
-
fileName: (format) => `base6-ui.${format}.js`
|
|
14
|
-
},
|
|
15
|
-
rollupOptions: {
|
|
16
|
-
// 确保外部化处理那些你不想打包进库的依赖
|
|
17
|
-
external: ['vue', 'naive-ui', 'tailwindcss'],
|
|
18
|
-
output: [
|
|
19
|
-
{
|
|
20
|
-
// 打包成 es module
|
|
21
|
-
format: 'es',
|
|
22
|
-
// 重命名
|
|
23
|
-
entryFileNames: '[name].mjs',
|
|
24
|
-
// 打包目录和开发目录对应
|
|
25
|
-
preserveModules: true,
|
|
26
|
-
// 输出目录
|
|
27
|
-
dir: 'es',
|
|
28
|
-
// 指定保留模块结构的根目录
|
|
29
|
-
preserveModulesRoot: 'src',
|
|
30
|
-
assetFileNames: 'index.[ext]' // 重命名 CSS 文件
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
// 打包成 commonjs
|
|
34
|
-
format: 'cjs',
|
|
35
|
-
// 重命名
|
|
36
|
-
entryFileNames: '[name].js',
|
|
37
|
-
// 打包目录和开发目录对应
|
|
38
|
-
preserveModules: true,
|
|
39
|
-
// exports: "named",
|
|
40
|
-
// 输出目录
|
|
41
|
-
dir: 'lib',
|
|
42
|
-
// 指定保留模块结构的根目录
|
|
43
|
-
preserveModulesRoot: 'src',
|
|
44
|
-
assetFileNames: 'index.[ext]' // 重命名 CSS 文件
|
|
45
|
-
}
|
|
46
|
-
// {
|
|
47
|
-
// // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
|
|
48
|
-
// globals: {
|
|
49
|
-
// vue: "Vue",
|
|
50
|
-
// },
|
|
51
|
-
// },
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
resolve: {
|
|
56
|
-
alias: {
|
|
57
|
-
'~': fileURLToPath(new URL('./', import.meta.url)),
|
|
58
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
})
|