travel-ui 1.0.0 → 1.0.2
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/package.json +9 -4
- package/travel-ui.css +1 -0
- package/travel-ui.es.js +35 -22
- package/travel-ui.umd.js +1 -1
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "travel-ui",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "支持按需引入",
|
|
5
5
|
"main": "travel-ui.umd.js",
|
|
6
6
|
"module": "travel-ui.es.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./travel-ui.es.js",
|
|
10
10
|
"require": "./travel-ui.umd.js"
|
|
11
|
-
}
|
|
11
|
+
},
|
|
12
|
+
"./style.css": "./style.css"
|
|
12
13
|
},
|
|
13
14
|
"scripts": {
|
|
14
15
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -16,5 +17,9 @@
|
|
|
16
17
|
"keywords": [],
|
|
17
18
|
"author": "",
|
|
18
19
|
"license": "ISC",
|
|
19
|
-
"type": "commonjs"
|
|
20
|
+
"type": "commonjs",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"less": "^4.4.2",
|
|
23
|
+
"ant-design-vue": "^4.2.6"
|
|
24
|
+
}
|
|
20
25
|
}
|
package/travel-ui.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tw-airline-info[data-v-34ed9467]{color:#1890ff}
|
package/travel-ui.es.js
CHANGED
|
@@ -1,44 +1,57 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
|
|
1
|
+
import { createElementBlock as r, openBlock as s, createTextVNode as o, createVNode as c, unref as d, withCtx as l } from "vue";
|
|
2
|
+
import { Button as _ } from "ant-design-vue";
|
|
3
|
+
function u(e) {
|
|
3
4
|
return /^(?:\d{15}|\d{17}[\dXx])$/.test(e);
|
|
4
5
|
}
|
|
5
|
-
function
|
|
6
|
+
function f(e) {
|
|
6
7
|
return /^1\d{10}$/.test(e);
|
|
7
8
|
}
|
|
8
|
-
function
|
|
9
|
+
function p(e) {
|
|
9
10
|
return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e);
|
|
10
11
|
}
|
|
11
|
-
const
|
|
12
|
+
const m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12
13
|
__proto__: null,
|
|
13
|
-
isValidEmail:
|
|
14
|
-
isValidIdCard:
|
|
15
|
-
isValidPhoneNumber:
|
|
16
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
14
|
+
isValidEmail: p,
|
|
15
|
+
isValidIdCard: u,
|
|
16
|
+
isValidPhoneNumber: f
|
|
17
|
+
}, Symbol.toStringTag, { value: "Module" })), x = {
|
|
17
18
|
class: "tw-airline-info"
|
|
18
|
-
},
|
|
19
|
+
}, g = /* @__PURE__ */ Object.assign({
|
|
19
20
|
name: "TWAirlineInfo"
|
|
20
21
|
}, {
|
|
21
22
|
__name: "index",
|
|
22
23
|
setup(e) {
|
|
23
|
-
return (
|
|
24
|
+
return (t, n) => (s(), r("div", x, [n[1] || (n[1] = o(" 123 ", -1)), c(d(_), {
|
|
25
|
+
type: "primary"
|
|
26
|
+
}, {
|
|
27
|
+
default: l(() => [...n[0] || (n[0] = [o("Primary Button", -1)])]),
|
|
28
|
+
_: 1
|
|
29
|
+
})]));
|
|
24
30
|
}
|
|
25
|
-
}),
|
|
31
|
+
}), b = (e, t) => {
|
|
32
|
+
const n = e.__vccOpts || e;
|
|
33
|
+
for (const [i, a] of t)
|
|
34
|
+
n[i] = a;
|
|
35
|
+
return n;
|
|
36
|
+
}, y = /* @__PURE__ */ b(g, [["__scopeId", "data-v-34ed9467"]]), h = {
|
|
26
37
|
class: "tw-hotel-info"
|
|
27
|
-
},
|
|
38
|
+
}, v = /* @__PURE__ */ Object.assign({
|
|
28
39
|
name: "TWHotelInfo"
|
|
29
40
|
}, {
|
|
30
41
|
__name: "index",
|
|
31
42
|
setup(e) {
|
|
32
|
-
return (
|
|
43
|
+
return (t, n) => (s(), r("div", h));
|
|
33
44
|
}
|
|
34
|
-
}),
|
|
35
|
-
|
|
36
|
-
e.component(
|
|
45
|
+
}), I = [y, v], R = function(e) {
|
|
46
|
+
I.forEach((t) => {
|
|
47
|
+
e.component(t.name, t);
|
|
37
48
|
});
|
|
38
|
-
},
|
|
49
|
+
}, C = { install: R, publicJs: m };
|
|
39
50
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
51
|
+
y as TWAirlineInfo,
|
|
52
|
+
v as TWHotelInfo,
|
|
53
|
+
C as default,
|
|
54
|
+
p as isValidEmail,
|
|
55
|
+
u as isValidIdCard,
|
|
56
|
+
f as isValidPhoneNumber
|
|
44
57
|
};
|
package/travel-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["travel-ui"]={},e.Vue,e.Antd))})(this,(function(e,n,l){"use strict";function s(t){return/^(?:\d{15}|\d{17}[\dXx])$/.test(t)}function r(t){return/^1\d{10}$/.test(t)}function d(t){return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t)}const u=Object.freeze(Object.defineProperty({__proto__:null,isValidEmail:d,isValidIdCard:s,isValidPhoneNumber:r},Symbol.toStringTag,{value:"Module"})),f={class:"tw-airline-info"},a=((t,i)=>{const o=t.__vccOpts||t;for(const[x,g]of i)o[x]=g;return o})(Object.assign({name:"TWAirlineInfo"},{__name:"index",setup(t){return(i,o)=>(n.openBlock(),n.createElementBlock("div",f,[o[1]||(o[1]=n.createTextVNode(" 123 ",-1)),n.createVNode(n.unref(l.Button),{type:"primary"},{default:n.withCtx(()=>[...o[0]||(o[0]=[n.createTextVNode("Primary Button",-1)])]),_:1})]))}}),[["__scopeId","data-v-34ed9467"]]),_={class:"tw-hotel-info"},c=Object.assign({name:"TWHotelInfo"},{__name:"index",setup(t){return(i,o)=>(n.openBlock(),n.createElementBlock("div",_))}}),m=[a,c],p={install:function(t){m.forEach(i=>{t.component(i.name,i)})},publicJs:u};e.TWAirlineInfo=a,e.TWHotelInfo=c,e.default=p,e.isValidEmail=d,e.isValidIdCard=s,e.isValidPhoneNumber=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|