simple.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _vue = require("vue");
  7. var _tinycolor = require("@ctrl/tinycolor");
  8. var _internal = require("../theme/internal");
  9. const Simple = (0, _vue.defineComponent)({
  10. compatConfig: {
  11. MODE: 3
  12. },
  13. setup() {
  14. const [, token] = (0, _internal.useToken)();
  15. const color = (0, _vue.computed)(() => {
  16. const {
  17. colorFill,
  18. colorFillTertiary,
  19. colorFillQuaternary,
  20. colorBgContainer
  21. } = token.value;
  22. return {
  23. borderColor: new _tinycolor.TinyColor(colorFill).onBackground(colorBgContainer).toHexString(),
  24. shadowColor: new _tinycolor.TinyColor(colorFillTertiary).onBackground(colorBgContainer).toHexString(),
  25. contentColor: new _tinycolor.TinyColor(colorFillQuaternary).onBackground(colorBgContainer).toHexString()
  26. };
  27. });
  28. return () => (0, _vue.createVNode)("svg", {
  29. "width": "64",
  30. "height": "41",
  31. "viewBox": "0 0 64 41",
  32. "xmlns": "http://www.w3.org/2000/svg"
  33. }, [(0, _vue.createVNode)("g", {
  34. "transform": "translate(0 1)",
  35. "fill": "none",
  36. "fill-rule": "evenodd"
  37. }, [(0, _vue.createVNode)("ellipse", {
  38. "fill": color.value.shadowColor,
  39. "cx": "32",
  40. "cy": "33",
  41. "rx": "32",
  42. "ry": "7"
  43. }, null), (0, _vue.createVNode)("g", {
  44. "fill-rule": "nonzero",
  45. "stroke": color.value.borderColor
  46. }, [(0, _vue.createVNode)("path", {
  47. "d": "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
  48. }, null), (0, _vue.createVNode)("path", {
  49. "d": "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
  50. "fill": color.value.contentColor
  51. }, null)])])]);
  52. }
  53. });
  54. Simple.PRESENTED_IMAGE_SIMPLE = true;
  55. var _default = exports.default = Simple;