初始上传

This commit is contained in:
2026-04-04 17:27:12 +08:00
parent 4d80d28eb4
commit b7e11774ee
11191 changed files with 1588469 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
@CHARSET "UTF-8";
/*标题组件*/
.component-title-extend h2{color: #0cc361;}

View File

@@ -0,0 +1,40 @@
<nc-component :data="data[index]" class="component-title-extend">
<!-- 预览 -->
<template slot="preview">
<div class="preview-box" :style="{ backgroundColor: nc.componentBgColor,
borderTopLeftRadius: (nc.componentAngle == 'round' ? nc.topAroundRadius + 'px' : 0),
borderTopRightRadius: (nc.componentAngle == 'round' ? nc.topAroundRadius + 'px' : 0),
borderBottomLeftRadius: (nc.componentAngle == 'round' ? nc.bottomAroundRadius + 'px' : 0),
borderBottomRightRadius: (nc.componentAngle == 'round' ? nc.bottomAroundRadius + 'px' : 0) }">
<h2>我是扩展标题组件</h2>
</div>
</template>
<!-- 内容编辑 -->
<template slot="edit-content">
<template v-if="nc.lazyLoad">
<div class="template-edit-title">
<h3>风格设置</h3>
<text-extend-style></text-extend-style>
</div>
</template>
</template>
<!-- 样式编辑 -->
<template slot="edit-style">
<template v-if="nc.lazyLoad">
<div class="template-edit-title">
<h3>标题样式</h3>
</div>
</template>
</template>
<!-- 资源 -->
<template slot="resource">
<js>
</js>
<css src="{$resource_path}/css/design.css"></css>
<js src="{$resource_path}/js/design.js"></js>
</template>
</nc-component>

View File

@@ -0,0 +1,25 @@
var styleExtendHtml = '<div style="display:none;"></div>';
Vue.component("text-extend-style", {
template: styleExtendHtml,
data: function () {
return {
data: this.$parent.data,
list: {},
}
},
created: function () {
if (!this.$parent.data.verify) this.$parent.data.verify = [];
this.$parent.data.verify.push(this.verify);//加载验证方法
this.$parent.data.ignore = ['elementAngle', 'elementBgColor']; //加载忽略内容 -- 其他设置中的属性设置
this.$parent.data.ignoreLoad = true; // 等待忽略数组赋值后加载
},
methods: {
verify: function (index) {
var res = {code: true, message: ""};
return res;
},
}
});