@uiw/doc 4.21.24 → 4.21.26
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 +1 -1
- package/web/asset-manifest.json +16 -16
- package/web/index.html +1 -1
- package/web/static/css/{6397.3be31160.chunk.css → 303.c3bdd8db.chunk.css} +1 -1
- package/web/static/css/303.c3bdd8db.chunk.css.map +1 -0
- package/web/static/js/1358.9b1489c2.chunk.js +3 -0
- package/web/static/js/1358.9b1489c2.chunk.js.map +1 -0
- package/web/static/js/1472.844d1c6d.chunk.js +2 -0
- package/web/static/js/{1472.088665e7.chunk.js.map → 1472.844d1c6d.chunk.js.map} +1 -1
- package/web/static/js/5337.5e08cefb.js +3 -0
- package/web/static/js/{5337.ce7080ca.js.LICENSE.txt → 5337.5e08cefb.js.LICENSE.txt} +5 -2
- package/web/static/js/5337.5e08cefb.js.map +1 -0
- package/web/static/js/7343.2930b911.chunk.js +2 -0
- package/web/static/js/7343.2930b911.chunk.js.map +1 -0
- package/web/static/js/main.b7018779.js +2 -0
- package/web/static/js/main.b7018779.js.map +1 -0
- package/web/static/js/vendors-standalone.c0ea37cc.chunk.js +3 -0
- package/web/static/js/vendors-standalone.c0ea37cc.chunk.js.map +1 -0
- package/web/static/js/vendors-uiwjs.ae838890.js.LICENSE.txt +8 -6
- package/web/static/css/6397.3be31160.chunk.css.map +0 -1
- package/web/static/js/1358.f9cb8e01.chunk.js +0 -3
- package/web/static/js/1358.f9cb8e01.chunk.js.map +0 -1
- package/web/static/js/1472.088665e7.chunk.js +0 -2
- package/web/static/js/5337.ce7080ca.js +0 -3
- package/web/static/js/5337.ce7080ca.js.map +0 -1
- package/web/static/js/7343.0c263694.chunk.js +0 -2
- package/web/static/js/7343.0c263694.chunk.js.map +0 -1
- package/web/static/js/main.21a17237.js +0 -2
- package/web/static/js/main.21a17237.js.map +0 -1
- package/web/static/js/vendors-standalone.62139716.chunk.js +0 -3
- package/web/static/js/vendors-standalone.62139716.chunk.js.map +0 -1
- /package/web/static/js/{1358.f9cb8e01.chunk.js.LICENSE.txt → 1358.9b1489c2.chunk.js.LICENSE.txt} +0 -0
- /package/web/static/js/{vendors-standalone.62139716.chunk.js.LICENSE.txt → vendors-standalone.c0ea37cc.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1472],{4934:function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=4934,e.exports=t},3173:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(189),o=n(3782),a=n(1473),s=n(7963),i=n(5142),l=n(6150),c=n(6131),d={docinfo:"index_docinfo__3Vx8S",markdown:"index_markdown__hcQCp",markdownWrap:"index_markdownWrap__t60jR"},m=n(9286);function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).path,t=/^http/.test(e||"")?e:"https://github.com/uiwjs/uiw/blob/master/".concat(e);return(0,m.jsxs)("div",{className:d.docinfo,children:["\u72af\u4e86\u9519\u8bef\u8fd8\u662f\u60f3\u5bf9\u6587\u4ef6\u505a\u51fa\u8d21\u732e\uff1f",t&&(0,m.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"\u5728Github\u4e0a\u7f16\u8f91\u672c\u9875\uff01"}),(0,m.jsx)("br",{}),(0,m.jsx)("a",{href:"https://github.com/uiwjs/uiw/issues",target:"_blank",rel:"noopener noreferrer",children:"\u53cd\u9988\u5efa\u8bae"}),(0,m.jsx)(c.Divider,{type:"vertical"}),(0,m.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw/issues/new",children:"\u63d0\u4ea4bug"}),(0,m.jsx)(c.Divider,{type:"vertical"}),(0,m.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"Github"}),(0,m.jsx)(c.Divider,{type:"vertical"}),(0,m.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,m.jsx)(c.Divider,{type:"vertical"}),(0,m.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt-ssr",children:"@kkt/ssr"}),(0,m.jsx)(c.Divider,{type:"vertical"}),(0,m.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://uiw.gitee.io",children:"\u56fd\u5185\u955c\u50cf"})]})}var p=["inline","node","components","data"],f=["data-meta"],h=function(e){var t,n=e.inline,l=e.node,c=e.components,d=e.data,u=(0,o.Z)(e,p),h=(0,a.useRef)(null),w=u,g=w["data-meta"],b=(0,o.Z)(w,f);if((0,a.useEffect)((function(){if(h.current){var e=h.current.parentElement;e&&e.parentElement&&e.parentElement.replaceChild(h.current,e)}}),[h]),n||!(0,i.pN)(g))return(0,m.jsx)("code",(0,r.Z)({},u));var j=null===(t=l.position)||void 0===t?void 0:t.start.line,v=(0,i.Mx)(g)||String(j),k=c["".concat(v)];if(v&&"function"===typeof k){var x=d[v].value||"",D=(0,i.aE)(g);return(0,m.jsx)(s.Z,{ref:h,background:D.bg||D.background,disableCode:"true"===D.nocode,disableToolbar:"true"===D.toolbar,style:{marginBottom:10},toolbar:D.title||"Example",code:(0,m.jsx)("pre",(0,r.Z)({},b)),text:x,children:(0,m.jsx)(k,{})})}return(0,m.jsx)("code",(0,r.Z)({},b))};function w(e){return(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(l.Z,{className:d.markdownWrap,source:e.source||"",disableCopy:!0,warpperElement:{"data-color-mode":"light"},components:{code:function(t){return(0,m.jsx)(h,(0,r.Z)((0,r.Z)({},t),e))}}}),(0,m.jsx)(u,{path:e.path})]})}},7093:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(189),o={components:{},data:{},source:"Formatter\n===\n\n[](https://github.com/uiwjs/date-formatter/actions/workflows/ci.yml) [](https://www.npmjs.com/package/@uiw/formatter) [](https://www.npmjs.com/package/@uiw/formatter)  [](https://coveralls.io/github/uiwjs/date-formatter?branch=master)\n[](https://www.npmjs.com/package/@uiw/formatter)\n\nGet a formatted date.\n\n[](https://codepen.io/jaywcjlove/pen/zbZKmq)\n[](https://codesandbox.io/s/date-formatter-demo-jib1u)\n\n### Install\n\n```bash\n$ npm install --save @uiw/formatter\n```\n\n### Usage\n\n```js\nimport formatter from '@uiw/formatter';\n\nconsole.log(formatter());\n//=> 2019-03-07\n\nconsole.log(formatter.utc());\n//=> 2019-03-07\n\nconsole.log(formatter('YYYY\u5e74MM\u6708DD\u65e5', new Date(2019, 3, 7)))\n//=> 2019\u5e7404\u670807\u65e5\nconsole.log(formatter('YYYY\u5e74MM\u6708DD\u65e5 16:30:29', new Date(2019, 3, 7, 16, 30, 29)))\n//=> 2019\u5e7404\u670807\u65e5 16:30:29\n\n\nconsole.log(formatter('YYYY'));\n//=> 2019\nconsole.log(formatter.utc('YYYY'));\n//=> 2019\n```\n\nOr manually download and link **formatter.js** in your HTML, It can also be downloaded via [UNPKG](https://unpkg.com/@uiw/formatter):\n\n```html\n<div id=\"date\"></div>\n<script src=\"https://unpkg.com/@uiw/formatter/dist/formatter.min.js\"><\/script>\n<script>\n document.getElementById('date').innerHTML = formatter();\n<\/script>\n```\n\nThe above [example preview](https://codepen.io/jaywcjlove/pen/zbZKmq).\n\n### timeZoneConverter\n\nResolve changes in time zone, resulting in inaccurate display server time\n\n```js\nfunction timeZoneConverter(date, timeZone) {\n const oldDate = new Date(date);\n const newDate = new Date();\n const stamp = oldDate.getTime();\n if (!timeZone) return oldDate;\n return (isNaN(timeZone) && !timeZone)\n ? oldDate :\n new Date(stamp + (newDate.getTimezoneOffset() * 60 * 1000) + (timeZone * 60 * 60 * 1000));\n}\ntimeZoneConverter(new Date(1434701732*1000), 8)\n```\n\n## API\n\n```js\nformatter(rule: String, date: Date, utc: Boolean);\nformatter.utc(rule: String, date: Date);\n```\n\n## Supported Patterns\n\n| rule | Description | \u4e2d\u6587\u8bf4\u660e | E.g |\n|--------- |-------- |--------- |-------- |\n| `YYYY` | full year | \u5e74 | `2019` |\n| `MM` | month | \u6708 | `02` |\n| `DD` | day | \u5929 | `05` |\n| `HH` | hours | \u65f6 | `12` |\n| `mm` | minutes | \u5206\u949f | `59` |\n| `ss` | seconds | \u79d2 | `09` |\n| `ms` | milliseconds | \u6beb\u79d2 | `532` |\n"},a=n(3173),s=n(9286);function i(){return(0,s.jsx)(a.Z,(0,r.Z)((0,r.Z)({},o),{},{path:"https://github.com/uiwjs/date-formatter/blob/master/README.md"}))}}}]);
|
|
2
|
-
//# sourceMappingURL=1472.088665e7.chunk.js.map
|