@nutui/nutui 3.1.23-beta.1 → 3.1.23-beta.2

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.
Files changed (148) hide show
  1. package/dist/nutui.es.js +792 -561
  2. package/dist/nutui.umd.js +803 -571
  3. package/dist/packages/_es/ActionSheet.js +1 -1
  4. package/dist/packages/_es/Address.js +1 -1
  5. package/dist/packages/_es/AddressList.js +1 -1
  6. package/dist/packages/_es/Animate.js +1 -1
  7. package/dist/packages/_es/Audio.js +1 -1
  8. package/dist/packages/_es/AudioOperate.js +1 -1
  9. package/dist/packages/_es/Avatar.js +1 -1
  10. package/dist/packages/_es/AvatarGroup.js +1 -1
  11. package/dist/packages/_es/BackTop.js +1 -1
  12. package/dist/packages/_es/Badge.js +1 -1
  13. package/dist/packages/_es/Barrage.js +1 -1
  14. package/dist/packages/_es/Button.js +1 -1
  15. package/dist/packages/_es/Calendar.js +1 -1
  16. package/dist/packages/_es/CalendarItem.js +1 -1
  17. package/dist/packages/_es/Card.js +1 -1
  18. package/dist/packages/_es/Cascader.js +1 -1
  19. package/dist/packages/_es/Category.js +1 -1
  20. package/dist/packages/_es/CategoryPane.js +24 -22
  21. package/dist/packages/_es/Cell.js +1 -1
  22. package/dist/packages/_es/CellGroup.js +1 -1
  23. package/dist/packages/_es/Checkbox.js +11 -2
  24. package/dist/packages/_es/CheckboxGroup.js +1 -1
  25. package/dist/packages/_es/CircleProgress.js +1 -1
  26. package/dist/packages/_es/Col.js +1 -1
  27. package/dist/packages/_es/Collapse.js +1 -1
  28. package/dist/packages/_es/CollapseItem.js +1 -1
  29. package/dist/packages/_es/Comment.js +1 -1
  30. package/dist/packages/_es/ConfigProvider.js +1 -1
  31. package/dist/packages/_es/CountDown.js +1 -1
  32. package/dist/packages/_es/CountUp.js +1 -1
  33. package/dist/packages/_es/DatePicker.js +2 -1
  34. package/dist/packages/_es/Dialog.js +1 -1
  35. package/dist/packages/_es/Divider.js +1 -1
  36. package/dist/packages/_es/Drag.js +1 -1
  37. package/dist/packages/_es/Ecard.js +1 -1
  38. package/dist/packages/_es/Elevator.js +1 -1
  39. package/dist/packages/_es/Ellipsis.js +1 -1
  40. package/dist/packages/_es/Empty.js +1 -1
  41. package/dist/packages/_es/FixedNav.js +1 -1
  42. package/dist/packages/_es/Form.js +1 -1
  43. package/dist/packages/_es/FormItem.js +1 -1
  44. package/dist/packages/_es/Grid.js +1 -1
  45. package/dist/packages/_es/GridItem.js +1 -1
  46. package/dist/packages/_es/Icon.js +1 -1
  47. package/dist/packages/_es/Image.js +1 -1
  48. package/dist/packages/_es/ImagePreview.js +1 -1
  49. package/dist/packages/_es/Indicator.js +1 -1
  50. package/dist/packages/_es/InfiniteLoading.js +1 -1
  51. package/dist/packages/_es/Input.js +1 -1
  52. package/dist/packages/_es/InputNumber.js +1 -1
  53. package/dist/packages/_es/Layout.js +1 -1
  54. package/dist/packages/_es/List.js +1 -1
  55. package/dist/packages/_es/Menu.js +1 -1
  56. package/dist/packages/_es/MenuItem.js +1 -1
  57. package/dist/packages/_es/Navbar.js +1 -1
  58. package/dist/packages/_es/NoticeBar.js +1 -1
  59. package/dist/packages/_es/Notify.js +1 -1
  60. package/dist/packages/_es/NumberKeyboard.js +1 -1
  61. package/dist/packages/_es/OldPicker.js +1 -1
  62. package/dist/packages/_es/OverLay.js +1 -1
  63. package/dist/packages/_es/Pagination.js +1 -1
  64. package/dist/packages/_es/Picker.js +84 -56
  65. package/dist/packages/_es/Popover.js +1 -1
  66. package/dist/packages/_es/Popup.js +14 -18
  67. package/dist/packages/_es/Price.js +1 -1
  68. package/dist/packages/_es/Progress.js +1 -1
  69. package/dist/packages/_es/PullRefresh.js +1 -1
  70. package/dist/packages/_es/Radio.js +1 -1
  71. package/dist/packages/_es/RadioGroup.js +1 -1
  72. package/dist/packages/_es/Range.js +1 -1
  73. package/dist/packages/_es/Rate.js +1 -1
  74. package/dist/packages/_es/Row.js +1 -1
  75. package/dist/packages/_es/SearchBar.js +1 -1
  76. package/dist/packages/_es/ShortPassword.js +1 -1
  77. package/dist/packages/_es/SideNavBar.js +1 -1
  78. package/dist/packages/_es/SideNavBarItem.js +1 -1
  79. package/dist/packages/_es/Signature.js +1 -1
  80. package/dist/packages/_es/Skeleton.js +1 -1
  81. package/dist/packages/_es/Sku.js +1 -1
  82. package/dist/packages/_es/Step.js +1 -1
  83. package/dist/packages/_es/Steps.js +1 -1
  84. package/dist/packages/_es/Sticky.js +1 -1
  85. package/dist/packages/_es/SubSideNavBar.js +1 -1
  86. package/dist/packages/_es/Swipe.js +1 -1
  87. package/dist/packages/_es/Swiper.js +13 -2
  88. package/dist/packages/_es/SwiperItem.js +1 -1
  89. package/dist/packages/_es/Switch.js +11 -3
  90. package/dist/packages/_es/TabPane.js +1 -1
  91. package/dist/packages/_es/Tabbar.js +1 -1
  92. package/dist/packages/_es/TabbarItem.js +1 -1
  93. package/dist/packages/_es/Table.js +1 -1
  94. package/dist/packages/_es/Tabs.js +1 -1
  95. package/dist/packages/_es/Tag.js +1 -1
  96. package/dist/packages/_es/TextArea.js +1 -1
  97. package/dist/packages/_es/TimeDetail.js +1 -1
  98. package/dist/packages/_es/TimePannel.js +1 -1
  99. package/dist/packages/_es/TimeSelect.js +1 -1
  100. package/dist/packages/_es/Toast.js +1 -1
  101. package/dist/packages/_es/Uploader.js +1 -1
  102. package/dist/packages/_es/Video.js +1 -1
  103. package/dist/packages/_es/WaterMark.js +187 -0
  104. package/dist/packages/_es/common.js +1 -1
  105. package/dist/packages/_es/component.js +1 -1
  106. package/dist/packages/_es/index.js +1 -1
  107. package/dist/packages/_es/index2.js +1 -1
  108. package/dist/packages/_es/index3.js +1 -1
  109. package/dist/packages/_es/index4.js +1 -1
  110. package/dist/packages/_es/index5.js +2 -1
  111. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  112. package/dist/packages/_es/pxCheck.js +1 -1
  113. package/dist/packages/_es/raf.js +1 -1
  114. package/dist/packages/imagepreview/index.scss +0 -1
  115. package/dist/packages/locale/lang/baseLang.js +1 -1
  116. package/dist/packages/locale/lang/en-US.js +1 -1
  117. package/dist/packages/locale/lang/id-ID.js +1 -1
  118. package/dist/packages/locale/lang/index.js +1 -1
  119. package/dist/packages/locale/lang/zh-CN.js +1 -1
  120. package/dist/packages/locale/lang/zh-TW.js +1 -1
  121. package/dist/packages/picker/index.scss +1 -0
  122. package/dist/packages/watermark/index.scss +13 -0
  123. package/dist/smartips/attributes.json +60 -0
  124. package/dist/smartips/tags.json +20 -1
  125. package/dist/smartips/web-types.json +143 -1
  126. package/dist/style.css +1 -1
  127. package/dist/style.es.js +1 -1
  128. package/dist/styles/themes/default.scss +49 -48
  129. package/dist/styles/themes/jdb.scss +49 -48
  130. package/dist/styles/themes/jdt.scss +49 -48
  131. package/dist/styles/variables-jdb.scss +2 -0
  132. package/dist/styles/variables-jdt.scss +2 -0
  133. package/dist/styles/variables.scss +3 -0
  134. package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
  135. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  136. package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
  137. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  138. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
  139. package/dist/types/__VUE/picker/Column.vue.d.ts +1 -0
  140. package/dist/types/__VUE/picker/index.vue.d.ts +1 -0
  141. package/dist/types/__VUE/popup/index.vue.d.ts +2 -2
  142. package/dist/types/__VUE/range/index.vue.d.ts +1 -1
  143. package/dist/types/__VUE/swiper/index.vue.d.ts +7 -0
  144. package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
  145. package/dist/types/__VUE/watermark/index.vue.d.ts +143 -0
  146. package/dist/types/index.d.ts +1 -1
  147. package/dist/types/nutui.d.ts +2 -1
  148. package/package.json +8 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -0,0 +1,187 @@
