bulade-ui 1.0.9 → 1.1.1
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/miniprogram_dist/bld-checkbox/index.js +214 -0
- package/miniprogram_dist/bld-checkbox/index.js.map +1 -0
- package/miniprogram_dist/bld-checkbox/index.json +6 -0
- package/miniprogram_dist/bld-checkbox/index.wxml +67 -0
- package/miniprogram_dist/bld-checkbox/index.wxss +62 -0
- package/miniprogram_dist/bld-checkbox-group/index.js +184 -0
- package/miniprogram_dist/bld-checkbox-group/index.js.map +1 -0
- package/miniprogram_dist/bld-checkbox-group/index.json +4 -0
- package/miniprogram_dist/bld-checkbox-group/index.wxml +1 -0
- package/miniprogram_dist/bld-checkbox-group/index.wxss +0 -0
- package/miniprogram_dist/bld-cloud-image/index.js +2 -2
- package/miniprogram_dist/bld-cloud-image/index.js.map +1 -1
- package/miniprogram_dist/bld-collapse/index.js +163 -0
- package/miniprogram_dist/bld-collapse/index.js.map +1 -0
- package/miniprogram_dist/bld-collapse/index.json +3 -0
- package/miniprogram_dist/bld-collapse/index.wxml +9 -0
- package/miniprogram_dist/bld-collapse/index.wxss +7 -0
- package/miniprogram_dist/bld-empty-page/index.json +4 -1
- package/miniprogram_dist/bld-empty-page/index.wxml +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js +2 -2
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js.map +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.json +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxml +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js +2 -2
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js.map +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js +2 -2
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.json +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxml +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js +2 -2
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js.map +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js +2 -2
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js.map +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js +2 -2
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js.map +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js +2 -2
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js.map +1 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.json +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxml +1 -1
- package/miniprogram_dist/bld-icon/index.wxss +33 -1
- package/miniprogram_dist/bld-loading/index.js +2 -2
- package/miniprogram_dist/bld-loading/index.js.map +1 -1
- package/miniprogram_dist/bld-nav-bar/index.js +2 -2
- package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
- package/miniprogram_dist/bld-notice-bar/index.js +2 -2
- package/miniprogram_dist/bld-notice-bar/index.js.map +1 -1
- package/miniprogram_dist/bld-overlay/index.js +2 -2
- package/miniprogram_dist/bld-overlay/index.js.map +1 -1
- package/miniprogram_dist/bld-page/index.js +2 -2
- package/miniprogram_dist/bld-page/index.js.map +1 -1
- package/miniprogram_dist/bld-radio/index.js +166 -0
- package/miniprogram_dist/bld-radio/index.js.map +1 -0
- package/miniprogram_dist/bld-radio/index.json +4 -0
- package/miniprogram_dist/bld-radio/index.wxml +24 -0
- package/miniprogram_dist/bld-radio/index.wxss +79 -0
- package/miniprogram_dist/bld-radio-group/index.js +182 -0
- package/miniprogram_dist/bld-radio-group/index.js.map +1 -0
- package/miniprogram_dist/bld-radio-group/index.json +4 -0
- package/miniprogram_dist/bld-radio-group/index.wxml +1 -0
- package/miniprogram_dist/bld-radio-group/index.wxss +0 -0
- package/miniprogram_dist/bld-retry/index.js +2 -2
- package/miniprogram_dist/bld-retry/index.js.map +1 -1
- package/miniprogram_dist/bld-scroll-view/index.js +2 -2
- package/miniprogram_dist/bld-scroll-view/index.js.map +1 -1
- package/miniprogram_dist/bld-wrapper/index.js +2 -2
- package/miniprogram_dist/bld-wrapper/index.js.map +1 -1
- package/miniprogram_dist/cell/index.js +2 -2
- package/miniprogram_dist/cell/index.js.map +1 -1
- package/miniprogram_dist/cell-group/index.js +2 -2
- package/miniprogram_dist/cell-group/index.js.map +1 -1
- package/miniprogram_dist/grid/index.js +2 -2
- package/miniprogram_dist/grid/index.js.map +1 -1
- package/miniprogram_dist/grid-item/index.js +2 -2
- package/miniprogram_dist/grid-item/index.js.map +1 -1
- package/miniprogram_dist/timeline/index.js +2 -2
- package/miniprogram_dist/timeline/index.js.map +1 -1
- package/miniprogram_dist/timeline-item/index.js +2 -2
- package/miniprogram_dist/timeline-item/index.js.map +1 -1
- package/package.json +1 -1
- package/src/bld-checkbox/index.js +110 -0
- package/src/bld-checkbox/index.json +6 -0
- package/src/bld-checkbox/index.scss +72 -0
- package/src/bld-checkbox/index.wxml +67 -0
- package/src/bld-checkbox/index.wxss +62 -0
- package/src/bld-checkbox-group/index.js +84 -0
- package/src/bld-checkbox-group/index.json +4 -0
- package/src/bld-checkbox-group/index.wxml +1 -0
- package/src/bld-checkbox-group/index.wxss +0 -0
- package/src/bld-collapse/index.js +62 -0
- package/src/bld-collapse/index.json +3 -0
- package/src/bld-collapse/index.scss +7 -0
- package/src/bld-collapse/index.wxml +9 -0
- package/src/bld-collapse/index.wxss +7 -0
- package/src/bld-empty-page/index.json +4 -1
- package/src/bld-empty-page/index.wxml +1 -1
- package/src/bld-form/bld-form-item/bld-form-date/index.json +2 -1
- package/src/bld-form/bld-form-item/bld-form-date/index.wxml +1 -1
- package/src/bld-form/bld-form-item/bld-form-select-input/index.json +2 -1
- package/src/bld-form/bld-form-item/bld-form-select-input/index.wxml +1 -1
- package/src/bld-form/bld-form-item/bld-form-time/index.json +2 -1
- package/src/bld-form/bld-form-item/bld-form-time/index.wxml +1 -1
- package/src/bld-icon/index.scss +33 -1
- package/src/bld-icon/index.wxss +33 -1
- package/src/bld-radio/index.js +64 -0
- package/src/bld-radio/index.json +4 -0
- package/src/bld-radio/index.scss +68 -0
- package/src/bld-radio/index.wxml +24 -0
- package/src/bld-radio/index.wxss +79 -0
- package/src/bld-radio-group/index.js +83 -0
- package/src/bld-radio-group/index.json +4 -0
- package/src/bld-radio-group/index.wxml +1 -0
- package/src/bld-radio-group/index.wxss +0 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
module.exports =
|
|
2
|
+
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
+
/******/ // The module cache
|
|
4
|
+
/******/ var installedModules = {};
|
|
5
|
+
/******/
|
|
6
|
+
/******/ // The require function
|
|
7
|
+
/******/ function __webpack_require__(moduleId) {
|
|
8
|
+
/******/
|
|
9
|
+
/******/ // Check if module is in cache
|
|
10
|
+
/******/ if(installedModules[moduleId]) {
|
|
11
|
+
/******/ return installedModules[moduleId].exports;
|
|
12
|
+
/******/ }
|
|
13
|
+
/******/ // Create a new module (and put it into the cache)
|
|
14
|
+
/******/ var module = installedModules[moduleId] = {
|
|
15
|
+
/******/ i: moduleId,
|
|
16
|
+
/******/ l: false,
|
|
17
|
+
/******/ exports: {}
|
|
18
|
+
/******/ };
|
|
19
|
+
/******/
|
|
20
|
+
/******/ // Execute the module function
|
|
21
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
+
/******/
|
|
23
|
+
/******/ // Flag the module as loaded
|
|
24
|
+
/******/ module.l = true;
|
|
25
|
+
/******/
|
|
26
|
+
/******/ // Return the exports of the module
|
|
27
|
+
/******/ return module.exports;
|
|
28
|
+
/******/ }
|
|
29
|
+
/******/
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
+
/******/ __webpack_require__.m = modules;
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // expose the module cache
|
|
35
|
+
/******/ __webpack_require__.c = installedModules;
|
|
36
|
+
/******/
|
|
37
|
+
/******/ // define getter function for harmony exports
|
|
38
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
+
/******/ }
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // define __esModule on exports
|
|
45
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
+
/******/ }
|
|
49
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
/******/ };
|
|
51
|
+
/******/
|
|
52
|
+
/******/ // create a fake namespace object
|
|
53
|
+
/******/ // mode & 1: value is a module id, require it
|
|
54
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
+
/******/ // mode & 4: return value when already ns object
|
|
56
|
+
/******/ // mode & 8|1: behave like require
|
|
57
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
+
/******/ if(mode & 8) return value;
|
|
60
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
+
/******/ var ns = Object.create(null);
|
|
62
|
+
/******/ __webpack_require__.r(ns);
|
|
63
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
+
/******/ return ns;
|
|
66
|
+
/******/ };
|
|
67
|
+
/******/
|
|
68
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
+
/******/ __webpack_require__.n = function(module) {
|
|
70
|
+
/******/ var getter = module && module.__esModule ?
|
|
71
|
+
/******/ function getDefault() { return module['default']; } :
|
|
72
|
+
/******/ function getModuleExports() { return module; };
|
|
73
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
+
/******/ return getter;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
+
/******/
|
|
80
|
+
/******/ // __webpack_public_path__
|
|
81
|
+
/******/ __webpack_require__.p = "";
|
|
82
|
+
/******/
|
|
83
|
+
/******/
|
|
84
|
+
/******/ // Load entry module and return exports
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 42);
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ 42:
|
|
91
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
"use strict";
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
Component({
|
|
97
|
+
externalClasses: ['iclass'],
|
|
98
|
+
|
|
99
|
+
options: {
|
|
100
|
+
addGlobalClass: true
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
relations: {
|
|
104
|
+
'../bld-radio-group/index': {
|
|
105
|
+
type: 'ancestor',
|
|
106
|
+
linked: function linked(target) {
|
|
107
|
+
this.parent = target;
|
|
108
|
+
},
|
|
109
|
+
unlinked: function unlinked() {
|
|
110
|
+
this.parent = null;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
properties: {
|
|
116
|
+
name: {
|
|
117
|
+
type: null
|
|
118
|
+
},
|
|
119
|
+
value: {
|
|
120
|
+
type: null
|
|
121
|
+
},
|
|
122
|
+
disabled: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
value: false
|
|
125
|
+
},
|
|
126
|
+
checkedColor: {
|
|
127
|
+
type: String,
|
|
128
|
+
value: ''
|
|
129
|
+
},
|
|
130
|
+
labelLeft: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
value: false
|
|
133
|
+
},
|
|
134
|
+
shape: {
|
|
135
|
+
type: String,
|
|
136
|
+
value: 'round'
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
methods: {
|
|
141
|
+
emitChange: function emitChange(value) {
|
|
142
|
+
var instance = this.parent || this;
|
|
143
|
+
|
|
144
|
+
instance.triggerEvent('input', value);
|
|
145
|
+
instance.triggerEvent('change', value);
|
|
146
|
+
},
|
|
147
|
+
onChange: function onChange(event) {
|
|
148
|
+
this.emitChange(this.data.name);
|
|
149
|
+
},
|
|
150
|
+
onClickLabel: function onClickLabel() {
|
|
151
|
+
var _data = this.data,
|
|
152
|
+
disabled = _data.disabled,
|
|
153
|
+
labelDisabled = _data.labelDisabled,
|
|
154
|
+
name = _data.name;
|
|
155
|
+
|
|
156
|
+
if (!disabled && !labelDisabled) {
|
|
157
|
+
this.emitChange(name);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
/***/ })
|
|
164
|
+
|
|
165
|
+
/******/ });
|
|
166
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-radio/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","linked","target","parent","unlinked","properties","name","value","disabled","Boolean","checkedColor","String","labelLeft","shape","methods","emitChange","instance","triggerEvent","onChange","event","data","onClickLabel","labelDisabled"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,aAAW;AACT,gCAA4B;AAC1BC,YAAM,UADoB;AAE1BC,YAF0B,kBAEnBC,MAFmB,EAEX;AACb,aAAKC,MAAL,GAAcD,MAAd;AACD,OAJyB;AAK1BE,cAL0B,sBAKf;AACT,aAAKD,MAAL,GAAc,IAAd;AACD;AAPyB;AADnB,GAPH;;AAmBRE,cAAY;AACVC,UAAM;AACJN,YAAM;AADF,KADI;AAIVO,WAAO;AACLP,YAAM;AADD,KAJG;AAOVQ,cAAU;AACRR,YAAMS,OADE;AAERF,aAAO;AAFC,KAPA;AAWVG,kBAAc;AACZV,YAAMW,MADM;AAEZJ,aAAO;AAFK,KAXJ;AAeVK,eAAW;AACTZ,YAAMS,OADG;AAETF,aAAO;AAFE,KAfD;AAmBVM,WAAO;AACLb,YAAMW,MADD;AAELJ,aAAO;AAFF;AAnBG,GAnBJ;;AA4CRO,WAAS;AACPC,cADO,sBACIR,KADJ,EACW;AAChB,UAAMS,WAAW,KAAKb,MAAL,IAAe,IAAhC;;AAEAa,eAASC,YAAT,CAAsB,OAAtB,EAA+BV,KAA/B;AACAS,eAASC,YAAT,CAAsB,QAAtB,EAAgCV,KAAhC;AACD,KANM;AAQPW,YARO,oBAQEC,KARF,EAQS;AACd,WAAKJ,UAAL,CAAgB,KAAKK,IAAL,CAAUd,IAA1B;AACD,KAVM;AAYPe,gBAZO,0BAYQ;AAAA,kBAC6B,KAAKD,IADlC;AAAA,UACLZ,QADK,SACLA,QADK;AAAA,UACKc,aADL,SACKA,aADL;AAAA,UACoBhB,IADpB,SACoBA,IADpB;;AAEb,UAAI,CAACE,QAAD,IAAa,CAACc,aAAlB,EAAiC;AAC/B,aAAKP,UAAL,CAAgBT,IAAhB;AACD;AACF;AAjBM;AA5CD,CAAV,E","file":"bld-radio/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 42);\n","Component({\n externalClasses: ['iclass'],\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../bld-radio-group/index': {\n type: 'ancestor',\n linked(target) {\n this.parent = target;\n },\n unlinked() {\n this.parent = null;\n }\n }\n },\n\n properties: {\n name: {\n type: null\n },\n value: {\n type: null\n },\n disabled: {\n type: Boolean,\n value: false\n },\n checkedColor: {\n type: String,\n value: ''\n },\n labelLeft: {\n type: Boolean,\n value: false\n },\n shape: {\n type: String,\n value: 'round'\n }\n },\n\n methods: {\n emitChange(value) {\n const instance = this.parent || this;\n \n instance.triggerEvent('input', value);\n instance.triggerEvent('change', value);\n },\n\n onChange(event) {\n this.emitChange(this.data.name);\n },\n\n onClickLabel() {\n const { disabled, labelDisabled, name } = this.data;\n if (!disabled && !labelDisabled) {\n this.emitChange(name);\n }\n }\n }\n})\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<view class="m-radio {{ disabled ? 'm-radio--disabled' : '' }} iclass">
|
|
2
|
+
<view
|
|
3
|
+
wx:if="{{ labelLeft }}"
|
|
4
|
+
class="m-radio__label m-radio__label--left"
|
|
5
|
+
bindtap="onClickLabel"
|
|
6
|
+
>
|
|
7
|
+
<slot />
|
|
8
|
+
</view>
|
|
9
|
+
|
|
10
|
+
<view class="m-radio__icon-wrap" bindtap="onChange">
|
|
11
|
+
<view
|
|
12
|
+
class="m-radio__icon {{ disabled ? 'm-radio__icon--disabled' : '' }} {{ value === name ? 'm-radio__icon--checked' :'' }}"
|
|
13
|
+
style="{{ checkedColor ? 'color: ' + checkedColor : '' }}"
|
|
14
|
+
></view>
|
|
15
|
+
</view>
|
|
16
|
+
|
|
17
|
+
<view
|
|
18
|
+
wx:if="{{ !labelLeft }}"
|
|
19
|
+
class="m-radio__label m-radio__label--right"
|
|
20
|
+
bindtap="onClickLabel"
|
|
21
|
+
>
|
|
22
|
+
<slot />
|
|
23
|
+
</view>
|
|
24
|
+
</view>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.m-radio {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 3rpx 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.m-radio .m-radio__icon-wrap {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.m-radio .m-radio__icon-wrap .m-radio__icon {
|
|
12
|
+
position: relative;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
width: 42rpx;
|
|
17
|
+
height: 42rpx;
|
|
18
|
+
color: var(--color-primary, #409EFF);
|
|
19
|
+
border: 1px solid #e5e5e5;
|
|
20
|
+
border-radius: 100%;
|
|
21
|
+
box-sizing: content-box;
|
|
22
|
+
transition-property: color, border-color, background-color;
|
|
23
|
+
transition-duration: 0.15s;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.m-radio .m-radio__icon-wrap .m-radio__icon::after {
|
|
27
|
+
content: " ";
|
|
28
|
+
display: block;
|
|
29
|
+
margin: auto;
|
|
30
|
+
width: 20rpx;
|
|
31
|
+
height: 20rpx;
|
|
32
|
+
border-radius: 100%;
|
|
33
|
+
background-color: currentColor;
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 0;
|
|
36
|
+
top: 0;
|
|
37
|
+
right: 0;
|
|
38
|
+
bottom: 0;
|
|
39
|
+
transform: scale(0);
|
|
40
|
+
transition: transform 0.15s ease-in;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.m-radio .m-radio__icon-wrap .m-radio__icon.m-radio__icon--checked {
|
|
44
|
+
border-color: currentColor;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.m-radio .m-radio__icon-wrap .m-radio__icon.m-radio__icon--checked::after {
|
|
48
|
+
transform: scale(1);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.m-radio .m-radio__icon-wrap .m-radio__icon--disabled {
|
|
52
|
+
border-color: #c8c9cc;
|
|
53
|
+
background-color: #ebedf0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.m-radio .m-radio__icon-wrap .m-radio__icon--disabled.m-radio__icon--checked {
|
|
57
|
+
color: #c8c9cc;
|
|
58
|
+
border-color: currentColor;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.m-radio .m-radio__icon-wrap .m-radio__icon--disabled.m-radio__icon--checked::after {
|
|
62
|
+
background-color: currentColor;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.m-radio .m-radio__label {
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
flex: 1;
|
|
69
|
+
word-wrap: break-word;
|
|
70
|
+
color: var(--color-text-regular, #606266);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.m-radio .m-radio__label.m-radio__label--left {
|
|
74
|
+
margin-right: 20rpx;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.m-radio .m-radio__label.m-radio__label--right {
|
|
78
|
+
margin-left: 20rpx;
|
|
79
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
module.exports =
|
|
2
|
+
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
+
/******/ // The module cache
|
|
4
|
+
/******/ var installedModules = {};
|
|
5
|
+
/******/
|
|
6
|
+
/******/ // The require function
|
|
7
|
+
/******/ function __webpack_require__(moduleId) {
|
|
8
|
+
/******/
|
|
9
|
+
/******/ // Check if module is in cache
|
|
10
|
+
/******/ if(installedModules[moduleId]) {
|
|
11
|
+
/******/ return installedModules[moduleId].exports;
|
|
12
|
+
/******/ }
|
|
13
|
+
/******/ // Create a new module (and put it into the cache)
|
|
14
|
+
/******/ var module = installedModules[moduleId] = {
|
|
15
|
+
/******/ i: moduleId,
|
|
16
|
+
/******/ l: false,
|
|
17
|
+
/******/ exports: {}
|
|
18
|
+
/******/ };
|
|
19
|
+
/******/
|
|
20
|
+
/******/ // Execute the module function
|
|
21
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
+
/******/
|
|
23
|
+
/******/ // Flag the module as loaded
|
|
24
|
+
/******/ module.l = true;
|
|
25
|
+
/******/
|
|
26
|
+
/******/ // Return the exports of the module
|
|
27
|
+
/******/ return module.exports;
|
|
28
|
+
/******/ }
|
|
29
|
+
/******/
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
+
/******/ __webpack_require__.m = modules;
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // expose the module cache
|
|
35
|
+
/******/ __webpack_require__.c = installedModules;
|
|
36
|
+
/******/
|
|
37
|
+
/******/ // define getter function for harmony exports
|
|
38
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
+
/******/ }
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // define __esModule on exports
|
|
45
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
+
/******/ }
|
|
49
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
/******/ };
|
|
51
|
+
/******/
|
|
52
|
+
/******/ // create a fake namespace object
|
|
53
|
+
/******/ // mode & 1: value is a module id, require it
|
|
54
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
+
/******/ // mode & 4: return value when already ns object
|
|
56
|
+
/******/ // mode & 8|1: behave like require
|
|
57
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
+
/******/ if(mode & 8) return value;
|
|
60
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
+
/******/ var ns = Object.create(null);
|
|
62
|
+
/******/ __webpack_require__.r(ns);
|
|
63
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
+
/******/ return ns;
|
|
66
|
+
/******/ };
|
|
67
|
+
/******/
|
|
68
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
+
/******/ __webpack_require__.n = function(module) {
|
|
70
|
+
/******/ var getter = module && module.__esModule ?
|
|
71
|
+
/******/ function getDefault() { return module['default']; } :
|
|
72
|
+
/******/ function getModuleExports() { return module; };
|
|
73
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
+
/******/ return getter;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
+
/******/
|
|
80
|
+
/******/ // __webpack_public_path__
|
|
81
|
+
/******/ __webpack_require__.p = "";
|
|
82
|
+
/******/
|
|
83
|
+
/******/
|
|
84
|
+
/******/ // Load entry module and return exports
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 43);
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ 43:
|
|
91
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
"use strict";
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
Component({
|
|
97
|
+
externalClasses: ['iclass'],
|
|
98
|
+
|
|
99
|
+
options: {
|
|
100
|
+
addGlobalClass: true
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
relations: {
|
|
104
|
+
'../bld-radio/index': {
|
|
105
|
+
type: 'descendant',
|
|
106
|
+
|
|
107
|
+
linked: function linked(target) {
|
|
108
|
+
this._updateChildren();
|
|
109
|
+
},
|
|
110
|
+
linkChanged: function linkChanged() {
|
|
111
|
+
this._updateChildren();
|
|
112
|
+
},
|
|
113
|
+
unlinked: function unlinked(target) {
|
|
114
|
+
this._updateChildren();
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
properties: {
|
|
120
|
+
value: {
|
|
121
|
+
type: null,
|
|
122
|
+
observer: '_updateChildren'
|
|
123
|
+
},
|
|
124
|
+
disabled: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
observer: '_updateChildren'
|
|
127
|
+
},
|
|
128
|
+
checkedColor: {
|
|
129
|
+
type: String,
|
|
130
|
+
value: ''
|
|
131
|
+
},
|
|
132
|
+
labelLeft: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
value: false
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
methods: {
|
|
139
|
+
_updateChildren: function _updateChildren() {
|
|
140
|
+
var _this = this;
|
|
141
|
+
|
|
142
|
+
// 防抖减少重复触发
|
|
143
|
+
if (this.timer) {
|
|
144
|
+
clearTimeout(this.timer);
|
|
145
|
+
this.timer = null;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
this.timer = setTimeout(function () {
|
|
149
|
+
|
|
150
|
+
var children = _this.getRelationNodes('../bld-radio/index');
|
|
151
|
+
|
|
152
|
+
var len = children.length;
|
|
153
|
+
|
|
154
|
+
if (len > 0) {
|
|
155
|
+
children.forEach(function (child, index) {
|
|
156
|
+
_this._updateChild(child);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}, 60);
|
|
160
|
+
},
|
|
161
|
+
_updateChild: function _updateChild(child) {
|
|
162
|
+
var _data = this.data,
|
|
163
|
+
checkedColor = _data.checkedColor,
|
|
164
|
+
value = _data.value,
|
|
165
|
+
labelLeft = _data.labelLeft,
|
|
166
|
+
disabled = _data.disabled;
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
child.setData({
|
|
170
|
+
checkedColor: child.data.checkedColor || checkedColor,
|
|
171
|
+
value: value,
|
|
172
|
+
labelLeft: child.data.labelLeft || labelLeft,
|
|
173
|
+
disabled: disabled || child.data.disabled
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
/***/ })
|
|
180
|
+
|
|
181
|
+
/******/ });
|
|
182
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-radio-group/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","linked","target","_updateChildren","linkChanged","unlinked","properties","value","observer","disabled","Boolean","checkedColor","String","labelLeft","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","forEach","child","index","_updateChild","data","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,aAAW;AACT,0BAAsB;AACpBC,YAAM,YADc;;AAGpBC,YAHoB,kBAGbC,MAHa,EAGL;AACb,aAAKC,eAAL;AACD,OALmB;AAOpBC,iBAPoB,yBAON;AACZ,aAAKD,eAAL;AACD,OATmB;AAWpBE,cAXoB,oBAWXH,MAXW,EAWH;AACf,aAAKC,eAAL;AACD;AAbmB;AADb,GAPH;;AAyBRG,cAAY;AACVC,WAAO;AACLP,YAAM,IADD;AAELQ,gBAAU;AAFL,KADG;AAKVC,cAAU;AACRT,YAAMU,OADE;AAERF,gBAAU;AAFF,KALA;AASVG,kBAAc;AACZX,YAAMY,MADM;AAEZL,aAAO;AAFK,KATJ;AAaVM,eAAW;AACTb,YAAMU,OADG;AAETH,aAAO;AAFE;AAbD,GAzBJ;;AA4CRO,WAAS;AACPX,mBADO,6BACW;AAAA;;AAChB;AACA,UAAI,KAAKY,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;;AAE5B,YAAIC,WAAW,MAAKC,gBAAL,CAAsB,oBAAtB,CAAf;;AAEA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACXF,mBAASI,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjC,kBAAKC,YAAL,CAAkBF,KAAlB;AACD,WAFD;AAGD;AACF,OAXY,EAWV,EAXU,CAAb;AAYD,KApBM;AAsBPE,gBAtBO,wBAsBMF,KAtBN,EAsBa;AAAA,kBAMd,KAAKG,IANS;AAAA,UAEhBf,YAFgB,SAEhBA,YAFgB;AAAA,UAGhBJ,KAHgB,SAGhBA,KAHgB;AAAA,UAIhBM,SAJgB,SAIhBA,SAJgB;AAAA,UAKhBJ,QALgB,SAKhBA,QALgB;;;AAQlBc,YAAMI,OAAN,CAAc;AACZhB,sBAAcY,MAAMG,IAAN,CAAWf,YAAX,IAA2BA,YAD7B;AAEZJ,oBAFY;AAGZM,mBAAWU,MAAMG,IAAN,CAAWb,SAAX,IAAwBA,SAHvB;AAIZJ,kBAAUA,YAAYc,MAAMG,IAAN,CAAWjB;AAJrB,OAAd;AAMD;AApCM;AA5CD,CAAV,E","file":"bld-radio-group/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 43);\n","Component({\n externalClasses: ['iclass'],\n\n options: {\n addGlobalClass: true,\n },\n \n relations: {\n '../bld-radio/index': {\n type: 'descendant',\n\n linked(target) {\n this._updateChildren()\n },\n\n linkChanged() {\n this._updateChildren()\n },\n\n unlinked(target) {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n value: {\n type: null,\n observer: '_updateChildren'\n },\n disabled: {\n type: Boolean,\n observer: '_updateChildren'\n },\n checkedColor: {\n type: String,\n value: ''\n },\n labelLeft: {\n type: Boolean,\n value: false\n },\n },\n\n methods: {\n _updateChildren() {\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n\n let children = this.getRelationNodes('../bld-radio/index')\n\n const len = children.length\n\n if (len > 0) {\n children.forEach((child, index) => {\n this._updateChild(child)\n })\n }\n }, 60)\n },\n\n _updateChild(child) {\n const {\n checkedColor,\n value,\n labelLeft,\n disabled\n } = this.data\n\n child.setData({\n checkedColor: child.data.checkedColor || checkedColor,\n value,\n labelLeft: child.data.labelLeft || labelLeft,\n disabled: disabled || child.data.disabled\n });\n }\n }\n})"],"sourceRoot":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<slot />
|
|
File without changes
|
|
@@ -82,12 +82,12 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 23);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 23:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-retry/index.js"],"names":["Component","externalClasses","properties","title","type","String","value","description","actionText","methods","retry","triggerEvent"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KADG;AAKVC,iBAAa;AACXH,YAAMC,MADK;AAEXC,aAAO;AAFI,KALH;AASVE,gBAAY;AACVJ,YAAMC,MADI;AAEVC,aAAO;AAFG;AATF,GAFJ;;AAiBRG,WAAS;AACPC,SADO,mBACC;AACN,WAAKC,YAAL,CAAkB,UAAlB;AACD;AAHM;AAjBD,CAAV,E","file":"bld-retry/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s =
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-retry/index.js"],"names":["Component","externalClasses","properties","title","type","String","value","description","actionText","methods","retry","triggerEvent"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KADG;AAKVC,iBAAa;AACXH,YAAMC,MADK;AAEXC,aAAO;AAFI,KALH;AASVE,gBAAY;AACVJ,YAAMC,MADI;AAEVC,aAAO;AAFG;AATF,GAFJ;;AAiBRG,WAAS;AACPC,SADO,mBACC;AACN,WAAKC,YAAL,CAAkB,UAAlB;AACD;AAHM;AAjBD,CAAV,E","file":"bld-retry/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 23);\n","Component({\n externalClasses: [\"iclass\"],\n properties: {\n title: {\n type: String,\n value: \"加载失败\",\n },\n description: {\n type: String,\n value: \"发生了一些错误\",\n },\n actionText: {\n type: String,\n value: \"点击重试\",\n },\n },\n\n methods: {\n retry() {\n this.triggerEvent(\"on-retry\");\n },\n },\n});\n"],"sourceRoot":""}
|
|
@@ -82,12 +82,12 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 24);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 24:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-scroll-view/index.js"],"names":["Component","externalClasses","properties","type","String","value","mode","scrollTop","Number","methods","scroll","e","triggerEvent","detail","scrollEnd","scrollToLower"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJA,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,UAAM;AACJH,YAAMC,MADF;AAEJC,aAAO;AAFH,KALI;AASVE,eAAW;AACTJ,YAAMK,MADG;AAETH,aAAO;AAFE;AATD,GAFJ;AAgBRI,WAAS;AACPC,UADO,kBACAC,CADA,EACG;AACR,WAAKC,YAAL,CAAkB,QAAlB,eAAiCD,EAAEE,MAAnC;AACD,KAHM;AAIPC,aAJO,qBAIGH,CAJH,EAIM;AACX,WAAKC,YAAL,CAAkB,WAAlB,eAAoCD,EAAEE,MAAtC;AACD,KANM;AAOPE,iBAPO,yBAOOJ,CAPP,EAOU;AACf,WAAKC,YAAL,CAAkB,eAAlB,eAAwCD,EAAEE,MAA1C;AACD;AATM;AAhBD,CAAV,E","file":"bld-scroll-view/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s =
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-scroll-view/index.js"],"names":["Component","externalClasses","properties","type","String","value","mode","scrollTop","Number","methods","scroll","e","triggerEvent","detail","scrollEnd","scrollToLower"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJA,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,UAAM;AACJH,YAAMC,MADF;AAEJC,aAAO;AAFH,KALI;AASVE,eAAW;AACTJ,YAAMK,MADG;AAETH,aAAO;AAFE;AATD,GAFJ;AAgBRI,WAAS;AACPC,UADO,kBACAC,CADA,EACG;AACR,WAAKC,YAAL,CAAkB,QAAlB,eAAiCD,EAAEE,MAAnC;AACD,KAHM;AAIPC,aAJO,qBAIGH,CAJH,EAIM;AACX,WAAKC,YAAL,CAAkB,WAAlB,eAAoCD,EAAEE,MAAtC;AACD,KANM;AAOPE,iBAPO,yBAOOJ,CAPP,EAOU;AACf,WAAKC,YAAL,CAAkB,eAAlB,eAAwCD,EAAEE,MAA1C;AACD;AATM;AAhBD,CAAV,E","file":"bld-scroll-view/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 24);\n","Component({\n externalClasses: [\"iclass\"],\n properties: {\n type: {\n type: String,\n value: \"list\",\n },\n mode: {\n type: String,\n value: \"nav-to-bottom\",\n },\n scrollTop: {\n type: Number,\n value: 0,\n },\n },\n methods: {\n scroll(e) {\n this.triggerEvent(\"scroll\", { ...e.detail });\n },\n scrollEnd(e) {\n this.triggerEvent(\"scrollEnd\", { ...e.detail });\n },\n scrollToLower(e) {\n this.triggerEvent(\"scrollToLower\", { ...e.detail });\n },\n },\n});\n"],"sourceRoot":""}
|
|
@@ -82,12 +82,12 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 21);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 21:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-wrapper/index.js"],"names":["app","getApp","menuButtonInfo","globalData","menuButtonDistance","systemInfo","safeArea","saleAreaHeight","screenHeight","bottom","tabBarHeight","statusBarHeight","gap","top","navBarHeight","height","navToTab","navToBottom","topToTab","topToBottom","modeStyleMap","modeToStyle","mode","styles","Object","keys","map","key","join","Component","externalClasses","properties","type","String","value","data","style","observers","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFA,IAAMA,MAAMC,QAAZ;;AAEA,IAAMC,iBAAiBF,IAAIG,UAAJ,CAAeC,kBAAtC;AACA,IAAMC,aAAaL,IAAIG,UAAJ,CAAeE,UAAlC;AACA;AACA,IAAMC,WAAWD,WAAWC,QAA5B;AACA,IAAMC,iBAAiBF,WAAWG,YAAX,GAA0BF,SAASG,MAA1D;AACA,IAAMC,eAAe,KAAKH,cAA1B;;AAEA;AACA,IAAMI,kBAAkBN,WAAWM,eAAnC;AACA,IAAMC,MAAMV,eAAeW,GAAf,GAAqBF,eAAjC;;AAEA,IAAMG,eAAeH,kBAAkBT,eAAea,MAAjC,GAA0CH,MAAM,CAArE;;AAEA;AACA,IAAMI,WAAW;AACfH,OAAQC,YAAR,OADe;AAEfC,2BAAuBD,YAAvB,aAA2CJ,YAA3C;AAFe,CAAjB;;AAKA;AACA,IAAMO,cAAc;AAClBJ,OAAQC,YAAR,OADkB;AAElBC,2BAAuBD,YAAvB;AAFkB,CAApB;;AAKA;AACA,IAAMI,WAAW;AACfL,OAAK,KADU;AAEfE,2BAAuBL,YAAvB;AAFe,CAAjB;;AAKA;AACA,IAAMS,cAAc;AAClBN,OAAK,KADa;AAElBE,UAAQ;AAFU,CAApB;;AAKA,IAAMK,eAAe;AACnB,gBAAcJ,QADK;AAEnB,mBAAiBC,WAFE;AAGnB,gBAAcC,QAHK;AAInB,mBAAiBC;AAJE,CAArB;;AAOA,SAASE,WAAT,CAAqBC,IAArB,EAA2B;AACzB,MAAMC,SAASH,aAAaE,IAAb,CAAf;AACA,SAAOE,OAAOC,IAAP,CAAYF,MAAZ,EACJG,GADI,CACA,UAACC,GAAD,EAAS;AACZ,WAAUA,GAAV,UAAkBJ,OAAOI,GAAP,CAAlB;AACD,GAHI,EAIJC,IAJI,CAIC,GAJD,CAAP;AAKD;;AAEDC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVT,UAAM;AACJU,YAAMC,MADF;AAEJC,aAAO;AAFH;AADI,GAFJ;AAQRC,QAAM;AACJC,WAAO;AADH,GARE;;AAYRC,aAAW;AACTf,UAAM,gBAAY;AAChB,WAAKgB,OAAL,CAAa;AACXF,eAAOf,YAAY,KAAKc,IAAL,CAAUb,IAAtB;AADI,OAAb;AAGD;AALQ;AAZH,CAAV,E","file":"bld-wrapper/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s =
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-wrapper/index.js"],"names":["app","getApp","menuButtonInfo","globalData","menuButtonDistance","systemInfo","safeArea","saleAreaHeight","screenHeight","bottom","tabBarHeight","statusBarHeight","gap","top","navBarHeight","height","navToTab","navToBottom","topToTab","topToBottom","modeStyleMap","modeToStyle","mode","styles","Object","keys","map","key","join","Component","externalClasses","properties","type","String","value","data","style","observers","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFA,IAAMA,MAAMC,QAAZ;;AAEA,IAAMC,iBAAiBF,IAAIG,UAAJ,CAAeC,kBAAtC;AACA,IAAMC,aAAaL,IAAIG,UAAJ,CAAeE,UAAlC;AACA;AACA,IAAMC,WAAWD,WAAWC,QAA5B;AACA,IAAMC,iBAAiBF,WAAWG,YAAX,GAA0BF,SAASG,MAA1D;AACA,IAAMC,eAAe,KAAKH,cAA1B;;AAEA;AACA,IAAMI,kBAAkBN,WAAWM,eAAnC;AACA,IAAMC,MAAMV,eAAeW,GAAf,GAAqBF,eAAjC;;AAEA,IAAMG,eAAeH,kBAAkBT,eAAea,MAAjC,GAA0CH,MAAM,CAArE;;AAEA;AACA,IAAMI,WAAW;AACfH,OAAQC,YAAR,OADe;AAEfC,2BAAuBD,YAAvB,aAA2CJ,YAA3C;AAFe,CAAjB;;AAKA;AACA,IAAMO,cAAc;AAClBJ,OAAQC,YAAR,OADkB;AAElBC,2BAAuBD,YAAvB;AAFkB,CAApB;;AAKA;AACA,IAAMI,WAAW;AACfL,OAAK,KADU;AAEfE,2BAAuBL,YAAvB;AAFe,CAAjB;;AAKA;AACA,IAAMS,cAAc;AAClBN,OAAK,KADa;AAElBE,UAAQ;AAFU,CAApB;;AAKA,IAAMK,eAAe;AACnB,gBAAcJ,QADK;AAEnB,mBAAiBC,WAFE;AAGnB,gBAAcC,QAHK;AAInB,mBAAiBC;AAJE,CAArB;;AAOA,SAASE,WAAT,CAAqBC,IAArB,EAA2B;AACzB,MAAMC,SAASH,aAAaE,IAAb,CAAf;AACA,SAAOE,OAAOC,IAAP,CAAYF,MAAZ,EACJG,GADI,CACA,UAACC,GAAD,EAAS;AACZ,WAAUA,GAAV,UAAkBJ,OAAOI,GAAP,CAAlB;AACD,GAHI,EAIJC,IAJI,CAIC,GAJD,CAAP;AAKD;;AAEDC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVT,UAAM;AACJU,YAAMC,MADF;AAEJC,aAAO;AAFH;AADI,GAFJ;AAQRC,QAAM;AACJC,WAAO;AADH,GARE;;AAYRC,aAAW;AACTf,UAAM,gBAAY;AAChB,WAAKgB,OAAL,CAAa;AACXF,eAAOf,YAAY,KAAKc,IAAL,CAAUb,IAAtB;AADI,OAAb;AAGD;AALQ;AAZH,CAAV,E","file":"bld-wrapper/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 21);\n","const app = getApp();\n\nconst menuButtonInfo = app.globalData.menuButtonDistance;\nconst systemInfo = app.globalData.systemInfo\n// 计算 tab bar 的高度\nconst safeArea = systemInfo.safeArea;\nconst saleAreaHeight = systemInfo.screenHeight - safeArea.bottom;\nconst tabBarHeight = 60 + saleAreaHeight;\n\n// 计算 nav bar 的高度\nconst statusBarHeight = systemInfo.statusBarHeight;\nconst gap = menuButtonInfo.top - statusBarHeight;\n\nconst navBarHeight = statusBarHeight + menuButtonInfo.height + gap * 2;\n\n// 占据 nav bar 和 tab bar 之间的空间\nconst navToTab = {\n top: `${navBarHeight}px`,\n height: `calc(100% - ${navBarHeight}px - ${tabBarHeight}px)`,\n};\n\n// 占据 nav bar 页面底部的空间\nconst navToBottom = {\n top: `${navBarHeight}px`,\n height: `calc(100% - ${navBarHeight}px)`,\n};\n\n// 从页面顶部到 tab bar 之间的空间\nconst topToTab = {\n top: \"0px\",\n height: `calc(100% - ${tabBarHeight}px)`,\n};\n\n// 占据所有空间\nconst topToBottom = {\n top: \"0px\",\n height: \"100%\",\n};\n\nconst modeStyleMap = {\n \"nav-to-tab\": navToTab,\n \"nav-to-bottom\": navToBottom,\n \"top-to-tab\": topToTab,\n \"top-to-bottom\": topToBottom,\n};\n\nfunction modeToStyle(mode) {\n const styles = modeStyleMap[mode];\n return Object.keys(styles)\n .map((key) => {\n return `${key}: ${styles[key]}`;\n })\n .join(\";\");\n}\n\nComponent({\n externalClasses: [\"iclass\"],\n properties: {\n mode: {\n type: String,\n value: \"nav-to-bottom\",\n },\n },\n data: {\n style: \"height:100%\",\n },\n\n observers: {\n mode: function () {\n this.setData({\n style: modeToStyle(this.data.mode),\n });\n },\n },\n});\n"],"sourceRoot":""}
|