bulade-ui 1.0.0 → 1.0.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-button/index.js +2 -1
- package/miniprogram_dist/bld-button/index.js.map +1 -0
- package/miniprogram_dist/bld-card/index.js +2 -1
- package/miniprogram_dist/bld-card/index.js.map +1 -0
- package/miniprogram_dist/bld-cell/index.js +2 -1
- package/miniprogram_dist/bld-cell/index.js.map +1 -0
- package/miniprogram_dist/bld-cell-field/index.js +2 -1
- package/miniprogram_dist/bld-cell-field/index.js.map +1 -0
- package/miniprogram_dist/bld-cell-group/index.js +2 -1
- package/miniprogram_dist/bld-cell-group/index.js.map +1 -0
- package/miniprogram_dist/bld-drawer/index.js +141 -0
- package/miniprogram_dist/bld-drawer/index.js.map +1 -0
- package/miniprogram_dist/bld-drawer/index.json +3 -0
- package/miniprogram_dist/bld-drawer/index.wxml +14 -0
- package/miniprogram_dist/bld-drawer/index.wxss +57 -0
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js.map +1 -0
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js.map +1 -0
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -0
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js.map +1 -0
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js.map +1 -0
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js.map +1 -0
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js +2 -1
- package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js.map +1 -0
- package/miniprogram_dist/bld-half-screen/index.js +2 -1
- package/miniprogram_dist/bld-half-screen/index.js.map +1 -0
- package/miniprogram_dist/bld-icon/index.js +2 -1
- package/miniprogram_dist/bld-icon/index.js.map +1 -0
- package/miniprogram_dist/bld-loading/index.js +2 -1
- package/miniprogram_dist/bld-loading/index.js.map +1 -0
- package/miniprogram_dist/bld-message/index.js +2 -1
- package/miniprogram_dist/bld-message/index.js.map +1 -0
- package/miniprogram_dist/bld-message/message.js +2 -1
- package/miniprogram_dist/bld-message/message.js.map +1 -0
- package/miniprogram_dist/bld-nav-bar/index.js +2 -1
- package/miniprogram_dist/bld-nav-bar/index.js.map +1 -0
- package/miniprogram_dist/bld-overlay/index.js +2 -1
- package/miniprogram_dist/bld-overlay/index.js.map +1 -0
- package/miniprogram_dist/bld-page/index.js +2 -1
- package/miniprogram_dist/bld-page/index.js.map +1 -0
- package/miniprogram_dist/bld-retry/index.js +2 -1
- package/miniprogram_dist/bld-retry/index.js.map +1 -0
- package/miniprogram_dist/bld-scroll-view/index.js +2 -1
- package/miniprogram_dist/bld-scroll-view/index.js.map +1 -0
- package/miniprogram_dist/bld-text/index.js +2 -1
- package/miniprogram_dist/bld-text/index.js.map +1 -0
- package/miniprogram_dist/bld-toast/index.js +2 -2
- package/miniprogram_dist/bld-toast/index.js.map +1 -0
- package/miniprogram_dist/bld-toast/toast.js +2 -1
- package/miniprogram_dist/bld-toast/toast.js.map +1 -0
- package/miniprogram_dist/bld-wrapper/index.js +2 -1
- package/miniprogram_dist/bld-wrapper/index.js.map +1 -0
- package/miniprogram_dist/button/index.js +2 -1
- package/miniprogram_dist/button/index.js.map +1 -0
- package/miniprogram_dist/cell/index.js +4 -3
- package/miniprogram_dist/cell/index.js.map +1 -0
- package/miniprogram_dist/cell-group/index.js +4 -3
- package/miniprogram_dist/cell-group/index.js.map +1 -0
- package/miniprogram_dist/grid/index.js +4 -3
- package/miniprogram_dist/grid/index.js.map +1 -0
- package/miniprogram_dist/grid-item/index.js +4 -3
- package/miniprogram_dist/grid-item/index.js.map +1 -0
- package/miniprogram_dist/icon/index.js +2 -1
- package/miniprogram_dist/icon/index.js.map +1 -0
- package/miniprogram_dist/timeline/index.js +4 -3
- package/miniprogram_dist/timeline/index.js.map +1 -0
- package/miniprogram_dist/timeline-item/index.js +4 -3
- package/miniprogram_dist/timeline-item/index.js.map +1 -0
- package/package.json +1 -1
- package/src/bld-drawer/index.js +41 -0
- package/src/bld-drawer/index.json +3 -0
- package/src/bld-drawer/index.scss +74 -0
- package/src/bld-drawer/index.wxml +14 -0
- package/src/bld-drawer/index.wxss +57 -0
- package/src/bld-toast/index.js +0 -1
|
@@ -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 = 34);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 34:
|
|
91
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -124,4 +124,5 @@ Component({
|
|
|
124
124
|
|
|
125
125
|
/***/ })
|
|
126
126
|
|
|
127
|
-
/******/ });
|
|
127
|
+
/******/ });
|
|
128
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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 = 34);\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,41 @@
|
|
|
1
|
+
Component({
|
|
2
|
+
externalClasses: ['custom-class'],
|
|
3
|
+
|
|
4
|
+
options: {
|
|
5
|
+
addGlobalClass: true,
|
|
6
|
+
},
|
|
7
|
+
|
|
8
|
+
properties: {
|
|
9
|
+
visible: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
value: false
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
zIndex: {
|
|
15
|
+
type: Number,
|
|
16
|
+
value: 9
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
mask: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
value: true
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
maskClosable: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
value: true
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
position: {
|
|
30
|
+
type: String,
|
|
31
|
+
value: 'bottom' // left right top bottom
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
methods: {
|
|
36
|
+
handleMaskClick() {
|
|
37
|
+
if (!this.data.maskClosable) return
|
|
38
|
+
this.triggerEvent('close')
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
.m-drawer {
|
|
2
|
+
visibility: hidden;
|
|
3
|
+
|
|
4
|
+
&.m-drawer--show {
|
|
5
|
+
visibility: visible;
|
|
6
|
+
|
|
7
|
+
.m-drawer__mask {
|
|
8
|
+
display: block;
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.m-drawer__content {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
transform: translate3d(0, 0, 0) !important;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.m-drawer__mask {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
z-index: 9;
|
|
21
|
+
position: fixed;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
right: 0;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
background-color: var(--color-mask, rgba(0, 0, 0, 0.55));
|
|
27
|
+
transition: opacity .25s ease-in-out, visibility .25s ease-in-out;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.m-drawer__content {
|
|
31
|
+
opacity: 0;
|
|
32
|
+
z-index: 10;
|
|
33
|
+
position: fixed;
|
|
34
|
+
transform-origin: center;
|
|
35
|
+
background-color: #fff;
|
|
36
|
+
transition: transform .25s ease-in-out, opacity .25s ease-in-out, visibility .25s ease-in-out;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.m-drawer--left {
|
|
40
|
+
.m-drawer__content {
|
|
41
|
+
top: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
transform: translate3d(-100%, 0, 0);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.m-drawer--right {
|
|
48
|
+
.m-drawer__content {
|
|
49
|
+
right: 0;
|
|
50
|
+
top: 0;
|
|
51
|
+
transform: translate3d(100%, 0, 0);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.m-drawer--top {
|
|
56
|
+
.m-drawer__content {
|
|
57
|
+
left: 0;
|
|
58
|
+
top: 0;
|
|
59
|
+
width: 100%;
|
|
60
|
+
transform: translate3d(0, -100%, 0);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.m-drawer--bottom {
|
|
65
|
+
.m-drawer__content {
|
|
66
|
+
left: 0;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
width: 100%;
|
|
69
|
+
transform: translate3d(0, 100%, 0);
|
|
70
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
71
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<view class="custom-class m-drawer {{ visible ? 'm-drawer--show' : '' }} {{ 'm-drawer--' + position }}">
|
|
2
|
+
<view
|
|
3
|
+
wx:if="{{ mask }}"
|
|
4
|
+
class="m-drawer__mask"
|
|
5
|
+
style="z-index: {{zIndex}}"
|
|
6
|
+
bindtap="handleMaskClick"
|
|
7
|
+
></view>
|
|
8
|
+
<view
|
|
9
|
+
class="m-drawer__content"
|
|
10
|
+
style="z-index: {{zIndex}}"
|
|
11
|
+
>
|
|
12
|
+
<slot />
|
|
13
|
+
</view>
|
|
14
|
+
</view>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.m-drawer {
|
|
2
|
+
visibility: hidden;
|
|
3
|
+
}
|
|
4
|
+
.m-drawer.m-drawer--show {
|
|
5
|
+
visibility: visible;
|
|
6
|
+
}
|
|
7
|
+
.m-drawer.m-drawer--show .m-drawer__mask {
|
|
8
|
+
display: block;
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
.m-drawer.m-drawer--show .m-drawer__content {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
transform: translate3d(0, 0, 0) !important;
|
|
14
|
+
}
|
|
15
|
+
.m-drawer .m-drawer__mask {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
z-index: 9;
|
|
18
|
+
position: fixed;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
bottom: 0;
|
|
23
|
+
background-color: var(--color-mask, rgba(0, 0, 0, 0.55));
|
|
24
|
+
transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
|
|
25
|
+
}
|
|
26
|
+
.m-drawer .m-drawer__content {
|
|
27
|
+
opacity: 0;
|
|
28
|
+
z-index: 10;
|
|
29
|
+
position: fixed;
|
|
30
|
+
transform-origin: center;
|
|
31
|
+
background-color: #fff;
|
|
32
|
+
transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
|
|
33
|
+
}
|
|
34
|
+
.m-drawer.m-drawer--left .m-drawer__content {
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
transform: translate3d(-100%, 0, 0);
|
|
38
|
+
}
|
|
39
|
+
.m-drawer.m-drawer--right .m-drawer__content {
|
|
40
|
+
right: 0;
|
|
41
|
+
top: 0;
|
|
42
|
+
transform: translate3d(100%, 0, 0);
|
|
43
|
+
}
|
|
44
|
+
.m-drawer.m-drawer--top .m-drawer__content {
|
|
45
|
+
left: 0;
|
|
46
|
+
top: 0;
|
|
47
|
+
width: 100%;
|
|
48
|
+
transform: translate3d(0, -100%, 0);
|
|
49
|
+
}
|
|
50
|
+
.m-drawer.m-drawer--bottom .m-drawer__content {
|
|
51
|
+
left: 0;
|
|
52
|
+
bottom: 0;
|
|
53
|
+
width: 100%;
|
|
54
|
+
transform: translate3d(0, 100%, 0);
|
|
55
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
56
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
57
|
+
}
|