@nutui/nutui 3.1.19-beta.7 → 3.1.20-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/CHANGELOG.md +49 -0
- package/README.md +1 -1
- package/dist/nutui.es.js +3329 -1681
- package/dist/nutui.umd.js +3336 -1682
- package/dist/packages/_es/ActionSheet.js +19 -23
- package/dist/packages/_es/Address.js +17 -13
- package/dist/packages/_es/AddressList.js +616 -0
- package/dist/packages/_es/Audio.js +2 -1
- package/dist/packages/_es/AudioOperate.js +2 -1
- package/dist/packages/_es/Avatar.js +120 -24
- package/dist/packages/_es/AvatarGroup.js +78 -0
- package/dist/packages/_es/BackTop.js +2 -1
- package/dist/packages/_es/Badge.js +2 -1
- package/dist/packages/_es/Barrage.js +2 -1
- package/dist/packages/_es/Button.js +2 -1
- package/dist/packages/_es/Calendar.js +2 -1
- package/dist/packages/_es/CalendarItem.js +2 -1
- package/dist/packages/_es/Card.js +13 -5
- package/dist/packages/_es/Cascader.js +30 -31
- package/dist/packages/_es/Category.js +63 -0
- package/dist/packages/_es/CategoryPane.js +116 -0
- package/dist/packages/_es/Cell.js +2 -1
- package/dist/packages/_es/CellGroup.js +2 -1
- package/dist/packages/_es/Checkbox.js +2 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -1
- package/dist/packages/_es/CircleProgress.js +114 -67
- package/dist/packages/_es/Col.js +12 -4
- package/dist/packages/_es/Collapse.js +2 -1
- package/dist/packages/_es/CollapseItem.js +13 -2
- package/dist/packages/_es/Comment.js +440 -0
- package/dist/packages/_es/CountDown.js +175 -137
- package/dist/packages/_es/CountUp.js +2 -1
- package/dist/packages/_es/DatePicker.js +40 -12
- package/dist/packages/_es/Dialog.js +36 -44
- package/dist/packages/_es/Divider.js +2 -1
- package/dist/packages/_es/Drag.js +2 -1
- package/dist/packages/_es/Ecard.js +22 -11
- package/dist/packages/_es/Elevator.js +2 -1
- package/dist/packages/_es/Empty.js +2 -1
- package/dist/packages/_es/FixedNav.js +2 -1
- package/dist/packages/_es/Form.js +2 -1
- package/dist/packages/_es/FormItem.js +6 -4
- package/dist/packages/_es/Grid.js +2 -1
- package/dist/packages/_es/GridItem.js +2 -1
- package/dist/packages/_es/Icon.js +2 -1
- package/dist/packages/_es/ImagePreview.js +11 -14
- package/dist/packages/_es/Indicator.js +2 -1
- package/dist/packages/_es/InfiniteLoading.js +11 -8
- package/dist/packages/_es/Input.js +5 -3
- package/dist/packages/_es/InputNumber.js +2 -1
- package/dist/packages/_es/Layout.js +2 -1
- package/dist/packages/_es/List.js +7 -3
- package/dist/packages/_es/Menu.js +2 -1
- package/dist/packages/_es/MenuItem.js +2 -1
- package/dist/packages/_es/Navbar.js +2 -1
- package/dist/packages/_es/NoticeBar.js +2 -1
- package/dist/packages/_es/Notify.js +41 -23
- package/dist/packages/_es/NumberKeyboard.js +2 -1
- package/dist/packages/_es/OldPicker.js +2 -1
- package/dist/packages/_es/OverLay.js +2 -1
- package/dist/packages/_es/Pagination.js +2 -1
- package/dist/packages/_es/Picker.js +9 -6
- package/dist/packages/_es/Popover.js +2 -1
- package/dist/packages/_es/Popup.js +7 -1
- package/dist/packages/_es/Price.js +2 -1
- package/dist/packages/_es/Progress.js +19 -4
- package/dist/packages/_es/PullRefresh.js +2 -1
- package/dist/packages/_es/Radio.js +2 -1
- package/dist/packages/_es/RadioGroup.js +2 -1
- package/dist/packages/_es/Range.js +2 -1
- package/dist/packages/_es/Rate.js +2 -1
- package/dist/packages/_es/Row.js +12 -4
- package/dist/packages/_es/SearchBar.js +2 -1
- package/dist/packages/_es/ShortPassword.js +2 -1
- package/dist/packages/_es/SideNavBar.js +2 -1
- package/dist/packages/_es/SideNavBarItem.js +2 -1
- package/dist/packages/_es/Signature.js +9 -10
- package/dist/packages/_es/Skeleton.js +2 -1
- package/dist/packages/_es/Sku.js +17 -14
- package/dist/packages/_es/Step.js +2 -1
- package/dist/packages/_es/Steps.js +2 -1
- package/dist/packages/_es/Sticky.js +2 -1
- package/dist/packages/_es/SubSideNavBar.js +2 -1
- package/dist/packages/_es/Swipe.js +2 -1
- package/dist/packages/_es/Swiper.js +2 -1
- package/dist/packages/_es/SwiperItem.js +2 -1
- package/dist/packages/_es/Switch.js +2 -1
- package/dist/packages/_es/TabPane.js +2 -1
- package/dist/packages/_es/Tabbar.js +2 -1
- package/dist/packages/_es/TabbarItem.js +2 -1
- package/dist/packages/_es/Table.js +21 -18
- package/dist/packages/_es/Tabs.js +27 -24
- package/dist/packages/_es/Tag.js +2 -1
- package/dist/packages/_es/TextArea.js +4 -3
- package/dist/packages/_es/TimeDetail.js +2 -1
- package/dist/packages/_es/TimePannel.js +2 -1
- package/dist/packages/_es/TimeSelect.js +7 -5
- package/dist/packages/_es/Toast.js +2 -1
- package/dist/packages/_es/Uploader.js +43 -52
- package/dist/packages/_es/Video.js +2 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +27 -113
- 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/_es/style.css +111 -0
- package/dist/packages/actionsheet/index.scss +0 -4
- package/dist/packages/addresslist/index.scss +144 -0
- package/dist/packages/avatar/index.scss +10 -5
- package/dist/packages/avatargroup/index.scss +14 -0
- package/dist/packages/category/index.scss +38 -0
- package/dist/packages/categorypane/index.scss +124 -0
- package/dist/packages/circleprogress/index.scss +12 -53
- package/dist/packages/col/index.scss +2 -2
- package/dist/packages/collapseitem/index.scss +12 -2
- package/dist/packages/comment/index.scss +353 -0
- package/dist/packages/ecard/index.scss +2 -2
- package/dist/packages/input/index.scss +18 -2
- package/dist/packages/locale/index.d.ts +3 -0
- package/dist/packages/locale/index.scss +1 -0
- package/dist/packages/locale/lang/baseLang.js +8 -0
- package/dist/packages/locale/lang/en-US.js +91 -0
- package/dist/packages/locale/lang/index.js +48 -0
- package/dist/packages/locale/lang/index.scss +1 -0
- package/dist/packages/locale/lang/zh-CN.js +91 -0
- package/dist/packages/locale/lang/zh-TW.js +91 -0
- package/dist/packages/locale/locale/index.d.ts +8 -0
- package/dist/packages/locale/locale/lang/baseLang.d.ts +82 -0
- package/dist/packages/locale/locale/lang/en-US.d.ts +83 -0
- package/dist/packages/locale/locale/lang/zh-CN.d.ts +83 -0
- package/dist/packages/locale/locale/lang/zh-TW.d.ts +83 -0
- package/dist/packages/notify/index.scss +2 -0
- package/dist/packages/popup/index.scss +4 -0
- package/dist/smartips/attributes.json +2542 -0
- package/dist/smartips/tags.json +955 -0
- package/dist/style.css +1 -1
- package/dist/styles/font/config.json +5 -0
- package/dist/styles/themes/default.scss +51 -46
- package/dist/styles/themes/jdt.scss +51 -46
- package/dist/styles/variables-jdt.scss +22 -3
- package/dist/styles/variables.scss +21 -2
- package/dist/types/__VUE/actionsheet/index.d.ts +14 -14
- package/dist/types/__VUE/address/index.d.ts +15 -5
- package/dist/types/__VUE/addresslist/components/GeneralShell.d.ts +35 -0
- package/dist/types/__VUE/addresslist/components/ItemContents.d.ts +42 -0
- package/dist/types/__VUE/addresslist/components/LongPressShell.d.ts +47 -0
- package/dist/types/__VUE/addresslist/components/SwipeShell.d.ts +37 -0
- package/dist/types/__VUE/addresslist/index.d.ts +81 -0
- package/dist/types/__VUE/audio/index.d.ts +3 -3
- package/dist/types/__VUE/audiooperate/index.d.ts +3 -3
- package/dist/types/__VUE/avatar/index.d.ts +48 -4
- package/dist/types/__VUE/avatargroup/index.d.ts +93 -0
- package/dist/types/__VUE/backtop/index.d.ts +3 -3
- package/dist/types/__VUE/badge/index.d.ts +3 -3
- package/dist/types/__VUE/barrage/index.d.ts +3 -3
- package/dist/types/__VUE/button/index.d.ts +3 -3
- package/dist/types/__VUE/calendar/index.d.ts +4 -4
- package/dist/types/__VUE/calendaritem/index.d.ts +3 -3
- package/dist/types/__VUE/card/index.d.ts +12 -3
- package/dist/types/__VUE/cascader/cascader-item.d.ts +3 -3
- package/dist/types/__VUE/cascader/index.d.ts +167 -3
- package/dist/types/__VUE/cascader/tree.d.ts +0 -1
- package/dist/types/__VUE/category/index.d.ts +38 -0
- package/dist/types/__VUE/categorypane/index.d.ts +45 -0
- package/dist/types/__VUE/cell/index.d.ts +3 -3
- package/dist/types/__VUE/cellgroup/index.d.ts +3 -3
- package/dist/types/__VUE/checkbox/index.d.ts +3 -3
- package/dist/types/__VUE/checkboxgroup/index.d.ts +3 -3
- package/dist/types/__VUE/circleprogress/index.d.ts +58 -30
- package/dist/types/__VUE/col/index.d.ts +8 -5
- package/dist/types/__VUE/collapse/index.d.ts +4 -4
- package/dist/types/__VUE/collapseitem/index.d.ts +3 -3
- package/dist/types/__VUE/comment/components/CmtBottom.d.ts +52 -0
- package/dist/types/__VUE/comment/components/CmtHeader.d.ts +47 -0
- package/dist/types/__VUE/comment/components/CmtImages.d.ts +51 -0
- package/dist/types/__VUE/comment/index.d.ts +110 -0
- package/dist/types/__VUE/countdown/index.d.ts +81 -67
- package/dist/types/__VUE/countdown/util.d.ts +6 -0
- package/dist/types/__VUE/countup/index.d.ts +3 -3
- package/dist/types/__VUE/datepicker/index.d.ts +13 -4
- package/dist/types/__VUE/dialog/index.d.ts +15 -15
- package/dist/types/__VUE/divider/index.d.ts +3 -3
- package/dist/types/__VUE/drag/index.d.ts +3 -3
- package/dist/types/__VUE/ecard/index.d.ts +4 -3
- package/dist/types/__VUE/elevator/index.d.ts +4 -4
- package/dist/types/__VUE/empty/index.d.ts +3 -3
- package/dist/types/__VUE/fixednav/index.d.ts +4 -4
- package/dist/types/__VUE/form/index.d.ts +3 -3
- package/dist/types/__VUE/formitem/index.d.ts +3 -3
- package/dist/types/__VUE/grid/index.d.ts +3 -3
- package/dist/types/__VUE/griditem/index.d.ts +3 -3
- package/dist/types/__VUE/icon/index.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/index.d.ts +3 -3
- package/dist/types/__VUE/indicator/index.d.ts +3 -3
- package/dist/types/__VUE/infiniteloading/index.d.ts +7 -7
- package/dist/types/__VUE/input/index.d.ts +3 -3
- package/dist/types/__VUE/inputnumber/index.d.ts +3 -3
- package/dist/types/__VUE/layout/index.d.ts +3 -3
- package/dist/types/__VUE/list/index.d.ts +12 -4
- package/dist/types/__VUE/menu/index.d.ts +4 -4
- package/dist/types/__VUE/menuitem/index.d.ts +3 -3
- package/dist/types/__VUE/navbar/index.d.ts +3 -3
- package/dist/types/__VUE/noticebar/index.d.ts +5 -5
- package/dist/types/__VUE/notify/index.d.ts +13 -3
- package/dist/types/__VUE/numberkeyboard/index.d.ts +5 -5
- package/dist/types/__VUE/oldpicker/Column.d.ts +3 -3
- package/dist/types/__VUE/oldpicker/index.d.ts +14 -5
- package/dist/types/__VUE/overlay/index.d.ts +3 -3
- package/dist/types/__VUE/pagination/index.d.ts +3 -3
- package/dist/types/__VUE/picker/Column.d.ts +3 -3
- package/dist/types/__VUE/picker/index.d.ts +14 -5
- package/dist/types/__VUE/popover/index.d.ts +14 -5
- package/dist/types/__VUE/popup/index.d.ts +15 -6
- package/dist/types/__VUE/price/index.d.ts +3 -3
- package/dist/types/__VUE/progress/index.d.ts +4 -3
- package/dist/types/__VUE/pullrefresh/index.d.ts +3 -3
- package/dist/types/__VUE/radio/index.d.ts +3 -3
- package/dist/types/__VUE/radiogroup/index.d.ts +3 -3
- package/dist/types/__VUE/range/index.d.ts +3 -3
- package/dist/types/__VUE/rate/index.d.ts +3 -3
- package/dist/types/__VUE/row/index.d.ts +8 -5
- package/dist/types/__VUE/searchbar/index.d.ts +3 -3
- package/dist/types/__VUE/shortpassword/index.d.ts +4 -4
- package/dist/types/__VUE/sidenavbar/index.d.ts +3 -3
- package/dist/types/__VUE/sidenavbaritem/index.d.ts +3 -3
- package/dist/types/__VUE/signature/index.d.ts +4 -3
- package/dist/types/__VUE/skeleton/index.d.ts +3 -3
- package/dist/types/__VUE/sku/components/SkuHeader.d.ts +4 -3
- package/dist/types/__VUE/sku/components/SkuOperate.d.ts +3 -3
- package/dist/types/__VUE/sku/components/SkuSelect.d.ts +3 -3
- package/dist/types/__VUE/sku/components/SkuStepper.d.ts +3 -3
- package/dist/types/__VUE/sku/index.d.ts +15 -5
- package/dist/types/__VUE/step/index.d.ts +3 -3
- package/dist/types/__VUE/steps/index.d.ts +3 -3
- package/dist/types/__VUE/sticky/index.d.ts +3 -3
- package/dist/types/__VUE/subsidenavbar/index.d.ts +3 -3
- package/dist/types/__VUE/swipe/index.d.ts +5 -5
- package/dist/types/__VUE/swiper/index.d.ts +4 -4
- package/dist/types/__VUE/swiperitem/index.d.ts +3 -3
- package/dist/types/__VUE/switch/index.d.ts +3 -3
- package/dist/types/__VUE/tabbar/index.d.ts +4 -4
- package/dist/types/__VUE/tabbaritem/index.d.ts +3 -3
- package/dist/types/__VUE/table/common.d.ts +2 -1
- package/dist/types/__VUE/table/index.d.ts +3 -3
- package/dist/types/__VUE/table/renderColumn.d.ts +5 -10
- package/dist/types/__VUE/table/types.d.ts +2 -2
- package/dist/types/__VUE/tabpane/index.d.ts +3 -3
- package/dist/types/__VUE/tabs/common.d.ts +78 -0
- package/dist/types/__VUE/tabs/index.d.ts +15 -17
- package/dist/types/__VUE/tag/index.d.ts +4 -4
- package/dist/types/__VUE/textarea/index.d.ts +6 -6
- package/dist/types/__VUE/timedetail/index.d.ts +3 -3
- package/dist/types/__VUE/timepannel/index.d.ts +3 -3
- package/dist/types/__VUE/timeselect/index.d.ts +4 -3
- package/dist/types/__VUE/toast/index.d.ts +3 -3
- package/dist/types/__VUE/uploader/index.d.ts +5 -5
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -1
- package/dist/types/__VUE/video/index.d.ts +3 -3
- package/dist/types/nutui.d.ts +8 -2
- package/package.json +11 -12
- package/dist/index.d.ts +0 -3
- package/dist/nutui.d.ts +0 -103
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { c as createComponent } from "./component.js";
|
|
7
|
+
import { openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
+
import "../locale/lang";
|
|
10
|
+
var index_vue_vue_type_style_index_0_lang = "";
|
|
11
|
+
const { componentName, create } = createComponent("categorypane");
|
|
12
|
+
const _sfc_main = create({
|
|
13
|
+
props: {
|
|
14
|
+
type: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "classify"
|
|
17
|
+
},
|
|
18
|
+
categoryChild: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: () => []
|
|
21
|
+
},
|
|
22
|
+
customCategory: {
|
|
23
|
+
type: Array,
|
|
24
|
+
default: () => []
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(props, { emit }) {
|
|
28
|
+
const onChange = () => {
|
|
29
|
+
emit("onChange");
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
onChange
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const _hoisted_1 = { class: "nut-categorypane" };
|
|
37
|
+
const _hoisted_2 = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "nut-categorypane__cateListRight"
|
|
40
|
+
};
|
|
41
|
+
const _hoisted_3 = { class: "nut-categorypane__childTitle" };
|
|
42
|
+
const _hoisted_4 = {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "nut-categorypane__childItemList"
|
|
45
|
+
};
|
|
46
|
+
const _hoisted_5 = ["src"];
|
|
47
|
+
const _hoisted_6 = { class: "nut-categorypane__skuImg" };
|
|
48
|
+
const _hoisted_7 = {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: "nut-categorypane__cateListRight"
|
|
51
|
+
};
|
|
52
|
+
const _hoisted_8 = { class: "nut-categorypane__childTitle" };
|
|
53
|
+
const _hoisted_9 = {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "nut-categorypane__childItemList"
|
|
56
|
+
};
|
|
57
|
+
const _hoisted_10 = { class: "nut-categorypane__skuName" };
|
|
58
|
+
const _hoisted_11 = {
|
|
59
|
+
key: 2,
|
|
60
|
+
class: "nut-categorypane__selfItemList"
|
|
61
|
+
};
|
|
62
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
63
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
64
|
+
_ctx.type == "classify" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
65
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index2) => {
|
|
66
|
+
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
67
|
+
createElementVNode("div", _hoisted_3, toDisplayString(item.catName), 1),
|
|
68
|
+
item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
69
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
|
|
70
|
+
return openBlock(), createElementBlock("div", {
|
|
71
|
+
class: "nut-categorypane__childItem",
|
|
72
|
+
key,
|
|
73
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onChange())
|
|
74
|
+
}, [
|
|
75
|
+
createElementVNode("img", {
|
|
76
|
+
class: "nut-categorypane__childImg",
|
|
77
|
+
src: sku.backImg
|
|
78
|
+
}, null, 8, _hoisted_5),
|
|
79
|
+
createElementVNode("div", _hoisted_6, toDisplayString(sku.catName), 1)
|
|
80
|
+
]);
|
|
81
|
+
}), 128))
|
|
82
|
+
])) : createCommentVNode("", true)
|
|
83
|
+
]);
|
|
84
|
+
}), 128))
|
|
85
|
+
])) : createCommentVNode("", true),
|
|
86
|
+
_ctx.type == "text" ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
87
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index2) => {
|
|
88
|
+
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
89
|
+
createElementVNode("div", _hoisted_8, toDisplayString(item.catName), 1),
|
|
90
|
+
item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
91
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
|
|
92
|
+
return openBlock(), createElementBlock("div", {
|
|
93
|
+
class: "nut-categorypane__childItem",
|
|
94
|
+
key,
|
|
95
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.onChange())
|
|
96
|
+
}, [
|
|
97
|
+
createElementVNode("div", _hoisted_10, toDisplayString(sku.catName), 1)
|
|
98
|
+
]);
|
|
99
|
+
}), 128))
|
|
100
|
+
])) : createCommentVNode("", true)
|
|
101
|
+
]);
|
|
102
|
+
}), 128))
|
|
103
|
+
])) : createCommentVNode("", true),
|
|
104
|
+
_ctx.type == "custom" ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
105
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.customCategory, (sku, key) => {
|
|
106
|
+
return openBlock(), createElementBlock("div", {
|
|
107
|
+
class: "nut-categorypane__skuName",
|
|
108
|
+
key,
|
|
109
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.onChange())
|
|
110
|
+
}, toDisplayString(sku.catName), 1);
|
|
111
|
+
}), 128))
|
|
112
|
+
])) : createCommentVNode("", true)
|
|
113
|
+
]);
|
|
114
|
+
}
|
|
115
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
116
|
+
export { index as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -8,6 +8,7 @@ import { c as createComponent } from "./component.js";
|
|
|
8
8
|
import { u as useRouter } from "./index.js";
|
|
9
9
|
import { p as pxCheck } from "./pxCheck.js";
|
|
10
10
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
11
|
+
import "../locale/lang";
|
|
11
12
|
const { componentName, create } = createComponent("cell");
|
|
12
13
|
const _sfc_main = create({
|
|
13
14
|
props: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
+
import "../locale/lang";
|
|
9
10
|
const { componentName, create } = createComponent("cell-group");
|
|
10
11
|
const _sfc_main = create({
|
|
11
12
|
props: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, computed, onMounted, getCurrentInstance, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import _sfc_main$1 from "./Icon.js";
|
|
9
|
+
import "../locale/lang";
|
|
9
10
|
import "./pxCheck.js";
|
|
10
11
|
const { create, componentName } = createComponent("checkbox");
|
|
11
12
|
const _sfc_main = create({
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { reactive, provide, computed, watch, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { u as useExpose } from "./index3.js";
|
|
9
|
+
import "../locale/lang";
|
|
9
10
|
const { create, componentName } = createComponent("checkboxgroup");
|
|
10
11
|
const _sfc_main = create({
|
|
11
12
|
props: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode,
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
6
|
+
import { useSlots, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot, toDisplayString, createCommentVNode } from "vue";
|
|
7
|
+
import { a as isObject, c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
+
import "../locale/lang";
|
|
9
10
|
const { componentName, create } = createComponent("circleprogress");
|
|
10
11
|
const _sfc_main = create({
|
|
11
12
|
props: {
|
|
@@ -13,95 +14,141 @@ const _sfc_main = create({
|
|
|
13
14
|
type: [Number, String],
|
|
14
15
|
required: true
|
|
15
16
|
},
|
|
16
|
-
|
|
17
|
+
strokeWidth: {
|
|
17
18
|
type: [Number, String],
|
|
18
|
-
default:
|
|
19
|
+
default: 5
|
|
19
20
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
default:
|
|
21
|
+
radius: {
|
|
22
|
+
type: [Number, String],
|
|
23
|
+
default: 50
|
|
23
24
|
},
|
|
24
|
-
|
|
25
|
-
type:
|
|
26
|
-
default:
|
|
27
|
-
|
|
25
|
+
strokeLinecap: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "round"
|
|
28
|
+
},
|
|
29
|
+
color: {
|
|
30
|
+
type: [String, Object],
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
pathColor: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: ""
|
|
36
|
+
},
|
|
37
|
+
clockwise: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: true
|
|
28
40
|
}
|
|
29
41
|
},
|
|
30
42
|
setup(props, { emit }) {
|
|
43
|
+
const slotDefault = !!useSlots().default;
|
|
44
|
+
const refRandomId = Math.random().toString(36).slice(-8);
|
|
31
45
|
const classes = computed(() => {
|
|
32
46
|
const prefixCls = componentName;
|
|
33
47
|
return {
|
|
34
48
|
[prefixCls]: true
|
|
35
49
|
};
|
|
36
50
|
});
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
const path = computed(() => {
|
|
52
|
+
const isWise = props.clockwise ? 1 : 0;
|
|
53
|
+
return `M 50 50 m -45 0 a 45 45 0 1 ${isWise} 90 0 a 45 45 0 1 ${isWise} -90 0`;
|
|
54
|
+
});
|
|
55
|
+
const hoverColor = computed(() => {
|
|
56
|
+
return isObject(props.color) ? `url(#${refRandomId})` : props.color;
|
|
57
|
+
});
|
|
58
|
+
const hoverStyle = computed(() => {
|
|
59
|
+
let perimeter = 283;
|
|
60
|
+
let offset = perimeter * Number(props.progress) / 100;
|
|
61
|
+
return {
|
|
62
|
+
stroke: isObject(props.color) ? `url(#${refRandomId})` : props.color,
|
|
63
|
+
strokeDasharray: `${offset}px ${perimeter}px`
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
const pathStyle = computed(() => {
|
|
67
|
+
return {
|
|
68
|
+
stroke: props.pathColor
|
|
47
69
|
};
|
|
48
|
-
Object.assign(baseOption, props.progressOption);
|
|
49
|
-
baseOption.cy = baseOption.cx = baseOption.radius + baseOption.strokeOutWidth;
|
|
50
|
-
baseOption.size = (baseOption.radius + baseOption.strokeOutWidth) * 2;
|
|
51
|
-
baseOption.startPosition = "rotate(-90," + baseOption.cx + "," + baseOption.cy + ")";
|
|
52
|
-
return baseOption;
|
|
53
70
|
});
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
71
|
+
const stop = computed(() => {
|
|
72
|
+
if (!isObject(props.color)) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
let color = props.color;
|
|
76
|
+
const colorArr = Object.keys(color).sort((a, b) => parseFloat(a) - parseFloat(b));
|
|
77
|
+
let stopArr = [];
|
|
78
|
+
colorArr.map((item, index2) => {
|
|
79
|
+
let obj = {
|
|
80
|
+
key: "",
|
|
81
|
+
value: ""
|
|
82
|
+
};
|
|
83
|
+
obj.key = item;
|
|
84
|
+
obj.value = color[item];
|
|
85
|
+
stopArr.push(obj);
|
|
86
|
+
});
|
|
87
|
+
return stopArr;
|
|
58
88
|
});
|
|
59
89
|
return {
|
|
60
90
|
classes,
|
|
61
|
-
|
|
62
|
-
|
|
91
|
+
hoverStyle,
|
|
92
|
+
pathStyle,
|
|
93
|
+
path,
|
|
94
|
+
hoverColor,
|
|
95
|
+
stop,
|
|
96
|
+
slotDefault,
|
|
97
|
+
refRandomId
|
|
63
98
|
};
|
|
64
99
|
}
|
|
65
100
|
});
|
|
66
|
-
const _hoisted_1 =
|
|
67
|
-
const _hoisted_2 = ["
|
|
68
|
-
const _hoisted_3 = ["
|
|
69
|
-
const _hoisted_4 =
|
|
101
|
+
const _hoisted_1 = { viewBox: "0 0 100 100" };
|
|
102
|
+
const _hoisted_2 = ["id"];
|
|
103
|
+
const _hoisted_3 = ["offset", "stop-color"];
|
|
104
|
+
const _hoisted_4 = ["d", "stroke-width"];
|
|
105
|
+
const _hoisted_5 = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
106
|
+
const _hoisted_6 = { class: "nut-circleprogress-text" };
|
|
107
|
+
const _hoisted_7 = { key: 0 };
|
|
70
108
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
71
109
|
return openBlock(), createElementBlock("div", {
|
|
72
110
|
class: normalizeClass(_ctx.classes),
|
|
73
|
-
style: normalizeStyle({ height: _ctx.
|
|
111
|
+
style: normalizeStyle({ height: _ctx.radius * 2 + "px", width: _ctx.radius * 2 + "px" })
|
|
74
112
|
}, [
|
|
75
|
-
(openBlock(), createElementBlock("svg",
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
113
|
+
(openBlock(), createElementBlock("svg", _hoisted_1, [
|
|
114
|
+
createElementVNode("defs", null, [
|
|
115
|
+
createElementVNode("linearGradient", {
|
|
116
|
+
id: _ctx.refRandomId,
|
|
117
|
+
x1: "100%",
|
|
118
|
+
y1: "0%",
|
|
119
|
+
x2: "0%",
|
|
120
|
+
y2: "0%"
|
|
121
|
+
}, [
|
|
122
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.stop, (item, index2) => {
|
|
123
|
+
return openBlock(), createElementBlock("stop", {
|
|
124
|
+
key: index2,
|
|
125
|
+
offset: item.key,
|
|
126
|
+
"stop-color": item.value
|
|
127
|
+
}, null, 8, _hoisted_3);
|
|
128
|
+
}), 128))
|
|
129
|
+
], 8, _hoisted_2)
|
|
130
|
+
]),
|
|
131
|
+
createElementVNode("path", {
|
|
132
|
+
class: "nut-circleprogress-path",
|
|
133
|
+
style: normalizeStyle(_ctx.pathStyle),
|
|
134
|
+
d: _ctx.path,
|
|
135
|
+
fill: "none",
|
|
136
|
+
"stroke-width": _ctx.strokeWidth
|
|
137
|
+
}, " > ", 12, _hoisted_4),
|
|
138
|
+
createElementVNode("path", {
|
|
139
|
+
class: "nut-circleprogress-hover",
|
|
140
|
+
style: normalizeStyle(_ctx.hoverStyle),
|
|
141
|
+
d: _ctx.path,
|
|
95
142
|
fill: "none",
|
|
96
|
-
|
|
97
|
-
"stroke-linecap":
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
143
|
+
stroke: _ctx.hoverColor,
|
|
144
|
+
"stroke-linecap": _ctx.strokeLinecap,
|
|
145
|
+
transform: "rotate(90,50,50)",
|
|
146
|
+
"stroke-width": _ctx.strokeWidth
|
|
147
|
+
}, null, 12, _hoisted_5)
|
|
148
|
+
])),
|
|
149
|
+
createElementVNode("div", _hoisted_6, [
|
|
150
|
+
renderSlot(_ctx.$slots, "default"),
|
|
151
|
+
!_ctx.slotDefault ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(_ctx.progress) + "%", 1)) : createCommentVNode("", true)
|
|
105
152
|
])
|
|
106
153
|
], 6);
|
|
107
154
|
}
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
+
import "../locale/lang";
|
|
9
10
|
const { componentName, create } = createComponent("col");
|
|
10
11
|
const _sfc_main = create({
|
|
11
12
|
props: {
|
|
@@ -18,7 +19,8 @@ const _sfc_main = create({
|
|
|
18
19
|
default: "0"
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
|
-
|
|
22
|
+
emits: ["click"],
|
|
23
|
+
setup(props, { emit }) {
|
|
22
24
|
const prefixCls = componentName;
|
|
23
25
|
const gutter = inject("gutter");
|
|
24
26
|
const classes = computed(() => {
|
|
@@ -35,16 +37,22 @@ const _sfc_main = create({
|
|
|
35
37
|
paddingRight: gutter / 2 + "px"
|
|
36
38
|
};
|
|
37
39
|
});
|
|
40
|
+
const handleClick = (evt) => {
|
|
41
|
+
evt.stopPropagation();
|
|
42
|
+
emit("click", evt);
|
|
43
|
+
};
|
|
38
44
|
return {
|
|
39
45
|
classes,
|
|
40
|
-
style
|
|
46
|
+
style,
|
|
47
|
+
handleClick
|
|
41
48
|
};
|
|
42
49
|
}
|
|
43
50
|
});
|
|
44
51
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
45
52
|
return openBlock(), createElementBlock("view", {
|
|
46
53
|
class: normalizeClass(_ctx.classes),
|
|
47
|
-
style: normalizeStyle(_ctx.style)
|
|
54
|
+
style: normalizeStyle(_ctx.style),
|
|
55
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
48
56
|
}, [
|
|
49
57
|
renderSlot(_ctx.$slots, "default")
|
|
50
58
|
], 6);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
+
import "../locale/lang";
|
|
9
10
|
const { create } = createComponent("collapse");
|
|
10
11
|
const _sfc_main = create({
|
|
11
12
|
props: {
|
|
@@ -18,13 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.20-beta.0 Mon Apr 25 2022 18:02:52 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, nextTick, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, normalizeStyle } from "vue";
|
|
26
26
|
import { c as createComponent } from "./component.js";
|
|
27
27
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
|
+
import "../locale/lang";
|
|
28
29
|
const { create, componentName } = createComponent("collapse-item");
|
|
29
30
|
const _sfc_main = create({
|
|
30
31
|
props: {
|
|
@@ -208,6 +209,11 @@ const _hoisted_4 = {
|
|
|
208
209
|
};
|
|
209
210
|
const _hoisted_5 = ["innerHTML"];
|
|
210
211
|
const _hoisted_6 = {
|
|
212
|
+
key: 0,
|
|
213
|
+
class: "collapse-extraWrapper"
|
|
214
|
+
};
|
|
215
|
+
const _hoisted_7 = { class: "collapse-extraRender" };
|
|
216
|
+
const _hoisted_8 = {
|
|
211
217
|
class: "collapse-wrapper",
|
|
212
218
|
ref: "wrapperRef"
|
|
213
219
|
};
|
|
@@ -254,7 +260,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
254
260
|
style: normalizeStyle(_ctx.iconStyle)
|
|
255
261
|
}, null, 8, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
|
|
256
262
|
], 2),
|
|
257
|
-
|
|
263
|
+
_ctx.$slots.extraRender ? (openBlock(), createElementBlock("view", _hoisted_6, [
|
|
264
|
+
createElementVNode("div", _hoisted_7, [
|
|
265
|
+
renderSlot(_ctx.$slots, "extraRender")
|
|
266
|
+
])
|
|
267
|
+
])) : createCommentVNode("", true),
|
|
268
|
+
createElementVNode("view", _hoisted_8, [
|
|
258
269
|
createElementVNode("view", {
|
|
259
270
|
class: normalizeClass(["collapse-content", _ctx.emptyContent]),
|
|
260
271
|
ref: "contentRef"
|