@nutui/nutui 4.1.5 → 4.1.7
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 +36 -0
- package/README.md +4 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +3923 -3836
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +2 -2
- package/dist/packages/_es/Address.js +2 -2
- 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 +17 -4
- package/dist/packages/_es/CalendarItem.js +2 -2
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -2
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +7 -3
- 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 +3 -4
- 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 +4 -4
- 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 +53 -28
- package/dist/packages/_es/FormItem.js +15 -2
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +8 -6
- 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/{Interceptor-c05a39f2.js → Interceptor-006f85b3.js} +1 -1
- package/dist/packages/_es/Invoice.js +3 -3
- 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 +2 -2
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/Noticebar.js +1 -1
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- 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 +2 -2
- package/dist/packages/_es/Popup.js +2 -2
- 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 +2 -2
- package/dist/packages/_es/RadioGroup.js +2 -2
- 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 +8 -4
- package/dist/packages/_es/ShortPassword.js +2 -2
- 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 +2 -2
- 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/SwipeGroup.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 +19 -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 +2 -2
- package/dist/packages/_es/Toast.js +2 -2
- package/dist/packages/_es/Tour.js +2 -2
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +7 -3
- package/dist/packages/_es/Video.js +26 -2
- package/dist/packages/_es/Watermark.js +1 -1
- package/dist/packages/_es/{common-8775d905.js → common-728db750.js} +1 -1
- package/dist/packages/_es/{component-0fbad28e.js → component-f86a70df.js} +4 -4
- package/dist/packages/_es/{index-3032df15.js → index-5a1e6d22.js} +1 -1
- package/dist/packages/_es/{index-7fdbc8f1.js → index-b53aec83.js} +7 -5
- package/dist/packages/_es/{index.vue_vue_type_script_lang-cdf21a24.js → index.vue_vue_type_script_lang-0ccf787e.js} +4 -9
- package/dist/packages/_es/{index.vue_vue_type_script_lang-2852286e.js → index.vue_vue_type_script_lang-1e118ab6.js} +2 -2
- package/dist/packages/_es/{mountComponent-a895e3f1.js → mountComponent-053caf41.js} +1 -1
- package/dist/packages/checkbox/index.scss +2 -1
- package/dist/packages/radio/index.scss +13 -0
- package/dist/packages/searchbar/index.scss +21 -2
- package/dist/smartips/web-types.json +10 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +37 -37
- package/dist/styles/themes/jdb.scss +37 -37
- package/dist/styles/themes/jddkh.scss +37 -37
- package/dist/styles/themes/jdt.scss +37 -37
- package/dist/styles/variables-jdb.scss +3 -1
- package/dist/styles/variables-jddkh.scss +2 -0
- package/dist/styles/variables-jdt.scss +3 -1
- package/dist/styles/variables.scss +3 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -0
- package/dist/types/__VUE/form/common.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +9 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { componentName, create } = createComponent("time-pannel");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
3
|
-
import { P as Popup } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
|
+
import { P as Popup } from "./index-5a1e6d22.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "@nutui/icons-vue";
|
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, onMounted, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, vShow, createVNode, render } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
25
|
+
import { C as CreateComponent } from "./mountComponent-053caf41.js";
|
|
26
26
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-vue";
|
|
27
27
|
const { create } = createComponent("toast");
|
|
28
28
|
const _sfc_main = create({
|
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vShow, Fragment, renderList, normalizeStyle, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { u as useRect } from "./index-29892cda.js";
|
|
23
23
|
import { Close } from "@nutui/icons-vue";
|
|
24
24
|
import Popover from "./Popover.js";
|
|
25
25
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
26
26
|
import "../locale/lang";
|
|
27
27
|
import "./renderIcon-3d0fd47c.js";
|
|
28
|
-
import "./index-
|
|
28
|
+
import "./index-5a1e6d22.js";
|
|
29
29
|
import "./Overlay.js";
|
|
30
30
|
const { create } = createComponent("tour");
|
|
31
31
|
const _sfc_main = create({
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
21
|
-
import { m as myFixed, c as createComponent } from "./component-
|
|
21
|
+
import { m as myFixed, c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { TriangleUp, TriangleDown } from "@nutui/icons-vue";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { ref, watch, h, reactive, resolveComponent, openBlock, createElementBlock, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createVNode } from "vue";
|
|
8
|
-
import { c as createComponent } from "./component-
|
|
9
|
-
import { f as funInterceptor } from "./Interceptor-
|
|
8
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
9
|
+
import { f as funInterceptor } from "./Interceptor-006f85b3.js";
|
|
10
10
|
import Progress from "./Progress.js";
|
|
11
11
|
import { Photograph, Failure, Loading, Del, Link } from "@nutui/icons-vue";
|
|
12
12
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -168,8 +168,12 @@ const _sfc_main = create({
|
|
|
168
168
|
name: props.name,
|
|
169
169
|
disabled: props.disabled
|
|
170
170
|
};
|
|
171
|
-
if (props.capture)
|
|
171
|
+
if (props.capture) {
|
|
172
172
|
params.capture = "camera";
|
|
173
|
+
if (!params.accept) {
|
|
174
|
+
params.accept = "image/*";
|
|
175
|
+
}
|
|
176
|
+
}
|
|
173
177
|
return h("input", params);
|
|
174
178
|
};
|
|
175
179
|
const clearInput = (el) => {
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
function throttle(fn, delay) {
|
|
@@ -71,7 +71,7 @@ const _sfc_main = create({
|
|
|
71
71
|
},
|
|
72
72
|
components: {},
|
|
73
73
|
emits: ["click", "play", "pause", "playend", "time"],
|
|
74
|
-
setup(props, { emit }) {
|
|
74
|
+
setup(props, { emit, expose }) {
|
|
75
75
|
const state = reactive({
|
|
76
76
|
videoElm: null,
|
|
77
77
|
initial: true,
|
|
@@ -297,6 +297,30 @@ const _sfc_main = create({
|
|
|
297
297
|
document.webkitCancelFullScreen();
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
|
+
const pause = () => {
|
|
301
|
+
state.state.playing = false;
|
|
302
|
+
state.videoElm.pause();
|
|
303
|
+
emit("pause", state.videoElm);
|
|
304
|
+
};
|
|
305
|
+
const stop = () => {
|
|
306
|
+
playEnded();
|
|
307
|
+
state.videoElm.pause();
|
|
308
|
+
};
|
|
309
|
+
const muted = () => {
|
|
310
|
+
state.state.isMuted = true;
|
|
311
|
+
state.videoElm.muted = true;
|
|
312
|
+
};
|
|
313
|
+
const unmuted = () => {
|
|
314
|
+
state.state.isMuted = false;
|
|
315
|
+
state.videoElm.muted = false;
|
|
316
|
+
};
|
|
317
|
+
expose({
|
|
318
|
+
play,
|
|
319
|
+
pause,
|
|
320
|
+
stop,
|
|
321
|
+
muted,
|
|
322
|
+
unmuted
|
|
323
|
+
});
|
|
300
324
|
onMounted(() => {
|
|
301
325
|
init();
|
|
302
326
|
});
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { componentName, create } = createComponent("watermark");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
4
4
|
function flattenVNodes(children, childName) {
|
|
5
5
|
const result = [];
|
|
@@ -128,11 +128,11 @@ export {
|
|
|
128
128
|
clamp as e,
|
|
129
129
|
isPromise as f,
|
|
130
130
|
getPropByPath as g,
|
|
131
|
-
|
|
131
|
+
isString as h,
|
|
132
132
|
isArray as i,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
isFunction as j,
|
|
134
|
+
getScrollTopRoot as k,
|
|
135
|
+
isObject as l,
|
|
136
136
|
myFixed as m,
|
|
137
137
|
floatData as n,
|
|
138
138
|
padZero as p
|
|
@@ -20,7 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
|
|
21
21
|
import { Close } from "@nutui/icons-vue";
|
|
22
22
|
import Overlay from "./Overlay.js";
|
|
23
|
-
import { c as createComponent } from "./component-
|
|
23
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
24
24
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
25
|
const popupProps = {
|
|
26
26
|
visible: {
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
23
23
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
24
24
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -940,10 +940,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
940
940
|
], 512)
|
|
941
941
|
], 544),
|
|
942
942
|
_ctx.poppable && !_ctx.isAutoBackFill ? (openBlock(), createElementBlock("view", _hoisted_15, [
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
943
|
+
renderSlot(_ctx.$slots, "footer-info", { date: _ctx.chooseData }, () => [
|
|
944
|
+
createElementVNode("view", {
|
|
945
|
+
class: "nut-calendar__confirm",
|
|
946
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
|
|
947
|
+
}, toDisplayString(_ctx.confirmText || _ctx.translate("confirm")), 1)
|
|
948
|
+
])
|
|
947
949
|
])) : createCommentVNode("", true)
|
|
948
950
|
], 2);
|
|
949
951
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
|
|
4
4
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
5
5
|
const { componentName, create } = createComponent("radio");
|
|
@@ -35,9 +35,6 @@ const _sfc_main = create({
|
|
|
35
35
|
const color = computed(() => {
|
|
36
36
|
return !props.disabled ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
|
|
37
37
|
});
|
|
38
|
-
const position = computed(() => {
|
|
39
|
-
return parent.position;
|
|
40
|
-
});
|
|
41
38
|
const renderIcon = () => {
|
|
42
39
|
const { iconSize } = props;
|
|
43
40
|
const iconNodeMap = {
|
|
@@ -77,17 +74,15 @@ const _sfc_main = create({
|
|
|
77
74
|
return;
|
|
78
75
|
parent.updateValue(props.label);
|
|
79
76
|
};
|
|
80
|
-
|
|
77
|
+
const reverseState = computed(() => parent.position.value === "left");
|
|
81
78
|
return () => {
|
|
82
79
|
return h(
|
|
83
80
|
"view",
|
|
84
81
|
{
|
|
85
|
-
class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
|
|
82
|
+
class: `${componentName} ${componentName}--${props.shape} ${reverseState.value ? `${componentName}--reverse` : ""}`,
|
|
86
83
|
onClick: handleClick
|
|
87
84
|
},
|
|
88
|
-
[
|
|
89
|
-
props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
|
|
90
|
-
]
|
|
85
|
+
[props.shape === "button" ? renderButton() : [renderIcon(), renderLabel()]]
|
|
91
86
|
);
|
|
92
87
|
};
|
|
93
88
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { provide, readonly, computed, watch, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
const { componentName, create } = createComponent("radio-group");
|
|
4
4
|
const _sfc_main = create({
|
|
5
5
|
props: {
|
|
@@ -22,7 +22,7 @@ const _sfc_main = create({
|
|
|
22
22
|
const updateValue = (value) => emit("update:modelValue", value);
|
|
23
23
|
provide("parent", {
|
|
24
24
|
label: readonly(computed(() => props.modelValue)),
|
|
25
|
-
position: props.textPosition,
|
|
25
|
+
position: readonly(computed(() => props.textPosition)),
|
|
26
26
|
updateValue
|
|
27
27
|
});
|
|
28
28
|
watch(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createApp } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { h as isString, j as isFunction } from "./component-f86a70df.js";
|
|
3
3
|
const CreateComponent = (options, component) => {
|
|
4
4
|
let elWrap = document.body;
|
|
5
5
|
const teleport = options.teleport || "body";
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
.nut-radio {
|
|
3
3
|
&__label {
|
|
4
4
|
color: $dark-color;
|
|
5
|
+
|
|
5
6
|
&--disabled {
|
|
6
7
|
color: $radio-label-disable-color;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
10
|
+
|
|
9
11
|
&__button {
|
|
10
12
|
background: $dark-background;
|
|
11
13
|
color: $dark-color;
|
|
14
|
+
|
|
12
15
|
&--disabled {
|
|
13
16
|
color: $radio-label-disable-color;
|
|
14
17
|
border: 1px solid $radio-label-disable-color;
|
|
@@ -16,6 +19,7 @@
|
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
}
|
|
22
|
+
|
|
19
23
|
.nut-radio {
|
|
20
24
|
display: flex;
|
|
21
25
|
align-items: center;
|
|
@@ -27,6 +31,8 @@
|
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
&--reverse {
|
|
34
|
+
flex-direction: row-reverse;
|
|
35
|
+
|
|
30
36
|
.nut-radio__label {
|
|
31
37
|
margin-right: $radio-label-margin-left;
|
|
32
38
|
margin-left: 0;
|
|
@@ -43,11 +49,13 @@
|
|
|
43
49
|
color: $radio-label-font-color;
|
|
44
50
|
box-sizing: border-box;
|
|
45
51
|
border: 1px solid #f6f7f9;
|
|
52
|
+
|
|
46
53
|
&--active {
|
|
47
54
|
background: transparent;
|
|
48
55
|
color: $radio-label-font-active-color;
|
|
49
56
|
border: 1px solid $radio-label-button-border-color;
|
|
50
57
|
position: relative;
|
|
58
|
+
|
|
51
59
|
&::after {
|
|
52
60
|
position: absolute;
|
|
53
61
|
top: 0;
|
|
@@ -57,10 +65,12 @@
|
|
|
57
65
|
width: 100%;
|
|
58
66
|
height: 100%;
|
|
59
67
|
background-color: $radio-label-button-background;
|
|
68
|
+
border-radius: $radio-button-border-radius;
|
|
60
69
|
opacity: 0.05;
|
|
61
70
|
content: '';
|
|
62
71
|
}
|
|
63
72
|
}
|
|
73
|
+
|
|
64
74
|
&--disabled {
|
|
65
75
|
color: $radio-label-disable-color;
|
|
66
76
|
border: none;
|
|
@@ -72,6 +82,7 @@
|
|
|
72
82
|
margin-left: $radio-label-margin-left;
|
|
73
83
|
font-size: $radio-label-font-size;
|
|
74
84
|
color: $radio-label-font-color;
|
|
85
|
+
|
|
75
86
|
&--disabled {
|
|
76
87
|
color: $radio-label-disable-color;
|
|
77
88
|
}
|
|
@@ -82,9 +93,11 @@
|
|
|
82
93
|
transition-duration: 0.3s;
|
|
83
94
|
transition-property: color, border-color, background-color;
|
|
84
95
|
}
|
|
96
|
+
|
|
85
97
|
&__icon--unchecked {
|
|
86
98
|
color: $radio-icon-disable-color;
|
|
87
99
|
}
|
|
100
|
+
|
|
88
101
|
&__icon--disable {
|
|
89
102
|
color: $radio-icon-disable-color2;
|
|
90
103
|
}
|
|
@@ -28,6 +28,22 @@
|
|
|
28
28
|
box-sizing: border-box;
|
|
29
29
|
color: $searchbar-input-bar-color;
|
|
30
30
|
|
|
31
|
+
&.safe-area-inset-bottom {
|
|
32
|
+
position: relative;
|
|
33
|
+
margin-bottom: constant(safe-area-inset-bottom);
|
|
34
|
+
margin-bottom: env(safe-area-inset-bottom);
|
|
35
|
+
&::after {
|
|
36
|
+
content: '';
|
|
37
|
+
position: absolute;
|
|
38
|
+
left: 0;
|
|
39
|
+
bottom: 0;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: constant(safe-area-inset-bottom);
|
|
42
|
+
height: env(safe-area-inset-bottom);
|
|
43
|
+
background: $searchbar-background;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
31
47
|
&::placeholder {
|
|
32
48
|
color: $searchbar-input-bar-placeholder-color;
|
|
33
49
|
}
|
|
@@ -72,7 +88,6 @@
|
|
|
72
88
|
input {
|
|
73
89
|
width: 100%;
|
|
74
90
|
height: 100%;
|
|
75
|
-
min-width: 214px;
|
|
76
91
|
padding-left: 4px;
|
|
77
92
|
}
|
|
78
93
|
}
|
|
@@ -122,11 +137,15 @@
|
|
|
122
137
|
margin: 0;
|
|
123
138
|
background-color: transparent;
|
|
124
139
|
border-color: transparent;
|
|
125
|
-
border-radius: 16px;
|
|
140
|
+
// border-radius: 16px;
|
|
126
141
|
outline: none;
|
|
127
142
|
font-size: 14px;
|
|
128
143
|
}
|
|
129
144
|
|
|
145
|
+
.nut-searchbar__input-bar_clear {
|
|
146
|
+
max-width: 290px;
|
|
147
|
+
}
|
|
148
|
+
|
|
130
149
|
.nut-searchbar__input-inner-absolute {
|
|
131
150
|
.nut-searchbar__input-bar {
|
|
132
151
|
box-sizing: border-box;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "NutUI",
|
|
5
|
-
"version": "4.1.
|
|
5
|
+
"version": "4.1.7",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -5056,6 +5056,15 @@
|
|
|
5056
5056
|
"type": "string",
|
|
5057
5057
|
"kind": "expression"
|
|
5058
5058
|
}
|
|
5059
|
+
},
|
|
5060
|
+
{
|
|
5061
|
+
"name": "safe-area-inset-bottom",
|
|
5062
|
+
"default": "`false`",
|
|
5063
|
+
"description": "是否开启 iphone 系列全面屏底部安全区适配",
|
|
5064
|
+
"value": {
|
|
5065
|
+
"type": "boolean",
|
|
5066
|
+
"kind": "expression"
|
|
5067
|
+
}
|
|
5059
5068
|
}
|
|
5060
5069
|
]
|
|
5061
5070
|
},
|