bulade-ui 1.0.5 → 1.0.6
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-notice-bar/index.js +171 -0
- package/miniprogram_dist/bld-notice-bar/index.js.map +1 -0
- package/miniprogram_dist/bld-notice-bar/index.json +3 -0
- package/miniprogram_dist/bld-notice-bar/index.wxml +30 -0
- package/miniprogram_dist/bld-notice-bar/index.wxss +51 -0
- 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-notice-bar/index.js +69 -0
- package/src/bld-notice-bar/index.json +3 -0
- package/src/bld-notice-bar/index.scss +59 -0
- package/src/bld-notice-bar/index.wxml +30 -0
- package/src/bld-notice-bar/index.wxss +51 -0
|
@@ -0,0 +1,171 @@
|
|
|
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 = 39);
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ 39:
|
|
91
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
"use strict";
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
Component({
|
|
97
|
+
externalClasses: ['custom-class'],
|
|
98
|
+
|
|
99
|
+
options: {
|
|
100
|
+
addGlobalClass: true,
|
|
101
|
+
multipleSlots: true // 在组件定义时的选项中启用多slot支持
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
properties: {
|
|
105
|
+
// 延迟播放时长
|
|
106
|
+
delay: {
|
|
107
|
+
type: Number,
|
|
108
|
+
value: 1
|
|
109
|
+
},
|
|
110
|
+
// 滚动速度 rpx/s
|
|
111
|
+
speed: {
|
|
112
|
+
type: Number,
|
|
113
|
+
value: 150
|
|
114
|
+
},
|
|
115
|
+
// 长度溢出时自动滚动播放
|
|
116
|
+
scrollable: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
value: true
|
|
119
|
+
},
|
|
120
|
+
multiline: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
value: false
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
data: {
|
|
127
|
+
delaySec: 0
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
lifetimes: {
|
|
131
|
+
ready: function ready() {
|
|
132
|
+
this.getContainerWidth();
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
methods: {
|
|
137
|
+
getContainerWidth: function getContainerWidth() {
|
|
138
|
+
var _this = this;
|
|
139
|
+
|
|
140
|
+
var query = this.createSelectorQuery();
|
|
141
|
+
query.select('.m-notice-bar').boundingClientRect();
|
|
142
|
+
query.select('.m-notice-bar__content').boundingClientRect();
|
|
143
|
+
|
|
144
|
+
query.exec(function (res) {
|
|
145
|
+
var wrapW = wx.getSystemInfoSync().windowWidth; // 容器宽度
|
|
146
|
+
var noticeW = res[0].width * (750 / wrapW);
|
|
147
|
+
var containW = res[1].width * (750 / wrapW); // 内容宽度(折合为rpx)
|
|
148
|
+
|
|
149
|
+
// 内容宽度小于内容区域宽度,则不滚动
|
|
150
|
+
if (containW <= noticeW) {
|
|
151
|
+
_this.setData({
|
|
152
|
+
scrollable: false
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
var delaySec = containW / _this.data.speed;
|
|
159
|
+
|
|
160
|
+
_this.setData({
|
|
161
|
+
delaySec: parseInt(delaySec)
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/***/ })
|
|
169
|
+
|
|
170
|
+
/******/ });
|
|
171
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-notice-bar/index.js"],"names":["Component","externalClasses","options","addGlobalClass","multipleSlots","properties","delay","type","Number","value","speed","scrollable","Boolean","multiline","data","delaySec","lifetimes","ready","getContainerWidth","methods","query","createSelectorQuery","select","boundingClientRect","exec","wrapW","wx","getSystemInfoSync","windowWidth","noticeW","res","width","containW","setData","parseInt"],"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,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB,IADT;AAEPC,mBAAe,IAFR,CAEa;AAFb,GAHD;;AAQRC,cAAY;AACV;AACAC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KAFG;AAMV;AACAC,WAAO;AACLH,YAAMC,MADD;AAELC,aAAO;AAFF,KAPG;AAWV;AACAE,gBAAY;AACVJ,YAAMK,OADI;AAEVH,aAAO;AAFG,KAZF;AAgBVI,eAAW;AACTN,YAAMK,OADG;AAETH,aAAO;AAFE;AAhBD,GARJ;;AA8BRK,QAAM;AACJC,cAAU;AADN,GA9BE;;AAkCRC,aAAW;AACTC,SADS,mBACD;AACN,WAAKC,iBAAL;AACD;AAHQ,GAlCH;;AAwCRC,WAAS;AACPD,qBADO,+BACa;AAAA;;AAClB,UAAME,QAAQ,KAAKC,mBAAL,EAAd;AACAD,YAAME,MAAN,CAAa,eAAb,EAA8BC,kBAA9B;AACAH,YAAME,MAAN,CAAa,wBAAb,EAAuCC,kBAAvC;;AAEAH,YAAMI,IAAN,CAAW,eAAO;AAChB,YAAMC,QAAQC,GAAGC,iBAAH,GAAuBC,WAArC,CADgB,CACkC;AAClD,YAAMC,UAAWC,IAAI,CAAJ,EAAOC,KAAR,IAAkB,MAAMN,KAAxB,CAAhB;AACA,YAAMO,WAAYF,IAAI,CAAJ,EAAOC,KAAR,IAAkB,MAAMN,KAAxB,CAAjB,CAHgB,CAGkC;;AAElD;AACA,YAAIO,YAAYH,OAAhB,EAAyB;AACvB,gBAAKI,OAAL,CAAa;AACXtB,wBAAY;AADD,WAAb;;AAIA;AACD;;AAED,YAAMI,WAAWiB,WAAW,MAAKlB,IAAL,CAAUJ,KAAtC;;AAEA,cAAKuB,OAAL,CAAa;AACXlB,oBAAUmB,SAASnB,QAAT;AADC,SAAb;AAGD,OAnBD;AAoBD;AA1BM;AAxCD,CAAV,E","file":"bld-notice-bar/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 = 39);\n","Component({\n externalClasses: ['custom-class'],\n \n options: {\n addGlobalClass: true,\n multipleSlots: true // 在组件定义时的选项中启用多slot支持\n },\n \n properties: {\n // 延迟播放时长\n delay: {\n type: Number,\n value: 1\n },\n // 滚动速度 rpx/s\n speed: {\n type: Number,\n value: 150\n },\n // 长度溢出时自动滚动播放\n scrollable: {\n type: Boolean,\n value: true\n },\n multiline: {\n type: Boolean,\n value: false\n }\n },\n\n data: {\n delaySec: 0,\n },\n\n lifetimes: {\n ready() {\n this.getContainerWidth()\n }\n },\n\n methods: {\n getContainerWidth() {\n const query = this.createSelectorQuery()\n query.select('.m-notice-bar').boundingClientRect()\n query.select('.m-notice-bar__content').boundingClientRect()\n\n query.exec(res => {\n const wrapW = wx.getSystemInfoSync().windowWidth // 容器宽度\n const noticeW = (res[0].width) * (750 / wrapW)\n const containW = (res[1].width) * (750 / wrapW) // 内容宽度(折合为rpx)\n \n // 内容宽度小于内容区域宽度,则不滚动\n if (containW <= noticeW) {\n this.setData({\n scrollable: false\n })\n\n return;\n }\n\n const delaySec = containW / this.data.speed\n\n this.setData({\n delaySec: parseInt(delaySec)\n })\n })\n }\n }\n});\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<view class="m-notice-bar__wrap custom-class">
|
|
2
|
+
|
|
3
|
+
<slot name="preifx" />
|
|
4
|
+
|
|
5
|
+
<view class="m-notice-bar">
|
|
6
|
+
<view
|
|
7
|
+
class="m-notice-bar__content {{ !scrollable ? 'is-ellipsis' : '' }} {{ multiline ? 'is-multiline':'' }}"
|
|
8
|
+
style="{{ notice.setAnimation(scrollable, delaySec, speed, delay) }}"
|
|
9
|
+
>
|
|
10
|
+
<slot />
|
|
11
|
+
</view>
|
|
12
|
+
</view>
|
|
13
|
+
|
|
14
|
+
<slot name="suffix" />
|
|
15
|
+
</view>
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<wxs module="notice">
|
|
19
|
+
function setAnimation(scrollable, sec, speed, delay) {
|
|
20
|
+
if(!scrollable || sec === 0) return ''
|
|
21
|
+
|
|
22
|
+
return [
|
|
23
|
+
'animation: once '+ sec +'s linear ' + delay + 's, round '+ (sec + 750 / speed) +'s linear '+ (sec + delay) +'s infinite',
|
|
24
|
+
].join(';');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = {
|
|
28
|
+
setAnimation: setAnimation
|
|
29
|
+
}
|
|
30
|
+
</wxs>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.m-notice-bar__wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
font-size: 28rpx;
|
|
6
|
+
color: #ed6a0c;
|
|
7
|
+
background-color: #fffbe8;
|
|
8
|
+
}
|
|
9
|
+
.m-notice-bar__wrap .m-notice-bar {
|
|
10
|
+
flex: 1;
|
|
11
|
+
position: relative;
|
|
12
|
+
padding: 20rpx 16rpx;
|
|
13
|
+
min-height: 76rpx;
|
|
14
|
+
line-height: 1.4;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
.m-notice-bar__wrap .m-notice-bar .m-notice-bar__content {
|
|
19
|
+
z-index: 0;
|
|
20
|
+
position: absolute;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
transform: translateX(0);
|
|
23
|
+
}
|
|
24
|
+
.m-notice-bar__wrap .m-notice-bar .is-ellipsis {
|
|
25
|
+
position: static;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
}
|
|
30
|
+
.m-notice-bar__wrap .m-notice-bar .is-multiline {
|
|
31
|
+
position: static;
|
|
32
|
+
overflow: auto;
|
|
33
|
+
white-space: normal;
|
|
34
|
+
-webkit-overflow-scrolling: touch;
|
|
35
|
+
}
|
|
36
|
+
@keyframes once {
|
|
37
|
+
0% {
|
|
38
|
+
transform: translateX(0);
|
|
39
|
+
}
|
|
40
|
+
100% {
|
|
41
|
+
transform: translateX(-100%);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
@keyframes round {
|
|
45
|
+
0% {
|
|
46
|
+
transform: translateX(750rpx);
|
|
47
|
+
}
|
|
48
|
+
100% {
|
|
49
|
+
transform: translateX(-100%);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -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 = 40);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 40:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/cell/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","properties","icon","String","value","image","title","isMultiple","Boolean","border","iconColor","linkType","url","methods","updateCellBorder","setData","onClick","triggerEvent","data","wx","call"],"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,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,aAAW;AACT,2BAAuB;AACrBC,YAAM;AADe;AADd,GAPH;;AAaRC,cAAY;AACVC,UAAM;AACJF,YAAMG,MADF;AAEJC,aAAO;AAFH,KADI;;AAMVC,WAAO;AACLL,YAAMG,MADD;AAELC,aAAO;AAFF,KANG;;AAWVE,WAAO;AACLN,YAAMG,MADD;AAELC,aAAO;AAFF,KAXG;;AAgBVA,WAAO;AACLJ,YAAMG,MADD;AAELC,aAAO;AAFF,KAhBG;;AAqBVG,gBAAY;AACVP,YAAMQ,OADI;AAEVJ,aAAO;AAFG,KArBF;;AA0BVK,YAAQ;AACNT,YAAMQ,OADA;AAENJ,aAAO;AAFD,KA1BE;;AA+BVM,eAAW;AACTV,YAAMG,MADG;AAETC,aAAO;AAFE,KA/BD;;AAoCV;AACAO,cAAU;AACRX,YAAMG,MADE;AAERC,aAAO;AAFC,KArCA;;AA0CVQ,SAAK;AACHZ,YAAMG,MADH;AAEHC,aAAO;AAFJ;AA1CK,GAbJ;;AA8DRS,WAAS;AACPC,oBADO,4BACUL,MADV,EACkB;AACvB,WAAKM,OAAL,CAAa;AACXN;AADW,OAAb;AAGD,KALM;AAOPO,WAPO,qBAOG;AACR,WAAKC,YAAL,CAAkB,OAAlB;;AAEA,UAAML,MAAM,KAAKM,IAAL,CAAUN,GAAtB;AACA,UAAI,CAACA,GAAL,EAAU;;AAEVO,SAAG,KAAKD,IAAL,CAAUP,QAAb,EAAuBS,IAAvB,CAA4BD,EAA5B,EAAgC;AAC9BP;AAD8B,OAAhC;AAGD;AAhBM;AA9DD,CAAV,E","file":"cell/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/cell/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","properties","icon","String","value","image","title","isMultiple","Boolean","border","iconColor","linkType","url","methods","updateCellBorder","setData","onClick","triggerEvent","data","wx","call"],"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,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,aAAW;AACT,2BAAuB;AACrBC,YAAM;AADe;AADd,GAPH;;AAaRC,cAAY;AACVC,UAAM;AACJF,YAAMG,MADF;AAEJC,aAAO;AAFH,KADI;;AAMVC,WAAO;AACLL,YAAMG,MADD;AAELC,aAAO;AAFF,KANG;;AAWVE,WAAO;AACLN,YAAMG,MADD;AAELC,aAAO;AAFF,KAXG;;AAgBVA,WAAO;AACLJ,YAAMG,MADD;AAELC,aAAO;AAFF,KAhBG;;AAqBVG,gBAAY;AACVP,YAAMQ,OADI;AAEVJ,aAAO;AAFG,KArBF;;AA0BVK,YAAQ;AACNT,YAAMQ,OADA;AAENJ,aAAO;AAFD,KA1BE;;AA+BVM,eAAW;AACTV,YAAMG,MADG;AAETC,aAAO;AAFE,KA/BD;;AAoCV;AACAO,cAAU;AACRX,YAAMG,MADE;AAERC,aAAO;AAFC,KArCA;;AA0CVQ,SAAK;AACHZ,YAAMG,MADH;AAEHC,aAAO;AAFJ;AA1CK,GAbJ;;AA8DRS,WAAS;AACPC,oBADO,4BACUL,MADV,EACkB;AACvB,WAAKM,OAAL,CAAa;AACXN;AADW,OAAb;AAGD,KALM;AAOPO,WAPO,qBAOG;AACR,WAAKC,YAAL,CAAkB,OAAlB;;AAEA,UAAML,MAAM,KAAKM,IAAL,CAAUN,GAAtB;AACA,UAAI,CAACA,GAAL,EAAU;;AAEVO,SAAG,KAAKD,IAAL,CAAUP,QAAb,EAAuBS,IAAvB,CAA4BD,EAA5B,EAAgC;AAC9BP;AAD8B,OAAhC;AAGD;AAhBM;AA9DD,CAAV,E","file":"cell/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 = 40);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../cell-group/index': {\n type: 'ancestor'\n }\n },\n\n properties: {\n icon: {\n type: String,\n value: ''\n },\n\n image: {\n type: String,\n value: ''\n },\n\n title: {\n type: String,\n value: ''\n },\n\n value: {\n type: String,\n value: ''\n },\n\n isMultiple: {\n type: Boolean,\n value: false\n },\n\n border: {\n type: Boolean,\n value: false\n },\n\n iconColor: {\n type: String,\n value: ''\n },\n\n // 链接类型,可选值为 navigateTo,redirectTo,switchTab\n linkType: {\n type: String,\n value: 'navigateTo'\n },\n\n url: {\n type: String,\n value: ''\n }\n },\n\n\n methods: {\n updateCellBorder(border) {\n this.setData({\n border\n })\n },\n\n onClick() {\n this.triggerEvent('click')\n\n const url = this.data.url\n if (!url) return\n\n wx[this.data.linkType].call(wx, {\n url\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 = 41);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 41:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/cell-group/index.js"],"names":["Component","externalClasses","options","addGlobalClass","multipleSlots","relations","type","linked","_updateChildren","linkChanged","_updateDataChange","unlinked","properties","title","String","value","card","Boolean","border","observer","val","methods","timer","clearTimeout","setTimeout","cells","getRelationNodes","len","length","lastIndex","forEach","cell","index","updateCellBorder","data"],"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,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB,IADT;AAEPC,mBAAe;AAFR,GAHD;;AAQRC,aAAW;AACT,qBAAiB;AACfC,YAAM,YADS;;AAGfC,YAHe,oBAGN;AACP,aAAKC,eAAL;AACD,OALc;AAOfC,iBAPe,yBAOD;AACZ,aAAKC,iBAAL;AACD,OATc;AAWfC,cAXe,sBAWJ;AACT,aAAKH,eAAL;AACD;AAbc;AADR,GARH;;AA0BRI,cAAY;AACVC,WAAO;AACLP,YAAMQ,MADD;AAELC,aAAO;AAFF,KADG;;AAMVC,UAAM;AACJV,YAAMW,OADF;AAEJF,aAAO;AAFH,KANI;;AAWVG,YAAQ;AACNZ,YAAMW,OADA;AAENF,aAAO,KAFD;AAGNI,cAHM,oBAGGC,GAHH,EAGQ;AACZ,aAAKZ,eAAL;AACD;AALK;AAXE,GA1BJ;;AA8CRa,WAAS;AACPb,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKc,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;;AAE5B,YAAIC,QAAQ,MAAKC,gBAAL,CAAsB,eAAtB,CAAZ;AACA,YAAMC,MAAMF,MAAMG,MAAlB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX,cAAIE,YAAYF,MAAM,CAAtB;;AAEAF,gBAAMK,OAAN,CAAc,UAACC,IAAD,EAAOC,KAAP,EAAiB;AAC7BD,iBAAKE,gBAAL,CAAsB,MAAKC,IAAL,CAAUhB,MAAV,IAAoBc,UAAUH,SAApD;AACD,WAFD;AAGD;AACF,OAZY,EAYV,EAZU,CAAb;AAaD;AAtBM;AA9CD,CAAV,E","file":"cell-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 =
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/cell-group/index.js"],"names":["Component","externalClasses","options","addGlobalClass","multipleSlots","relations","type","linked","_updateChildren","linkChanged","_updateDataChange","unlinked","properties","title","String","value","card","Boolean","border","observer","val","methods","timer","clearTimeout","setTimeout","cells","getRelationNodes","len","length","lastIndex","forEach","cell","index","updateCellBorder","data"],"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,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB,IADT;AAEPC,mBAAe;AAFR,GAHD;;AAQRC,aAAW;AACT,qBAAiB;AACfC,YAAM,YADS;;AAGfC,YAHe,oBAGN;AACP,aAAKC,eAAL;AACD,OALc;AAOfC,iBAPe,yBAOD;AACZ,aAAKC,iBAAL;AACD,OATc;AAWfC,cAXe,sBAWJ;AACT,aAAKH,eAAL;AACD;AAbc;AADR,GARH;;AA0BRI,cAAY;AACVC,WAAO;AACLP,YAAMQ,MADD;AAELC,aAAO;AAFF,KADG;;AAMVC,UAAM;AACJV,YAAMW,OADF;AAEJF,aAAO;AAFH,KANI;;AAWVG,YAAQ;AACNZ,YAAMW,OADA;AAENF,aAAO,KAFD;AAGNI,cAHM,oBAGGC,GAHH,EAGQ;AACZ,aAAKZ,eAAL;AACD;AALK;AAXE,GA1BJ;;AA8CRa,WAAS;AACPb,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKc,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;;AAE5B,YAAIC,QAAQ,MAAKC,gBAAL,CAAsB,eAAtB,CAAZ;AACA,YAAMC,MAAMF,MAAMG,MAAlB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX,cAAIE,YAAYF,MAAM,CAAtB;;AAEAF,gBAAMK,OAAN,CAAc,UAACC,IAAD,EAAOC,KAAP,EAAiB;AAC7BD,iBAAKE,gBAAL,CAAsB,MAAKC,IAAL,CAAUhB,MAAV,IAAoBc,UAAUH,SAApD;AACD,WAFD;AAGD;AACF,OAZY,EAYV,EAZU,CAAb;AAaD;AAtBM;AA9CD,CAAV,E","file":"cell-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 = 41);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n multipleSlots: true\n },\n\n relations: {\n '../cell/index': {\n type: 'descendant',\n\n linked() {\n this._updateChildren()\n },\n\n linkChanged() {\n this._updateDataChange();\n },\n\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n title: {\n type: String,\n value: ''\n },\n\n card: {\n type: Boolean,\n value: false\n },\n\n border: {\n type: Boolean,\n value: false,\n observer(val) {\n this._updateChildren()\n }\n }\n },\n\n methods: {\n _updateChildren() {\n\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n\n let cells = this.getRelationNodes('../cell/index')\n const len = cells.length\n\n if (len > 0) {\n let lastIndex = len - 1\n\n cells.forEach((cell, index) => {\n cell.updateCellBorder(this.data.border && index !== lastIndex)\n })\n }\n }, 60)\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 = 42);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 42:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/grid/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","height","String","value","observer","columnCount","Number","border","Boolean","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","width","data","forEach","child","index","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;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,0BAAsB;AACpBC,YAAM,OADc;AAEpBC,YAFoB,oBAEX;AACP,aAAKC,eAAL;AACD,OAJmB;AAKpBC,cALoB,sBAKT;AACT,aAAKD,eAAL;AACD;AAPmB;AADb,GANH;;AAkBRE,cAAY;AACVC,YAAQ;AACNL,YAAMM,MADA;AAENC,aAAO,MAFD;AAGNC,gBAAU;AAHJ,KADE;;AAOVC,iBAAa;AACXT,YAAMU,MADK;AAEXH,aAAO,CAFI;AAGXC,gBAAU;AAHC,KAPH;;AAaVG,YAAQ;AACNX,YAAMY,OADA;AAENL,aAAO,KAFD;AAGNC,gBAAU;AAHJ;AAbE,GAlBJ;;AAsCRK,WAAS;AACPX,mBADO,6BACW;AAAA;;AAEhB;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;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAMC,QAAW,MAAM,MAAKC,IAAL,CAAUb,WAA3B,MAAN;;AAEA,YAAIU,MAAM,CAAV,EAAa;AACXF,mBAASM,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjCD,kBAAME,OAAN,CAAc;AACZL,0BADY;AAEZhB,sBAAQ,MAAKiB,IAAL,CAAUjB,MAFN;AAGZM,sBAAQ,MAAKW,IAAL,CAAUX;AAHN,aAAd;AAKD,WAND;AAOD;AACF,OAhBY,EAgBV,EAhBU,CAAb;AAiBD;AA1BM;AAtCD,CAAV,E","file":"grid/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/grid/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","height","String","value","observer","columnCount","Number","border","Boolean","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","width","data","forEach","child","index","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;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,0BAAsB;AACpBC,YAAM,OADc;AAEpBC,YAFoB,oBAEX;AACP,aAAKC,eAAL;AACD,OAJmB;AAKpBC,cALoB,sBAKT;AACT,aAAKD,eAAL;AACD;AAPmB;AADb,GANH;;AAkBRE,cAAY;AACVC,YAAQ;AACNL,YAAMM,MADA;AAENC,aAAO,MAFD;AAGNC,gBAAU;AAHJ,KADE;;AAOVC,iBAAa;AACXT,YAAMU,MADK;AAEXH,aAAO,CAFI;AAGXC,gBAAU;AAHC,KAPH;;AAaVG,YAAQ;AACNX,YAAMY,OADA;AAENL,aAAO,KAFD;AAGNC,gBAAU;AAHJ;AAbE,GAlBJ;;AAsCRK,WAAS;AACPX,mBADO,6BACW;AAAA;;AAEhB;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;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAMC,QAAW,MAAM,MAAKC,IAAL,CAAUb,WAA3B,MAAN;;AAEA,YAAIU,MAAM,CAAV,EAAa;AACXF,mBAASM,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjCD,kBAAME,OAAN,CAAc;AACZL,0BADY;AAEZhB,sBAAQ,MAAKiB,IAAL,CAAUjB,MAFN;AAGZM,sBAAQ,MAAKW,IAAL,CAAUX;AAHN,aAAd;AAKD,WAND;AAOD;AACF,OAhBY,EAgBV,EAhBU,CAAb;AAiBD;AA1BM;AAtCD,CAAV,E","file":"grid/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\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../grid-item/index': {\n type: 'child',\n linked() {\n this._updateChildren()\n },\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n height: {\n type: String,\n value: 'auto',\n observer: '_updateChildren'\n },\n\n columnCount: {\n type: Number,\n value: 4,\n observer: '_updateChildren'\n },\n\n border: {\n type: Boolean,\n value: false,\n observer: '_updateChildren'\n }\n },\n\n methods: {\n _updateChildren() {\n\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('../grid-item/index')\n const len = children.length\n\n const width = `${100 / this.data.columnCount}%`;\n\n if (len > 0) {\n children.forEach((child, index) => {\n child.setData({\n width,\n height: this.data.height,\n border: this.data.border\n })\n })\n }\n }, 60)\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 = 43);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 43:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/grid-item/index.js"],"names":["Component","options","addGlobalClass","relations","type","properties","icon","String","value","iconColor","iconSize","Number","badgeDot","Boolean","badgeValue","optionalTypes","text","useSlot","linkType","url","data","width","height","border","methods","onClick","triggerEvent","wx","call"],"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,WAAS;AACPC,oBAAgB;AADT,GADD;;AAKRC,aAAW;AACT,qBAAiB;AACfC,YAAM;AADS;AADR,GALH;;AAWRC,cAAY;AACVC,UAAM;AACJF,YAAMG,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,eAAW;AACTL,YAAMG,MADG;AAETC,aAAO;AAFE,KALD;AASVE,cAAU;AACRN,YAAMO,MADE;AAERH,aAAO;AAFC,KATA;AAaVI,cAAU;AACRR,YAAMS,OADE;AAERL,aAAO;AAFC,KAbA;AAiBVM,gBAAY;AACVV,YAAMG,MADI;AAEVQ,qBAAe,CAACJ,MAAD,EAASJ,MAAT,CAFL;AAGVC,aAAO;AAHG,KAjBF;AAsBVQ,UAAM;AACJZ,YAAMG,MADF;AAEJC,aAAO;AAFH,KAtBI;AA0BVS,aAAS;AACPb,YAAMS,OADC;AAEPL,aAAO;AAFA,KA1BC;;AA+BV;AACAU,cAAU;AACRd,YAAMG,MADE;AAERC,aAAO;AAFC,KAhCA;AAoCVW,SAAK;AACHf,YAAMG,MADH;AAEHC,aAAO;AAFJ;AApCK,GAXJ;;AAqDRY,QAAM;AACJC,WAAO,EADH;AAEJC,YAAQ,EAFJ;AAGJC,YAAQ;AAHJ,GArDE;;AA2DRC,WAAS;AACPC,WADO,qBACG;AACR,WAAKC,YAAL,CAAkB,OAAlB;;AAEA,UAAMP,MAAM,KAAKC,IAAL,CAAUD,GAAtB;AACA,UAAI,CAACA,GAAL,EAAU;;AAEVQ,SAAG,KAAKP,IAAL,CAAUF,QAAb,EAAuBU,IAAvB,CAA4BD,EAA5B,EAAgC;AAC9BR;AAD8B,OAAhC;AAGD;AAVM;AA3DD,CAAV,E","file":"grid-item/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/grid-item/index.js"],"names":["Component","options","addGlobalClass","relations","type","properties","icon","String","value","iconColor","iconSize","Number","badgeDot","Boolean","badgeValue","optionalTypes","text","useSlot","linkType","url","data","width","height","border","methods","onClick","triggerEvent","wx","call"],"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,WAAS;AACPC,oBAAgB;AADT,GADD;;AAKRC,aAAW;AACT,qBAAiB;AACfC,YAAM;AADS;AADR,GALH;;AAWRC,cAAY;AACVC,UAAM;AACJF,YAAMG,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,eAAW;AACTL,YAAMG,MADG;AAETC,aAAO;AAFE,KALD;AASVE,cAAU;AACRN,YAAMO,MADE;AAERH,aAAO;AAFC,KATA;AAaVI,cAAU;AACRR,YAAMS,OADE;AAERL,aAAO;AAFC,KAbA;AAiBVM,gBAAY;AACVV,YAAMG,MADI;AAEVQ,qBAAe,CAACJ,MAAD,EAASJ,MAAT,CAFL;AAGVC,aAAO;AAHG,KAjBF;AAsBVQ,UAAM;AACJZ,YAAMG,MADF;AAEJC,aAAO;AAFH,KAtBI;AA0BVS,aAAS;AACPb,YAAMS,OADC;AAEPL,aAAO;AAFA,KA1BC;;AA+BV;AACAU,cAAU;AACRd,YAAMG,MADE;AAERC,aAAO;AAFC,KAhCA;AAoCVW,SAAK;AACHf,YAAMG,MADH;AAEHC,aAAO;AAFJ;AApCK,GAXJ;;AAqDRY,QAAM;AACJC,WAAO,EADH;AAEJC,YAAQ,EAFJ;AAGJC,YAAQ;AAHJ,GArDE;;AA2DRC,WAAS;AACPC,WADO,qBACG;AACR,WAAKC,YAAL,CAAkB,OAAlB;;AAEA,UAAMP,MAAM,KAAKC,IAAL,CAAUD,GAAtB;AACA,UAAI,CAACA,GAAL,EAAU;;AAEVQ,SAAG,KAAKP,IAAL,CAAUF,QAAb,EAAuBU,IAAvB,CAA4BD,EAA5B,EAAgC;AAC9BR;AAD8B,OAAhC;AAGD;AAVM;AA3DD,CAAV,E","file":"grid-item/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 options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../grid/index': {\n type: 'parent'\n }\n },\n\n properties: {\n icon: {\n type: String,\n value: ''\n },\n iconColor: {\n type: String,\n value: ''\n },\n iconSize: {\n type: Number,\n value: 48\n },\n badgeDot: {\n type: Boolean,\n value: false\n },\n badgeValue: {\n type: String,\n optionalTypes: [Number, String],\n value: ''\n },\n text: {\n type: String,\n value: ''\n },\n useSlot: {\n type: Boolean,\n value: false\n },\n\n // 链接类型,可选值为 navigateTo,redirectTo,switchTab\n linkType: {\n type: String,\n value: 'navigateTo'\n },\n url: {\n type: String,\n value: ''\n }\n },\n\n data: {\n width: '',\n height: '',\n border: false\n },\n\n methods: {\n onClick() {\n this.triggerEvent('click')\n\n const url = this.data.url\n if (!url) return\n\n wx[this.data.linkType].call(wx, {\n url\n })\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 = 44);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 44:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/timeline/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","linkChanged","_updateDataChange","unlinked","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","lastIndex","forEach","child","index","setData","isLast"],"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;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,8BAA0B;AACxBC,YAAM,YADkB;;AAGxBC,YAHwB,oBAGf;AACP,aAAKC,eAAL;AACD,OALuB;AAOxBC,iBAPwB,yBAOV;AACZ,aAAKC,iBAAL;AACD,OATuB;AAWxBC,cAXwB,sBAWb;AACT,aAAKH,eAAL;AACD;AAbuB;AADjB,GANH;;AAwBRI,WAAS;AACPJ,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKK,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;AAC5B,YAAIC,WAAW,MAAKC,gBAAL,CAAsB,wBAAtB,CAAf;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX,cAAIE,YAAYF,MAAM,CAAtB;;AAEAF,mBAASK,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjCD,kBAAME,OAAN,CAAc;AACZC,sBAAQF,UAAUH;AADN,aAAd;AAGD,WAJD;AAKD;AACF,OAbY,EAaV,EAbU,CAAb;AAcD;AAvBM;AAxBD,CAAV,E","file":"timeline/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/timeline/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","linkChanged","_updateDataChange","unlinked","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","lastIndex","forEach","child","index","setData","isLast"],"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;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,8BAA0B;AACxBC,YAAM,YADkB;;AAGxBC,YAHwB,oBAGf;AACP,aAAKC,eAAL;AACD,OALuB;AAOxBC,iBAPwB,yBAOV;AACZ,aAAKC,iBAAL;AACD,OATuB;AAWxBC,cAXwB,sBAWb;AACT,aAAKH,eAAL;AACD;AAbuB;AADjB,GANH;;AAwBRI,WAAS;AACPJ,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKK,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;AAC5B,YAAIC,WAAW,MAAKC,gBAAL,CAAsB,wBAAtB,CAAf;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX,cAAIE,YAAYF,MAAM,CAAtB;;AAEAF,mBAASK,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjCD,kBAAME,OAAN,CAAc;AACZC,sBAAQF,UAAUH;AADN,aAAd;AAGD,WAJD;AAKD;AACF,OAbY,EAaV,EAbU,CAAb;AAcD;AAvBM;AAxBD,CAAV,E","file":"timeline/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 = 44);\n","Component({\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../timeline-item/index': {\n type: 'descendant',\n\n linked() {\n this._updateChildren()\n },\n\n linkChanged() {\n this._updateDataChange();\n },\n\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n methods: {\n _updateChildren() {\n\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n let children = this.getRelationNodes('../timeline-item/index')\n const len = children.length\n\n if (len > 0) {\n let lastIndex = len - 1\n\n children.forEach((child, index) => {\n child.setData({\n isLast: index === lastIndex\n })\n })\n }\n }, 60)\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 = 45);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 45:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/timeline-item/index.js"],"names":["Component","options","addGlobalClass","relations","type","properties","icon","String","text","color","data","isLast"],"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;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,yBAAqB;AACnBC,YAAM;AADa;AADZ,GANH;;AAYRC,cAAY;AACVC,UAAM;AACJF,YAAMG;AADF,KADI;AAIVC,UAAM;AACJJ,YAAMG;AADF,KAJI;AAOVE,WAAO;AACLL,YAAMG;AADD;AAPG,GAZJ;;AAwBRG,QAAM;AACJC,YAAQ;AADJ;AAxBE,CAAV,E","file":"timeline-item/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/timeline-item/index.js"],"names":["Component","options","addGlobalClass","relations","type","properties","icon","String","text","color","data","isLast"],"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;;AAERC,WAAS;AACPC,oBAAgB;AADT,GAFD;;AAMRC,aAAW;AACT,yBAAqB;AACnBC,YAAM;AADa;AADZ,GANH;;AAYRC,cAAY;AACVC,UAAM;AACJF,YAAMG;AADF,KADI;AAIVC,UAAM;AACJJ,YAAMG;AADF,KAJI;AAOVE,WAAO;AACLL,YAAMG;AADD;AAPG,GAZJ;;AAwBRG,QAAM;AACJC,YAAQ;AADJ;AAxBE,CAAV,E","file":"timeline-item/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 = 45);\n","Component({\n \n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../timeline/index': {\n type: 'ancestor'\n }\n },\n\n properties: {\n icon: {\n type: String\n },\n text: {\n type: String,\n },\n color: {\n type: String\n }\n },\n\n data: {\n isLast: false\n }\n})"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Component({
|
|
2
|
+
externalClasses: ['custom-class'],
|
|
3
|
+
|
|
4
|
+
options: {
|
|
5
|
+
addGlobalClass: true,
|
|
6
|
+
multipleSlots: true // 在组件定义时的选项中启用多slot支持
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
properties: {
|
|
10
|
+
// 延迟播放时长
|
|
11
|
+
delay: {
|
|
12
|
+
type: Number,
|
|
13
|
+
value: 1
|
|
14
|
+
},
|
|
15
|
+
// 滚动速度 rpx/s
|
|
16
|
+
speed: {
|
|
17
|
+
type: Number,
|
|
18
|
+
value: 150
|
|
19
|
+
},
|
|
20
|
+
// 长度溢出时自动滚动播放
|
|
21
|
+
scrollable: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
value: true
|
|
24
|
+
},
|
|
25
|
+
multiline: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
value: false
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
data: {
|
|
32
|
+
delaySec: 0,
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
lifetimes: {
|
|
36
|
+
ready() {
|
|
37
|
+
this.getContainerWidth()
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
methods: {
|
|
42
|
+
getContainerWidth() {
|
|
43
|
+
const query = this.createSelectorQuery()
|
|
44
|
+
query.select('.m-notice-bar').boundingClientRect()
|
|
45
|
+
query.select('.m-notice-bar__content').boundingClientRect()
|
|
46
|
+
|
|
47
|
+
query.exec(res => {
|
|
48
|
+
const wrapW = wx.getSystemInfoSync().windowWidth // 容器宽度
|
|
49
|
+
const noticeW = (res[0].width) * (750 / wrapW)
|
|
50
|
+
const containW = (res[1].width) * (750 / wrapW) // 内容宽度(折合为rpx)
|
|
51
|
+
|
|
52
|
+
// 内容宽度小于内容区域宽度,则不滚动
|
|
53
|
+
if (containW <= noticeW) {
|
|
54
|
+
this.setData({
|
|
55
|
+
scrollable: false
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const delaySec = containW / this.data.speed
|
|
62
|
+
|
|
63
|
+
this.setData({
|
|
64
|
+
delaySec: parseInt(delaySec)
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.m-notice-bar__wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
font-size: 28rpx;
|
|
6
|
+
color: #ed6a0c;
|
|
7
|
+
background-color: #fffbe8;
|
|
8
|
+
|
|
9
|
+
.m-notice-bar {
|
|
10
|
+
flex: 1;
|
|
11
|
+
position: relative;
|
|
12
|
+
padding: 20rpx 16rpx;
|
|
13
|
+
min-height: 76rpx;
|
|
14
|
+
line-height: 1.4;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
box-sizing:border-box;
|
|
17
|
+
|
|
18
|
+
.m-notice-bar__content {
|
|
19
|
+
z-index: 0;
|
|
20
|
+
position: absolute;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
transform: translateX(0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.is-ellipsis {
|
|
26
|
+
position: static;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.is-multiline {
|
|
33
|
+
position: static;
|
|
34
|
+
overflow: auto;
|
|
35
|
+
white-space: normal;
|
|
36
|
+
-webkit-overflow-scrolling: touch;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes once {
|
|
41
|
+
0% {
|
|
42
|
+
transform: translateX(0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
100% {
|
|
46
|
+
transform: translateX(-100%);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@keyframes round {
|
|
51
|
+
0% {
|
|
52
|
+
transform: translateX(750rpx);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
100% {
|
|
56
|
+
transform: translateX(-100%);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<view class="m-notice-bar__wrap custom-class">
|
|
2
|
+
|
|
3
|
+
<slot name="preifx" />
|
|
4
|
+
|
|
5
|
+
<view class="m-notice-bar">
|
|
6
|
+
<view
|
|
7
|
+
class="m-notice-bar__content {{ !scrollable ? 'is-ellipsis' : '' }} {{ multiline ? 'is-multiline':'' }}"
|
|
8
|
+
style="{{ notice.setAnimation(scrollable, delaySec, speed, delay) }}"
|
|
9
|
+
>
|
|
10
|
+
<slot />
|
|
11
|
+
</view>
|
|
12
|
+
</view>
|
|
13
|
+
|
|
14
|
+
<slot name="suffix" />
|
|
15
|
+
</view>
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<wxs module="notice">
|
|
19
|
+
function setAnimation(scrollable, sec, speed, delay) {
|
|
20
|
+
if(!scrollable || sec === 0) return ''
|
|
21
|
+
|
|
22
|
+
return [
|
|
23
|
+
'animation: once '+ sec +'s linear ' + delay + 's, round '+ (sec + 750 / speed) +'s linear '+ (sec + delay) +'s infinite',
|
|
24
|
+
].join(';');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = {
|
|
28
|
+
setAnimation: setAnimation
|
|
29
|
+
}
|
|
30
|
+
</wxs>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.m-notice-bar__wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
font-size: 28rpx;
|
|
6
|
+
color: #ed6a0c;
|
|
7
|
+
background-color: #fffbe8;
|
|
8
|
+
}
|
|
9
|
+
.m-notice-bar__wrap .m-notice-bar {
|
|
10
|
+
flex: 1;
|
|
11
|
+
position: relative;
|
|
12
|
+
padding: 20rpx 16rpx;
|
|
13
|
+
min-height: 76rpx;
|
|
14
|
+
line-height: 1.4;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
.m-notice-bar__wrap .m-notice-bar .m-notice-bar__content {
|
|
19
|
+
z-index: 0;
|
|
20
|
+
position: absolute;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
transform: translateX(0);
|
|
23
|
+
}
|
|
24
|
+
.m-notice-bar__wrap .m-notice-bar .is-ellipsis {
|
|
25
|
+
position: static;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
}
|
|
30
|
+
.m-notice-bar__wrap .m-notice-bar .is-multiline {
|
|
31
|
+
position: static;
|
|
32
|
+
overflow: auto;
|
|
33
|
+
white-space: normal;
|
|
34
|
+
-webkit-overflow-scrolling: touch;
|
|
35
|
+
}
|
|
36
|
+
@keyframes once {
|
|
37
|
+
0% {
|
|
38
|
+
transform: translateX(0);
|
|
39
|
+
}
|
|
40
|
+
100% {
|
|
41
|
+
transform: translateX(-100%);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
@keyframes round {
|
|
45
|
+
0% {
|
|
46
|
+
transform: translateX(750rpx);
|
|
47
|
+
}
|
|
48
|
+
100% {
|
|
49
|
+
transform: translateX(-100%);
|
|
50
|
+
}
|
|
51
|
+
}
|