1
+ /*!
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } from "vue";
7
+ import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
+ import "../locale/lang";
10
+ const { componentName, create } = createComponent("watermark");
11
+ const _sfc_main = create({
12
+ props: {
13
+ name: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ gapY: {
18
+ type: Number,
19
+ default: 48
20
+ },
21
+ gapX: {
22
+ type: Number,
23
+ default: 24
24
+ },
25
+ zIndex: {
26
+ type: Number,
27
+ default: 2e3
28
+ },
29
+ width: {
30
+ type: Number,
31
+ default: 120
32
+ },
33
+ height: {
34
+ type: Number,
35
+ default: 64
36
+ },
37
+ rotate: {
38
+ type: Number,
39
+ default: -22
40
+ },
41
+ image: {
42
+ type: String,
43
+ default: ""
44
+ },
45
+ imageWidth: {
46
+ type: Number,
47
+ default: 120
48
+ },
49
+ imageHeight: {
50
+ type: Number,
51
+ default: 64
52
+ },
53
+ content: {
54
+ type: String,
55
+ default: ""
56
+ },
57
+ fontColor: {
58
+ type: String,
59
+ default: "rgba(0,0,0,.15)"
60
+ },
61
+ fontStyle: {
62
+ type: String,
63
+ default: "normal"
64
+ },
65
+ fontFamily: {
66
+ type: String,
67
+ default: "PingFang SC"
68
+ },
69
+ fontWeight: {
70
+ type: String,
71
+ default: "normal"
72
+ },
73
+ fontSize: {
74
+ type: [String, Number],
75
+ default: 14
76
+ },
77
+ fullPage: {
78
+ type: Boolean,
79
+ default: ""
80
+ }
81
+ },
82
+ emits: ["click"],
83
+ setup(props, { emit }) {
84
+ const state = reactive({
85
+ base64Url: ""
86
+ });
87
+ const {
88
+ zIndex,
89
+ gapX,
90
+ gapY,
91
+ width,
92
+ height,
93
+ rotate,
94
+ image,
95
+ imageWidth,
96
+ imageHeight,
97
+ content,
98
+ fontStyle,
99
+ fontWeight,
100
+ fontColor,
101
+ fontSize,
102
+ fontFamily
103
+ } = props;
104
+ const init = () => {
105
+ const canvas = document.createElement("canvas");
106
+ const ratio = window.devicePixelRatio;
107
+ console.log(ratio);
108
+ const ctx = canvas.getContext("2d");
109
+ const canvasWidth = `${(gapX + width) * ratio}px`;
110
+ const canvasHeight = `${(gapY + height) * ratio}px`;
111
+ const markWidth = width * ratio;
112
+ const markHeight = height * ratio;
113
+ canvas.setAttribute("width", canvasWidth);
114
+ canvas.setAttribute("height", canvasHeight);
115
+ if (ctx) {
116
+ if (image) {
117
+ ctx.translate(markWidth / 2, markHeight / 2);
118
+ ctx.rotate(Math.PI / 180 * Number(rotate));
119
+ const img = new Image();
120
+ img.crossOrigin = "anonymous";
121
+ img.referrerPolicy = "no-referrer";
122
+ img.src = image;
123
+ img.onload = () => {
124
+ ctx.drawImage(img, -imageWidth * ratio / 2, -imageHeight * ratio / 2, imageWidth * ratio, imageHeight * ratio);
125
+ ctx.restore();
126
+ state.base64Url = canvas.toDataURL();
127
+ console.log(state.base64Url);
128
+ };
129
+ } else if (content) {
130
+ ctx.textBaseline = "middle";
131
+ ctx.textAlign = "center";
132
+ ctx.translate(markWidth / 2, markHeight / 2);
133
+ ctx.rotate(Math.PI / 180 * Number(rotate));
134
+ const markSize = Number(fontSize) * ratio;
135
+ ctx.font = `${fontStyle} normal ${fontWeight} ${markSize}px/${markHeight}px ${fontFamily}`;
136
+ ctx.fillStyle = fontColor;
137
+ ctx.fillText(content, 0, 0);
138
+ ctx.restore();
139
+ state.base64Url = canvas.toDataURL();
140
+ console.log(state.base64Url);
141
+ }
142
+ } else {
143
+ throw new Error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");
144
+ }
145
+ };
146
+ init();
147
+ watch(() => [
148
+ zIndex,
149
+ gapX,
150
+ gapY,
151
+ width,
152
+ height,
153
+ rotate,
154
+ image,
155
+ imageWidth,
156
+ imageHeight,
157
+ content,
158
+ fontStyle,
159
+ fontWeight,
160
+ fontColor,
161
+ fontSize,
162
+ fontFamily
163
+ ], () => {
164
+ init();
165
+ });
166
+ const classes = computed(() => {
167
+ const prefixCls = componentName;
168
+ return {
169
+ [prefixCls]: true,
170
+ [`${prefixCls}-full-page`]: props.fullPage
171
+ };
172
+ });
173
+ return { ...toRefs(state), classes };
174
+ }
175
+ });
176
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
177
+ return openBlock(), createElementBlock("view", {
178
+ class: normalizeClass(_ctx.classes),
179
+ style: normalizeStyle({
180
+ zIndex: _ctx.zIndex,
181
+ backgroundSize: `${_ctx.gapX + _ctx.width}px`,
182
+ backgroundImage: `url('${_ctx.base64Url}')`
183
+ })
184
+ }, null, 6);
185
+ }
186
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
187
+ export { index as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -302,6 +302,7 @@ const _sfc_main = create({
302
302
  state.chooseData = [...days];
303
303
  }
304
304
  if (!isFirst) {
305
+ console.log(state.chooseData);
305
306
  emit("select", state.chooseData);
306
307
  if (props.isAutoBackFill || !props.poppable) {
307
308
  confirm();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:52 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -59,7 +59,6 @@
59
59
  justify-content: center;
60
60
  height: 100%;
61
61
 
62
-
63
62
  .nut-imagepreview-box {
64
63
  width: 100%;
65
64
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:07:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:07:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:07:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:07:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:07:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:07:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -69,6 +69,7 @@
69
69
  height: 252px;
70
70
  overflow: hidden;
71
71
  text-align: center;
72
+ -webkit-overflow-scrolling: touch;
72
73
  }
73
74
 
74
75
  &-roller {
@@ -0,0 +1,13 @@
1
+ .nut-watermark {
2
+ position: absolute;
3
+ z-index: $nut-water-mark-z-index;
4
+ left: 0;
5
+ right: 0;
6
+ top: 0;
7
+ bottom: 0;
8
+ pointer-events: none;
9
+ background-repeat: repeat;
10
+ &-full-page {
11
+ position: fixed;
12
+ }
13
+ }
@@ -2407,6 +2407,10 @@
2407
2407
  "type": "boolean",
2408
2408
  "description": "属性说明:滑动过程中是否禁止冒泡,默认值:true"
2409
2409
  },
2410
+ "nut-swiper/is-center": {
2411
+ "type": "boolean",
2412
+ "description": "属性说明:是否居中展示,必须传对应的`width` 和 `height`,默认值:false"
2413
+ },
2410
2414
  "nut-switch/v-model": {
2411
2415
  "type": "boolean | string | number",
2412
2416
  "description": "属性说明:开关状态,默认值:`false`"
@@ -2822,5 +2826,61 @@
2822
2826
  "nut-video/options.playsinline": {
2823
2827
  "type": "boolean",
2824
2828
  "description": "属性说明:是否设置为行内播放元素(解决安卓兼容问题),默认值:false"
2829
+ },
2830
+ "nut-watermark/width": {
2831
+ "type": "`number`",
2832
+ "description": "属性说明:水印的宽度,默认值:`120`"
2833
+ },
2834
+ "nut-watermark/height": {
2835
+ "type": "`number`",
2836
+ "description": "属性说明:水印的高度,默认值:`64`"
2837
+ },
2838
+ "nut-watermark/rotate": {
2839
+ "type": "`number`",
2840
+ "description": "属性说明:水印绘制时,旋转的角度,默认值:`-22`"
2841
+ },
2842
+ "nut-watermark/image": {
2843
+ "type": "`string`",
2844
+ "description": "属性说明:图片源,建议导出 2 倍或 3 倍图,优先使用图片渲染水印,默认值:-"
2845
+ },
2846
+ "nut-watermark/imageWidth": {
2847
+ "type": "`number`",
2848
+ "description": "属性说明:图片宽度,默认值:`120`"
2849
+ },
2850
+ "nut-watermark/imageHeight": {
2851
+ "type": "`number`",
2852
+ "description": "属性说明:图片高度,默认值:`64`"
2853
+ },
2854
+ "nut-watermark/zIndex": {
2855
+ "type": "`number`",
2856
+ "description": "属性说明:追加的水印元素的 z-index,默认值:`2000`"
2857
+ },
2858
+ "nut-watermark/content": {
2859
+ "type": "`string`",
2860
+ "description": "属性说明:水印文字内容,默认值:-"
2861
+ },
2862
+ "nut-watermark/fontColor": {
2863
+ "type": "`string`",
2864
+ "description": "属性说明:水印文字颜色,默认值:`rgba(0, 0, 0, .15)`"
2865
+ },
2866
+ "nut-watermark/fontSize": {
2867
+ "type": "`string | number`",
2868
+ "description": "属性说明:文字大小,默认值:`16`"
2869
+ },
2870
+ "nut-watermark/gapX": {
2871
+ "type": "`number`",
2872
+ "description": "属性说明:水印之间的水平间距,默认值:`24`"
2873
+ },
2874
+ "nut-watermark/gapY": {
2875
+ "type": "`number`",
2876
+ "description": "属性说明:水印之间的垂直间距,默认值:`48`"
2877
+ },
2878
+ "nut-watermark/fullPage": {
2879
+ "type": "`boolean`",
2880
+ "description": "属性说明:是否覆盖整个页面,默认值:`true`"
2881
+ },
2882
+ "nut-watermark/fontFamily": {
2883
+ "type": "`boolean`",
2884
+ "description": "属性说明:水印文字字体,默认值:`true`"
2825
2885
  }
2826
2886
  }
@@ -878,7 +878,8 @@
878
878
  "init-page",
879
879
  "touchable",
880
880
  "is-preventDefault",
881
- "is-stopPropagation"
881
+ "is-stopPropagation",
882
+ "is-center"
882
883
  ]
883
884
  },
884
885
  "nut-swiperitem": {
@@ -1039,5 +1040,23 @@
1039
1040
  "options.disabled",
1040
1041
  "options.playsinline"
1041
1042
  ]
1043
+ },
1044
+ "nut-watermark": {
1045
+ "attributes": [
1046
+ "width",
1047
+ "height",
1048
+ "rotate",
1049
+ "image",
1050
+ "imageWidth",
1051
+ "imageHeight",
1052
+ "zIndex",
1053
+ "content",
1054
+ "fontColor",
1055
+ "fontSize",
1056
+ "gapX",
1057
+ "gapY",
1058
+ "fullPage",
1059
+ "fontFamily"
1060
+ ]
1042
1061
  }
1043
1062
  }
@@ -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": "3.1.23-beta.1",
5
+ "version": "3.1.23-beta.2",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -5919,6 +5919,15 @@
5919
5919
  "type": "boolean",
5920
5920
  "kind": "expression"
5921
5921
  }
5922
+ },
5923
+ {
5924
+ "name": "is-center",
5925
+ "default": "false",
5926
+ "description": "是否居中展示,必须传对应的`width` 和 `height`",
5927
+ "value": {
5928
+ "type": "boolean",
5929
+ "kind": "expression"
5930
+ }
5922
5931
  }
5923
5932
  ]
5924
5933
  },
@@ -6954,6 +6963,139 @@
6954
6963
  }
6955
6964
  }
6956
6965
  ]
6966
+ },
6967
+ {
6968
+ "name": "nut-watermark",
6969
+ "slots": [],
6970
+ "events": [],
6971
+ "attributes": [
6972
+ {
6973
+ "name": "width",
6974
+ "default": "`120`",
6975
+ "description": "水印的宽度",
6976
+ "value": {
6977
+ "type": "`number`",
6978
+ "kind": "expression"
6979
+ }
6980
+ },
6981
+ {
6982
+ "name": "height",
6983
+ "default": "`64`",
6984
+ "description": "水印的高度",
6985
+ "value": {
6986
+ "type": "`number`",
6987
+ "kind": "expression"
6988
+ }
6989
+ },
6990
+ {
6991
+ "name": "rotate",
6992
+ "default": "`-22`",
6993
+ "description": "水印绘制时,旋转的角度",
6994
+ "value": {
6995
+ "type": "`number`",
6996
+ "kind": "expression"
6997
+ }
6998
+ },
6999
+ {
7000
+ "name": "image",
7001
+ "default": "-",
7002
+ "description": "图片源,建议导出 2 倍或 3 倍图,优先使用图片渲染水印",
7003
+ "value": {
7004
+ "type": "`string`",
7005
+ "kind": "expression"
7006
+ }
7007
+ },
7008
+ {
7009
+ "name": "imageWidth",
7010
+ "default": "`120`",
7011
+ "description": "图片宽度",
7012
+ "value": {
7013
+ "type": "`number`",
7014
+ "kind": "expression"
7015
+ }
7016
+ },
7017
+ {
7018
+ "name": "imageHeight",
7019
+ "default": "`64`",
7020
+ "description": "图片高度",
7021
+ "value": {
7022
+ "type": "`number`",
7023
+ "kind": "expression"
7024
+ }
7025
+ },
7026
+ {
7027
+ "name": "zIndex",
7028
+ "default": "`2000`",
7029
+ "description": "追加的水印元素的 z-index",
7030
+ "value": {
7031
+ "type": "`number`",
7032
+ "kind": "expression"
7033
+ }
7034
+ },
7035
+ {
7036
+ "name": "content",
7037
+ "default": "-",
7038
+ "description": "水印文字内容",
7039
+ "value": {
7040
+ "type": "`string`",
7041
+ "kind": "expression"
7042
+ }
7043
+ },
7044
+ {
7045
+ "name": "fontColor",
7046
+ "default": "`rgba(0, 0, 0, .15)`",
7047
+ "description": "水印文字颜色",
7048
+ "value": {
7049
+ "type": "`string`",
7050
+ "kind": "expression"
7051
+ }
7052
+ },
7053
+ {
7054
+ "name": "fontSize",
7055
+ "default": "`16`",
7056
+ "description": "文字大小",
7057
+ "value": {
7058
+ "type": "`string | number`",
7059
+ "kind": "expression"
7060
+ }
7061
+ },
7062
+ {
7063
+ "name": "gapX",
7064
+ "default": "`24`",
7065
+ "description": "水印之间的水平间距",
7066
+ "value": {
7067
+ "type": "`number`",
7068
+ "kind": "expression"
7069
+ }
7070
+ },
7071
+ {
7072
+ "name": "gapY",
7073
+ "default": "`48`",
7074
+ "description": "水印之间的垂直间距",
7075
+ "value": {
7076
+ "type": "`number`",
7077
+ "kind": "expression"
7078
+ }
7079
+ },
7080
+ {
7081
+ "name": "fullPage",
7082
+ "default": "`true`",
7083
+ "description": "是否覆盖整个页面",
7084
+ "value": {
7085
+ "type": "`boolean`",
7086
+ "kind": "expression"
7087
+ }
7088
+ },
7089
+ {
7090
+ "name": "fontFamily",
7091
+ "default": "`true`",
7092
+ "description": "水印文字字体",
7093
+ "value": {
7094
+ "type": "`boolean`",
7095
+ "kind": "expression"
7096
+ }
7097
+ }
7098
+ ]
6957
7099
  }
6958
7100
  ],
6959
7101
  "attributes": [],