@tuya-sat/micro-dev-component 0.0.1 → 0.0.5
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/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -231,8 +231,8 @@ function styleInject(css, ref) {
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
var css_248z$1 = ".ruleModal-
|
|
235
|
-
var styles$1 = {"cover":"ruleModal-
|
|
234
|
+
var css_248z$1 = ".ruleModal-module_cover__dkT6q {\n display: none;\n position: fixed;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 10000;\n}\n.ruleModal-module_modal__I0Xxp {\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -68%);\n width: 438px;\n max-height: 400px;\n background-color: #fff;\n background-clip: padding-box;\n border: 0;\n border-radius: 2px;\n box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;\n pointer-events: auto;\n}\n.ruleModal-module_modal__I0Xxp .ruleModal-module_header__omUo2 {\n height: 53px;\n padding-left: 20px;\n line-height: 53px;\n border-bottom: 1px solid #f0f0f0;\n}\n.ruleModal-module_modal__I0Xxp .ruleModal-module_footer__yuYWv {\n border-top: 1px solid #f0f0f0;\n padding: 10px 10px 10px 0px;\n text-align: right;\n}\n.ruleModal-module_modal__I0Xxp .ruleModal-module_footer__yuYWv .ruleModal-module_cancel__O3x0P {\n display: inline-block;\n padding: 4px 14px;\n background: #fff;\n color: #333;\n border-radius: 4px;\n margin-right: 10px;\n cursor: pointer;\n border: 1px solid #d9d9d9;\n}\n.ruleModal-module_modal__I0Xxp .ruleModal-module_footer__yuYWv .ruleModal-module_ok__KQc0K {\n display: inline-block;\n padding: 5px 15px;\n background: #1890ff;\n color: #fff;\n border-radius: 4px;\n cursor: pointer;\n}\n";
|
|
235
|
+
var styles$1 = {"cover":"ruleModal-module_cover__dkT6q","modal":"ruleModal-module_modal__I0Xxp","header":"ruleModal-module_header__omUo2","footer":"ruleModal-module_footer__yuYWv","cancel":"ruleModal-module_cancel__O3x0P","ok":"ruleModal-module_ok__KQc0K"};
|
|
236
236
|
styleInject(css_248z$1);
|
|
237
237
|
|
|
238
238
|
class RuleModal {
|
|
@@ -278,8 +278,8 @@ class RuleModal {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
var css_248z = ".fixed-
|
|
282
|
-
var styles = {"container":"fixed-
|
|
281
|
+
var css_248z = ".fixed-module_container__yByz5 {\n position: fixed;\n z-index: 9999;\n transform: translate(50%, 50%);\n color: #fff;\n border-radius: 50%;\n}\n.fixed-module_mainIcon__bwrzu {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n background-color: #fff;\n cursor: pointer;\n user-select: none;\n box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;\n}\n.fixed-module_mIcon__TTq3k,\n.fixed-module_rIcon__RIGhf {\n position: absolute;\n left: 10px;\n top: 10px;\n width: 30px;\n height: 30px;\n text-align: center;\n line-height: 30px;\n border-radius: 50%;\n transform-origin: 50% 50%;\n background-color: #1890ff;\n transition: all 0.5s;\n cursor: pointer;\n user-select: none;\n}\n.fixed-module_mIconActive__-zslY {\n transform: translate(-60px, 0px);\n}\n.fixed-module_rIconActive__kupXn {\n transform: translate(0px, -60px);\n}\n";
|
|
282
|
+
var styles = {"container":"fixed-module_container__yByz5","mainIcon":"fixed-module_mainIcon__bwrzu","mIcon":"fixed-module_mIcon__TTq3k","rIcon":"fixed-module_rIcon__RIGhf","mIconActive":"fixed-module_mIconActive__-zslY","rIconActive":"fixed-module_rIconActive__kupXn"};
|
|
283
283
|
styleInject(css_248z);
|
|
284
284
|
|
|
285
285
|
class Fixed {
|
|
@@ -329,7 +329,7 @@ class Fixed {
|
|
|
329
329
|
}, onMouseUp: () => {
|
|
330
330
|
const upTime = new Date().valueOf();
|
|
331
331
|
const leftTime = upTime - this.dowmTime;
|
|
332
|
-
if (leftTime >
|
|
332
|
+
if (leftTime > 238) {
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
335
|
this.proxyData.visible = !this.proxyData.visible;
|