You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
15 KiB
1 lines
15 KiB
{"version":3,"sources":["webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/uni-popup/uni-popup-dialog.vue?e8be","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/uni-popup/uni-popup-dialog.vue?1dfb","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/uni-popup/uni-popup-dialog.vue?e057","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/uni-popup/uni-popup-dialog.vue?7f58","uni-app:///components/uni-popup/uni-popup-dialog.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/uni-popup/uni-popup-dialog.vue?677f","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/uni-popup/uni-popup-dialog.vue?205d"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyI;AACzI;AACoE;AACL;AACsC;;;AAGrG;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,uGAAM;AACR,EAAE,gHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2GAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA80B,CAAgB,8yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACsBl2B;;;;;;;;;;;;;;;;;;;;AAoBA;AACA,wBADA;AAEA;AACA;AACA,4BADA;AAEA,iBAFA,EADA;;AAKA;AACA,4BADA;AAEA,sBAFA,EALA;;AASA;;;AAGA;AACA,kBADA;AAEA,sBAFA,EAZA;;AAgBA;;;AAGA;AACA,kBADA;AAEA,qBAFA,EAnBA;;AAuBA;;;AAGA;AACA,kBADA;AAEA,mBAFA,EA1BA;;AA8BA;;;AAGA;AACA,kBADA;AAEA,iBAFA,EAjCA;;AAqCA;;;AAGA;AACA,mBADA;AAEA,oBAFA,EAxCA,EAFA;;;AA+CA,MA/CA,kBA+CA;AACA;AACA,yBADA;AAEA,kBAFA;AAGA,aAHA;;AAKA,GArDA;AAsDA,mBAtDA;AAuDA;AACA,QADA,gBACA,GADA,EACA;AACA;AACA,KAHA;AAIA,QAJA,gBAIA,GAJA,EAIA;AACA;AACA;AACA;AACA,KARA;AASA,SATA,iBASA,GATA,EASA;AACA;AACA,KAXA,EAvDA;;AAoEA,SApEA,qBAoEA;AACA;AACA;AACA;AACA;AACA;AACA,KAHA,MAGA;AACA;AACA;AACA,GA7EA;AA8EA,SA9EA,qBA8EA;AACA;AACA,GAhFA;AAiFA;AACA;;;AAGA,QAJA,kBAIA;AACA;AACA;AACA;AACA,OAHA,EAGA,qCAHA;AAIA,KATA;AAUA;;;AAGA,SAbA,mBAaA;AACA;AACA;AACA;AACA,SAFA;AAGA;AACA;AACA;AACA,KArBA,EAjFA,E;;;;;;;;;;;;AC1CA;AAAA;AAAA;AAAA;AAA+hD,CAAgB,g6CAAG,EAAC,C;;;;;;;;;;;ACAnjD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/uni-popup/uni-popup-dialog.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./uni-popup-dialog.vue?vue&type=template&id=2fab037e&scoped=true&\"\nvar renderjs\nimport script from \"./uni-popup-dialog.vue?vue&type=script&lang=js&\"\nexport * from \"./uni-popup-dialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uni-popup-dialog.vue?vue&type=style&index=0&id=2fab037e&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2fab037e\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/uni-popup/uni-popup-dialog.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=template&id=2fab037e&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"uni-popup-dialog\">\n\t\t<view class=\"uni-dialog-title\">\n\t\t\t<text class=\"uni-dialog-title-text\" :class=\"['uni-popup__'+dialogType]\">{{title}}</text>\n\t\t</view>\n\t\t<view class=\"uni-dialog-content\">\n\t\t\t<text class=\"uni-dialog-content-text\" v-if=\"mode === 'base'\">{{content}}</text>\n\t\t\t<input v-else class=\"uni-dialog-input\" v-model=\"val\" type=\"text\" :placeholder=\"placeholder\" :focus=\"focus\" >\n\t\t</view>\n\t\t<view class=\"uni-dialog-button-group\">\n\t\t\t<view class=\"uni-dialog-button\" @click=\"close\">\n\t\t\t\t<text class=\"uni-dialog-button-text\">取消</text>\n\t\t\t</view>\n\t\t\t<view class=\"uni-dialog-button uni-border-left\" @click=\"onOk\">\n\t\t\t\t<text class=\"uni-dialog-button-text uni-button-color\">确定</text>\n\t\t\t</view>\n\t\t</view>\n\n\t</view>\n</template>\n\n<script>\n\t/**\n\t * PopUp 弹出层-对话框样式\n\t * @description 弹出层-对话框样式\n\t * @tutorial https://ext.dcloud.net.cn/plugin?id=329\n\t * @property {String} value input 模式下的默认值\n\t * @property {String} placeholder input 模式下输入提示\n\t * @property {String} type = [success|warning|info|error] 主题样式\n\t * @value success 成功\n\t * \t@value warning 提示\n\t * \t@value info 消息\n\t * \t@value error 错误\n\t * @property {String} mode = [base|input] 模式、\n\t * \t@value base 基础对话框\n\t * \t@value input 可输入对话框\n\t * @property {String} content 对话框内容\n\t * @property {Boolean} beforeClose 是否拦截取消事件\n\t * @event {Function} confirm 点击确认按钮触发\n\t * @event {Function} close 点击取消按钮触发\n\t */\n\n\texport default {\n\t\tname: \"uniPopupDialog\",\n\t\tprops: {\n\t\t\tvalue: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: ''\n\t\t\t},\n\t\t\tplaceholder: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: '请输入内容'\n\t\t\t},\n\t\t\t/**\n\t\t\t * 对话框主题 success/warning/info/error\t 默认 success\n\t\t\t */\n\t\t\ttype: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: 'error'\n\t\t\t},\n\t\t\t/**\n\t\t\t * 对话框模式 base/input\n\t\t\t */\n\t\t\tmode: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: 'base'\n\t\t\t},\n\t\t\t/**\n\t\t\t * 对话框标题\n\t\t\t */\n\t\t\ttitle: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '提示'\n\t\t\t},\n\t\t\t/**\n\t\t\t * 对话框内容\n\t\t\t */\n\t\t\tcontent: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: ''\n\t\t\t},\n\t\t\t/**\n\t\t\t * 拦截取消事件 ,如果拦截取消事件,必须监听close事件,执行 done()\n\t\t\t */\n\t\t\tbeforeClose: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: false\n\t\t\t}\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tdialogType: 'error',\n\t\t\t\tfocus: false,\n\t\t\t\tval: \"\"\n\t\t\t}\n\t\t},\n\t\tinject: ['popup'],\n\t\twatch: {\n\t\t\ttype(val) {\n\t\t\t\tthis.dialogType = val\n\t\t\t},\n\t\t\tmode(val) {\n\t\t\t\tif (val === 'input') {\n\t\t\t\t\tthis.dialogType = 'info'\n\t\t\t\t}\n\t\t\t},\n\t\t\tvalue(val) {\n\t\t\t\tthis.val = val\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\t// 对话框遮罩不可点击\n\t\t\tthis.popup.mkclick = false\n\t\t\tif (this.mode === 'input') {\n\t\t\t\tthis.dialogType = 'info'\n\t\t\t\tthis.val = this.value\n\t\t\t} else {\n\t\t\t\tthis.dialogType = this.type\n\t\t\t}\n\t\t},\n\t\tmounted() {\n\t\t\tthis.focus = true\n\t\t},\n\t\tmethods: {\n\t\t\t/**\n\t\t\t * 点击确认按钮\n\t\t\t */\n\t\t\tonOk() {\n\t\t\t\tthis.$emit('confirm', () => {\n\t\t\t\t\tthis.popup.close()\n\t\t\t\t\tif (this.mode === 'input') this.val = this.value\n\t\t\t\t}, this.mode === 'input' ? this.val : '')\n\t\t\t},\n\t\t\t/**\n\t\t\t * 点击取消按钮\n\t\t\t */\n\t\t\tclose() {\n\t\t\t\tif (this.beforeClose) {\n\t\t\t\t\tthis.$emit('close', () => {\n\t\t\t\t\t\tthis.popup.close()\n\t\t\t\t\t})\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tthis.popup.close()\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.uni-popup-dialog {\n\t\twidth: 300px;\n\t\tborder-radius: 15px;\n\t\tbackground-color: #fff;\n\t}\n\n\t.uni-dialog-title {\n\t\t/* #ifndef APP-NVUE */\n\t\tdisplay: flex;\n\t\t/* #endif */\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tpadding-top: 15px;\n\t\tpadding-bottom: 5px;\n\t}\n\n\t.uni-dialog-title-text {\n\t\tfont-size: 16px;\n\t\tfont-weight: 500;\n\t}\n\n\t.uni-dialog-content {\n\t\t/* #ifndef APP-NVUE */\n\t\tdisplay: flex;\n\t\t/* #endif */\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: 5px 15px 15px 15px;\n\t}\n\n\t.uni-dialog-content-text {\n\t\tfont-size: 14px;\n\t\tcolor: #6e6e6e;\n\t}\n\n\t.uni-dialog-button-group {\n\t\t/* #ifndef APP-NVUE */\n\t\tdisplay: flex;\n\t\t/* #endif */\n\t\tflex-direction: row;\n\t\tborder-top-color: #f5f5f5;\n\t\tborder-top-style: solid;\n\t\tborder-top-width: 1px;\n\t}\n\n\t.uni-dialog-button {\n\t\t/* #ifndef APP-NVUE */\n\t\tdisplay: flex;\n\t\t/* #endif */\n\n\t\tflex: 1;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\theight: 45px;\n\t}\n\n\t.uni-border-left {\n\t\tborder-left-color: #f0f0f0;\n\t\tborder-left-style: solid;\n\t\tborder-left-width: 1px;\n\t}\n\n\t.uni-dialog-button-text {\n\t\tfont-size: 14px;\n\t}\n\n\t.uni-button-color {\n\t\tcolor: $uni-color-primary;\n\t}\n\n\t.uni-dialog-input {\n\t\tflex: 1;\n\t\tfont-size: 14px;\n\t}\n\n\t.uni-popup__success {\n\t\tcolor: $uni-color-success;\n\t}\n\n\t.uni-popup__warn {\n\t\tcolor: $uni-color-warning;\n\t}\n\n\t.uni-popup__error {\n\t\tcolor: $uni-color-error;\n\t}\n\n\t.uni-popup__info {\n\t\tcolor: #909399;\n\t}\n</style>\n","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=style&index=0&id=2fab037e&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=style&index=0&id=2fab037e&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635513141680\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |