yootd 0.2.37 → 0.2.38

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.
Files changed (26) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/{Preview → preview}/components/preview/phone.js +5 -1
  4. package/dist/{Preview → preview}/components/preview/phone.scss +7 -8
  5. package/dist/utils/script.js +0 -1
  6. package/package.json +1 -1
  7. /package/dist/{Preview → preview}/assets/phonebg.png +0 -0
  8. /package/dist/{Preview → preview}/components/icons/AdaptIcon.d.ts +0 -0
  9. /package/dist/{Preview → preview}/components/icons/AdaptIcon.js +0 -0
  10. /package/dist/{Preview → preview}/components/icons/MagnifyIcon.d.ts +0 -0
  11. /package/dist/{Preview → preview}/components/icons/MagnifyIcon.js +0 -0
  12. /package/dist/{Preview → preview}/components/icons/ResetIcon.d.ts +0 -0
  13. /package/dist/{Preview → preview}/components/icons/ResetIcon.js +0 -0
  14. /package/dist/{Preview → preview}/components/icons/ShrinkIcon.d.ts +0 -0
  15. /package/dist/{Preview → preview}/components/icons/ShrinkIcon.js +0 -0
  16. /package/dist/{Preview → preview}/components/preview/phone.d.ts +0 -0
  17. /package/dist/{Preview → preview}/components/preview/web.d.ts +0 -0
  18. /package/dist/{Preview → preview}/components/preview/web.js +0 -0
  19. /package/dist/{Preview → preview}/components/reactflow/Controls.d.ts +0 -0
  20. /package/dist/{Preview → preview}/components/reactflow/Controls.js +0 -0
  21. /package/dist/{Preview → preview}/components/reactflow/TopPreview.d.ts +0 -0
  22. /package/dist/{Preview → preview}/components/reactflow/TopPreview.js +0 -0
  23. /package/dist/{Preview → preview}/index.d.ts +0 -0
  24. /package/dist/{Preview → preview}/index.js +0 -0
  25. /package/dist/{Preview → preview}/index.scss +0 -0
  26. /package/dist/{Preview → preview}/types/type.d.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -147,7 +147,7 @@ export { Popconfirm } from './pop-confirm';
147
147
  export type { PopconfirmProps } from './pop-confirm';
148
148
  export { Progress } from './progress';
149
149
  export type { ProgressProps } from './progress';
150
- export { Preview } from './Preview';
150
+ export { Preview } from './preview';
151
151
  export { Result } from './result';
152
152
  export type { ResultProps } from './result';
153
153
  export { Skeleton } from './skeleton';
package/dist/index.js CHANGED
@@ -78,7 +78,7 @@ export { Modal } from "./modal";
78
78
  export { notification } from "./notification";
79
79
  export { Popconfirm } from "./pop-confirm";
80
80
  export { Progress } from "./progress";
81
- export { Preview } from "./Preview";
81
+ export { Preview } from "./preview";
82
82
  export { Result } from "./result";
83
83
  export { Skeleton } from "./skeleton";
84
84
  export { Spin } from "./spin";
@@ -1,10 +1,14 @@
1
1
  import React from 'react';
2
2
  import { useBem } from "../../../hooks/useBem";
3
+ import phoeBg from "../../assets/phonebg.png";
3
4
  import "./phone.scss";
4
5
  export default function Phone(_ref) {
5
6
  var data = _ref.data;
6
7
  var mb = useBem('preview-phone');
7
8
  return /*#__PURE__*/React.createElement("div", {
8
- className: "".concat(mb)
9
+ className: "".concat(mb),
10
+ style: {
11
+ backgroundImage: "url(\"".concat(phoeBg, "\")")
12
+ }
9
13
  }, data === null || data === void 0 ? void 0 : data.value);
10
14
  }
@@ -1,8 +1,7 @@
1
- .yot-preview-phone {
2
- width: 398px;
3
- height: 829px;
4
- background-image: url('../../assets/phonebg.png');
5
- background-size: 100% 100%;
6
- padding: 96px 36px 20px 36px;
7
- box-sizing: border-box;
8
- }
1
+ .yot-preview-phone {
2
+ width: 398px;
3
+ height: 829px;
4
+ background-size: 100% 100%;
5
+ padding: 96px 36px 20px 36px;
6
+ box-sizing: border-box;
7
+ }
@@ -25,7 +25,6 @@ export var loadScript = /*#__PURE__*/function () {
25
25
  script.onerror = function (e) {
26
26
  reject(e);
27
27
  };
28
- console.log("document.head", document.head);
29
28
  document.head.appendChild(script);
30
29
  }));
31
30
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.2.37",
3
+ "version": "0.2.38",
4
4
  "description": "基于 Antd 二次开发的组件库",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
File without changes
File without changes
File without changes
File without changes
File without changes