@nutui/nutui 3.2.3 → 3.2.4-beta.0
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/README.md +4 -4
- package/dist/nutui.es.js +13 -9
- package/dist/nutui.umd.js +13 -9
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +8 -4
- 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/Invoice.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +3 -3
- package/dist/packages/_es/TrendArrow.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 +1 -1
- package/dist/packages/_es/component.js +1 -1
- 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 +3 -3
- 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/ellipsis/index.scss +1 -0
- package/dist/packages/index.d.ts +5 -0
- 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/tabbar/index.scss +1 -1
- package/dist/smartips/attributes.json +6 -2
- package/dist/smartips/tags.json +4 -3
- package/dist/smartips/web-types.json +12 -3
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +54 -54
- package/dist/styles/themes/jdb.scss +54 -54
- package/dist/styles/themes/jdt.scss +54 -54
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +4 -11
- package/dist/types/__VUE/address/index.vue.d.ts +10 -12
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +3 -10
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +3 -10
- package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +3 -10
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +3 -10
- package/dist/types/__VUE/addresslist/index.vue.d.ts +3 -10
- package/dist/types/__VUE/animate/index.vue.d.ts +4 -10
- package/dist/types/__VUE/animate/type.d.ts +6 -0
- package/dist/types/__VUE/audio/index.vue.d.ts +3 -10
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +3 -10
- package/dist/types/__VUE/avatar/index.vue.d.ts +3 -10
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +3 -10
- package/dist/types/__VUE/backtop/index.vue.d.ts +3 -10
- package/dist/types/__VUE/badge/index.vue.d.ts +4 -11
- package/dist/types/__VUE/barrage/index.vue.d.ts +3 -10
- package/dist/types/__VUE/button/index.vue.d.ts +4 -10
- package/dist/types/__VUE/button/type.d.ts +7 -0
- package/dist/types/__VUE/calendar/index.vue.d.ts +3 -10
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +29 -10
- package/dist/types/__VUE/card/index.vue.d.ts +3 -10
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +6 -11
- package/dist/types/__VUE/cascader/index.vue.d.ts +7 -12
- package/dist/types/__VUE/cascader/types.d.ts +35 -0
- package/dist/types/__VUE/category/index.vue.d.ts +4 -10
- package/dist/types/__VUE/categorypane/index.vue.d.ts +3 -10
- package/dist/types/__VUE/cell/index.vue.d.ts +3 -10
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +3 -10
- package/dist/types/__VUE/checkbox/index.vue.d.ts +4 -11
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +3 -10
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +3 -10
- package/dist/types/__VUE/col/index.vue.d.ts +3 -10
- package/dist/types/__VUE/collapse/index.vue.d.ts +3 -10
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +3 -10
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +3 -10
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +3 -10
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +3 -10
- package/dist/types/__VUE/comment/index.vue.d.ts +3 -10
- package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -10
- package/dist/types/__VUE/countdown/index.vue.d.ts +3 -10
- package/dist/types/__VUE/countdown/util.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +3 -10
- package/dist/types/__VUE/datepicker/index.vue.d.ts +7 -14
- package/dist/types/__VUE/datepicker/type.d.ts +6 -0
- package/dist/types/__VUE/dialog/index.vue.d.ts +5 -11
- package/dist/types/__VUE/divider/index.vue.d.ts +3 -10
- package/dist/types/__VUE/drag/index.vue.d.ts +3 -10
- package/dist/types/__VUE/ecard/index.vue.d.ts +4 -10
- package/dist/types/__VUE/elevator/index.vue.d.ts +10 -11
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +18 -10
- package/dist/types/__VUE/empty/index.vue.d.ts +3 -10
- package/dist/types/__VUE/fixednav/index.vue.d.ts +5 -12
- package/dist/types/__VUE/form/index.vue.d.ts +4 -11
- package/dist/types/__VUE/form/types.d.ts +16 -0
- package/dist/types/__VUE/formitem/index.vue.d.ts +4 -10
- package/dist/types/__VUE/formitem/types.d.ts +13 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +4 -11
- package/dist/types/__VUE/griditem/index.vue.d.ts +4 -10
- package/dist/types/__VUE/icon/index.vue.d.ts +4 -10
- package/dist/types/__VUE/image/index.vue.d.ts +4 -10
- package/dist/types/__VUE/image/type.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +6 -11
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +6 -10
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/indicator/index.vue.d.ts +3 -10
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +3 -10
- package/dist/types/__VUE/input/index.vue.d.ts +5 -11
- package/dist/types/__VUE/input/type.d.ts +13 -0
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +3 -10
- package/dist/types/__VUE/invoice/index.vue.d.ts +3 -10
- package/dist/types/__VUE/layout/index.vue.d.ts +2 -9
- package/dist/types/__VUE/list/index.vue.d.ts +4 -10
- package/dist/types/__VUE/menu/index.vue.d.ts +3 -10
- package/dist/types/__VUE/menuitem/index.vue.d.ts +4 -10
- package/dist/types/__VUE/menuitem/type.d.ts +8 -0
- package/dist/types/__VUE/navbar/index.vue.d.ts +3 -10
- package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -12
- package/dist/types/__VUE/notify/index.vue.d.ts +4 -11
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -10
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +4 -11
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +22 -0
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +5 -11
- package/dist/types/__VUE/oldpicker/types.d.ts +24 -0
- package/dist/types/__VUE/overlay/index.vue.d.ts +34 -10
- package/dist/types/__VUE/pagination/index.vue.d.ts +3 -10
- package/dist/types/__VUE/picker/Column.vue.d.ts +7 -12
- package/dist/types/__VUE/picker/index.vue.d.ts +13 -12
- package/dist/types/__VUE/picker/types.d.ts +26 -0
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -12
- package/dist/types/__VUE/popover/type.d.ts +6 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +85 -11
- package/dist/types/__VUE/price/index.vue.d.ts +3 -10
- package/dist/types/__VUE/progress/index.vue.d.ts +3 -10
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +4 -10
- package/dist/types/__VUE/radio/index.vue.d.ts +3 -10
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +3 -10
- package/dist/types/__VUE/range/index.vue.d.ts +6 -12
- package/dist/types/__VUE/range/type.d.ts +5 -0
- package/dist/types/__VUE/rate/index.vue.d.ts +4 -11
- package/dist/types/__VUE/row/index.vue.d.ts +3 -10
- package/dist/types/__VUE/searchbar/index.vue.d.ts +4 -10
- package/dist/types/__VUE/searchbar/type.d.ts +5 -0
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +3 -10
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +4 -10
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +3 -10
- package/dist/types/__VUE/signature/index.vue.d.ts +3 -10
- package/dist/types/__VUE/skeleton/index.vue.d.ts +4 -11
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -10
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +3 -10
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +3 -10
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +3 -10
- package/dist/types/__VUE/sku/index.vue.d.ts +4 -11
- package/dist/types/__VUE/step/index.vue.d.ts +3 -10
- package/dist/types/__VUE/steps/index.vue.d.ts +3 -10
- package/dist/types/__VUE/sticky/index.vue.d.ts +5 -11
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +3 -10
- package/dist/types/__VUE/swipe/index.vue.d.ts +5 -10
- package/dist/types/__VUE/swiper/index.vue.d.ts +5 -11
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +8 -10
- package/dist/types/__VUE/switch/index.vue.d.ts +3 -10
- package/dist/types/__VUE/tabbar/index.vue.d.ts +3 -10
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -10
- package/dist/types/__VUE/table/index.vue.d.ts +4 -11
- package/dist/types/__VUE/table/types.d.ts +21 -0
- package/dist/types/__VUE/tabpane/index.vue.d.ts +3 -10
- package/dist/types/__VUE/tabs/index.vue.d.ts +4 -11
- package/dist/types/__VUE/tag/index.vue.d.ts +4 -10
- package/dist/types/__VUE/tag/type.d.ts +5 -0
- package/dist/types/__VUE/textarea/index.vue.d.ts +3 -10
- package/dist/types/__VUE/timedetail/index.vue.d.ts +3 -10
- package/dist/types/__VUE/timepannel/index.vue.d.ts +3 -10
- package/dist/types/__VUE/timeselect/index.vue.d.ts +4 -11
- package/dist/types/__VUE/toast/index.d.ts +6 -6
- package/dist/types/__VUE/toast/index.vue.d.ts +4 -11
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +3 -10
- package/dist/types/__VUE/uploader/index.vue.d.ts +6 -12
- package/dist/types/__VUE/video/index.vue.d.ts +3 -10
- package/dist/types/__VUE/watermark/index.vue.d.ts +5 -12
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
## 特性
|
|
61
61
|
|
|
62
62
|
* 🚀 70+ 高质量组件,覆盖移动端主流场景
|
|
63
|
-
* 💪
|
|
63
|
+
* 💪 支持一套代码同时开发 H5+多端小程序
|
|
64
64
|
* 📖 基于京东APP 10.0 视觉规范
|
|
65
65
|
* 🍭 支持按需引用
|
|
66
66
|
* 📖 详尽的文档和示例
|
|
67
67
|
* 💪 支持 TypeScript
|
|
68
68
|
* 💪 支持服务端渲染(测试阶段)
|
|
69
|
-
* 🍭
|
|
70
|
-
* 🌍
|
|
69
|
+
* 🍭 支持组件级别定制主题,内置 700+ 个变量
|
|
70
|
+
* 🌍 国际化支持,已支持英文,印尼语和繁体中文
|
|
71
71
|
* 🍭 单元测试覆盖率超过 80%,保障稳定性
|
|
72
72
|
* 📖 提供 Sketch 设计资源
|
|
73
73
|
|
|
@@ -153,7 +153,7 @@ NutUI 已经投入了我们的生产环境中使用,业界也在广泛地使
|
|
|
153
153
|
|
|
154
154
|
## 参与共建
|
|
155
155
|
|
|
156
|
-
非常欢迎社区开发者为 NutUI 贡献代码,在贡献之前请先阅读 [贡献指南](https://nutui.jd.com/#/contributing),参与共建提 [PR](https://github.com/jdf2e/nutui/pulls)。
|
|
156
|
+
非常欢迎社区开发者为 NutUI 贡献代码,在贡献之前请先阅读 [贡献指南](https://nutui.jd.com/#/zh-CN/guide/contributing),参与共建提 [PR](https://github.com/jdf2e/nutui/pulls)。
|
|
157
157
|
|
|
158
158
|
感谢以下所有给 NutUI 贡献过代码的 [开发者](https://github.com/jdf2e/nutui/graphs/contributors)。
|
|
159
159
|
|
package/dist/nutui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:19 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5224,7 +5224,7 @@ const _sfc_main$1k = create$1k({
|
|
|
5224
5224
|
days[4] = Utils.getWhatDay(+days[0], +days[1], +days[2]);
|
|
5225
5225
|
if (type == "multiple") {
|
|
5226
5226
|
if (state.currDate.length > 0) {
|
|
5227
|
-
let hasIndex =
|
|
5227
|
+
let hasIndex = void 0;
|
|
5228
5228
|
state.currDate.forEach((item, index) => {
|
|
5229
5229
|
if (item == days[3]) {
|
|
5230
5230
|
hasIndex = index;
|
|
@@ -5233,7 +5233,7 @@ const _sfc_main$1k = create$1k({
|
|
|
5233
5233
|
if (isFirst) {
|
|
5234
5234
|
state.chooseData.push([...days]);
|
|
5235
5235
|
} else {
|
|
5236
|
-
if (hasIndex !==
|
|
5236
|
+
if (hasIndex !== void 0) {
|
|
5237
5237
|
state.currDate.splice(hasIndex, 1);
|
|
5238
5238
|
state.chooseData.splice(hasIndex, 1);
|
|
5239
5239
|
} else {
|
|
@@ -12138,7 +12138,7 @@ const updateToast = (opts) => {
|
|
|
12138
12138
|
}
|
|
12139
12139
|
const instance = createVNode(Toast, opts);
|
|
12140
12140
|
render$4(instance, container);
|
|
12141
|
-
return
|
|
12141
|
+
return ToastFunction;
|
|
12142
12142
|
}
|
|
12143
12143
|
};
|
|
12144
12144
|
const mountToast = (opts) => {
|
|
@@ -12161,7 +12161,7 @@ const mountToast = (opts) => {
|
|
|
12161
12161
|
const instance = createVNode(Toast, opts);
|
|
12162
12162
|
render$4(instance, container);
|
|
12163
12163
|
document.body.appendChild(container);
|
|
12164
|
-
return
|
|
12164
|
+
return ToastFunction;
|
|
12165
12165
|
};
|
|
12166
12166
|
const errorMsg = (msg) => {
|
|
12167
12167
|
if (!msg) {
|
|
@@ -17998,6 +17998,10 @@ const _sfc_main$r = create$r({
|
|
|
17998
17998
|
symbol: {
|
|
17999
17999
|
type: String,
|
|
18000
18000
|
default: "..."
|
|
18001
|
+
},
|
|
18002
|
+
lineHeight: {
|
|
18003
|
+
type: [Number, String],
|
|
18004
|
+
default: "20"
|
|
18001
18005
|
}
|
|
18002
18006
|
},
|
|
18003
18007
|
emits: ["click", "change"],
|
|
@@ -18050,7 +18054,7 @@ const _sfc_main$r = create$r({
|
|
|
18050
18054
|
container.style.whiteSpace = "normal";
|
|
18051
18055
|
container.style.webkitLineClamp = "unset";
|
|
18052
18056
|
container.style.display = "block";
|
|
18053
|
-
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
18057
|
+
const lineHeight = pxToNumber(originStyle.lineHeight === "normal" ? props.lineHeight : originStyle.lineHeight);
|
|
18054
18058
|
maxHeight = Math.floor(
|
|
18055
18059
|
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
18056
18060
|
);
|
|
@@ -18154,13 +18158,13 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18154
18158
|
}, [
|
|
18155
18159
|
!_ctx.exceeded ? (openBlock(), createElementBlock("view", _hoisted_1$o, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true),
|
|
18156
18160
|
_ctx.exceeded && !_ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_2$l, [
|
|
18157
|
-
createTextVNode(toDisplayString(_ctx.ellipsis.leading), 1),
|
|
18161
|
+
createTextVNode(toDisplayString(_ctx.ellipsis.leading) + " ", 1),
|
|
18158
18162
|
_ctx.expandText ? (openBlock(), createElementBlock("span", {
|
|
18159
18163
|
key: 0,
|
|
18160
18164
|
class: "nut-ellipsis-text",
|
|
18161
18165
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.clickHandle(1), ["stop"]))
|
|
18162
18166
|
}, toDisplayString(_ctx.expandText), 1)) : createCommentVNode("", true),
|
|
18163
|
-
createTextVNode(toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
18167
|
+
createTextVNode(" " + toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
18164
18168
|
])) : createCommentVNode("", true),
|
|
18165
18169
|
_ctx.exceeded && _ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_3$i, [
|
|
18166
18170
|
createTextVNode(toDisplayString(_ctx.content) + " ", 1),
|
|
@@ -21709,6 +21713,6 @@ function install(app) {
|
|
|
21709
21713
|
}
|
|
21710
21714
|
});
|
|
21711
21715
|
}
|
|
21712
|
-
const version = "3.2.
|
|
21716
|
+
const version = "3.2.4-beta.0";
|
|
21713
21717
|
var nutui_vue_build = { install, version, Locale };
|
|
21714
21718
|
export { ActionSheet, Address, AddressList, Animate, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$1i as Checkbox, _sfc_main$1h as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, Comment, _sfc_main$1L as ConfigProvider, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Ellipsis, Empty, FixedNav, Form, FormItem, _sfc_main$1E as Grid, GridItem, _sfc_main$1R as Icon, Image$1 as Image, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, Invoice, _sfc_main$1J as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$1b as Radio, _sfc_main$1a as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$I as Steps, _sfc_main$1G as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, TrendArrow, Uploader, Video, WaterMark, nutui_vue_build as default, install, version };
|
package/dist/nutui.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:19 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5227,7 +5227,7 @@
|
|
|
5227
5227
|
days[4] = Utils.getWhatDay(+days[0], +days[1], +days[2]);
|
|
5228
5228
|
if (type == "multiple") {
|
|
5229
5229
|
if (state.currDate.length > 0) {
|
|
5230
|
-
let hasIndex =
|
|
5230
|
+
let hasIndex = void 0;
|
|
5231
5231
|
state.currDate.forEach((item, index) => {
|
|
5232
5232
|
if (item == days[3]) {
|
|
5233
5233
|
hasIndex = index;
|
|
@@ -5236,7 +5236,7 @@
|
|
|
5236
5236
|
if (isFirst) {
|
|
5237
5237
|
state.chooseData.push([...days]);
|
|
5238
5238
|
} else {
|
|
5239
|
-
if (hasIndex !==
|
|
5239
|
+
if (hasIndex !== void 0) {
|
|
5240
5240
|
state.currDate.splice(hasIndex, 1);
|
|
5241
5241
|
state.chooseData.splice(hasIndex, 1);
|
|
5242
5242
|
} else {
|
|
@@ -12141,7 +12141,7 @@
|
|
|
12141
12141
|
}
|
|
12142
12142
|
const instance = vue.createVNode(Toast, opts);
|
|
12143
12143
|
vue.render(instance, container);
|
|
12144
|
-
return
|
|
12144
|
+
return ToastFunction;
|
|
12145
12145
|
}
|
|
12146
12146
|
};
|
|
12147
12147
|
const mountToast = (opts) => {
|
|
@@ -12164,7 +12164,7 @@
|
|
|
12164
12164
|
const instance = vue.createVNode(Toast, opts);
|
|
12165
12165
|
vue.render(instance, container);
|
|
12166
12166
|
document.body.appendChild(container);
|
|
12167
|
-
return
|
|
12167
|
+
return ToastFunction;
|
|
12168
12168
|
};
|
|
12169
12169
|
const errorMsg = (msg) => {
|
|
12170
12170
|
if (!msg) {
|
|
@@ -18001,6 +18001,10 @@
|
|
|
18001
18001
|
symbol: {
|
|
18002
18002
|
type: String,
|
|
18003
18003
|
default: "..."
|
|
18004
|
+
},
|
|
18005
|
+
lineHeight: {
|
|
18006
|
+
type: [Number, String],
|
|
18007
|
+
default: "20"
|
|
18004
18008
|
}
|
|
18005
18009
|
},
|
|
18006
18010
|
emits: ["click", "change"],
|
|
@@ -18053,7 +18057,7 @@
|
|
|
18053
18057
|
container.style.whiteSpace = "normal";
|
|
18054
18058
|
container.style.webkitLineClamp = "unset";
|
|
18055
18059
|
container.style.display = "block";
|
|
18056
|
-
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
18060
|
+
const lineHeight = pxToNumber(originStyle.lineHeight === "normal" ? props.lineHeight : originStyle.lineHeight);
|
|
18057
18061
|
maxHeight = Math.floor(
|
|
18058
18062
|
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
18059
18063
|
);
|
|
@@ -18157,13 +18161,13 @@
|
|
|
18157
18161
|
}, [
|
|
18158
18162
|
!_ctx.exceeded ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$o, vue.toDisplayString(_ctx.content), 1)) : vue.createCommentVNode("", true),
|
|
18159
18163
|
_ctx.exceeded && !_ctx.expanded ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$l, [
|
|
18160
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.ellipsis.leading), 1),
|
|
18164
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.ellipsis.leading) + " ", 1),
|
|
18161
18165
|
_ctx.expandText ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
18162
18166
|
key: 0,
|
|
18163
18167
|
class: "nut-ellipsis-text",
|
|
18164
18168
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => _ctx.clickHandle(1), ["stop"]))
|
|
18165
18169
|
}, vue.toDisplayString(_ctx.expandText), 1)) : vue.createCommentVNode("", true),
|
|
18166
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
18170
|
+
vue.createTextVNode(" " + vue.toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
18167
18171
|
])) : vue.createCommentVNode("", true),
|
|
18168
18172
|
_ctx.exceeded && _ctx.expanded ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$i, [
|
|
18169
18173
|
vue.createTextVNode(vue.toDisplayString(_ctx.content) + " ", 1),
|
|
@@ -21712,7 +21716,7 @@
|
|
|
21712
21716
|
}
|
|
21713
21717
|
});
|
|
21714
21718
|
}
|
|
21715
|
-
const version = "3.2.
|
|
21719
|
+
const version = "3.2.4-beta.0";
|
|
21716
21720
|
var nutui_vue_build = { install, version, Locale };
|
|
21717
21721
|
exports2.ActionSheet = ActionSheet;
|
|
21718
21722
|
exports2.Address = Address;
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -33,6 +33,10 @@ const _sfc_main = create({
|
|
|
33
33
|
symbol: {
|
|
34
34
|
type: String,
|
|
35
35
|
default: "..."
|
|
36
|
+
},
|
|
37
|
+
lineHeight: {
|
|
38
|
+
type: [Number, String],
|
|
39
|
+
default: "20"
|
|
36
40
|
}
|
|
37
41
|
},
|
|
38
42
|
emits: ["click", "change"],
|
|
@@ -85,7 +89,7 @@ const _sfc_main = create({
|
|
|
85
89
|
container.style.whiteSpace = "normal";
|
|
86
90
|
container.style.webkitLineClamp = "unset";
|
|
87
91
|
container.style.display = "block";
|
|
88
|
-
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
92
|
+
const lineHeight = pxToNumber(originStyle.lineHeight === "normal" ? props.lineHeight : originStyle.lineHeight);
|
|
89
93
|
maxHeight = Math.floor(
|
|
90
94
|
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
91
95
|
);
|
|
@@ -189,13 +193,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189
193
|
}, [
|
|
190
194
|
!_ctx.exceeded ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true),
|
|
191
195
|
_ctx.exceeded && !_ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
192
|
-
createTextVNode(toDisplayString(_ctx.ellipsis.leading), 1),
|
|
196
|
+
createTextVNode(toDisplayString(_ctx.ellipsis.leading) + " ", 1),
|
|
193
197
|
_ctx.expandText ? (openBlock(), createElementBlock("span", {
|
|
194
198
|
key: 0,
|
|
195
199
|
class: "nut-ellipsis-text",
|
|
196
200
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.clickHandle(1), ["stop"]))
|
|
197
201
|
}, toDisplayString(_ctx.expandText), 1)) : createCommentVNode("", true),
|
|
198
|
-
createTextVNode(toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
202
|
+
createTextVNode(" " + toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
199
203
|
])) : createCommentVNode("", true),
|
|
200
204
|
_ctx.exceeded && _ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
201
205
|
createTextVNode(toDisplayString(_ctx.content) + " ", 1),
|