@itera-web/utils-message 1.19.0

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/LICENSE.md ADDED
File without changes
package/README.md ADDED
@@ -0,0 +1 @@
1
+ ### [使用文档](http://iterative.keyboardecho.com/)
package/es/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { message } from './message';
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ import*as r from"sweetalert2";var t={d:(r,o)=>{for(var e in o)t.o(o,e)&&!t.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:o[e]})},o:(r,t)=>Object.prototype.hasOwnProperty.call(r,t)},o={};t.d(o,{y:()=>i});const e=(r=>{var o={};return t.d(o,r),o})({default:()=>r.default});var n=function(r,t,o){if(o||2===arguments.length)for(var e,n=0,a=t.length;n<a;n++)!e&&n in t||(e||(e=Array.prototype.slice.call(t,0,n)),e[n]=t[n]);return r.concat(e||Array.prototype.slice.call(t))};function a(r){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var n={toast:!0,position:"top",icon:r,title:"",showConfirmButton:!1,timer:2e3,timerProgressBar:!1,customClass:{popup:"minimal-toast"},text:null==t?void 0:t.join(" ")};e.default.fire(n).then()}var i={success:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return a.apply(void 0,n(["success"],r,!1))},error:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return a.apply(void 0,n(["error"],r,!1))},warning:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return a.apply(void 0,n(["warning"],r,!1))},info:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return a.apply(void 0,n(["info"],r,!1))},question:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return a.apply(void 0,n(["question"],r,!1))}},l=o.y;export{l as message};
@@ -0,0 +1,7 @@
1
+ export declare const message: {
2
+ success: (...args: (string | number | boolean)[]) => void;
3
+ error: (...args: (string | number | boolean)[]) => void;
4
+ warning: (...args: (string | number | boolean)[]) => void;
5
+ info: (...args: (string | number | boolean)[]) => void;
6
+ question: (...args: (string | number | boolean)[]) => void;
7
+ };
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@itera-web/utils-message",
3
+ "description": "消息框",
4
+ "version": "1.19.0",
5
+ "main": "es/index.js",
6
+ "types": "es/index.d.ts",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "license": "MIT",
11
+ "scripts": {
12
+ "build": "itera-cli package",
13
+ "up": "npm publish"
14
+ },
15
+ "dependencies": {
16
+ "sweetalert2": "^11.4.4"
17
+ },
18
+ "devDependencies": {
19
+ "@itera-web/cli": "^1.1.45"
20
+ },
21
+ "gitHead": "8eee810020627ddc6fb8cb18fbc042cdcec7fb4b"
22
+ }