Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/babel-loader/ff5756ab0b49f7e2cafa4b6f7089f044.json
2024-12-05 09:33:18 +08:00

1 line
8.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\logicflow\\editor\\components\\PropertyPanel.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\logicflow\\editor\\components\\PropertyPanel.vue","mtime":1732871026747},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _defineProperty2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/defineProperty.js\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/objectSpread2.js\"));\nrequire(\"core-js/modules/es6.array.fill\");\nvar _vueColor = require(\"vue-color\");\nvar _constant = require(\"../constant\");\nvar _stageImage = _interopRequireDefault(require(\"@/api/logicflow/stageImage\"));\nvar _device = _interopRequireDefault(require(\"@/api/acs/device/device\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = exports.default = {\n components: {\n SketchPicker: _vueColor.Sketch\n },\n props: {\n elementsStyle: Object,\n onlyEdge: Boolean,\n // 是否是只设置边的属性,当只设置边的属性时,隐藏快捷样式和背景色设置\n showChoice: Boolean,\n node: Object // 父组件传来的对象\n },\n data: function data() {\n return {\n shortStyles: _constant.shortStyles,\n borderStyles: _constant.borderStyles,\n fontFamilies: _constant.fontFamilies,\n style: {\n backgroundColor: '',\n // 填充色\n gradientColor: '',\n // 渐变色\n borderType: 0,\n // 线条类型\n borderColor: '',\n // 填充颜色\n borderWidth: 1,\n // 线条宽度\n borderStyle: '',\n // 线条类型\n fontSize: 12,\n // 文本大小\n fontColor: '',\n // 文本颜色\n fontWeight: '',\n // 文本加粗\n fontFamily: '',\n // 文本样式\n lineHeight: '',\n // 行高\n textAlign: '',\n // 对齐\n device: '',\n // 设备号\n transform: 0,\n // 旋转角度\n imageUrl: ''\n },\n borderWidthOptions: Array(11).fill().map(function (_, i) {\n return i;\n }),\n SketchPicker: _vueColor.Sketch,\n fontWeight: '',\n // 文本加粗\n lineHeightOptions: Array(5).fill(1).map(function (_, i) {\n return _ + i * 0.5;\n }),\n // imageUrl: '',\n imageUrlOptions: [],\n deviceCodeOptions: []\n };\n },\n watch: {\n elementsStyle: {\n handler: function handler(val) {\n this.style = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, this.style), val);\n },\n immediate: true\n },\n node: function node(newVal, oldVal) {\n // newVal是新值oldVal是旧值\n this.node = newVal;\n this.cleanParam();\n }\n },\n created: function created() {\n this.initStageIconList();\n this.initDevicesList();\n },\n methods: {\n initStageIconList: function initStageIconList() {\n var _this = this;\n // 初始化图标数据\n // 初始化舞台下拉框\n _stageImage.default.selectStageIconList().then(function (data) {\n // console.log('data', data)\n // 赋值\n _this.imageUrlOptions = data;\n });\n },\n initDevicesList: function initDevicesList() {\n var _this2 = this;\n _device.default.selectDeviceList().then(function (res) {\n console.log('devices:', res);\n _this2.deviceCodeOptions = res;\n });\n },\n setStyle: function setStyle(item) {\n this.$emit('setStyle', item);\n },\n $_selectBorder: function $_selectBorder(val) {\n this.$emit('setStyle', {\n borderStyle: val\n });\n },\n $_changeColorProperty: function $_changeColorProperty(_ref, type) {\n var _ref$rgba = _ref.rgba,\n r = _ref$rgba.r,\n g = _ref$rgba.g,\n b = _ref$rgba.b,\n a = _ref$rgba.a;\n var color = \"rgba(\".concat(r, \",\").concat(g, \",\").concat(b, \",\").concat(a, \")\");\n this[type] = color;\n this.$emit('setStyle', (0, _defineProperty2.default)({}, type, color));\n },\n $_changeFontSize: function $_changeFontSize(val) {\n this.$emit('setStyle', {\n fontSize: val\n });\n },\n $_changeTransform: function $_changeTransform(val) {\n this.$emit('setStyle', {\n transform: val\n });\n },\n $_changeBorderWidth: function $_changeBorderWidth(val) {\n this.$emit('setStyle', {\n borderWidth: val\n });\n },\n $_changeFontFamily: function $_changeFontFamily(val) {\n this.$emit('setStyle', {\n fontFamily: val\n });\n },\n $_changeLineHeight: function $_changeLineHeight(val) {\n this.$emit('setStyle', {\n lineHeight: val\n });\n },\n $_changeImageUrl: function $_changeImageUrl(val) {\n this.$emit('setStyle', {\n imageUrl: val\n });\n },\n $_changeFontWeight: function $_changeFontWeight() {\n if (this.style.fontWeight === 'bold') {\n this.$emit('setStyle', {\n fontWeight: 'normal'\n });\n } else {\n this.$emit('setStyle', {\n fontWeight: 'bold'\n });\n }\n },\n $_changeTextDecoration: function $_changeTextDecoration() {\n if (this.style.textDecoration === 'underline') {\n this.$emit('setStyle', {\n textDecoration: 'none'\n });\n } else {\n this.$emit('setStyle', {\n textDecoration: 'underline'\n });\n }\n },\n $_changeFontStyle: function $_changeFontStyle() {\n if (this.style.fontStyle === 'italic') {\n this.$emit('setStyle', {\n fontStyle: 'normal'\n });\n } else {\n this.$emit('setStyle', {\n fontStyle: 'italic'\n });\n }\n },\n $_changeTextAlign: function $_changeTextAlign(val) {\n this.$emit('setStyle', {\n textAlign: val\n });\n },\n $_changeDevice: function $_changeDevice(val) {\n this.$emit('setStyle', {\n device: val\n });\n },\n cleanParam: function cleanParam() {\n // 判断来清空下拉框\n if (this.node.properties.device === undefined) {\n this.style.device = '';\n }\n if (this.node.properties.imageUrl === undefined) {\n this.style.imageUrl = '';\n }\n if (this.node.properties.transform === undefined) {\n this.style.transform = 0;\n }\n }\n }\n};",null]}