|
@@ -27893,6 +27893,1360 @@ var isEqual = function isEqual(a, b) {
|
|
|
};
|
|
|
exports.isEqual = isEqual;
|
|
|
|
|
|
+/***/ }),
|
|
|
+/* 437 */,
|
|
|
+/* 438 */,
|
|
|
+/* 439 */,
|
|
|
+/* 440 */,
|
|
|
+/* 441 */,
|
|
|
+/* 442 */,
|
|
|
+/* 443 */,
|
|
|
+/* 444 */,
|
|
|
+/* 445 */,
|
|
|
+/* 446 */,
|
|
|
+/* 447 */,
|
|
|
+/* 448 */,
|
|
|
+/* 449 */,
|
|
|
+/* 450 */,
|
|
|
+/* 451 */,
|
|
|
+/* 452 */,
|
|
|
+/* 453 */,
|
|
|
+/* 454 */,
|
|
|
+/* 455 */,
|
|
|
+/* 456 */,
|
|
|
+/* 457 */,
|
|
|
+/* 458 */,
|
|
|
+/* 459 */,
|
|
|
+/* 460 */,
|
|
|
+/* 461 */,
|
|
|
+/* 462 */,
|
|
|
+/* 463 */,
|
|
|
+/* 464 */,
|
|
|
+/* 465 */,
|
|
|
+/* 466 */,
|
|
|
+/* 467 */,
|
|
|
+/* 468 */,
|
|
|
+/* 469 */
|
|
|
+/*!******************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-swiper/props.js ***!
|
|
|
+ \******************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
|
|
|
+ list: {
|
|
|
+ type: Array,
|
|
|
+ default: uni.$u.props.swiper.list
|
|
|
+ },
|
|
|
+ // 是否显示面板指示器
|
|
|
+ indicator: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.indicator
|
|
|
+ },
|
|
|
+ // 指示器非激活颜色
|
|
|
+ indicatorActiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.indicatorActiveColor
|
|
|
+ },
|
|
|
+ // 指示器的激活颜色
|
|
|
+ indicatorInactiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.indicatorInactiveColor
|
|
|
+ },
|
|
|
+ // 指示器样式,可通过bottom,left,right进行定位
|
|
|
+ indicatorStyle: {
|
|
|
+ type: [String, Object],
|
|
|
+ default: uni.$u.props.swiper.indicatorStyle
|
|
|
+ },
|
|
|
+ // 指示器模式,line-线型,dot-点型
|
|
|
+ indicatorMode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.indicatorMode
|
|
|
+ },
|
|
|
+ // 是否自动切换
|
|
|
+ autoplay: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.autoplay
|
|
|
+ },
|
|
|
+ // 当前所在滑块的 index
|
|
|
+ current: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.current
|
|
|
+ },
|
|
|
+ // 当前所在滑块的 item-id ,不能与 current 被同时指定
|
|
|
+ currentItemId: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.currentItemId
|
|
|
+ },
|
|
|
+ // 滑块自动切换时间间隔
|
|
|
+ interval: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.interval
|
|
|
+ },
|
|
|
+ // 滑块切换过程所需时间
|
|
|
+ duration: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.duration
|
|
|
+ },
|
|
|
+ // 播放到末尾后是否重新回到开头
|
|
|
+ circular: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.circular
|
|
|
+ },
|
|
|
+ // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
|
|
|
+ previousMargin: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.previousMargin
|
|
|
+ },
|
|
|
+ // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
|
|
|
+ nextMargin: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.nextMargin
|
|
|
+ },
|
|
|
+ // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
|
|
|
+ acceleration: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.acceleration
|
|
|
+ },
|
|
|
+ // 同时显示的滑块数量,nvue、支付宝小程序不支持
|
|
|
+ displayMultipleItems: {
|
|
|
+ type: Number,
|
|
|
+ default: uni.$u.props.swiper.displayMultipleItems
|
|
|
+ },
|
|
|
+ // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
|
|
|
+ // 只对微信小程序有效
|
|
|
+ easingFunction: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.easingFunction
|
|
|
+ },
|
|
|
+ // list数组中指定对象的目标属性名
|
|
|
+ keyName: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.keyName
|
|
|
+ },
|
|
|
+ // 图片的裁剪模式
|
|
|
+ imgMode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.imgMode
|
|
|
+ },
|
|
|
+ // 组件高度
|
|
|
+ height: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.height
|
|
|
+ },
|
|
|
+ // 背景颜色
|
|
|
+ bgColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.bgColor
|
|
|
+ },
|
|
|
+ // 组件圆角,数值或带单位的字符串
|
|
|
+ radius: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.radius
|
|
|
+ },
|
|
|
+ // 是否加载中
|
|
|
+ loading: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.loading
|
|
|
+ },
|
|
|
+ // 是否显示标题,要求数组对象中有title属性
|
|
|
+ showTitle: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.showTitle
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 470 */,
|
|
|
+/* 471 */,
|
|
|
+/* 472 */,
|
|
|
+/* 473 */,
|
|
|
+/* 474 */,
|
|
|
+/* 475 */,
|
|
|
+/* 476 */,
|
|
|
+/* 477 */
|
|
|
+/*!****************************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-swiper-indicator/props.js ***!
|
|
|
+ \****************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 轮播的长度
|
|
|
+ length: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiperIndicator.length
|
|
|
+ },
|
|
|
+ // 当前处于活动状态的轮播的索引
|
|
|
+ current: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiperIndicator.current
|
|
|
+ },
|
|
|
+ // 指示器非激活颜色
|
|
|
+ indicatorActiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiperIndicator.indicatorActiveColor
|
|
|
+ },
|
|
|
+ // 指示器的激活颜色
|
|
|
+ indicatorInactiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiperIndicator.indicatorInactiveColor
|
|
|
+ },
|
|
|
+ // 指示器模式,line-线型,dot-点型
|
|
|
+ indicatorMode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiperIndicator.indicatorMode
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 478 */,
|
|
|
+/* 479 */,
|
|
|
+/* 480 */,
|
|
|
+/* 481 */,
|
|
|
+/* 482 */,
|
|
|
+/* 483 */,
|
|
|
+/* 484 */,
|
|
|
+/* 485 */,
|
|
|
+/* 486 */,
|
|
|
+/* 487 */
|
|
|
+/*!****************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-list/props.js ***!
|
|
|
+ \****************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 控制是否出现滚动条,仅nvue有效
|
|
|
+ showScrollbar: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.list.showScrollbar
|
|
|
+ },
|
|
|
+ // 距底部多少时触发scrolltolower事件
|
|
|
+ lowerThreshold: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.list.lowerThreshold
|
|
|
+ },
|
|
|
+ // 距顶部多少时触发scrolltoupper事件,非nvue有效
|
|
|
+ upperThreshold: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.list.upperThreshold
|
|
|
+ },
|
|
|
+ // 设置竖向滚动条位置
|
|
|
+ scrollTop: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.list.scrollTop
|
|
|
+ },
|
|
|
+ // 控制 onscroll 事件触发的频率,仅nvue有效
|
|
|
+ offsetAccuracy: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.list.offsetAccuracy
|
|
|
+ },
|
|
|
+ // 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
|
|
|
+ enableFlex: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.list.enableFlex
|
|
|
+ },
|
|
|
+ // 是否按分页模式显示List,默认值false
|
|
|
+ pagingEnabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.list.pagingEnabled
|
|
|
+ },
|
|
|
+ // 是否允许List滚动
|
|
|
+ scrollable: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.list.scrollable
|
|
|
+ },
|
|
|
+ // 值应为某子元素id(id不能以数字开头)
|
|
|
+ scrollIntoView: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.list.scrollIntoView
|
|
|
+ },
|
|
|
+ // 在设置滚动条位置时使用动画过渡
|
|
|
+ scrollWithAnimation: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.list.scrollWithAnimation
|
|
|
+ },
|
|
|
+ // iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
|
|
|
+ enableBackToTop: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.list.enableBackToTop
|
|
|
+ },
|
|
|
+ // 列表的高度
|
|
|
+ height: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.list.height
|
|
|
+ },
|
|
|
+ // 列表宽度
|
|
|
+ width: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.list.width
|
|
|
+ },
|
|
|
+ // 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
|
|
|
+ preLoadScreen: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.list.preLoadScreen
|
|
|
+ }
|
|
|
+ // vue下,是否开启虚拟列表
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 488 */,
|
|
|
+/* 489 */,
|
|
|
+/* 490 */,
|
|
|
+/* 491 */,
|
|
|
+/* 492 */,
|
|
|
+/* 493 */,
|
|
|
+/* 494 */,
|
|
|
+/* 495 */
|
|
|
+/*!*********************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-list-item/props.js ***!
|
|
|
+ \*********************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 用于滚动到指定item
|
|
|
+ anchor: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.listItem.anchor
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 496 */,
|
|
|
+/* 497 */,
|
|
|
+/* 498 */,
|
|
|
+/* 499 */,
|
|
|
+/* 500 */,
|
|
|
+/* 501 */,
|
|
|
+/* 502 */,
|
|
|
+/* 503 */,
|
|
|
+/* 504 */,
|
|
|
+/* 505 */
|
|
|
+/*!******************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-switch/props.js ***!
|
|
|
+ \******************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 是否为加载中状态
|
|
|
+ loading: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.switch.loading
|
|
|
+ },
|
|
|
+ // 是否为禁用装填
|
|
|
+ disabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.switch.disabled
|
|
|
+ },
|
|
|
+ // 开关尺寸,单位px
|
|
|
+ size: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.switch.size
|
|
|
+ },
|
|
|
+ // 打开时的背景颜色
|
|
|
+ activeColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.switch.activeColor
|
|
|
+ },
|
|
|
+ // 关闭时的背景颜色
|
|
|
+ inactiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.switch.inactiveColor
|
|
|
+ },
|
|
|
+ // 通过v-model双向绑定的值
|
|
|
+ value: {
|
|
|
+ type: [Boolean, String, Number],
|
|
|
+ default: uni.$u.props.switch.value
|
|
|
+ },
|
|
|
+ // switch打开时的值
|
|
|
+ activeValue: {
|
|
|
+ type: [String, Number, Boolean],
|
|
|
+ default: uni.$u.props.switch.activeValue
|
|
|
+ },
|
|
|
+ // switch关闭时的值
|
|
|
+ inactiveValue: {
|
|
|
+ type: [String, Number, Boolean],
|
|
|
+ default: uni.$u.props.switch.inactiveValue
|
|
|
+ },
|
|
|
+ // 是否开启异步变更,开启后需要手动控制输入值
|
|
|
+ asyncChange: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.switch.asyncChange
|
|
|
+ },
|
|
|
+ // 圆点与外边框的距离
|
|
|
+ space: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.switch.space
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 506 */,
|
|
|
+/* 507 */,
|
|
|
+/* 508 */,
|
|
|
+/* 509 */,
|
|
|
+/* 510 */,
|
|
|
+/* 511 */,
|
|
|
+/* 512 */,
|
|
|
+/* 513 */,
|
|
|
+/* 514 */
|
|
|
+/*!*****************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-modal/props.js ***!
|
|
|
+ \*****************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 是否展示modal
|
|
|
+ show: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.modal.show
|
|
|
+ },
|
|
|
+ // 标题
|
|
|
+ title: {
|
|
|
+ type: [String],
|
|
|
+ default: uni.$u.props.modal.title
|
|
|
+ },
|
|
|
+ // 弹窗内容
|
|
|
+ content: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.modal.content
|
|
|
+ },
|
|
|
+ // 确认文案
|
|
|
+ confirmText: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.modal.confirmText
|
|
|
+ },
|
|
|
+ // 取消文案
|
|
|
+ cancelText: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.modal.cancelText
|
|
|
+ },
|
|
|
+ // 是否显示确认按钮
|
|
|
+ showConfirmButton: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.modal.showConfirmButton
|
|
|
+ },
|
|
|
+ // 是否显示取消按钮
|
|
|
+ showCancelButton: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.modal.showCancelButton
|
|
|
+ },
|
|
|
+ // 确认按钮颜色
|
|
|
+ confirmColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.modal.confirmColor
|
|
|
+ },
|
|
|
+ // 取消文字颜色
|
|
|
+ cancelColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.modal.cancelColor
|
|
|
+ },
|
|
|
+ // 对调确认和取消的位置
|
|
|
+ buttonReverse: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.modal.buttonReverse
|
|
|
+ },
|
|
|
+ // 是否开启缩放效果
|
|
|
+ zoom: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.modal.zoom
|
|
|
+ },
|
|
|
+ // 是否异步关闭,只对确定按钮有效
|
|
|
+ asyncClose: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.modal.asyncClose
|
|
|
+ },
|
|
|
+ // 是否允许点击遮罩关闭modal
|
|
|
+ closeOnClickOverlay: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.modal.closeOnClickOverlay
|
|
|
+ },
|
|
|
+ // 给一个负的margin-top,往上偏移,避免和键盘重合的情况
|
|
|
+ negativeTop: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.modal.negativeTop
|
|
|
+ },
|
|
|
+ // modal宽度,不支持百分比,可以数值,px,rpx单位
|
|
|
+ width: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.modal.width
|
|
|
+ },
|
|
|
+ // 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
|
|
|
+ confirmButtonShape: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.modal.confirmButtonShape
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 515 */,
|
|
|
+/* 516 */,
|
|
|
+/* 517 */,
|
|
|
+/* 518 */,
|
|
|
+/* 519 */,
|
|
|
+/* 520 */,
|
|
|
+/* 521 */,
|
|
|
+/* 522 */
|
|
|
+/*!*****************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-input/props.js ***!
|
|
|
+ \*****************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 输入的值
|
|
|
+ value: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.value
|
|
|
+ },
|
|
|
+ // 输入框类型
|
|
|
+ // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
|
|
|
+ // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
|
|
|
+ // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
|
|
|
+ // text-文本输入键盘
|
|
|
+ type: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.type
|
|
|
+ },
|
|
|
+ // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
|
|
|
+ // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
|
|
|
+ fixed: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.fixed
|
|
|
+ },
|
|
|
+ // 是否禁用输入框
|
|
|
+ disabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.disabled
|
|
|
+ },
|
|
|
+ // 禁用状态时的背景色
|
|
|
+ disabledColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.disabledColor
|
|
|
+ },
|
|
|
+ // 是否显示清除控件
|
|
|
+ clearable: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.clearable
|
|
|
+ },
|
|
|
+ // 是否密码类型
|
|
|
+ password: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.password
|
|
|
+ },
|
|
|
+ // 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
|
+ maxlength: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.maxlength
|
|
|
+ },
|
|
|
+ // 输入框为空时的占位符
|
|
|
+ placeholder: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.placeholder
|
|
|
+ },
|
|
|
+ // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
|
|
|
+ placeholderClass: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.placeholderClass
|
|
|
+ },
|
|
|
+ // 指定placeholder的样式
|
|
|
+ placeholderStyle: {
|
|
|
+ type: [String, Object],
|
|
|
+ default: uni.$u.props.input.placeholderStyle
|
|
|
+ },
|
|
|
+ // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
|
|
|
+ showWordLimit: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.showWordLimit
|
|
|
+ },
|
|
|
+ // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
|
|
|
+ // https://uniapp.dcloud.io/component/input
|
|
|
+ // https://uniapp.dcloud.io/component/textarea
|
|
|
+ confirmType: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.confirmType
|
|
|
+ },
|
|
|
+ // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
|
|
|
+ confirmHold: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.confirmHold
|
|
|
+ },
|
|
|
+ // focus时,点击页面的时候不收起键盘,微信小程序有效
|
|
|
+ holdKeyboard: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.holdKeyboard
|
|
|
+ },
|
|
|
+ // 自动获取焦点
|
|
|
+ // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
|
|
|
+ focus: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.focus
|
|
|
+ },
|
|
|
+ // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
|
|
|
+ autoBlur: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.autoBlur
|
|
|
+ },
|
|
|
+ // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
|
|
|
+ disableDefaultPadding: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.disableDefaultPadding
|
|
|
+ },
|
|
|
+ // 指定focus时光标的位置
|
|
|
+ cursor: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.cursor
|
|
|
+ },
|
|
|
+ // 输入框聚焦时底部与键盘的距离
|
|
|
+ cursorSpacing: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.cursorSpacing
|
|
|
+ },
|
|
|
+ // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
|
|
|
+ selectionStart: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.selectionStart
|
|
|
+ },
|
|
|
+ // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
|
|
|
+ selectionEnd: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.selectionEnd
|
|
|
+ },
|
|
|
+ // 键盘弹起时,是否自动上推页面
|
|
|
+ adjustPosition: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.adjustPosition
|
|
|
+ },
|
|
|
+ // 输入框内容对齐方式,可选值为:left|center|right
|
|
|
+ inputAlign: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.inputAlign
|
|
|
+ },
|
|
|
+ // 输入框字体的大小
|
|
|
+ fontSize: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.fontSize
|
|
|
+ },
|
|
|
+ // 输入框字体颜色
|
|
|
+ color: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.color
|
|
|
+ },
|
|
|
+ // 输入框前置图标
|
|
|
+ prefixIcon: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.prefixIcon
|
|
|
+ },
|
|
|
+ // 前置图标样式,对象或字符串
|
|
|
+ prefixIconStyle: {
|
|
|
+ type: [String, Object],
|
|
|
+ default: uni.$u.props.input.prefixIconStyle
|
|
|
+ },
|
|
|
+ // 输入框后置图标
|
|
|
+ suffixIcon: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.suffixIcon
|
|
|
+ },
|
|
|
+ // 后置图标样式,对象或字符串
|
|
|
+ suffixIconStyle: {
|
|
|
+ type: [String, Object],
|
|
|
+ default: uni.$u.props.input.suffixIconStyle
|
|
|
+ },
|
|
|
+ // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
|
|
|
+ border: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.border
|
|
|
+ },
|
|
|
+ // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
|
|
|
+ readonly: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.readonly
|
|
|
+ },
|
|
|
+ // 输入框形状,circle-圆形,square-方形
|
|
|
+ shape: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.shape
|
|
|
+ },
|
|
|
+ // 用于处理或者过滤输入框内容的方法
|
|
|
+ formatter: {
|
|
|
+ type: [Function, null],
|
|
|
+ default: uni.$u.props.input.formatter
|
|
|
+ },
|
|
|
+ // 是否忽略组件内对文本合成系统事件的处理
|
|
|
+ ignoreCompositionEvent: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 523 */,
|
|
|
+/* 524 */,
|
|
|
+/* 525 */,
|
|
|
+/* 526 */,
|
|
|
+/* 527 */,
|
|
|
+/* 528 */
|
|
|
+/*!****************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-line/props.js ***!
|
|
|
+ \****************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ color: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.line.color
|
|
|
+ },
|
|
|
+ // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
|
|
|
+ length: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.line.length
|
|
|
+ },
|
|
|
+ // 线条方向,col-竖向,row-横向
|
|
|
+ direction: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.line.direction
|
|
|
+ },
|
|
|
+ // 是否显示细边框
|
|
|
+ hairline: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.line.hairline
|
|
|
+ },
|
|
|
+ // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
|
|
|
+ margin: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.line.margin
|
|
|
+ },
|
|
|
+ // 是否虚线,true-虚线,false-实线
|
|
|
+ dashed: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.line.dashed
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 529 */,
|
|
|
+/* 530 */,
|
|
|
+/* 531 */,
|
|
|
+/* 532 */,
|
|
|
+/* 533 */,
|
|
|
+/* 534 */,
|
|
|
+/* 535 */,
|
|
|
+/* 536 */,
|
|
|
+/* 537 */,
|
|
|
+/* 538 */,
|
|
|
+/* 539 */,
|
|
|
+/* 540 */,
|
|
|
+/* 541 */,
|
|
|
+/* 542 */,
|
|
|
+/* 543 */
|
|
|
+/*!**************************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-checkbox-group/props.js ***!
|
|
|
+ \**************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 标识符
|
|
|
+ name: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkboxGroup.name
|
|
|
+ },
|
|
|
+ // 绑定的值
|
|
|
+ value: {
|
|
|
+ type: Array,
|
|
|
+ default: uni.$u.props.checkboxGroup.value
|
|
|
+ },
|
|
|
+ // 形状,circle-圆形,square-方形
|
|
|
+ shape: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkboxGroup.shape
|
|
|
+ },
|
|
|
+ // 是否禁用全部checkbox
|
|
|
+ disabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.checkboxGroup.disabled
|
|
|
+ },
|
|
|
+ // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
|
|
|
+ activeColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkboxGroup.activeColor
|
|
|
+ },
|
|
|
+ // 未选中的颜色
|
|
|
+ inactiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkboxGroup.inactiveColor
|
|
|
+ },
|
|
|
+ // 整个组件的尺寸,默认px
|
|
|
+ size: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.checkboxGroup.size
|
|
|
+ },
|
|
|
+ // 布局方式,row-横向,column-纵向
|
|
|
+ placement: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkboxGroup.placement
|
|
|
+ },
|
|
|
+ // label的字体大小,px单位
|
|
|
+ labelSize: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.checkboxGroup.labelSize
|
|
|
+ },
|
|
|
+ // label的字体颜色
|
|
|
+ labelColor: {
|
|
|
+ type: [String],
|
|
|
+ default: uni.$u.props.checkboxGroup.labelColor
|
|
|
+ },
|
|
|
+ // 是否禁止点击文本操作
|
|
|
+ labelDisabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.checkboxGroup.labelDisabled
|
|
|
+ },
|
|
|
+ // 图标颜色
|
|
|
+ iconColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkboxGroup.iconColor
|
|
|
+ },
|
|
|
+ // 图标的大小,单位px
|
|
|
+ iconSize: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.checkboxGroup.iconSize
|
|
|
+ },
|
|
|
+ // 勾选图标的对齐方式,left-左边,right-右边
|
|
|
+ iconPlacement: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkboxGroup.iconPlacement
|
|
|
+ },
|
|
|
+ // 竖向配列时,是否显示下划线
|
|
|
+ borderBottom: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.checkboxGroup.borderBottom
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 544 */,
|
|
|
+/* 545 */,
|
|
|
+/* 546 */,
|
|
|
+/* 547 */,
|
|
|
+/* 548 */,
|
|
|
+/* 549 */,
|
|
|
+/* 550 */,
|
|
|
+/* 551 */
|
|
|
+/*!********************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-checkbox/props.js ***!
|
|
|
+ \********************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // checkbox的名称
|
|
|
+ name: {
|
|
|
+ type: [String, Number, Boolean],
|
|
|
+ default: uni.$u.props.checkbox.name
|
|
|
+ },
|
|
|
+ // 形状,square为方形,circle为圆型
|
|
|
+ shape: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkbox.shape
|
|
|
+ },
|
|
|
+ // 整体的大小
|
|
|
+ size: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.checkbox.size
|
|
|
+ },
|
|
|
+ // 是否默认选中
|
|
|
+ checked: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.checkbox.checked
|
|
|
+ },
|
|
|
+ // 是否禁用
|
|
|
+ disabled: {
|
|
|
+ type: [String, Boolean],
|
|
|
+ default: uni.$u.props.checkbox.disabled
|
|
|
+ },
|
|
|
+ // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
|
|
|
+ activeColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkbox.activeColor
|
|
|
+ },
|
|
|
+ // 未选中的颜色
|
|
|
+ inactiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkbox.inactiveColor
|
|
|
+ },
|
|
|
+ // 图标的大小,单位px
|
|
|
+ iconSize: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.checkbox.iconSize
|
|
|
+ },
|
|
|
+ // 图标颜色
|
|
|
+ iconColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkbox.iconColor
|
|
|
+ },
|
|
|
+ // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
|
|
|
+ label: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.checkbox.label
|
|
|
+ },
|
|
|
+ // label的字体大小,px单位
|
|
|
+ labelSize: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.checkbox.labelSize
|
|
|
+ },
|
|
|
+ // label的颜色
|
|
|
+ labelColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.checkbox.labelColor
|
|
|
+ },
|
|
|
+ // 是否禁止点击提示语选中复选框
|
|
|
+ labelDisabled: {
|
|
|
+ type: [String, Boolean],
|
|
|
+ default: uni.$u.props.checkbox.labelDisabled
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 552 */,
|
|
|
+/* 553 */,
|
|
|
+/* 554 */,
|
|
|
+/* 555 */,
|
|
|
+/* 556 */,
|
|
|
+/* 557 */,
|
|
|
+/* 558 */,
|
|
|
+/* 559 */,
|
|
|
+/* 560 */,
|
|
|
+/* 561 */,
|
|
|
+/* 562 */,
|
|
|
+/* 563 */,
|
|
|
+/* 564 */
|
|
|
+/*!******************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-upload/utils.js ***!
|
|
|
+ \******************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni, wx) {
|
|
|
+
|
|
|
+var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.chooseFile = chooseFile;
|
|
|
+var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
|
|
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
|
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
|
+function pickExclude(obj, keys) {
|
|
|
+ // 某些情况下,type可能会为
|
|
|
+ if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
|
|
|
+ return {};
|
|
|
+ }
|
|
|
+ return Object.keys(obj).reduce(function (prev, key) {
|
|
|
+ if (!keys.includes(key)) {
|
|
|
+ prev[key] = obj[key];
|
|
|
+ }
|
|
|
+ return prev;
|
|
|
+ }, {});
|
|
|
+}
|
|
|
+function formatImage(res) {
|
|
|
+ return res.tempFiles.map(function (item) {
|
|
|
+ return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
|
|
|
+ type: 'image',
|
|
|
+ url: item.path,
|
|
|
+ thumb: item.path,
|
|
|
+ size: item.size
|
|
|
+ });
|
|
|
+ });
|
|
|
+}
|
|
|
+function formatVideo(res) {
|
|
|
+ return [_objectSpread(_objectSpread({}, pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
|
|
|
+ type: 'video',
|
|
|
+ url: res.tempFilePath,
|
|
|
+ thumb: res.thumbTempFilePath,
|
|
|
+ size: res.size
|
|
|
+ })];
|
|
|
+}
|
|
|
+function formatMedia(res) {
|
|
|
+ return res.tempFiles.map(function (item) {
|
|
|
+ return _objectSpread(_objectSpread({}, pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
|
|
|
+ type: res.type,
|
|
|
+ url: item.tempFilePath,
|
|
|
+ thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
|
|
|
+ size: item.size
|
|
|
+ });
|
|
|
+ });
|
|
|
+}
|
|
|
+function formatFile(res) {
|
|
|
+ return res.tempFiles.map(function (item) {
|
|
|
+ return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
|
|
|
+ url: item.path,
|
|
|
+ size: item.size
|
|
|
+ });
|
|
|
+ });
|
|
|
+}
|
|
|
+function chooseFile(_ref) {
|
|
|
+ var accept = _ref.accept,
|
|
|
+ multiple = _ref.multiple,
|
|
|
+ capture = _ref.capture,
|
|
|
+ compressed = _ref.compressed,
|
|
|
+ maxDuration = _ref.maxDuration,
|
|
|
+ sizeType = _ref.sizeType,
|
|
|
+ camera = _ref.camera,
|
|
|
+ maxCount = _ref.maxCount;
|
|
|
+ return new Promise(function (resolve, reject) {
|
|
|
+ switch (accept) {
|
|
|
+ case 'image':
|
|
|
+ uni.chooseImage({
|
|
|
+ count: multiple ? Math.min(maxCount, 9) : 1,
|
|
|
+ sourceType: capture,
|
|
|
+ sizeType: sizeType,
|
|
|
+ success: function success(res) {
|
|
|
+ return resolve(formatImage(res));
|
|
|
+ },
|
|
|
+ fail: reject
|
|
|
+ });
|
|
|
+ break;
|
|
|
+
|
|
|
+ // 只有微信小程序才支持chooseMedia接口
|
|
|
+ case 'media':
|
|
|
+ wx.chooseMedia({
|
|
|
+ count: multiple ? Math.min(maxCount, 9) : 1,
|
|
|
+ sourceType: capture,
|
|
|
+ maxDuration: maxDuration,
|
|
|
+ sizeType: sizeType,
|
|
|
+ camera: camera,
|
|
|
+ success: function success(res) {
|
|
|
+ return resolve(formatMedia(res));
|
|
|
+ },
|
|
|
+ fail: reject
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'video':
|
|
|
+ uni.chooseVideo({
|
|
|
+ sourceType: capture,
|
|
|
+ compressed: compressed,
|
|
|
+ maxDuration: maxDuration,
|
|
|
+ camera: camera,
|
|
|
+ success: function success(res) {
|
|
|
+ return resolve(formatVideo(res));
|
|
|
+ },
|
|
|
+ fail: reject
|
|
|
+ });
|
|
|
+ break;
|
|
|
+
|
|
|
+ // 只有微信小程序才支持chooseMessageFile接口
|
|
|
+ case 'file':
|
|
|
+ wx.chooseMessageFile({
|
|
|
+ count: multiple ? maxCount : 1,
|
|
|
+ type: accept,
|
|
|
+ success: function success(res) {
|
|
|
+ return resolve(formatFile(res));
|
|
|
+ },
|
|
|
+ fail: reject
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
|
|
|
+
|
|
|
+ wx.chooseMessageFile({
|
|
|
+ count: multiple ? maxCount : 1,
|
|
|
+ type: 'all',
|
|
|
+ success: function success(res) {
|
|
|
+ return resolve(formatFile(res));
|
|
|
+ },
|
|
|
+ fail: reject
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 565 */
|
|
|
+/*!******************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-upload/mixin.js ***!
|
|
|
+ \******************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ watch: {
|
|
|
+ // 监听accept的变化,判断是否符合个平台要求
|
|
|
+ // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
|
|
|
+ accept: {
|
|
|
+ immediate: true,
|
|
|
+ handler: function handler(val) {}
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 566 */
|
|
|
+/*!******************************************************************************************!*\
|
|
|
+ !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-upload/props.js ***!
|
|
|
+ \******************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 接受的文件类型, 可选值为all media image file video
|
|
|
+ accept: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.upload.accept
|
|
|
+ },
|
|
|
+ // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
|
|
|
+ capture: {
|
|
|
+ type: [String, Array],
|
|
|
+ default: uni.$u.props.upload.capture
|
|
|
+ },
|
|
|
+ // 当accept为video时生效,是否压缩视频,默认为true
|
|
|
+ compressed: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.upload.compressed
|
|
|
+ },
|
|
|
+ // 当accept为video时生效,可选值为back或front
|
|
|
+ camera: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.upload.camera
|
|
|
+ },
|
|
|
+ // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
|
|
|
+ maxDuration: {
|
|
|
+ type: Number,
|
|
|
+ default: uni.$u.props.upload.maxDuration
|
|
|
+ },
|
|
|
+ // 上传区域的图标,只能内置图标
|
|
|
+ uploadIcon: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.upload.uploadIcon
|
|
|
+ },
|
|
|
+ // 上传区域的图标的颜色,默认
|
|
|
+ uploadIconColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.upload.uploadIconColor
|
|
|
+ },
|
|
|
+ // 是否开启文件读取前事件
|
|
|
+ useBeforeRead: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.upload.useBeforeRead
|
|
|
+ },
|
|
|
+ // 读取后的处理函数
|
|
|
+ afterRead: {
|
|
|
+ type: Function,
|
|
|
+ default: null
|
|
|
+ },
|
|
|
+ // 读取前的处理函数
|
|
|
+ beforeRead: {
|
|
|
+ type: Function,
|
|
|
+ default: null
|
|
|
+ },
|
|
|
+ // 是否显示组件自带的图片预览功能
|
|
|
+ previewFullImage: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.upload.previewFullImage
|
|
|
+ },
|
|
|
+ // 最大上传数量
|
|
|
+ maxCount: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.upload.maxCount
|
|
|
+ },
|
|
|
+ // 是否启用
|
|
|
+ disabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.upload.disabled
|
|
|
+ },
|
|
|
+ // 预览上传的图片时的裁剪模式,和image组件mode属性一致
|
|
|
+ imageMode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.upload.imageMode
|
|
|
+ },
|
|
|
+ // 标识符,可以在回调函数的第二项参数中获取
|
|
|
+ name: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.upload.name
|
|
|
+ },
|
|
|
+ // 所选的图片的尺寸, 可选值为original compressed
|
|
|
+ sizeType: {
|
|
|
+ type: Array,
|
|
|
+ default: uni.$u.props.upload.sizeType
|
|
|
+ },
|
|
|
+ // 是否开启图片多选,部分安卓机型不支持
|
|
|
+ multiple: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.upload.multiple
|
|
|
+ },
|
|
|
+ // 是否展示删除按钮
|
|
|
+ deletable: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.upload.deletable
|
|
|
+ },
|
|
|
+ // 文件大小限制,单位为byte
|
|
|
+ maxSize: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.upload.maxSize
|
|
|
+ },
|
|
|
+ // 显示已上传的文件列表
|
|
|
+ fileList: {
|
|
|
+ type: Array,
|
|
|
+ default: uni.$u.props.upload.fileList
|
|
|
+ },
|
|
|
+ // 上传区域的提示文字
|
|
|
+ uploadText: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.upload.uploadText
|
|
|
+ },
|
|
|
+ // 内部预览图片区域和选择图片按钮的区域宽度
|
|
|
+ width: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.upload.width
|
|
|
+ },
|
|
|
+ // 内部预览图片区域和选择图片按钮的区域高度
|
|
|
+ height: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.upload.height
|
|
|
+ },
|
|
|
+ // 是否在上传完成后展示预览图
|
|
|
+ previewImage: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.upload.previewImage
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
/***/ })
|
|
|
]]);
|
|
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|