kui-vue 3.6.9 → 3.6.10
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/components/alert/alert.jsx +1 -1
- package/components/backtop/backtop.jsx +1 -1
- package/components/button/button.jsx +1 -1
- package/components/carousel/carousel.jsx +1 -1
- package/components/checkbox/checkbox.jsx +1 -1
- package/components/checkbox/styles/index.less +3 -0
- package/components/collapse/collapsePanel.jsx +1 -1
- package/components/colorPicker/presets.jsx +1 -1
- package/components/components.js +1 -2
- package/components/datePicker/datepicker.jsx +1 -1
- package/components/drawer/drawer.jsx +1 -1
- package/components/dropdown/dropdownButton.jsx +1 -1
- package/components/empty/empty.jsx +1 -1
- package/components/image/image.jsx +1 -1
- package/components/image/preview.jsx +6 -5
- package/components/image/styles/index.less +0 -8
- package/components/index.js +16 -35
- package/components/input/input.jsx +1 -1
- package/components/inputNumber/inputNumber.jsx +1 -1
- package/components/loading/loading.jsx +0 -6
- package/components/message/index.js +0 -6
- package/components/message/inner.jsx +1 -1
- package/components/modal/index.js +4 -7
- package/components/modal/modal.jsx +2 -3
- package/components/modal/toast.jsx +1 -1
- package/components/notice/index.js +0 -6
- package/components/page/page.jsx +1 -1
- package/components/popconfirm/popconfirm.jsx +1 -1
- package/components/progress/progress.jsx +1 -1
- package/components/radio/styles/index.less +3 -0
- package/components/rate/star.jsx +1 -1
- package/components/select/option.jsx +1 -1
- package/components/select/select.jsx +1 -1
- package/components/statCard/statNumber.jsx +2 -2
- package/components/statCard/{countup.jsx → statup/countup.jsx} +1 -1
- package/components/switch/switch.jsx +1 -1
- package/components/table/table.jsx +1 -1
- package/components/tabs/tabs.jsx +1 -1
- package/components/tag/tag.jsx +1 -1
- package/components/tree/tree.jsx +1 -1
- package/components/treeselect/treeselect.jsx +1 -1
- package/components/upload/fileList.jsx +1 -1
- package/components/upload/selector.jsx +1 -1
- package/components/utils/theme.js +0 -10
- package/components/utils/vue.js +8 -0
- package/dist/k-ui.cjs.js +2 -2
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.d.ts +373 -373
- package/dist/k-ui.esm.js +2 -2
- package/dist/k-ui.umd.js +2 -2
- package/dist/locale/de.js +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/zh-CN.js +1 -1
- package/dist/locale/zh-TW.js +1 -1
- package/package.json +13 -13
- package/types/index.d.ts +38 -38
- package/components/utils/i18n.js +0 -32
- /package/components/statCard/{countup.js → statup/countup.js} +0 -0
- /package/components/statCard/{rollup.jsx → statup/rollup.jsx} +0 -0
package/dist/locale/de.js
CHANGED
package/dist/locale/el.js
CHANGED
package/dist/locale/en.js
CHANGED
package/dist/locale/fr.js
CHANGED
package/dist/locale/it.js
CHANGED
package/dist/locale/ja.js
CHANGED
package/dist/locale/ko.js
CHANGED
package/dist/locale/ru.js
CHANGED
package/dist/locale/th.js
CHANGED
package/dist/locale/uk.js
CHANGED
package/dist/locale/vi.js
CHANGED
package/dist/locale/zh-CN.js
CHANGED
package/dist/locale/zh-TW.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kui-vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.10",
|
|
5
5
|
"description": "A lightweight desktop UI component library suitable for Vue.js 2.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/k-ui.cjs.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"start": "npm run dev",
|
|
22
22
|
"dev": "vite",
|
|
23
23
|
"build:docs": "vite build",
|
|
24
|
-
"build": "rollup -c --bundleConfigAsCjs",
|
|
24
|
+
"build": "npm run build:types && rollup -c --bundleConfigAsCjs --treeshake",
|
|
25
25
|
"build:types": "node scripts/gen-dts.js",
|
|
26
26
|
"preview": "vite preview",
|
|
27
27
|
"lint": "npx eslint . --fix"
|
|
@@ -53,9 +53,16 @@
|
|
|
53
53
|
"frontend"
|
|
54
54
|
],
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"vue": "
|
|
56
|
+
"vue": "2.7.16"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
+
"kui-icons": "^4.2.0",
|
|
60
|
+
"color": "^5.0.3",
|
|
61
|
+
"dayjs": "^1.11.19",
|
|
62
|
+
"uuid": "^13.0.0",
|
|
63
|
+
"big.js": "^7.0.1"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
59
66
|
"@babel/eslint-parser": "^7.28.6",
|
|
60
67
|
"@babel/parser": "^7.28.6",
|
|
61
68
|
"@babel/preset-env": "^7.28.6",
|
|
@@ -71,30 +78,23 @@
|
|
|
71
78
|
"@vue/compiler-sfc": "2.7.16",
|
|
72
79
|
"@vueuse/core": "^8.9.4",
|
|
73
80
|
"autoprefixer": "^10.4.23",
|
|
74
|
-
"big.js": "^7.0.1",
|
|
75
81
|
"eslint": "^9.39.2",
|
|
76
82
|
"eslint-plugin-vue": "^10.7.0",
|
|
77
83
|
"fast-glob": "^3.3.3",
|
|
78
84
|
"globals": "^16.5.0",
|
|
79
85
|
"hash-sum": "^2.0.0",
|
|
80
86
|
"highlight.js": "^11.11.1",
|
|
81
|
-
"kui-icons": "^4.1.6",
|
|
82
87
|
"markdown-it": "^14.1.0",
|
|
83
88
|
"markdown-it-anchor": "^9.2.0",
|
|
84
89
|
"postcss-banner": "^4.0.1",
|
|
85
|
-
"prettier": "^3.8.
|
|
86
|
-
"rollup": "^4.
|
|
90
|
+
"prettier": "^3.8.1",
|
|
91
|
+
"rollup": "^4.57.0",
|
|
87
92
|
"rollup-plugin-dts": "^6.3.0",
|
|
88
93
|
"rollup-plugin-postcss": "^4.0.2",
|
|
89
94
|
"rollup-plugin-vue": "^6.0.0",
|
|
90
|
-
"
|
|
91
|
-
"vue-eslint-parser": "^10.2.0"
|
|
92
|
-
},
|
|
93
|
-
"devDependencies": {
|
|
95
|
+
"vue-eslint-parser": "^10.2.0",
|
|
94
96
|
"@vitejs/plugin-vue2": "^2.3.4",
|
|
95
97
|
"@vitejs/plugin-vue2-jsx": "^1.1.1",
|
|
96
|
-
"color": "^5.0.3",
|
|
97
|
-
"dayjs": "^1.11.19",
|
|
98
98
|
"less": "^4.5.1",
|
|
99
99
|
"vite": "npm:rolldown-vite@7.3.0",
|
|
100
100
|
"vue-router": "^3.6.5"
|
package/types/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
export { default as BackTop } from "./backtop/BackTop";
|
|
2
|
+
export type { BackTopProps } from "./backtop/BackTop";
|
|
1
3
|
export { default as Affix } from "./affix/Affix";
|
|
2
4
|
export type { AffixProps } from "./affix/Affix";
|
|
3
|
-
export { default as Badge } from "./badge/Badge";
|
|
4
|
-
export type { BadgeProps } from "./badge/Badge";
|
|
5
5
|
export { default as Avatar } from "./avatar/Avatar";
|
|
6
6
|
export type { AvatarProps } from "./avatar/Avatar";
|
|
7
|
-
export { default as
|
|
8
|
-
export type {
|
|
7
|
+
export { default as Alert } from "./alert/Alert";
|
|
8
|
+
export type { AlertProps } from "./alert/Alert";
|
|
9
9
|
export { default as Breadcrumb } from "./breadcrumb/Breadcrumb";
|
|
10
10
|
export type { BreadcrumbProps } from "./breadcrumb/Breadcrumb";
|
|
11
11
|
export { default as BreadcrumbItem } from "./breadcrumb/BreadcrumbItem";
|
|
12
12
|
export type { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem";
|
|
13
|
-
export { default as
|
|
14
|
-
export type {
|
|
13
|
+
export { default as Badge } from "./badge/Badge";
|
|
14
|
+
export type { BadgeProps } from "./badge/Badge";
|
|
15
15
|
export { default as Button } from "./button/Button";
|
|
16
16
|
export type { ButtonProps } from "./button/Button";
|
|
17
17
|
export { default as ButtonGroup } from "./button/ButtonGroup";
|
|
@@ -46,38 +46,34 @@ export { default as Dropdown } from "./dropdown/Dropdown";
|
|
|
46
46
|
export type { DropdownProps } from "./dropdown/Dropdown";
|
|
47
47
|
export { default as DropdownButton } from "./dropdown/DropdownButton";
|
|
48
48
|
export type { DropdownButtonProps } from "./dropdown/DropdownButton";
|
|
49
|
-
export { default as Empty } from "./empty/Empty";
|
|
50
|
-
export type { EmptyProps } from "./empty/Empty";
|
|
51
|
-
export { default as Flex } from "./flex/Flex";
|
|
52
|
-
export type { FlexProps } from "./flex/Flex";
|
|
53
49
|
export { default as Row } from "./grid/Row";
|
|
54
50
|
export type { RowProps } from "./grid/Row";
|
|
55
51
|
export { default as Col } from "./grid/Col";
|
|
56
52
|
export type { ColProps } from "./grid/Col";
|
|
57
|
-
export { default as
|
|
58
|
-
export type {
|
|
53
|
+
export { default as Flex } from "./flex/Flex";
|
|
54
|
+
export type { FlexProps } from "./flex/Flex";
|
|
59
55
|
export { default as Form } from "./form/Form";
|
|
60
56
|
export type { FormProps } from "./form/Form";
|
|
61
57
|
export { default as formitem } from "./form/formitem";
|
|
62
58
|
export type { formitemProps } from "./form/formitem";
|
|
63
|
-
export { default as
|
|
64
|
-
export type {
|
|
65
|
-
export { default as ImageGroup } from "./image/ImageGroup";
|
|
66
|
-
export type { ImageGroupProps } from "./image/ImageGroup";
|
|
59
|
+
export { default as Empty } from "./empty/Empty";
|
|
60
|
+
export type { EmptyProps } from "./empty/Empty";
|
|
67
61
|
export { default as Input } from "./input/Input";
|
|
68
62
|
export type { InputProps } from "./input/Input";
|
|
69
63
|
export { default as TextArea } from "./input/TextArea";
|
|
70
64
|
export type { TextAreaProps } from "./input/TextArea";
|
|
71
65
|
export { default as InputGroup } from "./input/InputGroup";
|
|
72
66
|
export type { InputGroupProps } from "./input/InputGroup";
|
|
67
|
+
export { default as KImage } from "./image/KImage";
|
|
68
|
+
export type { KImageProps } from "./image/KImage";
|
|
69
|
+
export { default as ImageGroup } from "./image/ImageGroup";
|
|
70
|
+
export type { ImageGroupProps } from "./image/ImageGroup";
|
|
73
71
|
export { default as InputNumber } from "./inputNumber/InputNumber";
|
|
74
72
|
export type { InputNumberProps } from "./inputNumber/InputNumber";
|
|
75
|
-
export { default as sider } from "./layout/sider";
|
|
76
|
-
export type { siderProps } from "./layout/sider";
|
|
77
73
|
export { default as loading } from "./loading/loading";
|
|
78
74
|
export type { loadingProps } from "./loading/loading";
|
|
79
|
-
export { default as
|
|
80
|
-
export type {
|
|
75
|
+
export { default as Icon } from "./icon/Icon";
|
|
76
|
+
export type { IconProps } from "./icon/Icon";
|
|
81
77
|
export { default as Menu } from "./menu/Menu";
|
|
82
78
|
export type { MenuProps } from "./menu/Menu";
|
|
83
79
|
export { default as MenuGroup } from "./menu/MenuGroup";
|
|
@@ -88,10 +84,12 @@ export { default as SubMenu } from "./menu/SubMenu";
|
|
|
88
84
|
export type { SubMenuProps } from "./menu/SubMenu";
|
|
89
85
|
export { default as MenuDivider } from "./menu/MenuDivider";
|
|
90
86
|
export type { MenuDividerProps } from "./menu/MenuDivider";
|
|
87
|
+
export { default as Modal } from "./modal/Modal";
|
|
88
|
+
export type { ModalProps } from "./modal/Modal";
|
|
89
|
+
export { default as sider } from "./layout/sider";
|
|
90
|
+
export type { siderProps } from "./layout/sider";
|
|
91
91
|
export { default as Page } from "./page/Page";
|
|
92
92
|
export type { PageProps } from "./page/Page";
|
|
93
|
-
export { default as Popconfirm } from "./popconfirm/Popconfirm";
|
|
94
|
-
export type { PopconfirmProps } from "./popconfirm/Popconfirm";
|
|
95
93
|
export { default as Poptip } from "./poptip/Poptip";
|
|
96
94
|
export type { PoptipProps } from "./poptip/Poptip";
|
|
97
95
|
export { default as Progress } from "./progress/Progress";
|
|
@@ -102,14 +100,10 @@ export { default as RadioGroup } from "./radio/RadioGroup";
|
|
|
102
100
|
export type { RadioGroupProps } from "./radio/RadioGroup";
|
|
103
101
|
export { default as RadioButton } from "./radio/RadioButton";
|
|
104
102
|
export type { RadioButtonProps } from "./radio/RadioButton";
|
|
103
|
+
export { default as Popconfirm } from "./popconfirm/Popconfirm";
|
|
104
|
+
export type { PopconfirmProps } from "./popconfirm/Popconfirm";
|
|
105
105
|
export { default as Rate } from "./rate/Rate";
|
|
106
106
|
export type { RateProps } from "./rate/Rate";
|
|
107
|
-
export { default as Select } from "./select/Select";
|
|
108
|
-
export type { SelectProps } from "./select/Select";
|
|
109
|
-
export { default as Option } from "./select/Option";
|
|
110
|
-
export type { OptionProps } from "./select/Option";
|
|
111
|
-
export { default as Slider } from "./slider/Slider";
|
|
112
|
-
export type { SliderProps } from "./slider/Slider";
|
|
113
107
|
export { default as Skeleton } from "./skeleton/Skeleton";
|
|
114
108
|
export type { SkeletonProps } from "./skeleton/Skeleton";
|
|
115
109
|
export { default as SkeletonAvatar } from "./skeleton/SkeletonAvatar";
|
|
@@ -120,22 +114,20 @@ export { default as SkeletonImage } from "./skeleton/SkeletonImage";
|
|
|
120
114
|
export type { SkeletonImageProps } from "./skeleton/SkeletonImage";
|
|
121
115
|
export { default as SkeletonText } from "./skeleton/SkeletonText";
|
|
122
116
|
export type { SkeletonTextProps } from "./skeleton/SkeletonText";
|
|
117
|
+
export { default as Slider } from "./slider/Slider";
|
|
118
|
+
export type { SliderProps } from "./slider/Slider";
|
|
123
119
|
export { default as Spin } from "./spin/Spin";
|
|
124
120
|
export type { SpinProps } from "./spin/Spin";
|
|
125
|
-
export { default as StatCard } from "./statCard/StatCard";
|
|
126
|
-
export type { StatCardProps } from "./statCard/StatCard";
|
|
127
|
-
export { default as StatNumber } from "./statCard/StatNumber";
|
|
128
|
-
export type { StatNumberProps } from "./statCard/StatNumber";
|
|
129
|
-
export { default as Space } from "./space/Space";
|
|
130
|
-
export type { SpaceProps } from "./space/Space";
|
|
131
121
|
export { default as Switch } from "./switch/Switch";
|
|
132
122
|
export type { SwitchProps } from "./switch/Switch";
|
|
123
|
+
export { default as Select } from "./select/Select";
|
|
124
|
+
export type { SelectProps } from "./select/Select";
|
|
125
|
+
export { default as Option } from "./select/Option";
|
|
126
|
+
export type { OptionProps } from "./select/Option";
|
|
127
|
+
export { default as Space } from "./space/Space";
|
|
128
|
+
export type { SpaceProps } from "./space/Space";
|
|
133
129
|
export { default as Table } from "./table/Table";
|
|
134
130
|
export type { TableProps } from "./table/Table";
|
|
135
|
-
export { default as Tabs } from "./tabs/Tabs";
|
|
136
|
-
export type { TabsProps } from "./tabs/Tabs";
|
|
137
|
-
export { default as TabPanel } from "./tabs/TabPanel";
|
|
138
|
-
export type { TabPanelProps } from "./tabs/TabPanel";
|
|
139
131
|
export { default as Tag } from "./tag/Tag";
|
|
140
132
|
export type { TagProps } from "./tag/Tag";
|
|
141
133
|
export { default as TimeLine } from "./timeline/TimeLine";
|
|
@@ -146,7 +138,15 @@ export { default as Tooltip } from "./tooltip/Tooltip";
|
|
|
146
138
|
export type { TooltipProps } from "./tooltip/Tooltip";
|
|
147
139
|
export { default as Tree } from "./tree/Tree";
|
|
148
140
|
export type { TreeProps } from "./tree/Tree";
|
|
141
|
+
export { default as Tabs } from "./tabs/Tabs";
|
|
142
|
+
export type { TabsProps } from "./tabs/Tabs";
|
|
143
|
+
export { default as TabPanel } from "./tabs/TabPanel";
|
|
144
|
+
export type { TabPanelProps } from "./tabs/TabPanel";
|
|
149
145
|
export { default as TreeSelect } from "./treeselect/TreeSelect";
|
|
150
146
|
export type { TreeSelectProps } from "./treeselect/TreeSelect";
|
|
147
|
+
export { default as StatCard } from "./statCard/StatCard";
|
|
148
|
+
export type { StatCardProps } from "./statCard/StatCard";
|
|
149
|
+
export { default as StatNumber } from "./statCard/StatNumber";
|
|
150
|
+
export type { StatNumberProps } from "./statCard/StatNumber";
|
|
151
151
|
export { default as Upload } from "./upload/Upload";
|
|
152
152
|
export type { UploadProps } from "./upload/Upload";
|
package/components/utils/i18n.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import zhCN from '../locale/zh-CN'
|
|
3
|
-
|
|
4
|
-
const state = Vue.observable({
|
|
5
|
-
currentLang: 'zhCN',
|
|
6
|
-
messages: { zhCN },
|
|
7
|
-
vueI18nInstance: null,
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
export function setI18n(i18n) {
|
|
11
|
-
state.vueI18nInstance = i18n
|
|
12
|
-
state.currentLang = i18n.locale
|
|
13
|
-
Object.defineProperty(i18n, 'locale', {
|
|
14
|
-
get() { return state.currentLang },
|
|
15
|
-
set(v) { state.currentLang = v },
|
|
16
|
-
})
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function use(lang) {
|
|
20
|
-
state.currentLang = lang
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function t(key, values) {
|
|
24
|
-
const i18n = state.vueI18nInstance
|
|
25
|
-
if (i18n && typeof i18n.t === 'function') {
|
|
26
|
-
return i18n.t(key, values)
|
|
27
|
-
}
|
|
28
|
-
const langs = state.messages[state.currentLang] || {}
|
|
29
|
-
return key.split('.').reduce((o, k) => (o ? o[k] : undefined), langs) || key
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default { t, use, setI18n }
|
|
File without changes
|
|
File without changes
|