/**
 * tdesign v0.41.7
 * (c) 2022 tdesign
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var Vue = require('vue');
var config = require('../../config.js');
var _common_js_loading_circleAdapter = require('../../_common/js/loading/circle-adapter.js');
require('@babel/runtime/helpers/defineProperty');
require('../../_common/js/utils/set-style.js');
require('../../_common/js/utils/helper.js');
require('@babel/runtime/helpers/objectWithoutProperties');
require('@babel/runtime/helpers/slicedToArray');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue);

var name = "".concat(config.prefix, "-loading__gradient");
var classname = "".concat(config.prefix, "-icon-loading");
var GradientIcon = Vue__default["default"].extend({
  name: name,
  mounted: function mounted() {
    var _this = this;

    this.$nextTick(function () {
      _this.updateColor();
    });
  },
  updated: function updated() {
    this.updateColor();
  },
  methods: {
    updateColor: function updateColor() {
      var circleElem = this.$refs.circle;
      _common_js_loading_circleAdapter["default"](circleElem);
    }
  },
  render: function render() {
    var h = arguments[0];
    var classes = [name, classname];
    return h("svg", {
      "class": classes,
      "attrs": {
        "viewBox": "0 0 14 14",
        "version": "1.1",
        "width": "1em",
        "height": "1em",
        "xmlns": "http://www.w3.org/2000/svg"
      }
    }, [h("foreignObject", {
      "attrs": {
        "x": "1",
        "y": "1",
        "width": "12",
        "height": "12"
      }
    }, [h("div", {
      "class": "".concat(name, "-conic"),
      "ref": "circle"
    })])]);
  }
});

exports["default"] = GradientIcon;
//# sourceMappingURL=gradient.js.map
