travel-ui 1.0.1 → 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 CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "travel-ui",
3
- "version": "1.0.1",
4
- "description": "引入了less和ant-design-vue依赖",
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"
package/travel-ui.es.js CHANGED
@@ -1,19 +1,19 @@
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";
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
3
  function u(e) {
4
4
  return /^(?:\d{15}|\d{17}[\dXx])$/.test(e);
5
5
  }
6
- function p(e) {
6
+ function f(e) {
7
7
  return /^1\d{10}$/.test(e);
8
8
  }
9
- function f(e) {
9
+ function p(e) {
10
10
  return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e);
11
11
  }
12
12
  const m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13
13
  __proto__: null,
14
- isValidEmail: f,
14
+ isValidEmail: p,
15
15
  isValidIdCard: u,
16
- isValidPhoneNumber: p
16
+ isValidPhoneNumber: f
17
17
  }, Symbol.toStringTag, { value: "Module" })), x = {
18
18
  class: "tw-airline-info"
19
19
  }, g = /* @__PURE__ */ Object.assign({
@@ -21,17 +21,17 @@ const m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21
21
  }, {
22
22
  __name: "index",
23
23
  setup(e) {
24
- return (t, n) => (i(), r("div", x, [n[1] || (n[1] = o(" 123 ", -1)), c(d(l), {
24
+ return (t, n) => (s(), r("div", x, [n[1] || (n[1] = o(" 123 ", -1)), c(d(_), {
25
25
  type: "primary"
26
26
  }, {
27
- default: _(() => [...n[0] || (n[0] = [o("Primary Button", -1)])]),
27
+ default: l(() => [...n[0] || (n[0] = [o("Primary Button", -1)])]),
28
28
  _: 1
29
29
  })]));
30
30
  }
31
31
  }), b = (e, t) => {
32
32
  const n = e.__vccOpts || e;
33
- for (const [s, a] of t)
34
- n[s] = a;
33
+ for (const [i, a] of t)
34
+ n[i] = a;
35
35
  return n;
36
36
  }, y = /* @__PURE__ */ b(g, [["__scopeId", "data-v-34ed9467"]]), h = {
37
37
  class: "tw-hotel-info"
@@ -40,16 +40,18 @@ const m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
40
  }, {
41
41
  __name: "index",
42
42
  setup(e) {
43
- return (t, n) => (i(), r("div", h));
43
+ return (t, n) => (s(), r("div", h));
44
44
  }
45
- }), R = [y, v], A = function(e) {
46
- R.forEach((t) => {
45
+ }), I = [y, v], R = function(e) {
46
+ I.forEach((t) => {
47
47
  e.component(t.name, t);
48
48
  });
49
- }, O = { install: A, publicJs: m };
49
+ }, C = { install: R, publicJs: m };
50
50
  export {
51
- O as default,
52
- f as isValidEmail,
51
+ y as TWAirlineInfo,
52
+ v as TWHotelInfo,
53
+ C as default,
54
+ p as isValidEmail,
53
55
  u as isValidIdCard,
54
- p as isValidPhoneNumber
56
+ f as isValidPhoneNumber
55
57
  };
package/travel-ui.umd.js CHANGED
@@ -1 +1 @@
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"}})}));
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"}})}));