@gct-paas/design-web 0.1.4-dev.6 → 0.1.4-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.min.mjs +33 -0
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +1 -1
- package/es/components/test-com/test-com.css +67 -0
- package/es/components/test-com/test-com.mjs +3 -4
- package/es/components/test-vue-com/test-vue-com.vue.mjs +21 -0
- package/es/components/test-vue-com/test-vue-com.vue2.mjs +5 -0
- package/es/index.mjs +3 -5
- package/package.json +12 -12
- package/dist/design-web.css +0 -1
- package/es/components/index.mjs +0 -4
- package/es/components/test-com/test-com.scss +0 -3
- package/es/components/test-vue-com/test-vue-com.vue +0 -15
- package/es/vite-env.d.ts +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as c, ref as t, openBlock as i, createElementBlock as d, normalizeClass as p, unref as v, createElementVNode as n, toDisplayString as o, createVNode as _, createTextVNode as f } from "vue";
|
|
2
|
+
import { useNamespace as l } from "@gct-paas/core";
|
|
3
|
+
const s = /* @__PURE__ */ c({
|
|
4
|
+
__name: "test-vue-com",
|
|
5
|
+
setup(e) {
|
|
6
|
+
const m = l("test-vue-com"), a = t("Hello World!"), u = t("Hello World2!");
|
|
7
|
+
return (C, x) => (i(), d("div", {
|
|
8
|
+
class: p(v(m).b())
|
|
9
|
+
}, [
|
|
10
|
+
n("div", null, o(a.value), 1),
|
|
11
|
+
n("div", null, o(u.value), 1)
|
|
12
|
+
], 2));
|
|
13
|
+
}
|
|
14
|
+
}), r = /* @__PURE__ */ c({
|
|
15
|
+
name: "TestCom",
|
|
16
|
+
setup() {
|
|
17
|
+
return {
|
|
18
|
+
ns: l("test-com")
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
render() {
|
|
22
|
+
return _("div", {
|
|
23
|
+
class: this.ns.b()
|
|
24
|
+
}, [f("TestCom")]);
|
|
25
|
+
}
|
|
26
|
+
}), g = {
|
|
27
|
+
install(e) {
|
|
28
|
+
e.component(r.name, r), e.component(s.name, s);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
g as default
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.gct-test-com{background-color:#0ff}
|
package/dist/index.system.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["vue","@gct-paas/core"],(function(v,C){"use strict";var n,s,a,l,i,m,c,o,u,p,r;return{setters:[e=>{n=e.defineComponent,s=e.ref,a=e.
|
|
1
|
+
System.register(["vue","@gct-paas/core"],(function(v,C){"use strict";var n,s,a,l,i,m,c,o,u,p,r;return{setters:[e=>{n=e.defineComponent,s=e.ref,a=e.openBlock,l=e.createElementBlock,i=e.normalizeClass,m=e.unref,c=e.createElementVNode,o=e.toDisplayString,u=e.createVNode,p=e.createTextVNode},e=>{r=e.useNamespace}],execute:(function(){const e=n({__name:"test-vue-com",setup(t){const d=r("test-vue-com"),N=s("Hello World!"),_=s("Hello World2!");return(V,x)=>(a(),l("div",{class:i(m(d).b())},[c("div",null,o(N.value),1),c("div",null,o(_.value),1)],2))}}),f=n({name:"TestCom",setup(){return{ns:r("test-com")}},render(){return u("div",{class:this.ns.b()},[p("TestCom")])}}),g=v("default",{install(t){t.component(f.name,f),t.component(e.name,e)}})})}}));
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-test-com {
|
|
66
|
+
background-color: aqua;
|
|
67
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineComponent, createVNode, createTextVNode } from 'vue';
|
|
2
2
|
import { useNamespace } from '@gct-paas/core';
|
|
3
|
-
import './test-com.
|
|
3
|
+
import './test-com.css';/* empty css */
|
|
4
4
|
|
|
5
|
-
"use strict";
|
|
6
5
|
const TestCom = /* @__PURE__ */ defineComponent({
|
|
7
|
-
name:
|
|
6
|
+
name: 'TestCom',
|
|
8
7
|
setup() {
|
|
9
|
-
const ns = useNamespace(
|
|
8
|
+
const ns = useNamespace('test-com');
|
|
10
9
|
return {
|
|
11
10
|
ns
|
|
12
11
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { useNamespace } from '@gct-paas/core';
|
|
3
|
+
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "test-vue-com",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const ns = useNamespace("test-vue-com");
|
|
8
|
+
const msg = ref("Hello World!");
|
|
9
|
+
const msg2 = ref("Hello World2!");
|
|
10
|
+
return (_ctx, _cache) => {
|
|
11
|
+
return openBlock(), createElementBlock("div", {
|
|
12
|
+
class: normalizeClass(unref(ns).b())
|
|
13
|
+
}, [
|
|
14
|
+
createElementVNode("div", null, toDisplayString(msg.value), 1),
|
|
15
|
+
createElementVNode("div", null, toDisplayString(msg2.value), 1)
|
|
16
|
+
], 2);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export { _sfc_main as default };
|
package/es/index.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import './components/
|
|
1
|
+
import _sfc_main from './components/test-vue-com/test-vue-com.vue.mjs';
|
|
2
2
|
import { TestCom } from './components/test-com/test-com.mjs';
|
|
3
|
-
import TestVueCom from './test-vue-com/test-vue-com.vue';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
var index = {
|
|
4
|
+
const index = {
|
|
7
5
|
install(app) {
|
|
8
6
|
app.component(TestCom.name, TestCom);
|
|
9
|
-
app.component(
|
|
7
|
+
app.component(_sfc_main.name, _sfc_main);
|
|
10
8
|
}
|
|
11
9
|
};
|
|
12
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/design-web",
|
|
3
|
-
"version": "0.1.4-dev.
|
|
3
|
+
"version": "0.1.4-dev.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台设计界面移动端底包",
|
|
6
6
|
"main": "dist/index.min.cjs",
|
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"author": "gct",
|
|
33
33
|
"scripts": {
|
|
34
|
-
"dev": "
|
|
35
|
-
"build": "
|
|
34
|
+
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|
|
35
|
+
"es:build": "vite build --config vite.dev.config.ts",
|
|
36
|
+
"build": "npm run lint && vite build --config vite.dev.config.ts && vite build --config vite.config.ts",
|
|
36
37
|
"lint": "eslint src/",
|
|
37
38
|
"publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
|
|
38
39
|
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
@@ -41,16 +42,15 @@
|
|
|
41
42
|
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@gct-paas/
|
|
45
|
-
"@gct-paas/core": "0.1.4-dev.
|
|
46
|
-
"@gct-paas/
|
|
47
|
-
"@gct-paas/
|
|
48
|
-
"
|
|
49
|
-
"@gct-paas/web": "0.1.4-dev.6",
|
|
50
|
-
"vue": "^3.5.13"
|
|
45
|
+
"@gct-paas/core": "0.1.4-dev.8",
|
|
46
|
+
"@gct-paas/core-web": "0.1.4-dev.8",
|
|
47
|
+
"@gct-paas/design": "0.1.4-dev.8",
|
|
48
|
+
"@gct-paas/scss": "0.1.4-dev.8",
|
|
49
|
+
"vue": "^3.5.27"
|
|
51
50
|
},
|
|
52
51
|
"devDependencies": {
|
|
53
|
-
"
|
|
52
|
+
"@gct-paas/build": "^0.1.5-dev.6",
|
|
53
|
+
"sass": "^1.97.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "bf7f4f9672c3906ec834e6d58b999ce78f7cad08"
|
|
56
56
|
}
|
package/dist/design-web.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.gct-test-com{background-color:#0ff}
|
package/es/components/index.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="ns.b()">
|
|
3
|
-
<div>{{ msg }}</div>
|
|
4
|
-
<div>{{ msg2 }}</div>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
<script setup lang="ts" name="test-vue-com">
|
|
8
|
-
import { useNamespace } from '@gct-paas/core';
|
|
9
|
-
import { ref } from 'vue';
|
|
10
|
-
|
|
11
|
-
const ns = useNamespace('test-vue-com');
|
|
12
|
-
|
|
13
|
-
const msg = ref('Hello World!');
|
|
14
|
-
const msg2 = ref('Hello World2!');
|
|
15
|
-
</script>
|
package/es/vite-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|