@nutui/nutui 4.0.1-beta.1 → 4.0.1-beta.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/nutui.es.js +10 -17
- package/dist/nutui.umd.js +2 -158
- package/dist/packages/_es/Address.js +3 -0
- package/dist/packages/_es/Audio.js +6 -0
- package/dist/packages/_es/AudioOperate.js +1 -0
- package/dist/packages/_es/Avatar.js +2 -0
- package/dist/packages/_es/AvatarGroup.js +1 -0
- package/dist/packages/_es/Badge.js +5 -1
- package/dist/packages/_es/Barrage.js +5 -3
- package/dist/packages/_es/Calendar.js +7 -2
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -0
- package/dist/packages/_es/Category.js +2 -0
- package/dist/packages/_es/CategoryPane.js +3 -0
- package/dist/packages/_es/Cell.js +1 -0
- package/dist/packages/_es/Checkbox.js +17 -2
- package/dist/packages/_es/CollapseItem.js +1 -0
- package/dist/packages/_es/Comment.js +5 -0
- package/dist/packages/_es/Countdown.js +8 -0
- package/dist/packages/_es/Countup.js +10 -0
- package/dist/packages/_es/DatePicker.js +2 -0
- package/dist/packages/_es/Dialog.js +3 -0
- package/dist/packages/_es/Ellipsis.js +2 -0
- package/dist/packages/_es/Empty.js +3 -0
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +2 -1
- package/dist/packages/_es/ImagePreview.js +1 -0
- package/dist/packages/_es/Input.js +20 -12
- package/dist/packages/_es/Invoice.js +5 -3
- package/dist/packages/_es/Navbar.js +6 -0
- package/dist/packages/_es/Noticebar.js +50 -18
- package/dist/packages/_es/Notify.js +3 -0
- package/dist/packages/_es/Picker.js +2 -0
- package/dist/packages/_es/PullRefresh.js +4 -0
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Searchbar.js +1 -0
- package/dist/packages/_es/ShortPassword.js +1 -0
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +10 -0
- package/dist/packages/_es/Sku.js +14 -0
- package/dist/packages/_es/Swiper.js +5 -2
- package/dist/packages/_es/TabbarItem.js +5 -0
- package/dist/packages/_es/Tabs.js +2 -0
- package/dist/packages/_es/Textarea.js +1 -0
- package/dist/packages/_es/Toast.js +8 -0
- package/dist/packages/_es/Tour.js +1 -0
- package/dist/packages/_es/Uploader.js +5 -2
- package/dist/packages/_es/Video.js +18 -0
- package/dist/packages/_es/{common-05c67d9a.js → common-0c815463.js} +8 -0
- package/dist/packages/_es/{index-4f2972bc.js → index-0432a798.js} +147 -32
- package/dist/packages/_es/{index.vue_vue_type_script_lang-ee936659.js → index.vue_vue_type_script_lang-0725f0ae.js} +1 -0
- package/dist/packages/_es/{index.vue_vue_type_script_lang-8b9f3de5.js → index.vue_vue_type_script_lang-9c679f64.js} +1 -0
- package/dist/packages/badge/index.scss +3 -0
- package/dist/packages/checkbox/index.scss +41 -0
- package/dist/packages/input/index.scss +6 -8
- package/dist/packages/noticebar/index.scss +4 -0
- package/dist/packages/uploader/index.scss +7 -2
- package/dist/resolver/index.d.ts +6 -0
- package/dist/resolver/index.js +1 -0
- package/dist/resolver/index.mjs +24 -0
- package/dist/smartips/web-types.json +20 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +44 -44
- package/dist/styles/themes/jdb.scss +44 -44
- package/dist/styles/themes/jddkh.scss +44 -44
- package/dist/styles/themes/jdt.scss +44 -44
- package/dist/styles/variables-jdb.scss +9 -1
- package/dist/styles/variables-jddkh.scss +9 -1
- package/dist/styles/variables-jdt.scss +8 -0
- package/dist/styles/variables.scss +8 -0
- package/dist/types/__VUE/badge/index.vue.d.ts +9 -0
- package/dist/types/__VUE/calendaritem/type.d.ts +1 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +1 -0
- package/dist/types/__VUE/swiper/index.vue.d.ts +8 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/resolver/index.d.ts +6 -0
- package/dist/types/utils/date.d.ts +4 -0
- package/package.json +6 -6
|
@@ -442,6 +442,14 @@ $checkbox-label-margin-left: var(--nut-checkbox-label-margin-left, 8px) !default
|
|
|
442
442
|
$checkbox-label-font-size: var(--nut-checkbox-label-font-size, 16px) !default;
|
|
443
443
|
$checkbox-icon-font-size: var(--nut-checkbox-icon-font-size, 20px) !default;
|
|
444
444
|
$checkbox-icon-disable-color2: var(--nut-checkbox-icon-disable-color2, $help-color) !default;
|
|
445
|
+
$checkbox-button-padding: var(--nut-checkbox-button-padding, 5px 18px) !default;
|
|
446
|
+
$checkbox-button-font-size: var(--nut-checkbox-button-font-size, 12px) !default;
|
|
447
|
+
$checkbox-button-border-radius: var(--nut-checkbox-button-border-radius, 15px) !default;
|
|
448
|
+
$checkbox-button-border-color: var(--nut-checkbox-button-border-color, #f6f7f9) !default;
|
|
449
|
+
$checkbox-button-background: var(--nut-checkbox-button-background, #f6f7f9) !default;
|
|
450
|
+
$checkbox-button-font-color-active: var(--nut-checkbox-button-font-color-active, $primary-color) !default;
|
|
451
|
+
$checkbox-button-border-color-active: var(--nut-checkbox-button-border-color-active, $primary-color) !default;
|
|
452
|
+
$checkbox-button-background-active: var(--nut-checkbox-button-background-active, $primary-color) !default;
|
|
445
453
|
|
|
446
454
|
//radio
|
|
447
455
|
$radio-label-font-color: var(--nut-radio-label-font-color, rgba(0, 0, 0, 0.85)) !default;
|
|
@@ -480,6 +480,14 @@ $checkbox-label-margin-left: var(--nut-checkbox-label-margin-left, 15px) !defaul
|
|
|
480
480
|
$checkbox-label-font-size: var(--nut-checkbox-label-font-size, 14px) !default;
|
|
481
481
|
$checkbox-icon-font-size: var(--nut-checkbox-icon-font-size, 18px) !default;
|
|
482
482
|
$checkbox-icon-disable-color2: var(--nut-checkbox-icon-disable-color2, $help-color) !default;
|
|
483
|
+
$checkbox-button-padding: var(--nut-checkbox-button-padding, 5px 18px) !default;
|
|
484
|
+
$checkbox-button-font-size: var(--nut-checkbox-button-font-size, 12px) !default;
|
|
485
|
+
$checkbox-button-border-radius: var(--nut-checkbox-button-border-radius, 15px) !default;
|
|
486
|
+
$checkbox-button-border-color: var(--nut-checkbox-button-border-color, #f6f7f9) !default;
|
|
487
|
+
$checkbox-button-background: var(--nut-checkbox-button-background, #f6f7f9) !default;
|
|
488
|
+
$checkbox-button-font-color-active: var(--nut-checkbox-button-font-color-active, $primary-color) !default;
|
|
489
|
+
$checkbox-button-border-color-active: var(--nut-checkbox-button-border-color-active, $primary-color) !default;
|
|
490
|
+
$checkbox-button-background-active: var(--nut-checkbox-button-background-active, $primary-color) !default;
|
|
483
491
|
|
|
484
492
|
//radio
|
|
485
493
|
$radio-label-font-color: var(--nut-radio-label-font-color, #1d1e1e) !default;
|
|
@@ -14,6 +14,10 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
14
14
|
type: BooleanConstructor;
|
|
15
15
|
default: boolean;
|
|
16
16
|
};
|
|
17
|
+
bubble: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
17
21
|
hidden: {
|
|
18
22
|
type: BooleanConstructor;
|
|
19
23
|
default: boolean;
|
|
@@ -55,6 +59,10 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
55
59
|
type: BooleanConstructor;
|
|
56
60
|
default: boolean;
|
|
57
61
|
};
|
|
62
|
+
bubble: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
58
66
|
hidden: {
|
|
59
67
|
type: BooleanConstructor;
|
|
60
68
|
default: boolean;
|
|
@@ -83,6 +91,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
83
91
|
top: string;
|
|
84
92
|
dot: boolean;
|
|
85
93
|
max: number;
|
|
94
|
+
bubble: boolean;
|
|
86
95
|
}>>;
|
|
87
96
|
export default _default;
|
|
88
97
|
|
|
@@ -34,7 +34,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
34
34
|
type: BooleanConstructor;
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
|
-
}, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
37
|
+
}, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
38
|
columnNum: {
|
|
39
39
|
type: (NumberConstructor | StringConstructor)[];
|
|
40
40
|
default: number;
|
|
@@ -103,6 +103,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
103
103
|
timer: import("vue").Ref<null>;
|
|
104
104
|
keepAlive: import("vue").Ref<boolean>;
|
|
105
105
|
isCanScroll: import("vue").Ref<boolean | null>;
|
|
106
|
+
showNotica: import("vue").Ref<boolean>;
|
|
106
107
|
text: import("vue").Ref<string>;
|
|
107
108
|
color: import("vue").Ref<string>;
|
|
108
109
|
height: import("vue").Ref<number>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { ComponentPublicInstance, VNode } from 'vue';
|
|
2
3
|
|
|
3
4
|
declare type Install<T> = T & {
|
|
@@ -72,7 +73,13 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
72
73
|
moving: boolean;
|
|
73
74
|
offset: number;
|
|
74
75
|
touchTime: number;
|
|
75
|
-
autoplayTimer:
|
|
76
|
+
autoplayTimer: {
|
|
77
|
+
hasRef: () => boolean;
|
|
78
|
+
refresh: () => NodeJS.Timeout;
|
|
79
|
+
[Symbol.toPrimitive]: () => number;
|
|
80
|
+
ref: () => NodeJS.Timeout;
|
|
81
|
+
unref: () => NodeJS.Timeout;
|
|
82
|
+
} | null | undefined;
|
|
76
83
|
children: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>[];
|
|
77
84
|
childrenVNode: VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
78
85
|
[key: string]: any;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -107,11 +107,10 @@ import CategoryPane from './__VUE/categorypane/index.vue';
|
|
|
107
107
|
import Comment from './__VUE/comment/index.vue';
|
|
108
108
|
import Invoice from './__VUE/invoice/index.vue';
|
|
109
109
|
declare function install(app: App): void;
|
|
110
|
-
declare const version = "4.0.1-beta.
|
|
110
|
+
declare const version = "4.0.1-beta.3";
|
|
111
111
|
export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, ActionSheet, Backtop, Drag, Dialog, InfiniteLoading, PullRefresh, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, Noticebar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, Countup, Countdown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, Watermark, TrendArrow, Tour, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice, showDialog, showNotify, showToast, showImagePreview };
|
|
112
112
|
declare const _default: {
|
|
113
113
|
install: typeof install;
|
|
114
114
|
version: string;
|
|
115
|
-
Locale: typeof Locale;
|
|
116
115
|
};
|
|
117
116
|
export default _default;
|
|
@@ -8,5 +8,9 @@ declare const Utils: {
|
|
|
8
8
|
getDay: (i: number) => string;
|
|
9
9
|
compareDate: (date1: string, date2: string) => boolean;
|
|
10
10
|
isEqual: (date1: string, date2: string) => boolean;
|
|
11
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
12
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
13
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
14
|
+
formatResultDate: (date: string) => string[];
|
|
11
15
|
};
|
|
12
16
|
export default Utils;
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui",
|
|
3
|
-
"version": "4.0.1-beta.
|
|
3
|
+
"version": "4.0.1-beta.3",
|
|
4
4
|
"description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
|
|
5
5
|
"main": "dist/nutui.umd.js",
|
|
6
6
|
"module": "dist/nutui.es.js",
|
|
7
7
|
"style": "dist/style.css",
|
|
8
8
|
"typings": "dist/types/index.d.ts",
|
|
9
9
|
"sideEffects": [
|
|
10
|
-
"dist/packages/_es/*",
|
|
11
10
|
"dist/packages/**/style.mjs",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
11
|
+
"*.scss",
|
|
12
|
+
"*.css"
|
|
14
13
|
],
|
|
15
14
|
"web-types": "dist/smartips/web-types.json",
|
|
16
15
|
"keywords": [
|
|
@@ -38,10 +37,11 @@
|
|
|
38
37
|
"publish:latest": "npm publish"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
|
-
"
|
|
40
|
+
"unplugin-vue-components": "^0.23.0"
|
|
42
41
|
},
|
|
43
42
|
"dependencies": {
|
|
44
|
-
"sass": "^1.50.0"
|
|
43
|
+
"sass": "^1.50.0",
|
|
44
|
+
"@nutui/icons-vue": "^0.0.25"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {},
|
|
47
47
|
"repository": {
|