|
@@ -28,12 +28,18 @@ $type = array
|
|
|
12 => '单项选择框',
|
|
|
);
|
|
|
|
|
|
-$option = array
|
|
|
+$is_must = array
|
|
|
(
|
|
|
1 => '必填项',
|
|
|
2 => '选填项',
|
|
|
);
|
|
|
|
|
|
+$is_sell = array
|
|
|
+(
|
|
|
+ 1 => '普通属性',
|
|
|
+ 2 => '销售属性',
|
|
|
+);
|
|
|
+
|
|
|
$data_type = array
|
|
|
(
|
|
|
1 => '数字',
|
|
@@ -97,6 +103,13 @@ return array
|
|
|
'list' => true,
|
|
|
),
|
|
|
|
|
|
+ 'hr1' => array
|
|
|
+ (
|
|
|
+ 'name' => '基本配置',
|
|
|
+ 'class' => '',
|
|
|
+ 'attr' => '',
|
|
|
+ ),
|
|
|
+
|
|
|
'name' => array
|
|
|
(
|
|
|
'type' => 'varchar-150',
|
|
@@ -110,60 +123,6 @@ return array
|
|
|
'edit' => true,
|
|
|
),
|
|
|
|
|
|
- 'unit' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-150',
|
|
|
- 'name' => '单位-填写属性单位,选填项',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '单位',
|
|
|
- 'match' => 'option',
|
|
|
- 'update' => 'text',
|
|
|
- ),
|
|
|
-
|
|
|
- 'ename' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-150',
|
|
|
- 'name' => '英文标识-该标识一般为前端样式名称,选填项',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '英文名称',
|
|
|
- 'match' => 'option',
|
|
|
- 'update' => 'text',
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- ),
|
|
|
-
|
|
|
- 'icon' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-150',
|
|
|
- 'name' => '图标',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '图标',
|
|
|
- 'match' => 'option',
|
|
|
- 'update' => 'image',
|
|
|
- 'key' => 1,
|
|
|
- ),
|
|
|
-
|
|
|
- 'color' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-10',
|
|
|
- 'name' => '字体颜色-请填写颜色代码',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '字体颜色',
|
|
|
- 'match' => 'option',
|
|
|
- 'update' => 'color',
|
|
|
- ),
|
|
|
-
|
|
|
- 'bgcolor' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-10',
|
|
|
- 'name' => '背景颜色-请填写颜色代码',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '背景颜色',
|
|
|
- 'match' => 'option',
|
|
|
- 'update' => 'color',
|
|
|
- ),
|
|
|
-
|
|
|
'cate_id' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
@@ -176,6 +135,32 @@ return array
|
|
|
'list' => '{cate_id} > 0 ? Dever::load("attr/cate-one#name", {cate_id}) : "未选择"',
|
|
|
),
|
|
|
|
|
|
+ 'is_must' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '是否必填',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '是否必填',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'radio',
|
|
|
+ 'option' => $is_must,
|
|
|
+ 'search' => 'select',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'is_sell' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '是否销售属性',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '是否销售属性',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'radio',
|
|
|
+ 'option' => $is_sell,
|
|
|
+ 'search' => 'select',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
'type' => array
|
|
|
(
|
|
|
'type' => 'tinyint-11',
|
|
@@ -190,6 +175,7 @@ return array
|
|
|
'control' => 'type',
|
|
|
),
|
|
|
|
|
|
+
|
|
|
'type_option' => array
|
|
|
(
|
|
|
'type' => 'varchar-800',
|
|
@@ -201,19 +187,7 @@ return array
|
|
|
|
|
|
'show' => 'type=1,9,10,11,12',
|
|
|
),
|
|
|
-
|
|
|
- 'option_type' => array
|
|
|
- (
|
|
|
- 'type' => 'tinyint-1',
|
|
|
- 'name' => '是否必填',
|
|
|
- 'default' => '1',
|
|
|
- 'desc' => '是否必填',
|
|
|
- 'match' => 'is_numeric',
|
|
|
- 'update' => 'radio',
|
|
|
- 'option' => $option,
|
|
|
- 'search' => 'select',
|
|
|
- 'list' => true,
|
|
|
- ),
|
|
|
+ */
|
|
|
|
|
|
'data_type' => array
|
|
|
(
|
|
@@ -244,6 +218,13 @@ return array
|
|
|
'show' => array('data_type' => 3),
|
|
|
),
|
|
|
|
|
|
+ 'hr2' => array
|
|
|
+ (
|
|
|
+ 'name' => '排序规则',
|
|
|
+ 'class' => '',
|
|
|
+ 'attr' => '',
|
|
|
+ ),
|
|
|
+
|
|
|
'list_reorder' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
@@ -288,6 +269,67 @@ return array
|
|
|
'edit' => true,
|
|
|
'list' => true,
|
|
|
),
|
|
|
+
|
|
|
+ 'hr3' => array
|
|
|
+ (
|
|
|
+ 'name' => '扩展设置',
|
|
|
+ 'class' => '',
|
|
|
+ 'attr' => '',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'unit' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '单位-填写属性单位,选填项',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '单位',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'ename' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '英文标识-该标识一般为前端样式名称,选填项',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '英文名称',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'icon' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '图标',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '图标',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => 1,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'color' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-10',
|
|
|
+ 'name' => '字体颜色-请填写颜色代码',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '字体颜色',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'color',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'bgcolor' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-10',
|
|
|
+ 'name' => '背景颜色-请填写颜色代码',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '背景颜色',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'color',
|
|
|
+ ),
|
|
|
|
|
|
'state' => array
|
|
|
(
|