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