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

import Vue from 'vue';
import { prefix } from '../../config.js';
import circleAdapter from '../../_common/js/loading/circle-adapter.js';
import '@babel/runtime/helpers/defineProperty';
import '../../_common/js/utils/set-style.js';
import '../../_common/js/utils/helper.js';
import '@babel/runtime/helpers/objectWithoutProperties';
import '@babel/runtime/helpers/slicedToArray';

var name = "".concat(prefix, "-loading__gradient");
var classname = "".concat(prefix, "-icon-loading");
var GradientIcon = Vue.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;
      circleAdapter(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"
    })])]);
  }
});

export { GradientIcon as default };
//# sourceMappingURL=gradient.js.map
