@nutui/nutui 3.1.23-beta.4 → 3.1.23-beta.5
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 +62 -31
- package/dist/nutui.umd.js +62 -31
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +2 -2
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +2 -2
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +9 -3
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +1 -1
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +2 -2
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +13 -3
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +36 -21
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +2 -2
- package/dist/packages/_es/component.js +5 -5
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +1 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/backtop/index.scss +8 -0
- package/dist/packages/badge/index.scss +8 -0
- package/dist/packages/calendar/index.scss +27 -1
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/oldpicker/index.scss +2 -0
- package/dist/packages/picker/index.scss +2 -0
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +50 -50
- package/dist/styles/themes/jdb.scss +50 -50
- package/dist/styles/themes/jdt.scss +50 -50
- package/dist/styles/variables-jdb.scss +2 -1
- package/dist/styles/variables-jdt.scss +2 -1
- package/dist/styles/variables.scss +2 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
- package/dist/types/__VUE/table/common.d.ts +3 -0
- package/dist/types/__VUE/table/index.vue.d.ts +3 -0
- package/dist/types/__VUE/table/types.d.ts +2 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/packages/_es/Row.js
CHANGED
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { c as createComponent } from "./component.js";
|
|
7
|
-
import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
7
|
+
import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
var RenderColumn = {
|
|
@@ -64,9 +64,19 @@ const component = (componentName2, translate2) => {
|
|
|
64
64
|
[`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
+
const stylehead = (item) => {
|
|
68
|
+
return item.stylehead ? item.stylehead : "";
|
|
69
|
+
};
|
|
70
|
+
const stylecolumn = (item) => {
|
|
71
|
+
return item.stylecolumn ? item.stylecolumn : "";
|
|
72
|
+
};
|
|
67
73
|
const getColumnItem = (value) => {
|
|
68
74
|
return props.columns.filter((item) => item.key === value)[0];
|
|
69
75
|
};
|
|
76
|
+
const getColumnItemStyle = (value) => {
|
|
77
|
+
const style = props.columns.filter((item) => item.key === value);
|
|
78
|
+
return style[0].stylecolumn ? style[0].stylecolumn : "";
|
|
79
|
+
};
|
|
70
80
|
const handleSorterClick = (item) => {
|
|
71
81
|
if (item.sorter) {
|
|
72
82
|
emit("sorter", item);
|
|
@@ -86,9 +96,12 @@ const component = (componentName2, translate2) => {
|
|
|
86
96
|
classes,
|
|
87
97
|
cellClasses,
|
|
88
98
|
getColumnItem,
|
|
99
|
+
getColumnItemStyle,
|
|
89
100
|
handleSorterClick,
|
|
90
101
|
sortDataItem,
|
|
91
|
-
translate: translate2
|
|
102
|
+
translate: translate2,
|
|
103
|
+
stylehead,
|
|
104
|
+
stylecolumn
|
|
92
105
|
};
|
|
93
106
|
}
|
|
94
107
|
};
|
|
@@ -102,17 +115,17 @@ const _hoisted_4 = { class: "nut-table__main__body" };
|
|
|
102
115
|
const _hoisted_5 = { key: 1 };
|
|
103
116
|
const _hoisted_6 = {
|
|
104
117
|
key: 0,
|
|
105
|
-
class: "nut-table__summary"
|
|
106
|
-
};
|
|
107
|
-
const _hoisted_7 = ["innerHTML"];
|
|
108
|
-
const _hoisted_8 = {
|
|
109
|
-
key: 1,
|
|
110
118
|
class: "nut-table__nodata"
|
|
111
119
|
};
|
|
112
|
-
const
|
|
120
|
+
const _hoisted_7 = {
|
|
113
121
|
key: 0,
|
|
114
122
|
class: "nut-table__nodata__text"
|
|
115
123
|
};
|
|
124
|
+
const _hoisted_8 = {
|
|
125
|
+
key: 1,
|
|
126
|
+
class: "nut-table__summary"
|
|
127
|
+
};
|
|
128
|
+
const _hoisted_9 = ["innerHTML"];
|
|
116
129
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
117
130
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
118
131
|
const _component_RenderColumn = resolveComponent("RenderColumn");
|
|
@@ -128,7 +141,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
128
141
|
return openBlock(), createElementBlock("span", {
|
|
129
142
|
class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
|
|
130
143
|
key: item.key,
|
|
131
|
-
onClick: ($event) => _ctx.handleSorterClick(item)
|
|
144
|
+
onClick: ($event) => _ctx.handleSorterClick(item),
|
|
145
|
+
style: normalizeStyle(item.stylehead)
|
|
132
146
|
}, [
|
|
133
147
|
createTextVNode(toDisplayString(item.title) + " ", 1),
|
|
134
148
|
renderSlot(_ctx.$slots, "icon"),
|
|
@@ -137,7 +151,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
137
151
|
name: "down-arrow",
|
|
138
152
|
size: "12px"
|
|
139
153
|
})) : createCommentVNode("", true)
|
|
140
|
-
],
|
|
154
|
+
], 14, _hoisted_3);
|
|
141
155
|
}), 128))
|
|
142
156
|
])
|
|
143
157
|
]),
|
|
@@ -150,32 +164,33 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
164
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), ([value, render]) => {
|
|
151
165
|
return openBlock(), createElementBlock("span", {
|
|
152
166
|
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
153
|
-
key: value
|
|
167
|
+
key: value,
|
|
168
|
+
style: normalizeStyle(_ctx.getColumnItemStyle(value))
|
|
154
169
|
}, [
|
|
155
170
|
typeof item[value] === "function" || typeof render === "function" ? (openBlock(), createBlock(_component_RenderColumn, {
|
|
156
171
|
key: 0,
|
|
157
172
|
slots: [render, item[value]],
|
|
158
173
|
record: item
|
|
159
174
|
}, null, 8, ["slots", "record"])) : (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(item[value]), 1))
|
|
160
|
-
],
|
|
175
|
+
], 6);
|
|
161
176
|
}), 128))
|
|
162
177
|
]);
|
|
163
178
|
}), 128))
|
|
164
179
|
])
|
|
165
180
|
], 2),
|
|
166
|
-
_ctx.
|
|
167
|
-
createElementVNode("span", {
|
|
168
|
-
class: "nut-table__summary__text",
|
|
169
|
-
innerHTML: _ctx.summary().value
|
|
170
|
-
}, null, 8, _hoisted_7)
|
|
171
|
-
])) : createCommentVNode("", true),
|
|
172
|
-
!_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_8, [
|
|
181
|
+
!_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_6, [
|
|
173
182
|
createElementVNode("div", {
|
|
174
183
|
class: normalizeClass(["nut-table__nodata", { "nut-table__nodata--border": _ctx.bordered }])
|
|
175
184
|
}, [
|
|
176
185
|
renderSlot(_ctx.$slots, "nodata"),
|
|
177
|
-
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div",
|
|
186
|
+
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
|
|
178
187
|
], 2)
|
|
188
|
+
])) : createCommentVNode("", true),
|
|
189
|
+
_ctx.summary ? (openBlock(), createElementBlock("view", _hoisted_8, [
|
|
190
|
+
createElementVNode("span", {
|
|
191
|
+
class: "nut-table__summary__text",
|
|
192
|
+
innerHTML: _ctx.summary().value
|
|
193
|
+
}, null, 8, _hoisted_9)
|
|
179
194
|
])) : createCommentVNode("", true)
|
|
180
195
|
], 2);
|
|
181
196
|
}
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { shallowReactive, getCurrentInstance,
|
|
6
|
+
import { provide, shallowReactive, getCurrentInstance, markRaw, isVNode, computed, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { p as pxCheck } from "./pxCheck.js";
|
|
9
9
|
function flattenVNodes(children, childName) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { defineComponent } from "vue";
|
|
7
7
|
import locale from "../locale/lang";
|
|
8
8
|
const TypeOfFun = (value) => {
|
|
9
|
-
if (
|
|
9
|
+
if (value === null) {
|
|
10
10
|
return "null";
|
|
11
11
|
}
|
|
12
12
|
const type = typeof value;
|
|
13
|
-
if ("undefined"
|
|
13
|
+
if (type === "undefined" || type === "string") {
|
|
14
14
|
return type;
|
|
15
15
|
}
|
|
16
16
|
const typeString = toString.call(value);
|
|
@@ -28,8 +28,8 @@ const TypeOfFun = (value) => {
|
|
|
28
28
|
case "[object RegExp]":
|
|
29
29
|
return "regexp";
|
|
30
30
|
case "[object Object]":
|
|
31
|
-
if (void 0
|
|
32
|
-
if (
|
|
31
|
+
if (value.nodeType !== void 0) {
|
|
32
|
+
if (value.nodeType == 3) {
|
|
33
33
|
return /\S/.test(value.nodeValue) ? "textnode" : "whitespace";
|
|
34
34
|
} else {
|
|
35
35
|
return "element";
|
package/dist/packages/_es/raf.js
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
|
+
.nut-theme-dark {
|
|
2
|
+
.nut-calendar {
|
|
3
|
+
background: $dark-background;
|
|
4
|
+
color: $dark-color;
|
|
5
|
+
.nut-calendar-header {
|
|
6
|
+
background: $dark-background;
|
|
7
|
+
color: $dark-color;
|
|
8
|
+
}
|
|
9
|
+
.nut-calendar-content {
|
|
10
|
+
.calendar-months-panel {
|
|
11
|
+
.calendar-month-con {
|
|
12
|
+
.calendar-month-day {
|
|
13
|
+
&-choose {
|
|
14
|
+
background-color: $dark-calendar-choose-color;
|
|
15
|
+
color: $calendar-choose-font-color;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.nut-calendar-footer {
|
|
22
|
+
background: $dark-background2;
|
|
23
|
+
color: $dark-color;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
1
27
|
.nut-calendar {
|
|
2
28
|
position: relative;
|
|
3
29
|
display: flex;
|
|
4
30
|
flex: 1;
|
|
5
31
|
color: #333333;
|
|
6
32
|
font-size: 16px;
|
|
7
|
-
background-color:
|
|
33
|
+
background-color: $white;
|
|
8
34
|
overflow: hidden;
|
|
9
35
|
height: 100%;
|
|
10
36
|
flex-direction: column;
|